2007-09-12 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 ac_subdirs_all="$ac_subdirs_all doc testsuite"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR 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'
318
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
338
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'
356
357 ac_prev=
358 for ac_option
359 do
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
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
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 ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
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 ;;
398
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" ;;
407
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'" ;;
420
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 ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
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 ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
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 ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
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 ;;
469
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 ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
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 ;;
495
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 ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
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 ;;
516
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 ;;
523
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 ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
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 ;;
550
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 ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
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 ;;
578
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 ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
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'" ;;
602
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" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
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 ;;
622
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 ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
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 ;;
644
645 *)
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}
651 ;;
652
653 esac
654 done
655
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; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
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
672
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
676 do
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
684
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
691
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
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
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=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
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; }; }
739 fi
740 fi
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
777
778 #
779 # Report the --help message.
780 #
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.
786
787 Usage: $0 [OPTION]... [VAR=VALUE]...
788
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.
791
792 Defaults for the options are specified in brackets.
793
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 \`..']
804
805 _ACEOF
806
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]
813
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'.
818
819 For better control, use the options below.
820
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
835
836 cat <<\_ACEOF
837
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
842
843 X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
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
852 fi
853
854 if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
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-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
868 --disable-rpath do not hardcode runtime library paths
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
874
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-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
880 --with-system-readline use installed readline library
881 --with-expat include expat support (auto/yes/no)
882 --with-gnu-ld assume the C compiler uses GNU ld default=no
883 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
884 --without-libexpat-prefix don't search for libexpat in includedir and libdir
885 --without-included-regex don't use included regex; this is the default
886 on systems with version 2 of the GNU C library
887 (use with caution on other system)
888 --with-sysroot=DIR Search for usr/lib et al within DIR.
889 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
890 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
891 --with-tclinclude=DIR Directory where tcl private headers are
892 --with-tkinclude=DIR Directory where tk private headers are
893 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
894 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
897
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CPP C preprocessor
906
907 Use these variables to override the choices made by `configure' or to help
908 it to find libraries and programs with nonstandard names/locations.
909
910 _ACEOF
911 fi
912
913 if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
915 ac_popdir=`pwd`
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
919
920 if test "$ac_dir" != .; then
921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 else
925 ac_dir_suffix= ac_top_builddir=
926 fi
927
928 case $srcdir in
929 .) # No --srcdir option. We are building in place.
930 ac_srcdir=.
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
937 ac_srcdir=$srcdir$ac_dir_suffix;
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942 esac
943
944 # Do not use `cd foo && pwd` to compute absolute paths, because
945 # the directories may not exist.
946 case `pwd` in
947 .) ac_abs_builddir="$ac_dir";;
948 *)
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954 esac
955 case $ac_abs_builddir in
956 .) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *)
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_srcdir=$ac_srcdir;;
966 *)
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *)
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
981 esac
982
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
986 echo
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
989 echo
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
995 else
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
997 fi
998 cd $ac_popdir
999 done
1000 fi
1001
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1004 cat <<\_ACEOF
1005
1006 Copyright (C) 2003 Free Software Foundation, Inc.
1007 This configure script is free software; the Free Software Foundation
1008 gives unlimited permission to copy, distribute and modify it.
1009 _ACEOF
1010 exit 0
1011 fi
1012 exec 5>config.log
1013 cat >&5 <<_ACEOF
1014 This file contains any messages produced by compilers while
1015 running configure, to aid debugging if configure makes a mistake.
1016
1017 It was created by $as_me, which was
1018 generated by GNU Autoconf 2.59. Invocation command line was
1019
1020 $ $0 $@
1021
1022 _ACEOF
1023 {
1024 cat <<_ASUNAME
1025 ## --------- ##
1026 ## Platform. ##
1027 ## --------- ##
1028
1029 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037
1038 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1041 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1042 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045
1046 _ASUNAME
1047
1048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049 for as_dir in $PATH
1050 do
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054 done
1055
1056 } >&5
1057
1058 cat >&5 <<_ACEOF
1059
1060
1061 ## ----------- ##
1062 ## Core tests. ##
1063 ## ----------- ##
1064
1065 _ACEOF
1066
1067
1068 # Keep a trace of the command line.
1069 # Strip out --no-create and --no-recursion so they do not pile up.
1070 # Strip out --silent because we don't want to record it for future runs.
1071 # Also quote any args containing shell meta-characters.
1072 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_configure_args=
1074 ac_configure_args0=
1075 ac_configure_args1=
1076 ac_sep=
1077 ac_must_keep_next=false
1078 for ac_pass in 1 2
1079 do
1080 for ac_arg
1081 do
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 2)
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1105 ;;
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1108 fi
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1112 ;;
1113 esac
1114 done
1115 done
1116 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119 # When interrupted or exit'd, cleanup temporary files, and complete
1120 # config.log. We remove comments because anyway the quotes in there
1121 # would cause problems or look ugly.
1122 # WARNING: Be sure not to use single quotes in there, as some shells,
1123 # such as our DU 5.0 friend, will then `close' the trap.
1124 trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1126 {
1127 echo
1128
1129 cat <<\_ASBOX
1130 ## ---------------- ##
1131 ## Cache variables. ##
1132 ## ---------------- ##
1133 _ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
1136 {
1137 (set) 2>&1 |
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
1140 sed -n \
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 ;;
1144 *)
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1147 ;;
1148 esac;
1149 }
1150 echo
1151
1152 cat <<\_ASBOX
1153 ## ----------------- ##
1154 ## Output variables. ##
1155 ## ----------------- ##
1156 _ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1159 do
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1162 done | sort
1163 echo
1164
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
1167 ## ------------- ##
1168 ## Output files. ##
1169 ## ------------- ##
1170 _ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1173 do
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
1176 done | sort
1177 echo
1178 fi
1179
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182 ## ----------- ##
1183 ## confdefs.h. ##
1184 ## ----------- ##
1185 _ASBOX
1186 echo
1187 sed "/^$/d" confdefs.h | sort
1188 echo
1189 fi
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1196 exit $exit_status
1197 ' 0
1198 for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200 done
1201 ac_signal=0
1202
1203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1204 rm -rf conftest* confdefs.h
1205 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206 echo >confdefs.h
1207
1208 # Predefined preprocessor variables.
1209
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_NAME "$PACKAGE_NAME"
1212 _ACEOF
1213
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_STRING "$PACKAGE_STRING"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232 _ACEOF
1233
1234
1235 # Let the site file select an alternate cache file if it wants to.
1236 # Prefer explicitly selected file to automatically selected ones.
1237 if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 fi
1243 fi
1244 for ac_site_file in $CONFIG_SITE; do
1245 if test -r "$ac_site_file"; then
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247 echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
1249 . "$ac_site_file"
1250 fi
1251 done
1252
1253 if test -r "$cache_file"; then
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258 echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1263 fi
1264 else
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266 echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1268 fi
1269
1270 # Check that the precious variables saved in the cache have kept the same
1271 # value.
1272 ac_cache_corrupted=false
1273 for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1289 *)
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294 echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296 echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312 done
1313 if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
1319 fi
1320
1321 ac_ext=c
1322 ac_cpp='$CPP $CPPFLAGS'
1323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345 ac_config_headers="$ac_config_headers config.h:config.in"
1346
1347 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1350 if test "${enable_maintainer_mode+set}" = set; then
1351 enableval="$enable_maintainer_mode"
1352 USE_MAINTAINER_MODE=$enableval
1353 else
1354 USE_MAINTAINER_MODE=no
1355 fi;
1356 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1358
1359
1360 if test $USE_MAINTAINER_MODE = yes; then
1361 MAINTAINER_MODE_TRUE=
1362 MAINTAINER_MODE_FALSE='#'
1363 else
1364 MAINTAINER_MODE_TRUE='#'
1365 MAINTAINER_MODE_FALSE=
1366 fi
1367
1368 MAINT=$MAINTAINER_MODE_TRUE
1369
1370
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377 if test -n "$ac_tool_prefix"; then
1378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$CC"; then
1386 ac_cv_prog_CC="$CC" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 fi
1403 fi
1404 CC=$ac_cv_prog_CC
1405 if test -n "$CC"; then
1406 echo "$as_me:$LINENO: result: $CC" >&5
1407 echo "${ECHO_T}$CC" >&6
1408 else
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1411 fi
1412
1413 fi
1414 if test -z "$ac_cv_prog_CC"; then
1415 ac_ct_CC=$CC
1416 # Extract the first word of "gcc", so it can be a program name with args.
1417 set dummy gcc; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425 else
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_prog_ac_ct_CC="gcc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437 done
1438 done
1439
1440 fi
1441 fi
1442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443 if test -n "$ac_ct_CC"; then
1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445 echo "${ECHO_T}$ac_ct_CC" >&6
1446 else
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451 CC=$ac_ct_CC
1452 else
1453 CC="$ac_cv_prog_CC"
1454 fi
1455
1456 if test -z "$CC"; then
1457 if test -n "$ac_tool_prefix"; then
1458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1459 set dummy ${ac_tool_prefix}cc; ac_word=$2
1460 echo "$as_me:$LINENO: checking for $ac_word" >&5
1461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462 if test "${ac_cv_prog_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 else
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1467 else
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1475 ac_cv_prog_CC="${ac_tool_prefix}cc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 break 2
1478 fi
1479 done
1480 done
1481
1482 fi
1483 fi
1484 CC=$ac_cv_prog_CC
1485 if test -n "$CC"; then
1486 echo "$as_me:$LINENO: result: $CC" >&5
1487 echo "${ECHO_T}$CC" >&6
1488 else
1489 echo "$as_me:$LINENO: result: no" >&5
1490 echo "${ECHO_T}no" >&6
1491 fi
1492
1493 fi
1494 if test -z "$ac_cv_prog_CC"; then
1495 ac_ct_CC=$CC
1496 # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503 if test -n "$ac_ct_CC"; then
1504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505 else
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_ac_ct_CC="cc"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 break 2
1516 fi
1517 done
1518 done
1519
1520 fi
1521 fi
1522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523 if test -n "$ac_ct_CC"; then
1524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525 echo "${ECHO_T}$ac_ct_CC" >&6
1526 else
1527 echo "$as_me:$LINENO: result: no" >&5
1528 echo "${ECHO_T}no" >&6
1529 fi
1530
1531 CC=$ac_ct_CC
1532 else
1533 CC="$ac_cv_prog_CC"
1534 fi
1535
1536 fi
1537 if test -z "$CC"; then
1538 # Extract the first word of "cc", so it can be a program name with args.
1539 set dummy cc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 ac_prog_rejected=no
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550 for as_dir in $PATH
1551 do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557 ac_prog_rejected=yes
1558 continue
1559 fi
1560 ac_cv_prog_CC="cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1563 fi
1564 done
1565 done
1566
1567 if test $ac_prog_rejected = yes; then
1568 # We found a bogon in the path, so make sure we never use it.
1569 set dummy $ac_cv_prog_CC
1570 shift
1571 if test $# != 0; then
1572 # We chose a different compiler from the bogus one.
1573 # However, it has the same basename, so the bogon will be chosen
1574 # first if we set CC to just the basename; use the full file name.
1575 shift
1576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1577 fi
1578 fi
1579 fi
1580 fi
1581 CC=$ac_cv_prog_CC
1582 if test -n "$CC"; then
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584 echo "${ECHO_T}$CC" >&6
1585 else
1586 echo "$as_me:$LINENO: result: no" >&5
1587 echo "${ECHO_T}no" >&6
1588 fi
1589
1590 fi
1591 if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
1593 for ac_prog in cl
1594 do
1595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616 done
1617 done
1618
1619 fi
1620 fi
1621 CC=$ac_cv_prog_CC
1622 if test -n "$CC"; then
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624 echo "${ECHO_T}$CC" >&6
1625 else
1626 echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630 test -n "$CC" && break
1631 done
1632 fi
1633 if test -z "$CC"; then
1634 ac_ct_CC=$CC
1635 for ac_prog in cl
1636 do
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638 set dummy $ac_prog; ac_word=$2
1639 echo "$as_me:$LINENO: checking for $ac_word" >&5
1640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 else
1647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 for as_dir in $PATH
1649 do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
1657 fi
1658 done
1659 done
1660
1661 fi
1662 fi
1663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664 if test -n "$ac_ct_CC"; then
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666 echo "${ECHO_T}$ac_ct_CC" >&6
1667 else
1668 echo "$as_me:$LINENO: result: no" >&5
1669 echo "${ECHO_T}no" >&6
1670 fi
1671
1672 test -n "$ac_ct_CC" && break
1673 done
1674
1675 CC=$ac_ct_CC
1676 fi
1677
1678 fi
1679
1680
1681 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&5
1683 echo "$as_me: error: no acceptable C compiler found in \$PATH
1684 See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687 # Provide some information about the compiler.
1688 echo "$as_me:$LINENO:" \
1689 "checking for C compiler version" >&5
1690 ac_compiler=`set X $ac_compile; echo $2`
1691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
1696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
1698 ac_status=$?
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
1701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706
1707 cat >conftest.$ac_ext <<_ACEOF
1708 /* confdefs.h. */
1709 _ACEOF
1710 cat confdefs.h >>conftest.$ac_ext
1711 cat >>conftest.$ac_ext <<_ACEOF
1712 /* end confdefs.h. */
1713
1714 int
1715 main ()
1716 {
1717
1718 ;
1719 return 0;
1720 }
1721 _ACEOF
1722 ac_clean_files_save=$ac_clean_files
1723 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1724 # Try to create an executable without -o first, disregard a.out.
1725 # It will help us diagnose broken compilers, and finding out an intuition
1726 # of exeext.
1727 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1729 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
1735 # Find the output, starting from the most likely. This scheme is
1736 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737 # resort.
1738
1739 # Be careful to initialize this variable, since it used to be cached.
1740 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741 ac_cv_exeext=
1742 # b.out is created by i960 compilers.
1743 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1744 do
1745 test -f "$ac_file" || continue
1746 case $ac_file in
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748 ;;
1749 conftest.$ac_ext )
1750 # This is the source file.
1751 ;;
1752 [ab].out )
1753 # We found the default executable, but exeext='' is most
1754 # certainly right.
1755 break;;
1756 *.* )
1757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool,
1759 # but it would be cool to find out if it's true. Does anybody
1760 # maintain Libtool? --akim.
1761 export ac_cv_exeext
1762 break;;
1763 * )
1764 break;;
1765 esac
1766 done
1767 else
1768 echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772 See \`config.log' for more details." >&5
1773 echo "$as_me: error: C compiler cannot create executables
1774 See \`config.log' for more details." >&2;}
1775 { (exit 77); exit 77; }; }
1776 fi
1777
1778 ac_exeext=$ac_cv_exeext
1779 echo "$as_me:$LINENO: result: $ac_file" >&5
1780 echo "${ECHO_T}$ac_file" >&6
1781
1782 # Check the compiler produces executables we can run. If not, either
1783 # the compiler is broken, or we cross compile.
1784 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1786 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787 # If not cross compiling, check that we can run a simple program.
1788 if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 (eval $ac_try) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1795 cross_compiling=no
1796 else
1797 if test "$cross_compiling" = maybe; then
1798 cross_compiling=yes
1799 else
1800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&5
1803 echo "$as_me: error: cannot run C compiled programs.
1804 If you meant to cross compile, use \`--host'.
1805 See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
1808 fi
1809 fi
1810 echo "$as_me:$LINENO: result: yes" >&5
1811 echo "${ECHO_T}yes" >&6
1812
1813 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814 ac_clean_files=$ac_clean_files_save
1815 # Check the compiler produces executables we can run. If not, either
1816 # the compiler is broken, or we cross compile.
1817 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820 echo "${ECHO_T}$cross_compiling" >&6
1821
1822 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1825 (eval $ac_link) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
1829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1831 # work properly (i.e., refer to `conftest.exe'), while it won't with
1832 # `rm'.
1833 for ac_file in conftest.exe conftest conftest.*; do
1834 test -f "$ac_file" || continue
1835 case $ac_file in
1836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 export ac_cv_exeext
1839 break;;
1840 * ) break;;
1841 esac
1842 done
1843 else
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845 See \`config.log' for more details." >&5
1846 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847 See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
1849 fi
1850
1851 rm -f conftest$ac_cv_exeext
1852 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853 echo "${ECHO_T}$ac_cv_exeext" >&6
1854
1855 rm -f conftest.$ac_ext
1856 EXEEXT=$ac_cv_exeext
1857 ac_exeext=$EXEEXT
1858 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1860 if test "${ac_cv_objext+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 else
1863 cat >conftest.$ac_ext <<_ACEOF
1864 /* confdefs.h. */
1865 _ACEOF
1866 cat confdefs.h >>conftest.$ac_ext
1867 cat >>conftest.$ac_ext <<_ACEOF
1868 /* end confdefs.h. */
1869
1870 int
1871 main ()
1872 {
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 rm -f conftest.o conftest.obj
1879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1885 case $ac_file in
1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888 break;;
1889 esac
1890 done
1891 else
1892 echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&5
1897 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898 See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
1900 fi
1901
1902 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1903 fi
1904 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905 echo "${ECHO_T}$ac_cv_objext" >&6
1906 OBJEXT=$ac_cv_objext
1907 ac_objext=$OBJEXT
1908 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1910 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913 cat >conftest.$ac_ext <<_ACEOF
1914 /* confdefs.h. */
1915 _ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h. */
1919
1920 int
1921 main ()
1922 {
1923 #ifndef __GNUC__
1924 choke me
1925 #endif
1926
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 rm -f conftest.$ac_objext
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>conftest.er1
1934 ac_status=$?
1935 grep -v '^ *+' conftest.er1 >conftest.err
1936 rm -f conftest.er1
1937 cat conftest.err >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
1940 { ac_try='test -z "$ac_c_werror_flag"
1941 || test ! -s conftest.err'
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_compiler_gnu=yes
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958 ac_compiler_gnu=no
1959 fi
1960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962
1963 fi
1964 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1966 GCC=`test $ac_compiler_gnu = yes && echo yes`
1967 ac_test_CFLAGS=${CFLAGS+set}
1968 ac_save_CFLAGS=$CFLAGS
1969 CFLAGS="-g"
1970 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1972 if test "${ac_cv_prog_cc_g+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975 cat >conftest.$ac_ext <<_ACEOF
1976 /* confdefs.h. */
1977 _ACEOF
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1981
1982 int
1983 main ()
1984 {
1985
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_cv_prog_cc_g=yes
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_cv_prog_cc_g=no
2018 fi
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2023 if test "$ac_test_CFLAGS" = set; then
2024 CFLAGS=$ac_save_CFLAGS
2025 elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2027 CFLAGS="-g -O2"
2028 else
2029 CFLAGS="-g"
2030 fi
2031 else
2032 if test "$GCC" = yes; then
2033 CFLAGS="-O2"
2034 else
2035 CFLAGS=
2036 fi
2037 fi
2038 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 ac_cv_prog_cc_stdc=no
2044 ac_save_CC=$CC
2045 cat >conftest.$ac_ext <<_ACEOF
2046 /* confdefs.h. */
2047 _ACEOF
2048 cat confdefs.h >>conftest.$ac_ext
2049 cat >>conftest.$ac_ext <<_ACEOF
2050 /* end confdefs.h. */
2051 #include <stdarg.h>
2052 #include <stdio.h>
2053 #include <sys/types.h>
2054 #include <sys/stat.h>
2055 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2056 struct buf { int x; };
2057 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058 static char *e (p, i)
2059 char **p;
2060 int i;
2061 {
2062 return p[i];
2063 }
2064 static char *f (char * (*g) (char **, int), char **p, ...)
2065 {
2066 char *s;
2067 va_list v;
2068 va_start (v,p);
2069 s = g (p, va_arg (v,int));
2070 va_end (v);
2071 return s;
2072 }
2073
2074 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not '\xHH' hex character constants.
2076 These don't provoke an error unfortunately, instead are silently treated
2077 as 'x'. The following induces an error, until -std1 is added to get
2078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2079 array size at least. It's necessary to write '\x00'==0 to get something
2080 that's true only with -std1. */
2081 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2082
2083 int test (int i, double x);
2084 struct s1 {int (*f) (int a);};
2085 struct s2 {int (*f) (double a);};
2086 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087 int argc;
2088 char **argv;
2089 int
2090 main ()
2091 {
2092 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 # Don't try gcc -ansi; that turns off useful extensions and
2098 # breaks some systems' header files.
2099 # AIX -qlanglvl=ansi
2100 # Ultrix and OSF/1 -std1
2101 # HP-UX 10.20 and later -Ae
2102 # HP-UX older versions -Aa -D_HPUX_SOURCE
2103 # SVR4 -Xc -D__EXTENSIONS__
2104 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2105 do
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f conftest.$ac_objext
2108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
2129 ac_cv_prog_cc_stdc=$ac_arg
2130 break
2131 else
2132 echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135 fi
2136 rm -f conftest.err conftest.$ac_objext
2137 done
2138 rm -f conftest.$ac_ext conftest.$ac_objext
2139 CC=$ac_save_CC
2140
2141 fi
2142
2143 case "x$ac_cv_prog_cc_stdc" in
2144 x|xno)
2145 echo "$as_me:$LINENO: result: none needed" >&5
2146 echo "${ECHO_T}none needed" >&6 ;;
2147 *)
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150 CC="$CC $ac_cv_prog_cc_stdc" ;;
2151 esac
2152
2153 # Some people use a C++ compiler to compile C. Since we use `exit',
2154 # in C++ we need to declare it. In case someone uses the same compiler
2155 # for both compiling C and C++ we need to have the C++ compiler decide
2156 # the declaration of exit, since it's the most demanding environment.
2157 cat >conftest.$ac_ext <<_ACEOF
2158 #ifndef __cplusplus
2159 choke me
2160 #endif
2161 _ACEOF
2162 rm -f conftest.$ac_objext
2163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2185 '' \
2186 'extern "C" void std::exit (int) throw (); using std::exit;' \
2187 'extern "C" void std::exit (int); using std::exit;' \
2188 'extern "C" void exit (int) throw ();' \
2189 'extern "C" void exit (int);' \
2190 'void exit (int);'
2191 do
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h. */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2198 $ac_declaration
2199 #include <stdlib.h>
2200 int
2201 main ()
2202 {
2203 exit (42);
2204 ;
2205 return 0;
2206 }
2207 _ACEOF
2208 rm -f conftest.$ac_objext
2209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2244 $ac_declaration
2245 int
2246 main ()
2247 {
2248 exit (42);
2249 ;
2250 return 0;
2251 }
2252 _ACEOF
2253 rm -f conftest.$ac_objext
2254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 break
2276 else
2277 echo "$as_me: failed program was:" >&5
2278 sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 fi
2281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282 done
2283 rm -f conftest*
2284 if test -n "$ac_declaration"; then
2285 echo '#ifdef __cplusplus' >>confdefs.h
2286 echo $ac_declaration >>confdefs.h
2287 echo '#endif' >>confdefs.h
2288 fi
2289
2290 else
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2293
2294 fi
2295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2296 ac_ext=c
2297 ac_cpp='$CPP $CPPFLAGS'
2298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2301
2302
2303 cat >>confdefs.h <<\_ACEOF
2304 #define _GNU_SOURCE 1
2305 _ACEOF
2306
2307
2308
2309 ac_ext=c
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2316 # On Suns, sometimes $CPP names a directory.
2317 if test -n "$CPP" && test -d "$CPP"; then
2318 CPP=
2319 fi
2320 if test -z "$CPP"; then
2321 if test "${ac_cv_prog_CPP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 else
2324 # Double quotes because CPP needs to be expanded
2325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 do
2327 ac_preproc_ok=false
2328 for ac_c_preproc_warn_flag in '' yes
2329 do
2330 # Use a header file that comes with gcc, so configuring glibc
2331 # with a fresh cross-compiler works.
2332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 # <limits.h> exists even on freestanding compilers.
2334 # On the NeXT, cc -E runs the code through the compiler's parser,
2335 # not just through cpp. "Syntax error" is here to catch this case.
2336 cat >conftest.$ac_ext <<_ACEOF
2337 /* confdefs.h. */
2338 _ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2342 #ifdef __STDC__
2343 # include <limits.h>
2344 #else
2345 # include <assert.h>
2346 #endif
2347 Syntax error
2348 _ACEOF
2349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2360 else
2361 ac_cpp_err=
2362 fi
2363 else
2364 ac_cpp_err=yes
2365 fi
2366 if test -z "$ac_cpp_err"; then
2367 :
2368 else
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 # Broken: fails on valid input.
2373 continue
2374 fi
2375 rm -f conftest.err conftest.$ac_ext
2376
2377 # OK, works on sane cases. Now check whether non-existent headers
2378 # can be detected and how.
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 #include <ac_nonexistent.h>
2386 _ACEOF
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398 else
2399 ac_cpp_err=
2400 fi
2401 else
2402 ac_cpp_err=yes
2403 fi
2404 if test -z "$ac_cpp_err"; then
2405 # Broken: success on invalid input.
2406 continue
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 # Passes both tests.
2412 ac_preproc_ok=:
2413 break
2414 fi
2415 rm -f conftest.err conftest.$ac_ext
2416
2417 done
2418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419 rm -f conftest.err conftest.$ac_ext
2420 if $ac_preproc_ok; then
2421 break
2422 fi
2423
2424 done
2425 ac_cv_prog_CPP=$CPP
2426
2427 fi
2428 CPP=$ac_cv_prog_CPP
2429 else
2430 ac_cv_prog_CPP=$CPP
2431 fi
2432 echo "$as_me:$LINENO: result: $CPP" >&5
2433 echo "${ECHO_T}$CPP" >&6
2434 ac_preproc_ok=false
2435 for ac_c_preproc_warn_flag in '' yes
2436 do
2437 # Use a header file that comes with gcc, so configuring glibc
2438 # with a fresh cross-compiler works.
2439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 # <limits.h> exists even on freestanding compilers.
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp. "Syntax error" is here to catch this case.
2443 cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h. */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2449 #ifdef __STDC__
2450 # include <limits.h>
2451 #else
2452 # include <assert.h>
2453 #endif
2454 Syntax error
2455 _ACEOF
2456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467 else
2468 ac_cpp_err=
2469 fi
2470 else
2471 ac_cpp_err=yes
2472 fi
2473 if test -z "$ac_cpp_err"; then
2474 :
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 # Broken: fails on valid input.
2480 continue
2481 fi
2482 rm -f conftest.err conftest.$ac_ext
2483
2484 # OK, works on sane cases. Now check whether non-existent headers
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2492 #include <ac_nonexistent.h>
2493 _ACEOF
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505 else
2506 ac_cpp_err=
2507 fi
2508 else
2509 ac_cpp_err=yes
2510 fi
2511 if test -z "$ac_cpp_err"; then
2512 # Broken: success on invalid input.
2513 continue
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2517
2518 # Passes both tests.
2519 ac_preproc_ok=:
2520 break
2521 fi
2522 rm -f conftest.err conftest.$ac_ext
2523
2524 done
2525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526 rm -f conftest.err conftest.$ac_ext
2527 if $ac_preproc_ok; then
2528 :
2529 else
2530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2535 fi
2536
2537 ac_ext=c
2538 ac_cpp='$CPP $CPPFLAGS'
2539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
2544 echo "$as_me:$LINENO: checking for egrep" >&5
2545 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546 if test "${ac_cv_prog_egrep+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548 else
2549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550 then ac_cv_prog_egrep='grep -E'
2551 else ac_cv_prog_egrep='egrep'
2552 fi
2553 fi
2554 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
2557
2558
2559
2560 echo "$as_me:$LINENO: checking for AIX" >&5
2561 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568 #ifdef _AIX
2569 yes
2570 #endif
2571
2572 _ACEOF
2573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2574 $EGREP "yes" >/dev/null 2>&1; then
2575 echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2577 cat >>confdefs.h <<\_ACEOF
2578 #define _ALL_SOURCE 1
2579 _ACEOF
2580
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2584 fi
2585 rm -f conftest*
2586
2587
2588 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2590 if test "${ac_cv_search_strerror+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592 else
2593 ac_func_search_save_LIBS=$LIBS
2594 ac_cv_search_strerror=no
2595 cat >conftest.$ac_ext <<_ACEOF
2596 /* confdefs.h. */
2597 _ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2601
2602 /* Override any gcc2 internal prototype to avoid an error. */
2603 #ifdef __cplusplus
2604 extern "C"
2605 #endif
2606 /* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
2608 char strerror ();
2609 int
2610 main ()
2611 {
2612 strerror ();
2613 ;
2614 return 0;
2615 }
2616 _ACEOF
2617 rm -f conftest.$ac_objext conftest$ac_exeext
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_cv_search_strerror="none required"
2640 else
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.err conftest.$ac_objext \
2646 conftest$ac_exeext conftest.$ac_ext
2647 if test "$ac_cv_search_strerror" = no; then
2648 for ac_lib in cposix; do
2649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2650 cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h. */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h. */
2656
2657 /* Override any gcc2 internal prototype to avoid an error. */
2658 #ifdef __cplusplus
2659 extern "C"
2660 #endif
2661 /* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2663 char strerror ();
2664 int
2665 main ()
2666 {
2667 strerror ();
2668 ;
2669 return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext conftest$ac_exeext
2673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_search_strerror="-l$ac_lib"
2695 break
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 fi
2701 rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
2703 done
2704 fi
2705 LIBS=$ac_func_search_save_LIBS
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709 if test "$ac_cv_search_strerror" != no; then
2710 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2711
2712 fi
2713
2714
2715
2716
2717 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2719 if test "${am_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 am_cv_prog_cc_stdc=no
2723 ac_save_CC="$CC"
2724 # Don't try gcc -ansi; that turns off useful extensions and
2725 # breaks some systems' header files.
2726 # AIX -qlanglvl=ansi
2727 # Ultrix and OSF/1 -std1
2728 # HP-UX 10.20 and later -Ae
2729 # HP-UX older versions -Aa -D_HPUX_SOURCE
2730 # SVR4 -Xc -D__EXTENSIONS__
2731 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 do
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h. */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2740 #include <stdarg.h>
2741 #include <stdio.h>
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2748 char **p;
2749 int i;
2750 {
2751 return p[i];
2752 }
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2754 {
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2761 }
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 int argc;
2767 char **argv;
2768
2769 int
2770 main ()
2771 {
2772
2773 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2774
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 am_cv_prog_cc_stdc="$ac_arg"; break
2802 else
2803 echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 fi
2807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808 done
2809 CC="$ac_save_CC"
2810
2811 fi
2812
2813 if test -z "$am_cv_prog_cc_stdc"; then
2814 echo "$as_me:$LINENO: result: none needed" >&5
2815 echo "${ECHO_T}none needed" >&6
2816 else
2817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2819 fi
2820 case "x$am_cv_prog_cc_stdc" in
2821 x|xno) ;;
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2823 esac
2824
2825
2826 ac_aux_dir=
2827 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828 if 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/install.sh; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2835 break
2836 elif test -f $ac_dir/shtool; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2839 break
2840 fi
2841 done
2842 if test -z "$ac_aux_dir"; then
2843 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845 { (exit 1); exit 1; }; }
2846 fi
2847 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2850
2851 # Make sure we can run config.sub.
2852 $ac_config_sub sun4 >/dev/null 2>&1 ||
2853 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855 { (exit 1); exit 1; }; }
2856
2857 echo "$as_me:$LINENO: checking build system type" >&5
2858 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2859 if test "${ac_cv_build+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862 ac_cv_build_alias=$build_alias
2863 test -z "$ac_cv_build_alias" &&
2864 ac_cv_build_alias=`$ac_config_guess`
2865 test -z "$ac_cv_build_alias" &&
2866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868 { (exit 1); exit 1; }; }
2869 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2872 { (exit 1); exit 1; }; }
2873
2874 fi
2875 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876 echo "${ECHO_T}$ac_cv_build" >&6
2877 build=$ac_cv_build
2878 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2881
2882
2883 echo "$as_me:$LINENO: checking host system type" >&5
2884 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2885 if test "${ac_cv_host+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887 else
2888 ac_cv_host_alias=$host_alias
2889 test -z "$ac_cv_host_alias" &&
2890 ac_cv_host_alias=$ac_cv_build_alias
2891 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2894 { (exit 1); exit 1; }; }
2895
2896 fi
2897 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898 echo "${ECHO_T}$ac_cv_host" >&6
2899 host=$ac_cv_host
2900 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2903
2904
2905 echo "$as_me:$LINENO: checking target system type" >&5
2906 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2907 if test "${ac_cv_target+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 ac_cv_target_alias=$target_alias
2911 test "x$ac_cv_target_alias" = "x" &&
2912 ac_cv_target_alias=$ac_cv_host_alias
2913 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2916 { (exit 1); exit 1; }; }
2917
2918 fi
2919 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920 echo "${ECHO_T}$ac_cv_target" >&6
2921 target=$ac_cv_target
2922 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2925
2926
2927 # The aliases save the names the user supplied, while $host etc.
2928 # will get canonicalized.
2929 test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2931 NONENONEs,x,x, &&
2932 program_prefix=${target_alias}-
2933
2934
2935 CONFIG_OBS=
2936 CONFIG_DEPS=
2937 CONFIG_SRCS=
2938 ENABLE_CFLAGS=
2939
2940 CONFIG_ALL=
2941 CONFIG_CLEAN=
2942 CONFIG_INSTALL=
2943 CONFIG_UNINSTALL=
2944
2945 # If we haven't got the data from the intl directory,
2946 # assume NLS is disabled.
2947 USE_NLS=no
2948 LIBINTL=
2949 LIBINTL_DEP=
2950 INCINTL=
2951 XGETTEXT=
2952 GMSGFMT=
2953 POSUB=
2954
2955 if test -f ../intl/config.intl; then
2956 . ../intl/config.intl
2957 fi
2958 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960 if test x"$USE_NLS" != xyes; then
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963 else
2964 echo "$as_me:$LINENO: result: yes" >&5
2965 echo "${ECHO_T}yes" >&6
2966
2967 cat >>confdefs.h <<\_ACEOF
2968 #define ENABLE_NLS 1
2969 _ACEOF
2970
2971
2972 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974 # Look for .po and .gmo files in the source directory.
2975 CATALOGS=
2976 XLINGUAS=
2977 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978 # If there aren't any .gmo files the shell will give us the
2979 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2980 # weeded out.
2981 case "$cat" in *\**)
2982 continue;;
2983 esac
2984 # The quadruple backslash is collapsed to a double backslash
2985 # by the backticks, then collapsed again by the double quotes,
2986 # leaving us with one backslash in the sed expression (right
2987 # before the dot that mustn't act as a wildcard).
2988 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990 # The user is allowed to set LINGUAS to a list of languages to
2991 # install catalogs for. If it's empty that means "all of them."
2992 if test "x$LINGUAS" = x; then
2993 CATALOGS="$CATALOGS $cat"
2994 XLINGUAS="$XLINGUAS $lang"
2995 else
2996 case "$LINGUAS" in *$lang*)
2997 CATALOGS="$CATALOGS $cat"
2998 XLINGUAS="$XLINGUAS $lang"
2999 ;;
3000 esac
3001 fi
3002 done
3003 LINGUAS="$XLINGUAS"
3004 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005 echo "${ECHO_T}$LINGUAS" >&6
3006
3007
3008 DATADIRNAME=share
3009
3010 INSTOBJEXT=.mo
3011
3012 GENCAT=gencat
3013
3014 CATOBJEXT=.gmo
3015
3016 fi
3017
3018 localedir='${datadir}/locale'
3019
3020
3021 if test x"$USE_NLS" = xyes; then
3022 CONFIG_ALL="$CONFIG_ALL all-po"
3023 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3026 fi
3027
3028 PACKAGE=gdb
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE "$PACKAGE"
3032 _ACEOF
3033
3034
3035
3036 debugdir=${libdir}/debug
3037
3038
3039 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3040 if test "${with_separate_debug_dir+set}" = set; then
3041 withval="$with_separate_debug_dir"
3042 debugdir="${withval}"
3043 fi;
3044
3045
3046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048 ac_define_dir=`eval echo $debugdir`
3049 ac_define_dir=`eval echo $ac_define_dir`
3050
3051 cat >>confdefs.h <<_ACEOF
3052 #define DEBUGDIR "$ac_define_dir"
3053 _ACEOF
3054
3055
3056 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3057
3058 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059 if test "x$prefix" = xNONE; then
3060 test_prefix=/usr/local
3061 else
3062 test_prefix=$prefix
3063 fi
3064 else
3065 test_prefix=$exec_prefix
3066 fi
3067 case ${debugdir} in
3068 "${test_prefix}"|"${test_prefix}/"*|\
3069 '${exec_prefix}'|'${exec_prefix}/'*)
3070
3071 cat >>confdefs.h <<\_ACEOF
3072 #define DEBUGDIR_RELOCATABLE 1
3073 _ACEOF
3074
3075 ;;
3076 esac
3077
3078
3079
3080 subdirs="$subdirs doc testsuite"
3081
3082
3083 # Provide defaults for some variables set by the per-host and per-target
3084 # configuration.
3085 gdb_host_obs=posix-hdep.o
3086
3087 if test "${target}" = "${host}"; then
3088 gdb_native=yes
3089 else
3090 gdb_native=no
3091 fi
3092
3093 . $srcdir/configure.host
3094
3095 . $srcdir/configure.tgt
3096
3097 # Fetch the default architecture and default target vector from BFD.
3098 targ=$target; . $srcdir/../bfd/config.bfd
3099
3100 # We only want the first architecture, so strip off the others if
3101 # there is more than one.
3102 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3103
3104 if test "x$targ_archs" != x; then
3105
3106 cat >>confdefs.h <<_ACEOF
3107 #define DEFAULT_BFD_ARCH $targ_archs
3108 _ACEOF
3109
3110 fi
3111 if test "x$targ_defvec" != x; then
3112
3113 cat >>confdefs.h <<_ACEOF
3114 #define DEFAULT_BFD_VEC $targ_defvec
3115 _ACEOF
3116
3117 fi
3118
3119 test "$program_prefix" != NONE &&
3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3121 # Use a double $ so make ignores it.
3122 test "$program_suffix" != NONE &&
3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3124 # Double any \ or $. echo might interpret backslashes.
3125 # By default was `s,x,x', remove it if useless.
3126 cat <<\_ACEOF >conftest.sed
3127 s/[\\$]/&&/g;s/;s,x,x,$//
3128 _ACEOF
3129 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3130 rm conftest.sed
3131
3132
3133 # The CLI cannot be disabled yet, but may be in the future.
3134
3135 # Enable CLI.
3136 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3137 if test "${enable_gdbcli+set}" = set; then
3138 enableval="$enable_gdbcli"
3139 case $enableval in
3140 yes)
3141 ;;
3142 no)
3143 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 *)
3147 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149 { (exit 1); exit 1; }; } ;;
3150 esac
3151 else
3152 enable_gdbcli=yes
3153 fi;
3154 if test x"$enable_gdbcli" = xyes; then
3155 if test -d $srcdir/cli; then
3156 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3160 fi
3161 fi
3162
3163 # Enable MI.
3164 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3165 if test "${enable_gdbmi+set}" = set; then
3166 enableval="$enable_gdbmi"
3167 case $enableval in
3168 yes | no)
3169 ;;
3170 *)
3171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173 { (exit 1); exit 1; }; } ;;
3174 esac
3175 else
3176 enable_gdbmi=yes
3177 fi;
3178 if test x"$enable_gdbmi" = xyes; then
3179 if test -d $srcdir/mi; then
3180 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3184 fi
3185 fi
3186
3187 # Enable TUI.
3188 # Check whether --enable-tui or --disable-tui was given.
3189 if test "${enable_tui+set}" = set; then
3190 enableval="$enable_tui"
3191 case $enableval in
3192 yes | no)
3193 ;;
3194 *)
3195 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197 { (exit 1); exit 1; }; } ;;
3198 esac
3199 else
3200 enable_tui=yes
3201 fi;
3202
3203 # Enable gdbtk.
3204 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3205 if test "${enable_gdbtk+set}" = set; then
3206 enableval="$enable_gdbtk"
3207 case $enableval in
3208 yes | no)
3209 ;;
3210 *)
3211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3214 esac
3215 else
3216 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3217 enable_gdbtk=yes
3218 else
3219 enable_gdbtk=no
3220 fi
3221 fi;
3222 # We unconditionally disable gdbtk tests on selected platforms.
3223 case $host_os in
3224 go32* | windows*)
3225 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3227 enable_gdbtk=no ;;
3228 esac
3229
3230 # Libunwind support.
3231 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233 if test "${ac_cv_header_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242 #include <stdlib.h>
3243 #include <stdarg.h>
3244 #include <string.h>
3245 #include <float.h>
3246
3247 int
3248 main ()
3249 {
3250
3251 ;
3252 return 0;
3253 }
3254 _ACEOF
3255 rm -f conftest.$ac_objext
3256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_header_stdc=yes
3278 else
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 ac_cv_header_stdc=no
3283 fi
3284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286 if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294 #include <string.h>
3295
3296 _ACEOF
3297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 $EGREP "memchr" >/dev/null 2>&1; then
3299 :
3300 else
3301 ac_cv_header_stdc=no
3302 fi
3303 rm -f conftest*
3304
3305 fi
3306
3307 if test $ac_cv_header_stdc = yes; then
3308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3315 #include <stdlib.h>
3316
3317 _ACEOF
3318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3320 :
3321 else
3322 ac_cv_header_stdc=no
3323 fi
3324 rm -f conftest*
3325
3326 fi
3327
3328 if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3331 :
3332 else
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <ctype.h>
3340 #if ((' ' & 0x0FF) == 0x020)
3341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343 #else
3344 # define ISLOWER(c) \
3345 (('a' <= (c) && (c) <= 'i') \
3346 || ('j' <= (c) && (c) <= 'r') \
3347 || ('s' <= (c) && (c) <= 'z'))
3348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3349 #endif
3350
3351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352 int
3353 main ()
3354 {
3355 int i;
3356 for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i))
3358 || toupper (i) != TOUPPER (i))
3359 exit(2);
3360 exit (0);
3361 }
3362 _ACEOF
3363 rm -f conftest$ac_exeext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 :
3375 else
3376 echo "$as_me: program exited with status $ac_status" >&5
3377 echo "$as_me: failed program was:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3379
3380 ( exit $ac_status )
3381 ac_cv_header_stdc=no
3382 fi
3383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 fi
3386 fi
3387 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389 if test $ac_cv_header_stdc = yes; then
3390
3391 cat >>confdefs.h <<\_ACEOF
3392 #define STDC_HEADERS 1
3393 _ACEOF
3394
3395 fi
3396
3397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3409 do
3410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411 echo "$as_me:$LINENO: checking for $ac_header" >&5
3412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 cat >conftest.$ac_ext <<_ACEOF
3417 /* confdefs.h. */
3418 _ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3422 $ac_includes_default
3423
3424 #include <$ac_header>
3425 _ACEOF
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3449 else
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 eval "$as_ac_Header=no"
3454 fi
3455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456 fi
3457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462 _ACEOF
3463
3464 fi
3465
3466 done
3467
3468
3469
3470 # Check whether --with-libunwind or --without-libunwind was given.
3471 if test "${with_libunwind+set}" = set; then
3472 withval="$with_libunwind"
3473 case "${withval}" in
3474 yes) enable_libunwind=yes ;;
3475 no) enable_libunwind=no ;;
3476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478 { (exit 1); exit 1; }; } ;;
3479 esac
3480 else
3481
3482
3483 for ac_header in libunwind.h
3484 do
3485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 fi
3492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3494 else
3495 # Is the header compilable?
3496 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3498 cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h. */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3504 $ac_includes_default
3505 #include <$ac_header>
3506 _ACEOF
3507 rm -f conftest.$ac_objext
3508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 ac_header_compiler=no
3535 fi
3536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <$ac_header>
3550 _ACEOF
3551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565 else
3566 ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3588 ;;
3589 no:yes:* )
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3602 (
3603 cat <<\_ASBOX
3604 ## ------------------------------------------ ##
3605 ## Report this to the AC_PACKAGE_NAME lists. ##
3606 ## ------------------------------------------ ##
3607 _ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
3610 ;;
3611 esac
3612 echo "$as_me:$LINENO: checking for $ac_header" >&5
3613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 else
3617 eval "$as_ac_Header=\$ac_header_preproc"
3618 fi
3619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621
3622 fi
3623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626 _ACEOF
3627
3628 fi
3629
3630 done
3631
3632
3633 for ac_header in libunwind-ia64.h
3634 do
3635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641 fi
3642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3644 else
3645 # Is the header compilable?
3646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3648 cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h. */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 $ac_includes_default
3655 #include <$ac_header>
3656 _ACEOF
3657 rm -f conftest.$ac_objext
3658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_header_compiler=no
3685 fi
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688 echo "${ECHO_T}$ac_header_compiler" >&6
3689
3690 # Is the header present?
3691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3699 #include <$ac_header>
3700 _ACEOF
3701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715 else
3716 ac_cpp_err=yes
3717 fi
3718 if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720 else
3721 echo "$as_me: failed program was:" >&5
3722 sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 ac_header_preproc=no
3725 fi
3726 rm -f conftest.err conftest.$ac_ext
3727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728 echo "${ECHO_T}$ac_header_preproc" >&6
3729
3730 # So? What about this header?
3731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3738 ;;
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3752 (
3753 cat <<\_ASBOX
3754 ## ------------------------------------------ ##
3755 ## Report this to the AC_PACKAGE_NAME lists. ##
3756 ## ------------------------------------------ ##
3757 _ASBOX
3758 ) |
3759 sed "s/^/$as_me: WARNING: /" >&2
3760 ;;
3761 esac
3762 echo "$as_me:$LINENO: checking for $ac_header" >&5
3763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 else
3767 eval "$as_ac_Header=\$ac_header_preproc"
3768 fi
3769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3771
3772 fi
3773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776 _ACEOF
3777
3778 fi
3779
3780 done
3781
3782 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783 enable_libunwind=yes;
3784 fi
3785
3786 fi;
3787
3788 if test x"$enable_libunwind" = xyes; then
3789
3790 for ac_header in libunwind.h
3791 do
3792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 fi
3799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3801 else
3802 # Is the header compilable?
3803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 $ac_includes_default
3812 #include <$ac_header>
3813 _ACEOF
3814 rm -f conftest.$ac_objext
3815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 ac_header_compiler=no
3842 fi
3843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845 echo "${ECHO_T}$ac_header_compiler" >&6
3846
3847 # Is the header present?
3848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856 #include <$ac_header>
3857 _ACEOF
3858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869 else
3870 ac_cpp_err=
3871 fi
3872 else
3873 ac_cpp_err=yes
3874 fi
3875 if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_header_preproc=no
3882 fi
3883 rm -f conftest.err conftest.$ac_ext
3884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885 echo "${ECHO_T}$ac_header_preproc" >&6
3886
3887 # So? What about this header?
3888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3895 ;;
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3909 (
3910 cat <<\_ASBOX
3911 ## ------------------------------------------ ##
3912 ## Report this to the AC_PACKAGE_NAME lists. ##
3913 ## ------------------------------------------ ##
3914 _ASBOX
3915 ) |
3916 sed "s/^/$as_me: WARNING: /" >&2
3917 ;;
3918 esac
3919 echo "$as_me:$LINENO: checking for $ac_header" >&5
3920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 else
3924 eval "$as_ac_Header=\$ac_header_preproc"
3925 fi
3926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928
3929 fi
3930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933 _ACEOF
3934
3935 fi
3936
3937 done
3938
3939
3940 for ac_header in libunwind-ia64.h
3941 do
3942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo "$as_me:$LINENO: checking for $ac_header" >&5
3945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 fi
3949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 else
3952 # Is the header compilable?
3953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3955 cat >conftest.$ac_ext <<_ACEOF
3956 /* confdefs.h. */
3957 _ACEOF
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3962 #include <$ac_header>
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_header_compiler=yes
3987 else
3988 echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 ac_header_compiler=no
3992 fi
3993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995 echo "${ECHO_T}$ac_header_compiler" >&6
3996
3997 # Is the header present?
3998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4000 cat >conftest.$ac_ext <<_ACEOF
4001 /* confdefs.h. */
4002 _ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <$ac_header>
4007 _ACEOF
4008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019 else
4020 ac_cpp_err=
4021 fi
4022 else
4023 ac_cpp_err=yes
4024 fi
4025 if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4027 else
4028 echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ac_header_preproc=no
4032 fi
4033 rm -f conftest.err conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035 echo "${ECHO_T}$ac_header_preproc" >&6
4036
4037 # So? What about this header?
4038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4039 yes:no: )
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044 ac_header_preproc=yes
4045 ;;
4046 no:yes:* )
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4059 (
4060 cat <<\_ASBOX
4061 ## ------------------------------------------ ##
4062 ## Report this to the AC_PACKAGE_NAME lists. ##
4063 ## ------------------------------------------ ##
4064 _ASBOX
4065 ) |
4066 sed "s/^/$as_me: WARNING: /" >&2
4067 ;;
4068 esac
4069 echo "$as_me:$LINENO: checking for $ac_header" >&5
4070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 eval "$as_ac_Header=\$ac_header_preproc"
4075 fi
4076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4078
4079 fi
4080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083 _ACEOF
4084
4085 fi
4086
4087 done
4088
4089
4090 cat >>confdefs.h <<\_ACEOF
4091 #define HAVE_LIBUNWIND 1
4092 _ACEOF
4093
4094 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4097 fi
4098
4099 # Profiling support.
4100 # Check whether --enable-profiling or --disable-profiling was given.
4101 if test "${enable_profiling+set}" = set; then
4102 enableval="$enable_profiling"
4103 case $enableval in
4104 yes | no)
4105 ;;
4106 *)
4107 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109 { (exit 1); exit 1; }; } ;;
4110 esac
4111 else
4112 enable_profiling=no
4113 fi;
4114
4115
4116
4117 for ac_func in monstartup _mcleanup
4118 do
4119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4120 echo "$as_me:$LINENO: checking for $ac_func" >&5
4121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_var+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124 else
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4133 #define $ac_func innocuous_$ac_func
4134
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below.
4137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 <limits.h> exists even on freestanding compilers. */
4139
4140 #ifdef __STDC__
4141 # include <limits.h>
4142 #else
4143 # include <assert.h>
4144 #endif
4145
4146 #undef $ac_func
4147
4148 /* Override any gcc2 internal prototype to avoid an error. */
4149 #ifdef __cplusplus
4150 extern "C"
4151 {
4152 #endif
4153 /* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
4155 char $ac_func ();
4156 /* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4160 choke me
4161 #else
4162 char (*f) () = $ac_func;
4163 #endif
4164 #ifdef __cplusplus
4165 }
4166 #endif
4167
4168 int
4169 main ()
4170 {
4171 return f != $ac_func;
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 rm -f conftest.$ac_objext conftest$ac_exeext
4177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 eval "$as_ac_var=yes"
4199 else
4200 echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4202
4203 eval "$as_ac_var=no"
4204 fi
4205 rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207 fi
4208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4210 if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213 _ACEOF
4214
4215 fi
4216 done
4217
4218 echo "$as_me:$LINENO: checking for _etext" >&5
4219 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4220 if test "${ac_cv_var__etext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 else
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230 extern char _etext;
4231
4232 int
4233 main ()
4234 {
4235 free (&_etext);
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_var__etext=yes
4263 else
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4266
4267 ac_cv_var__etext=no
4268 fi
4269 rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273 echo "${ECHO_T}$ac_cv_var__etext" >&6
4274 if test $ac_cv_var__etext = yes; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define HAVE__ETEXT 1
4278 _ACEOF
4279
4280 fi
4281 if test "$enable_profiling" = yes ; then
4282 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4283 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4284 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4285 { (exit 1); exit 1; }; }
4286 fi
4287 PROFILE_CFLAGS=-pg
4288 OLD_CFLAGS="$CFLAGS"
4289 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4290
4291 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4292 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4293 if test "${ac_cv_cc_supports_pg+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302
4303 int
4304 main ()
4305 {
4306 int x;
4307 ;
4308 return 0;
4309 }
4310 _ACEOF
4311 rm -f conftest.$ac_objext
4312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
4320 { ac_try='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_cc_supports_pg=yes
4334 else
4335 echo "$as_me: failed program was:" >&5
4336 sed 's/^/| /' conftest.$ac_ext >&5
4337
4338 ac_cv_cc_supports_pg=no
4339 fi
4340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341 fi
4342 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4343 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4344
4345 if test $ac_cv_cc_supports_pg = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4347 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350
4351 CFLAGS="$OLD_CFLAGS"
4352 fi
4353
4354 # --------------------- #
4355 # Checks for programs. #
4356 # --------------------- #
4357
4358 for ac_prog in gawk mawk nawk awk
4359 do
4360 # Extract the first word of "$ac_prog", so it can be a program name with args.
4361 set dummy $ac_prog; ac_word=$2
4362 echo "$as_me:$LINENO: checking for $ac_word" >&5
4363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4364 if test "${ac_cv_prog_AWK+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 if test -n "$AWK"; then
4368 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_AWK="$ac_prog"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4380 fi
4381 done
4382 done
4383
4384 fi
4385 fi
4386 AWK=$ac_cv_prog_AWK
4387 if test -n "$AWK"; then
4388 echo "$as_me:$LINENO: result: $AWK" >&5
4389 echo "${ECHO_T}$AWK" >&6
4390 else
4391 echo "$as_me:$LINENO: result: no" >&5
4392 echo "${ECHO_T}no" >&6
4393 fi
4394
4395 test -n "$AWK" && break
4396 done
4397
4398 # Find a good install program. We prefer a C program (faster),
4399 # so one script is as good as another. But avoid the broken or
4400 # incompatible versions:
4401 # SysV /etc/install, /usr/sbin/install
4402 # SunOS /usr/etc/install
4403 # IRIX /sbin/install
4404 # AIX /bin/install
4405 # AmigaOS /C/install, which installs bootblocks on floppy discs
4406 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4407 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4408 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4409 # OS/2's system install, which has a completely different semantic
4410 # ./install, which can be erroneously created by make from ./install.sh.
4411 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4412 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4413 if test -z "$INSTALL"; then
4414 if test "${ac_cv_path_install+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 # Account for people who put trailing slashes in PATH elements.
4423 case $as_dir/ in
4424 ./ | .// | /cC/* | \
4425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4426 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4427 /usr/ucb/* ) ;;
4428 *)
4429 # OSF1 and SCO ODT 3.0 have their own names for install.
4430 # Don't use installbsd from OSF since it installs stuff as root
4431 # by default.
4432 for ac_prog in ginstall scoinst install; do
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4435 if test $ac_prog = install &&
4436 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4437 # AIX install. It has an incompatible calling convention.
4438 :
4439 elif test $ac_prog = install &&
4440 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4441 # program-specific install script used by HP pwplus--don't use.
4442 :
4443 else
4444 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4445 break 3
4446 fi
4447 fi
4448 done
4449 done
4450 ;;
4451 esac
4452 done
4453
4454
4455 fi
4456 if test "${ac_cv_path_install+set}" = set; then
4457 INSTALL=$ac_cv_path_install
4458 else
4459 # As a last resort, use the slow shell script. We don't cache a
4460 # path for INSTALL within a source directory, because that will
4461 # break other packages using the cache if that directory is
4462 # removed, or if the path is relative.
4463 INSTALL=$ac_install_sh
4464 fi
4465 fi
4466 echo "$as_me:$LINENO: result: $INSTALL" >&5
4467 echo "${ECHO_T}$INSTALL" >&6
4468
4469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4470 # It thinks the first close brace ends the variable substitution.
4471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4472
4473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4474
4475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4476
4477 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4478 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4479 LN_S=$as_ln_s
4480 if test "$LN_S" = "ln -s"; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482 echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4485 echo "${ECHO_T}no, using $LN_S" >&6
4486 fi
4487
4488 if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4491 echo "$as_me:$LINENO: checking for $ac_word" >&5
4492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4493 if test "${ac_cv_prog_RANLIB+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 if test -n "$RANLIB"; then
4497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4498 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH
4501 do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510 done
4511 done
4512
4513 fi
4514 fi
4515 RANLIB=$ac_cv_prog_RANLIB
4516 if test -n "$RANLIB"; then
4517 echo "$as_me:$LINENO: result: $RANLIB" >&5
4518 echo "${ECHO_T}$RANLIB" >&6
4519 else
4520 echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6
4522 fi
4523
4524 fi
4525 if test -z "$ac_cv_prog_RANLIB"; then
4526 ac_ct_RANLIB=$RANLIB
4527 # Extract the first word of "ranlib", so it can be a program name with args.
4528 set dummy ranlib; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534 if test -n "$ac_ct_RANLIB"; then
4535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_ac_ct_RANLIB="ranlib"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550
4551 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4552 fi
4553 fi
4554 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4555 if test -n "$ac_ct_RANLIB"; then
4556 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4557 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4558 else
4559 echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4561 fi
4562
4563 RANLIB=$ac_ct_RANLIB
4564 else
4565 RANLIB="$ac_cv_prog_RANLIB"
4566 fi
4567
4568 for ac_prog in 'bison -y' byacc
4569 do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_prog_YACC+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 if test -n "$YACC"; then
4578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4579 else
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_prog_YACC="$ac_prog"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591 done
4592 done
4593
4594 fi
4595 fi
4596 YACC=$ac_cv_prog_YACC
4597 if test -n "$YACC"; then
4598 echo "$as_me:$LINENO: result: $YACC" >&5
4599 echo "${ECHO_T}$YACC" >&6
4600 else
4601 echo "$as_me:$LINENO: result: no" >&5
4602 echo "${ECHO_T}no" >&6
4603 fi
4604
4605 test -n "$YACC" && break
4606 done
4607 test -n "$YACC" || YACC="yacc"
4608
4609
4610 if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4612 set dummy ${ac_tool_prefix}ar; ac_word=$2
4613 echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4615 if test "${ac_cv_prog_AR+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617 else
4618 if test -n "$AR"; then
4619 ac_cv_prog_AR="$AR" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_prog_AR="${ac_tool_prefix}ar"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632 done
4633 done
4634
4635 fi
4636 fi
4637 AR=$ac_cv_prog_AR
4638 if test -n "$AR"; then
4639 echo "$as_me:$LINENO: result: $AR" >&5
4640 echo "${ECHO_T}$AR" >&6
4641 else
4642 echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6
4644 fi
4645
4646 fi
4647 if test -z "$ac_cv_prog_AR"; then
4648 ac_ct_AR=$AR
4649 # Extract the first word of "ar", so it can be a program name with args.
4650 set dummy ar; ac_word=$2
4651 echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4653 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 if test -n "$ac_ct_AR"; then
4657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4666 ac_cv_prog_ac_ct_AR="ar"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670 done
4671 done
4672
4673 fi
4674 fi
4675 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4676 if test -n "$ac_ct_AR"; then
4677 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4678 echo "${ECHO_T}$ac_ct_AR" >&6
4679 else
4680 echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6
4682 fi
4683
4684 AR=$ac_ct_AR
4685 else
4686 AR="$ac_cv_prog_AR"
4687 fi
4688
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4692 echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 if test -n "$DLLTOOL"; then
4698 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4699 else
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 for as_dir in $PATH
4702 do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711 done
4712 done
4713
4714 fi
4715 fi
4716 DLLTOOL=$ac_cv_prog_DLLTOOL
4717 if test -n "$DLLTOOL"; then
4718 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4719 echo "${ECHO_T}$DLLTOOL" >&6
4720 else
4721 echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6
4723 fi
4724
4725 fi
4726 if test -z "$ac_cv_prog_DLLTOOL"; then
4727 ac_ct_DLLTOOL=$DLLTOOL
4728 # Extract the first word of "dlltool", so it can be a program name with args.
4729 set dummy dlltool; ac_word=$2
4730 echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 else
4735 if test -n "$ac_ct_DLLTOOL"; then
4736 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4737 else
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4745 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749 done
4750 done
4751
4752 fi
4753 fi
4754 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4755 if test -n "$ac_ct_DLLTOOL"; then
4756 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4757 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4758 else
4759 echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6
4761 fi
4762
4763 DLLTOOL=$ac_ct_DLLTOOL
4764 else
4765 DLLTOOL="$ac_cv_prog_DLLTOOL"
4766 fi
4767
4768 if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4770 set dummy ${ac_tool_prefix}windres; ac_word=$2
4771 echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4773 if test "${ac_cv_prog_WINDRES+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 if test -n "$WINDRES"; then
4777 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4778 else
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4786 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790 done
4791 done
4792
4793 fi
4794 fi
4795 WINDRES=$ac_cv_prog_WINDRES
4796 if test -n "$WINDRES"; then
4797 echo "$as_me:$LINENO: result: $WINDRES" >&5
4798 echo "${ECHO_T}$WINDRES" >&6
4799 else
4800 echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4802 fi
4803
4804 fi
4805 if test -z "$ac_cv_prog_WINDRES"; then
4806 ac_ct_WINDRES=$WINDRES
4807 # Extract the first word of "windres", so it can be a program name with args.
4808 set dummy windres; ac_word=$2
4809 echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4811 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 else
4814 if test -n "$ac_ct_WINDRES"; then
4815 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4816 else
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 for as_dir in $PATH
4819 do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 ac_cv_prog_ac_ct_WINDRES="windres"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828 done
4829 done
4830
4831 fi
4832 fi
4833 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4834 if test -n "$ac_ct_WINDRES"; then
4835 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4836 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4837 else
4838 echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4840 fi
4841
4842 WINDRES=$ac_ct_WINDRES
4843 else
4844 WINDRES="$ac_cv_prog_WINDRES"
4845 fi
4846
4847
4848 # Needed for GNU/Hurd.
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4851 set dummy ${ac_tool_prefix}mig; ac_word=$2
4852 echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4854 if test "${ac_cv_prog_MIG+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857 if test -n "$MIG"; then
4858 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4867 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873
4874 fi
4875 fi
4876 MIG=$ac_cv_prog_MIG
4877 if test -n "$MIG"; then
4878 echo "$as_me:$LINENO: result: $MIG" >&5
4879 echo "${ECHO_T}$MIG" >&6
4880 else
4881 echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4883 fi
4884
4885 fi
4886 if test -z "$ac_cv_prog_MIG"; then
4887 ac_ct_MIG=$MIG
4888 # Extract the first word of "mig", so it can be a program name with args.
4889 set dummy mig; ac_word=$2
4890 echo "$as_me:$LINENO: checking for $ac_word" >&5
4891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 else
4895 if test -n "$ac_ct_MIG"; then
4896 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4897 else
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905 ac_cv_prog_ac_ct_MIG="mig"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909 done
4910 done
4911
4912 fi
4913 fi
4914 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4915 if test -n "$ac_ct_MIG"; then
4916 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4917 echo "${ECHO_T}$ac_ct_MIG" >&6
4918 else
4919 echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4921 fi
4922
4923 MIG=$ac_ct_MIG
4924 else
4925 MIG="$ac_cv_prog_MIG"
4926 fi
4927
4928
4929 # ---------------------- #
4930 # Checks for libraries. #
4931 # ---------------------- #
4932
4933 # We might need to link with -lm; most simulators need it.
4934
4935 echo "$as_me:$LINENO: checking for main in -lm" >&5
4936 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4937 if test "${ac_cv_lib_m_main+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-lm $LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948
4949
4950 int
4951 main ()
4952 {
4953 main ();
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 rm -f conftest.$ac_objext conftest$ac_exeext
4959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960 (eval $ac_link) 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_lib_m_main=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 ac_cv_lib_m_main=no
4986 fi
4987 rm -f conftest.err conftest.$ac_objext \
4988 conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4990 fi
4991 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4992 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4993 if test $ac_cv_lib_m_main = yes; then
4994 cat >>confdefs.h <<_ACEOF
4995 #define HAVE_LIBM 1
4996 _ACEOF
4997
4998 LIBS="-lm $LIBS"
4999
5000 fi
5001
5002
5003 # We need to link with -lw to get `wctype' on Solaris before Solaris
5004 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5005 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5006 # is known to have this problem). Therefore we avoid libw if we can.
5007 echo "$as_me:$LINENO: checking for wctype" >&5
5008 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5009 if test "${ac_cv_func_wctype+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 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5020 #define wctype innocuous_wctype
5021
5022 /* System header to define __stub macros and hopefully few prototypes,
5023 which can conflict with char wctype (); below.
5024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 <limits.h> exists even on freestanding compilers. */
5026
5027 #ifdef __STDC__
5028 # include <limits.h>
5029 #else
5030 # include <assert.h>
5031 #endif
5032
5033 #undef wctype
5034
5035 /* Override any gcc2 internal prototype to avoid an error. */
5036 #ifdef __cplusplus
5037 extern "C"
5038 {
5039 #endif
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5042 char wctype ();
5043 /* The GNU C library defines this for functions which it implements
5044 to always fail with ENOSYS. Some functions are actually named
5045 something starting with __ and the normal name is an alias. */
5046 #if defined (__stub_wctype) || defined (__stub___wctype)
5047 choke me
5048 #else
5049 char (*f) () = wctype;
5050 #endif
5051 #ifdef __cplusplus
5052 }
5053 #endif
5054
5055 int
5056 main ()
5057 {
5058 return f != wctype;
5059 ;
5060 return 0;
5061 }
5062 _ACEOF
5063 rm -f conftest.$ac_objext conftest$ac_exeext
5064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_func_wctype=yes
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 ac_cv_func_wctype=no
5091 fi
5092 rm -f conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5094 fi
5095 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5096 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5097 if test $ac_cv_func_wctype = yes; then
5098 :
5099 else
5100
5101 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5102 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5103 if test "${ac_cv_lib_w_wctype+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 ac_check_lib_save_LIBS=$LIBS
5107 LIBS="-lw $LIBS"
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114
5115 /* Override any gcc2 internal prototype to avoid an error. */
5116 #ifdef __cplusplus
5117 extern "C"
5118 #endif
5119 /* We use char because int might match the return type of a gcc2
5120 builtin and then its argument prototype would still apply. */
5121 char wctype ();
5122 int
5123 main ()
5124 {
5125 wctype ();
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 rm -f conftest.$ac_objext conftest$ac_exeext
5131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132 (eval $ac_link) 2>conftest.er1
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } &&
5139 { ac_try='test -z "$ac_c_werror_flag"
5140 || test ! -s conftest.err'
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; } &&
5146 { ac_try='test -s conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 ac_cv_lib_w_wctype=yes
5153 else
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ac_cv_lib_w_wctype=no
5158 fi
5159 rm -f conftest.err conftest.$ac_objext \
5160 conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5162 fi
5163 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5164 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5165 if test $ac_cv_lib_w_wctype = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define HAVE_LIBW 1
5168 _ACEOF
5169
5170 LIBS="-lw $LIBS"
5171
5172 fi
5173
5174 fi
5175
5176
5177 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5178 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5179 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5180 if test "${ac_cv_search_gethostbyname+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183 ac_func_search_save_LIBS=$LIBS
5184 ac_cv_search_gethostbyname=no
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 #ifdef __cplusplus
5194 extern "C"
5195 #endif
5196 /* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
5198 char gethostbyname ();
5199 int
5200 main ()
5201 {
5202 gethostbyname ();
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 rm -f conftest.$ac_objext conftest$ac_exeext
5208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_cv_search_gethostbyname="none required"
5230 else
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234 fi
5235 rm -f conftest.err conftest.$ac_objext \
5236 conftest$ac_exeext conftest.$ac_ext
5237 if test "$ac_cv_search_gethostbyname" = no; then
5238 for ac_lib in nsl; do
5239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5240 cat >conftest.$ac_ext <<_ACEOF
5241 /* confdefs.h. */
5242 _ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5246
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 #ifdef __cplusplus
5249 extern "C"
5250 #endif
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5253 char gethostbyname ();
5254 int
5255 main ()
5256 {
5257 gethostbyname ();
5258 ;
5259 return 0;
5260 }
5261 _ACEOF
5262 rm -f conftest.$ac_objext conftest$ac_exeext
5263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
5284 ac_cv_search_gethostbyname="-l$ac_lib"
5285 break
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 fi
5291 rm -f conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293 done
5294 fi
5295 LIBS=$ac_func_search_save_LIBS
5296 fi
5297 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5298 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5299 if test "$ac_cv_search_gethostbyname" != no; then
5300 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5301
5302 fi
5303
5304
5305 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5306 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5307 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5308 if test "${ac_cv_search_socketpair+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 ac_func_search_save_LIBS=$LIBS
5312 ac_cv_search_socketpair=no
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h. */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h. */
5319
5320 /* Override any gcc2 internal prototype to avoid an error. */
5321 #ifdef __cplusplus
5322 extern "C"
5323 #endif
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5326 char socketpair ();
5327 int
5328 main ()
5329 {
5330 socketpair ();
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext conftest$ac_exeext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag"
5345 || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_search_socketpair="none required"
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 fi
5363 rm -f conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365 if test "$ac_cv_search_socketpair" = no; then
5366 for ac_lib in socket; do
5367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374
5375 /* Override any gcc2 internal prototype to avoid an error. */
5376 #ifdef __cplusplus
5377 extern "C"
5378 #endif
5379 /* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381 char socketpair ();
5382 int
5383 main ()
5384 {
5385 socketpair ();
5386 ;
5387 return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392 (eval $ac_link) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest$ac_exeext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_search_socketpair="-l$ac_lib"
5413 break
5414 else
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5417
5418 fi
5419 rm -f conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 done
5422 fi
5423 LIBS=$ac_func_search_save_LIBS
5424 fi
5425 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5426 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5427 if test "$ac_cv_search_socketpair" != no; then
5428 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5429
5430 fi
5431
5432
5433 # For the TUI, we need enhanced curses functionality.
5434 #
5435 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5436 # curses library because the latter might not provide all the
5437 # functionality we need. However, this leads to problems on systems
5438 # where the linker searches /usr/local/lib, but the compiler doesn't
5439 # search /usr/local/include, if ncurses is installed in /usr/local. A
5440 # default installation of ncurses on alpha*-dec-osf* will lead to such
5441 # a situation.
5442 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5443 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5444 if test "${ac_cv_search_waddstr+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 ac_func_search_save_LIBS=$LIBS
5448 ac_cv_search_waddstr=no
5449 cat >conftest.$ac_ext <<_ACEOF
5450 /* confdefs.h. */
5451 _ACEOF
5452 cat confdefs.h >>conftest.$ac_ext
5453 cat >>conftest.$ac_ext <<_ACEOF
5454 /* end confdefs.h. */
5455
5456 /* Override any gcc2 internal prototype to avoid an error. */
5457 #ifdef __cplusplus
5458 extern "C"
5459 #endif
5460 /* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
5462 char waddstr ();
5463 int
5464 main ()
5465 {
5466 waddstr ();
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext conftest$ac_exeext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
5493 ac_cv_search_waddstr="none required"
5494 else
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 fi
5499 rm -f conftest.err conftest.$ac_objext \
5500 conftest$ac_exeext conftest.$ac_ext
5501 if test "$ac_cv_search_waddstr" = no; then
5502 for ac_lib in ncurses cursesX curses; do
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5504 cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h. */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h. */
5510
5511 /* Override any gcc2 internal prototype to avoid an error. */
5512 #ifdef __cplusplus
5513 extern "C"
5514 #endif
5515 /* We use char because int might match the return type of a gcc2
5516 builtin and then its argument prototype would still apply. */
5517 char waddstr ();
5518 int
5519 main ()
5520 {
5521 waddstr ();
5522 ;
5523 return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -z "$ac_c_werror_flag"
5536 || test ! -s conftest.err'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_search_waddstr="-l$ac_lib"
5549 break
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 fi
5555 rm -f conftest.err conftest.$ac_objext \
5556 conftest$ac_exeext conftest.$ac_ext
5557 done
5558 fi
5559 LIBS=$ac_func_search_save_LIBS
5560 fi
5561 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5562 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5563 if test "$ac_cv_search_waddstr" != no; then
5564 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5565
5566 fi
5567
5568
5569 # Since GDB uses Readline, we need termcap functionality. In many
5570 # cases this will be provided by the curses library, but some systems
5571 # have a seperate termcap library, or no curses library at all.
5572
5573 case $host_os in
5574 cygwin*)
5575 if test -d $srcdir/libtermcap; then
5576 LIBS="../libtermcap/libtermcap.a $LIBS"
5577 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5578 fi ;;
5579 go32* | *djgpp*)
5580 ac_cv_search_tgetent="none required"
5581 ;;
5582 *mingw32*)
5583 ac_cv_search_tgetent="none required"
5584 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5585 ;;
5586 esac
5587
5588 # These are the libraries checked by Readline.
5589 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5590 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5591 if test "${ac_cv_search_tgetent+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 else
5594 ac_func_search_save_LIBS=$LIBS
5595 ac_cv_search_tgetent=no
5596 cat >conftest.$ac_ext <<_ACEOF
5597 /* confdefs.h. */
5598 _ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602
5603 /* Override any gcc2 internal prototype to avoid an error. */
5604 #ifdef __cplusplus
5605 extern "C"
5606 #endif
5607 /* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
5609 char tgetent ();
5610 int
5611 main ()
5612 {
5613 tgetent ();
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 rm -f conftest.$ac_objext conftest$ac_exeext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest$ac_exeext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_cv_search_tgetent="none required"
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 fi
5646 rm -f conftest.err conftest.$ac_objext \
5647 conftest$ac_exeext conftest.$ac_ext
5648 if test "$ac_cv_search_tgetent" = no; then
5649 for ac_lib in termcap tinfo curses ncurses; do
5650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657
5658 /* Override any gcc2 internal prototype to avoid an error. */
5659 #ifdef __cplusplus
5660 extern "C"
5661 #endif
5662 /* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5664 char tgetent ();
5665 int
5666 main ()
5667 {
5668 tgetent ();
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 rm -f conftest.$ac_objext conftest$ac_exeext
5674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675 (eval $ac_link) 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -z "$ac_c_werror_flag"
5683 || test ! -s conftest.err'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_search_tgetent="-l$ac_lib"
5696 break
5697 else
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5700
5701 fi
5702 rm -f conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 done
5705 fi
5706 LIBS=$ac_func_search_save_LIBS
5707 fi
5708 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5709 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5710 if test "$ac_cv_search_tgetent" != no; then
5711 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5712
5713 fi
5714
5715
5716 if test "$ac_cv_search_tgetent" = no; then
5717 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5718 echo "$as_me: error: no termcap library found" >&2;}
5719 { (exit 1); exit 1; }; }
5720 fi
5721
5722
5723 # Check whether --with-system-readline or --without-system-readline was given.
5724 if test "${with_system_readline+set}" = set; then
5725 withval="$with_system_readline"
5726
5727 fi;
5728
5729 if test "$with_system_readline" = yes; then
5730 READLINE=-lreadline
5731 READLINE_DEPS=
5732 READLINE_CFLAGS=
5733 else
5734 READLINE='$(READLINE_DIR)/libreadline.a'
5735 READLINE_DEPS='$(READLINE)'
5736 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5737 fi
5738
5739
5740
5741
5742
5743 # Check whether --with-expat or --without-expat was given.
5744 if test "${with_expat+set}" = set; then
5745 withval="$with_expat"
5746
5747 else
5748 with_expat=auto
5749 fi;
5750 echo "$as_me:$LINENO: checking whether to use expat" >&5
5751 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5752 echo "$as_me:$LINENO: result: $with_expat" >&5
5753 echo "${ECHO_T}$with_expat" >&6
5754
5755 if test "${with_expat}" = no; then
5756 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5757 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5758 HAVE_LIBEXPAT=no
5759 else
5760
5761 if test "X$prefix" = "XNONE"; then
5762 acl_final_prefix="$ac_default_prefix"
5763 else
5764 acl_final_prefix="$prefix"
5765 fi
5766 if test "X$exec_prefix" = "XNONE"; then
5767 acl_final_exec_prefix='${prefix}'
5768 else
5769 acl_final_exec_prefix="$exec_prefix"
5770 fi
5771 acl_save_prefix="$prefix"
5772 prefix="$acl_final_prefix"
5773 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5774 prefix="$acl_save_prefix"
5775
5776
5777 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5778 if test "${with_gnu_ld+set}" = set; then
5779 withval="$with_gnu_ld"
5780 test "$withval" = no || with_gnu_ld=yes
5781 else
5782 with_gnu_ld=no
5783 fi;
5784 # Prepare PATH_SEPARATOR.
5785 # The user is always right.
5786 if test "${PATH_SEPARATOR+set}" != set; then
5787 echo "#! /bin/sh" >conf$$.sh
5788 echo "exit 0" >>conf$$.sh
5789 chmod +x conf$$.sh
5790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5791 PATH_SEPARATOR=';'
5792 else
5793 PATH_SEPARATOR=:
5794 fi
5795 rm -f conf$$.sh
5796 fi
5797 ac_prog=ld
5798 if test "$GCC" = yes; then
5799 # Check if gcc -print-prog-name=ld gives a path.
5800 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5801 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5802 case $host in
5803 *-*-mingw*)
5804 # gcc leaves a trailing carriage return which upsets mingw
5805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5806 *)
5807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5808 esac
5809 case $ac_prog in
5810 # Accept absolute paths.
5811 [\\/]* | [A-Za-z]:[\\/]*)
5812 re_direlt='/[^/][^/]*/\.\./'
5813 # Canonicalize the path of ld
5814 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5815 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5816 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5817 done
5818 test -z "$LD" && LD="$ac_prog"
5819 ;;
5820 "")
5821 # If it fails, then pretend we aren't using GCC.
5822 ac_prog=ld
5823 ;;
5824 *)
5825 # If it is relative, then search for the first ld in PATH.
5826 with_gnu_ld=unknown
5827 ;;
5828 esac
5829 elif test "$with_gnu_ld" = yes; then
5830 echo "$as_me:$LINENO: checking for GNU ld" >&5
5831 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5832 else
5833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5834 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5835 fi
5836 if test "${acl_cv_path_LD+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839 if test -z "$LD"; then
5840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5841 for ac_dir in $PATH; do
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844 acl_cv_path_LD="$ac_dir/$ac_prog"
5845 # Check to see if the program is GNU ld. I'd rather use --version,
5846 # but apparently some GNU ld's only accept -v.
5847 # Break only if it was the GNU/non-GNU ld that we prefer.
5848 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5849 test "$with_gnu_ld" != no && break
5850 else
5851 test "$with_gnu_ld" != yes && break
5852 fi
5853 fi
5854 done
5855 IFS="$ac_save_ifs"
5856 else
5857 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5858 fi
5859 fi
5860
5861 LD="$acl_cv_path_LD"
5862 if test -n "$LD"; then
5863 echo "$as_me:$LINENO: result: $LD" >&5
5864 echo "${ECHO_T}$LD" >&6
5865 else
5866 echo "$as_me:$LINENO: result: no" >&5
5867 echo "${ECHO_T}no" >&6
5868 fi
5869 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5870 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5871 { (exit 1); exit 1; }; }
5872 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5873 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5874 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5878 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5879 acl_cv_prog_gnu_ld=yes
5880 else
5881 acl_cv_prog_gnu_ld=no
5882 fi
5883 fi
5884 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5885 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5886 with_gnu_ld=$acl_cv_prog_gnu_ld
5887
5888
5889
5890 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5891 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5892 if test "${acl_cv_rpath+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895
5896 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5897 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5898 . ./conftest.sh
5899 rm -f ./conftest.sh
5900 acl_cv_rpath=done
5901
5902 fi
5903 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5904 echo "${ECHO_T}$acl_cv_rpath" >&6
5905 wl="$acl_cv_wl"
5906 libext="$acl_cv_libext"
5907 shlibext="$acl_cv_shlibext"
5908 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5909 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5910 hardcode_direct="$acl_cv_hardcode_direct"
5911 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5912 # Check whether --enable-rpath or --disable-rpath was given.
5913 if test "${enable_rpath+set}" = set; then
5914 enableval="$enable_rpath"
5915 :
5916 else
5917 enable_rpath=yes
5918 fi;
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928 use_additional=yes
5929
5930 acl_save_prefix="$prefix"
5931 prefix="$acl_final_prefix"
5932 acl_save_exec_prefix="$exec_prefix"
5933 exec_prefix="$acl_final_exec_prefix"
5934
5935 eval additional_includedir=\"$includedir\"
5936 eval additional_libdir=\"$libdir\"
5937
5938 exec_prefix="$acl_save_exec_prefix"
5939 prefix="$acl_save_prefix"
5940
5941
5942 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5943 if test "${with_libexpat_prefix+set}" = set; then
5944 withval="$with_libexpat_prefix"
5945
5946 if test "X$withval" = "Xno"; then
5947 use_additional=no
5948 else
5949 if test "X$withval" = "X"; then
5950
5951 acl_save_prefix="$prefix"
5952 prefix="$acl_final_prefix"
5953 acl_save_exec_prefix="$exec_prefix"
5954 exec_prefix="$acl_final_exec_prefix"
5955
5956 eval additional_includedir=\"$includedir\"
5957 eval additional_libdir=\"$libdir\"
5958
5959 exec_prefix="$acl_save_exec_prefix"
5960 prefix="$acl_save_prefix"
5961
5962 else
5963 additional_includedir="$withval/include"
5964 additional_libdir="$withval/lib"
5965 fi
5966 fi
5967
5968 fi;
5969 LIBEXPAT=
5970 LTLIBEXPAT=
5971 INCEXPAT=
5972 rpathdirs=
5973 ltrpathdirs=
5974 names_already_handled=
5975 names_next_round='expat '
5976 while test -n "$names_next_round"; do
5977 names_this_round="$names_next_round"
5978 names_next_round=
5979 for name in $names_this_round; do
5980 already_handled=
5981 for n in $names_already_handled; do
5982 if test "$n" = "$name"; then
5983 already_handled=yes
5984 break
5985 fi
5986 done
5987 if test -z "$already_handled"; then
5988 names_already_handled="$names_already_handled $name"
5989 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5990 eval value=\"\$HAVE_LIB$uppername\"
5991 if test -n "$value"; then
5992 if test "$value" = yes; then
5993 eval value=\"\$LIB$uppername\"
5994 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5995 eval value=\"\$LTLIB$uppername\"
5996 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5997 else
5998 :
5999 fi
6000 else
6001 found_dir=
6002 found_la=
6003 found_so=
6004 found_a=
6005 if test $use_additional = yes; then
6006 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6007 found_dir="$additional_libdir"
6008 found_so="$additional_libdir/lib$name.$shlibext"
6009 if test -f "$additional_libdir/lib$name.la"; then
6010 found_la="$additional_libdir/lib$name.la"
6011 fi
6012 else
6013 if test -f "$additional_libdir/lib$name.$libext"; then
6014 found_dir="$additional_libdir"
6015 found_a="$additional_libdir/lib$name.$libext"
6016 if test -f "$additional_libdir/lib$name.la"; then
6017 found_la="$additional_libdir/lib$name.la"
6018 fi
6019 fi
6020 fi
6021 fi
6022 if test "X$found_dir" = "X"; then
6023 for x in $LDFLAGS $LTLIBEXPAT; do
6024
6025 acl_save_prefix="$prefix"
6026 prefix="$acl_final_prefix"
6027 acl_save_exec_prefix="$exec_prefix"
6028 exec_prefix="$acl_final_exec_prefix"
6029 eval x=\"$x\"
6030 exec_prefix="$acl_save_exec_prefix"
6031 prefix="$acl_save_prefix"
6032
6033 case "$x" in
6034 -L*)
6035 dir=`echo "X$x" | sed -e 's/^X-L//'`
6036 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6037 found_dir="$dir"
6038 found_so="$dir/lib$name.$shlibext"
6039 if test -f "$dir/lib$name.la"; then
6040 found_la="$dir/lib$name.la"
6041 fi
6042 else
6043 if test -f "$dir/lib$name.$libext"; then
6044 found_dir="$dir"
6045 found_a="$dir/lib$name.$libext"
6046 if test -f "$dir/lib$name.la"; then
6047 found_la="$dir/lib$name.la"
6048 fi
6049 fi
6050 fi
6051 ;;
6052 esac
6053 if test "X$found_dir" != "X"; then
6054 break
6055 fi
6056 done
6057 fi
6058 if test "X$found_dir" != "X"; then
6059 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6060 if test "X$found_so" != "X"; then
6061 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6062 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6063 else
6064 haveit=
6065 for x in $ltrpathdirs; do
6066 if test "X$x" = "X$found_dir"; then
6067 haveit=yes
6068 break
6069 fi
6070 done
6071 if test -z "$haveit"; then
6072 ltrpathdirs="$ltrpathdirs $found_dir"
6073 fi
6074 if test "$hardcode_direct" = yes; then
6075 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6076 else
6077 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6078 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6079 haveit=
6080 for x in $rpathdirs; do
6081 if test "X$x" = "X$found_dir"; then
6082 haveit=yes
6083 break
6084 fi
6085 done
6086 if test -z "$haveit"; then
6087 rpathdirs="$rpathdirs $found_dir"
6088 fi
6089 else
6090 haveit=
6091 for x in $LDFLAGS $LIBEXPAT; do
6092
6093 acl_save_prefix="$prefix"
6094 prefix="$acl_final_prefix"
6095 acl_save_exec_prefix="$exec_prefix"
6096 exec_prefix="$acl_final_exec_prefix"
6097 eval x=\"$x\"
6098 exec_prefix="$acl_save_exec_prefix"
6099 prefix="$acl_save_prefix"
6100
6101 if test "X$x" = "X-L$found_dir"; then
6102 haveit=yes
6103 break
6104 fi
6105 done
6106 if test -z "$haveit"; then
6107 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6108 fi
6109 if test "$hardcode_minus_L" != no; then
6110 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6111 else
6112 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6113 fi
6114 fi
6115 fi
6116 fi
6117 else
6118 if test "X$found_a" != "X"; then
6119 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6120 else
6121 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6122 fi
6123 fi
6124 additional_includedir=
6125 case "$found_dir" in
6126 */lib | */lib/)
6127 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6128 additional_includedir="$basedir/include"
6129 ;;
6130 esac
6131 if test "X$additional_includedir" != "X"; then
6132 if test "X$additional_includedir" != "X/usr/include"; then
6133 haveit=
6134 if test "X$additional_includedir" = "X/usr/local/include"; then
6135 if test -n "$GCC"; then
6136 case $host_os in
6137 linux*) haveit=yes;;
6138 esac
6139 fi
6140 fi
6141 if test -z "$haveit"; then
6142 for x in $CPPFLAGS $INCEXPAT; do
6143
6144 acl_save_prefix="$prefix"
6145 prefix="$acl_final_prefix"
6146 acl_save_exec_prefix="$exec_prefix"
6147 exec_prefix="$acl_final_exec_prefix"
6148 eval x=\"$x\"
6149 exec_prefix="$acl_save_exec_prefix"
6150 prefix="$acl_save_prefix"
6151
6152 if test "X$x" = "X-I$additional_includedir"; then
6153 haveit=yes
6154 break
6155 fi
6156 done
6157 if test -z "$haveit"; then
6158 if test -d "$additional_includedir"; then
6159 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6160 fi
6161 fi
6162 fi
6163 fi
6164 fi
6165 if test -n "$found_la"; then
6166 save_libdir="$libdir"
6167 case "$found_la" in
6168 */* | *\\*) . "$found_la" ;;
6169 *) . "./$found_la" ;;
6170 esac
6171 libdir="$save_libdir"
6172 for dep in $dependency_libs; do
6173 case "$dep" in
6174 -L*)
6175 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6176 if test "X$additional_libdir" != "X/usr/lib"; then
6177 haveit=
6178 if test "X$additional_libdir" = "X/usr/local/lib"; then
6179 if test -n "$GCC"; then
6180 case $host_os in
6181 linux*) haveit=yes;;
6182 esac
6183 fi
6184 fi
6185 if test -z "$haveit"; then
6186 haveit=
6187 for x in $LDFLAGS $LIBEXPAT; do
6188
6189 acl_save_prefix="$prefix"
6190 prefix="$acl_final_prefix"
6191 acl_save_exec_prefix="$exec_prefix"
6192 exec_prefix="$acl_final_exec_prefix"
6193 eval x=\"$x\"
6194 exec_prefix="$acl_save_exec_prefix"
6195 prefix="$acl_save_prefix"
6196
6197 if test "X$x" = "X-L$additional_libdir"; then
6198 haveit=yes
6199 break
6200 fi
6201 done
6202 if test -z "$haveit"; then
6203 if test -d "$additional_libdir"; then
6204 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6205 fi
6206 fi
6207 haveit=
6208 for x in $LDFLAGS $LTLIBEXPAT; do
6209
6210 acl_save_prefix="$prefix"
6211 prefix="$acl_final_prefix"
6212 acl_save_exec_prefix="$exec_prefix"
6213 exec_prefix="$acl_final_exec_prefix"
6214 eval x=\"$x\"
6215 exec_prefix="$acl_save_exec_prefix"
6216 prefix="$acl_save_prefix"
6217
6218 if test "X$x" = "X-L$additional_libdir"; then
6219 haveit=yes
6220 break
6221 fi
6222 done
6223 if test -z "$haveit"; then
6224 if test -d "$additional_libdir"; then
6225 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6226 fi
6227 fi
6228 fi
6229 fi
6230 ;;
6231 -R*)
6232 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6233 if test "$enable_rpath" != no; then
6234 haveit=
6235 for x in $rpathdirs; do
6236 if test "X$x" = "X$dir"; then
6237 haveit=yes
6238 break
6239 fi
6240 done
6241 if test -z "$haveit"; then
6242 rpathdirs="$rpathdirs $dir"
6243 fi
6244 haveit=
6245 for x in $ltrpathdirs; do
6246 if test "X$x" = "X$dir"; then
6247 haveit=yes
6248 break
6249 fi
6250 done
6251 if test -z "$haveit"; then
6252 ltrpathdirs="$ltrpathdirs $dir"
6253 fi
6254 fi
6255 ;;
6256 -l*)
6257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6258 ;;
6259 *.la)
6260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6261 ;;
6262 *)
6263 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6264 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6265 ;;
6266 esac
6267 done
6268 fi
6269 else
6270 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6271 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6272 fi
6273 fi
6274 fi
6275 done
6276 done
6277 if test "X$rpathdirs" != "X"; then
6278 if test -n "$hardcode_libdir_separator"; then
6279 alldirs=
6280 for found_dir in $rpathdirs; do
6281 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6282 done
6283 acl_save_libdir="$libdir"
6284 libdir="$alldirs"
6285 eval flag=\"$hardcode_libdir_flag_spec\"
6286 libdir="$acl_save_libdir"
6287 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6288 else
6289 for found_dir in $rpathdirs; do
6290 acl_save_libdir="$libdir"
6291 libdir="$found_dir"
6292 eval flag=\"$hardcode_libdir_flag_spec\"
6293 libdir="$acl_save_libdir"
6294 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6295 done
6296 fi
6297 fi
6298 if test "X$ltrpathdirs" != "X"; then
6299 for found_dir in $ltrpathdirs; do
6300 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6301 done
6302 fi
6303
6304
6305 ac_save_CPPFLAGS="$CPPFLAGS"
6306
6307 for element in $INCEXPAT; do
6308 haveit=
6309 for x in $CPPFLAGS; do
6310
6311 acl_save_prefix="$prefix"
6312 prefix="$acl_final_prefix"
6313 acl_save_exec_prefix="$exec_prefix"
6314 exec_prefix="$acl_final_exec_prefix"
6315 eval x=\"$x\"
6316 exec_prefix="$acl_save_exec_prefix"
6317 prefix="$acl_save_prefix"
6318
6319 if test "X$x" = "X$element"; then
6320 haveit=yes
6321 break
6322 fi
6323 done
6324 if test -z "$haveit"; then
6325 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6326 fi
6327 done
6328
6329
6330 echo "$as_me:$LINENO: checking for libexpat" >&5
6331 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6332 if test "${ac_cv_libexpat+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335
6336 ac_save_LIBS="$LIBS"
6337 LIBS="$LIBS $LIBEXPAT"
6338 cat >conftest.$ac_ext <<_ACEOF
6339 /* confdefs.h. */
6340 _ACEOF
6341 cat confdefs.h >>conftest.$ac_ext
6342 cat >>conftest.$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 #include "expat.h"
6345 int
6346 main ()
6347 {
6348 XML_Parser p = XML_ParserCreate (0);
6349 ;
6350 return 0;
6351 }
6352 _ACEOF
6353 rm -f conftest.$ac_objext conftest$ac_exeext
6354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_libexpat=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_libexpat=no
6381 fi
6382 rm -f conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS="$ac_save_LIBS"
6385
6386 fi
6387 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6388 echo "${ECHO_T}$ac_cv_libexpat" >&6
6389 if test "$ac_cv_libexpat" = yes; then
6390 HAVE_LIBEXPAT=yes
6391
6392 cat >>confdefs.h <<\_ACEOF
6393 #define HAVE_LIBEXPAT 1
6394 _ACEOF
6395
6396 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6397 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6398 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6399 echo "${ECHO_T}$LIBEXPAT" >&6
6400 else
6401 HAVE_LIBEXPAT=no
6402 CPPFLAGS="$ac_save_CPPFLAGS"
6403 LIBEXPAT=
6404 LTLIBEXPAT=
6405 fi
6406
6407
6408
6409
6410
6411
6412 if test "$HAVE_LIBEXPAT" != yes; then
6413 if test "$with_expat" = yes; then
6414 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6415 echo "$as_me: error: expat is missing or unusable" >&2;}
6416 { (exit 1); exit 1; }; }
6417 else
6418 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6419 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6420 fi
6421 else
6422 save_LIBS=$LIBS
6423 LIBS="$LIBS $LIBEXPAT"
6424
6425 for ac_func in XML_StopParser
6426 do
6427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6428 echo "$as_me:$LINENO: checking for $ac_func" >&5
6429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6430 if eval "test \"\${$as_ac_var+set}\" = set"; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433 cat >conftest.$ac_ext <<_ACEOF
6434 /* confdefs.h. */
6435 _ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6441 #define $ac_func innocuous_$ac_func
6442
6443 /* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func (); below.
6445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446 <limits.h> exists even on freestanding compilers. */
6447
6448 #ifdef __STDC__
6449 # include <limits.h>
6450 #else
6451 # include <assert.h>
6452 #endif
6453
6454 #undef $ac_func
6455
6456 /* Override any gcc2 internal prototype to avoid an error. */
6457 #ifdef __cplusplus
6458 extern "C"
6459 {
6460 #endif
6461 /* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6463 char $ac_func ();
6464 /* The GNU C library defines this for functions which it implements
6465 to always fail with ENOSYS. Some functions are actually named
6466 something starting with __ and the normal name is an alias. */
6467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468 choke me
6469 #else
6470 char (*f) () = $ac_func;
6471 #endif
6472 #ifdef __cplusplus
6473 }
6474 #endif
6475
6476 int
6477 main ()
6478 {
6479 return f != $ac_func;
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext conftest$ac_exeext
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest$ac_exeext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 eval "$as_ac_var=yes"
6507 else
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.$ac_ext >&5
6510
6511 eval "$as_ac_var=no"
6512 fi
6513 rm -f conftest.err conftest.$ac_objext \
6514 conftest$ac_exeext conftest.$ac_ext
6515 fi
6516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6517 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6518 if test `eval echo '${'$as_ac_var'}'` = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6521 _ACEOF
6522
6523 fi
6524 done
6525
6526 LIBS=$save_LIBS
6527 fi
6528 fi
6529
6530 # ------------------------- #
6531 # Checks for header files. #
6532 # ------------------------- #
6533
6534
6535
6536
6537
6538
6539 ac_header_dirent=no
6540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6541 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6542 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6543 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 cat >conftest.$ac_ext <<_ACEOF
6548 /* confdefs.h. */
6549 _ACEOF
6550 cat confdefs.h >>conftest.$ac_ext
6551 cat >>conftest.$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 #include <sys/types.h>
6554 #include <$ac_hdr>
6555
6556 int
6557 main ()
6558 {
6559 if ((DIR *) 0)
6560 return 0;
6561 ;
6562 return 0;
6563 }
6564 _ACEOF
6565 rm -f conftest.$ac_objext
6566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567 (eval $ac_compile) 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -z "$ac_c_werror_flag"
6575 || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 eval "$as_ac_Header=yes"
6588 else
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 eval "$as_ac_Header=no"
6593 fi
6594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 fi
6596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599 cat >>confdefs.h <<_ACEOF
6600 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6601 _ACEOF
6602
6603 ac_header_dirent=$ac_hdr; break
6604 fi
6605
6606 done
6607 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6608 if test $ac_header_dirent = dirent.h; then
6609 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6610 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6611 if test "${ac_cv_search_opendir+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614 ac_func_search_save_LIBS=$LIBS
6615 ac_cv_search_opendir=no
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622
6623 /* Override any gcc2 internal prototype to avoid an error. */
6624 #ifdef __cplusplus
6625 extern "C"
6626 #endif
6627 /* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
6629 char opendir ();
6630 int
6631 main ()
6632 {
6633 opendir ();
6634 ;
6635 return 0;
6636 }
6637 _ACEOF
6638 rm -f conftest.$ac_objext conftest$ac_exeext
6639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640 (eval $ac_link) 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -z "$ac_c_werror_flag"
6648 || test ! -s conftest.err'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
6660 ac_cv_search_opendir="none required"
6661 else
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6664
6665 fi
6666 rm -f conftest.err conftest.$ac_objext \
6667 conftest$ac_exeext conftest.$ac_ext
6668 if test "$ac_cv_search_opendir" = no; then
6669 for ac_lib in dir; do
6670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 #ifdef __cplusplus
6680 extern "C"
6681 #endif
6682 /* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684 char opendir ();
6685 int
6686 main ()
6687 {
6688 opendir ();
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 rm -f conftest.$ac_objext conftest$ac_exeext
6694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_search_opendir="-l$ac_lib"
6716 break
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 fi
6722 rm -f conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 done
6725 fi
6726 LIBS=$ac_func_search_save_LIBS
6727 fi
6728 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6729 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6730 if test "$ac_cv_search_opendir" != no; then
6731 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6732
6733 fi
6734
6735 else
6736 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6737 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6738 if test "${ac_cv_search_opendir+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 else
6741 ac_func_search_save_LIBS=$LIBS
6742 ac_cv_search_opendir=no
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
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 #ifdef __cplusplus
6752 extern "C"
6753 #endif
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6756 char opendir ();
6757 int
6758 main ()
6759 {
6760 opendir ();
6761 ;
6762 return 0;
6763 }
6764 _ACEOF
6765 rm -f conftest.$ac_objext conftest$ac_exeext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_cv_search_opendir="none required"
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6791
6792 fi
6793 rm -f conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
6795 if test "$ac_cv_search_opendir" = no; then
6796 for ac_lib in x; do
6797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6798 cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6811 char opendir ();
6812 int
6813 main ()
6814 {
6815 opendir ();
6816 ;
6817 return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822 (eval $ac_link) 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_c_werror_flag"
6830 || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_search_opendir="-l$ac_lib"
6843 break
6844 else
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 fi
6849 rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 done
6852 fi
6853 LIBS=$ac_func_search_save_LIBS
6854 fi
6855 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6856 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6857 if test "$ac_cv_search_opendir" != no; then
6858 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6859
6860 fi
6861
6862 fi
6863
6864 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6865 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6866 if test "${ac_cv_header_stat_broken+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 else
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h. */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h. */
6875 #include <sys/types.h>
6876 #include <sys/stat.h>
6877
6878 #if defined(S_ISBLK) && defined(S_IFDIR)
6879 # if S_ISBLK (S_IFDIR)
6880 You lose.
6881 # endif
6882 #endif
6883
6884 #if defined(S_ISBLK) && defined(S_IFCHR)
6885 # if S_ISBLK (S_IFCHR)
6886 You lose.
6887 # endif
6888 #endif
6889
6890 #if defined(S_ISLNK) && defined(S_IFREG)
6891 # if S_ISLNK (S_IFREG)
6892 You lose.
6893 # endif
6894 #endif
6895
6896 #if defined(S_ISSOCK) && defined(S_IFREG)
6897 # if S_ISSOCK (S_IFREG)
6898 You lose.
6899 # endif
6900 #endif
6901
6902 _ACEOF
6903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904 $EGREP "You lose" >/dev/null 2>&1; then
6905 ac_cv_header_stat_broken=yes
6906 else
6907 ac_cv_header_stat_broken=no
6908 fi
6909 rm -f conftest*
6910
6911 fi
6912 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6913 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6914 if test $ac_cv_header_stat_broken = yes; then
6915
6916 cat >>confdefs.h <<\_ACEOF
6917 #define STAT_MACROS_BROKEN 1
6918 _ACEOF
6919
6920 fi
6921
6922 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6924 if test "${ac_cv_header_stdc+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927 cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h. */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <stdlib.h>
6934 #include <stdarg.h>
6935 #include <string.h>
6936 #include <float.h>
6937
6938 int
6939 main ()
6940 {
6941
6942 ;
6943 return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest.$ac_objext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_header_stdc=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973 ac_cv_header_stdc=no
6974 fi
6975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976
6977 if test $ac_cv_header_stdc = yes; then
6978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6979 cat >conftest.$ac_ext <<_ACEOF
6980 /* confdefs.h. */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 #include <string.h>
6986
6987 _ACEOF
6988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989 $EGREP "memchr" >/dev/null 2>&1; then
6990 :
6991 else
6992 ac_cv_header_stdc=no
6993 fi
6994 rm -f conftest*
6995
6996 fi
6997
6998 if test $ac_cv_header_stdc = yes; then
6999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <stdlib.h>
7007
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "free" >/dev/null 2>&1; then
7011 :
7012 else
7013 ac_cv_header_stdc=no
7014 fi
7015 rm -f conftest*
7016
7017 fi
7018
7019 if test $ac_cv_header_stdc = yes; then
7020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7021 if test "$cross_compiling" = yes; then
7022 :
7023 else
7024 cat >conftest.$ac_ext <<_ACEOF
7025 /* confdefs.h. */
7026 _ACEOF
7027 cat confdefs.h >>conftest.$ac_ext
7028 cat >>conftest.$ac_ext <<_ACEOF
7029 /* end confdefs.h. */
7030 #include <ctype.h>
7031 #if ((' ' & 0x0FF) == 0x020)
7032 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7033 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034 #else
7035 # define ISLOWER(c) \
7036 (('a' <= (c) && (c) <= 'i') \
7037 || ('j' <= (c) && (c) <= 'r') \
7038 || ('s' <= (c) && (c) <= 'z'))
7039 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7040 #endif
7041
7042 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043 int
7044 main ()
7045 {
7046 int i;
7047 for (i = 0; i < 256; i++)
7048 if (XOR (islower (i), ISLOWER (i))
7049 || toupper (i) != TOUPPER (i))
7050 exit(2);
7051 exit (0);
7052 }
7053 _ACEOF
7054 rm -f conftest$ac_exeext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 :
7066 else
7067 echo "$as_me: program exited with status $ac_status" >&5
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.$ac_ext >&5
7070
7071 ( exit $ac_status )
7072 ac_cv_header_stdc=no
7073 fi
7074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 fi
7077 fi
7078 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7079 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7080 if test $ac_cv_header_stdc = yes; then
7081
7082 cat >>confdefs.h <<\_ACEOF
7083 #define STDC_HEADERS 1
7084 _ACEOF
7085
7086 fi
7087
7088
7089 for ac_header in nlist.h
7090 do
7091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7093 echo "$as_me:$LINENO: checking for $ac_header" >&5
7094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 fi
7098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7100 else
7101 # Is the header compilable?
7102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h. */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7110 $ac_includes_default
7111 #include <$ac_header>
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -z "$ac_c_werror_flag"
7123 || test ! -s conftest.err'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 ac_header_compiler=yes
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140 ac_header_compiler=no
7141 fi
7142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7143 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144 echo "${ECHO_T}$ac_header_compiler" >&6
7145
7146 # Is the header present?
7147 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h. */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <$ac_header>
7156 _ACEOF
7157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } >/dev/null; then
7165 if test -s conftest.err; then
7166 ac_cpp_err=$ac_c_preproc_warn_flag
7167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7168 else
7169 ac_cpp_err=
7170 fi
7171 else
7172 ac_cpp_err=yes
7173 fi
7174 if test -z "$ac_cpp_err"; then
7175 ac_header_preproc=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ac_header_preproc=no
7181 fi
7182 rm -f conftest.err conftest.$ac_ext
7183 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7184 echo "${ECHO_T}$ac_header_preproc" >&6
7185
7186 # So? What about this header?
7187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7188 yes:no: )
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7193 ac_header_preproc=yes
7194 ;;
7195 no:yes:* )
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7208 (
7209 cat <<\_ASBOX
7210 ## ------------------------------------------ ##
7211 ## Report this to the AC_PACKAGE_NAME lists. ##
7212 ## ------------------------------------------ ##
7213 _ASBOX
7214 ) |
7215 sed "s/^/$as_me: WARNING: /" >&2
7216 ;;
7217 esac
7218 echo "$as_me:$LINENO: checking for $ac_header" >&5
7219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 eval "$as_ac_Header=\$ac_header_preproc"
7224 fi
7225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7227
7228 fi
7229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230 cat >>confdefs.h <<_ACEOF
7231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7232 _ACEOF
7233
7234 fi
7235
7236 done
7237
7238
7239 for ac_header in link.h
7240 do
7241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7242 echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 else
7247 cat >conftest.$ac_ext <<_ACEOF
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #if HAVE_SYS_TYPES_H
7254 # include <sys/types.h>
7255 #endif
7256 #if HAVE_NLIST_H
7257 # include <nlist.h>
7258 #endif
7259
7260
7261 #include <$ac_header>
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 eval "$as_ac_Header=yes"
7286 else
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290 eval "$as_ac_Header=no"
7291 fi
7292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293 fi
7294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297 cat >>confdefs.h <<_ACEOF
7298 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299 _ACEOF
7300
7301 fi
7302
7303 done
7304
7305
7306 for ac_header in machine/reg.h
7307 do
7308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310 echo "$as_me:$LINENO: checking for $ac_header" >&5
7311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 fi
7315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7317 else
7318 # Is the header compilable?
7319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h. */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7327 $ac_includes_default
7328 #include <$ac_header>
7329 _ACEOF
7330 rm -f conftest.$ac_objext
7331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_header_compiler=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 ac_header_compiler=no
7358 fi
7359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361 echo "${ECHO_T}$ac_header_compiler" >&6
7362
7363 # Is the header present?
7364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <$ac_header>
7373 _ACEOF
7374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } >/dev/null; then
7382 if test -s conftest.err; then
7383 ac_cpp_err=$ac_c_preproc_warn_flag
7384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7385 else
7386 ac_cpp_err=
7387 fi
7388 else
7389 ac_cpp_err=yes
7390 fi
7391 if test -z "$ac_cpp_err"; then
7392 ac_header_preproc=yes
7393 else
7394 echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 ac_header_preproc=no
7398 fi
7399 rm -f conftest.err conftest.$ac_ext
7400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401 echo "${ECHO_T}$ac_header_preproc" >&6
7402
7403 # So? What about this header?
7404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7405 yes:no: )
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7410 ac_header_preproc=yes
7411 ;;
7412 no:yes:* )
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7425 (
7426 cat <<\_ASBOX
7427 ## ------------------------------------------ ##
7428 ## Report this to the AC_PACKAGE_NAME lists. ##
7429 ## ------------------------------------------ ##
7430 _ASBOX
7431 ) |
7432 sed "s/^/$as_me: WARNING: /" >&2
7433 ;;
7434 esac
7435 echo "$as_me:$LINENO: checking for $ac_header" >&5
7436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 eval "$as_ac_Header=\$ac_header_preproc"
7441 fi
7442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7444
7445 fi
7446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449 _ACEOF
7450
7451 fi
7452
7453 done
7454
7455
7456
7457 for ac_header in poll.h sys/poll.h
7458 do
7459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7461 echo "$as_me:$LINENO: checking for $ac_header" >&5
7462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 fi
7466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7468 else
7469 # Is the header compilable?
7470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7479 #include <$ac_header>
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_header_compiler=yes
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_header_compiler=no
7509 fi
7510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7512 echo "${ECHO_T}$ac_header_compiler" >&6
7513
7514 # Is the header present?
7515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7517 cat >conftest.$ac_ext <<_ACEOF
7518 /* confdefs.h. */
7519 _ACEOF
7520 cat confdefs.h >>conftest.$ac_ext
7521 cat >>conftest.$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7523 #include <$ac_header>
7524 _ACEOF
7525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } >/dev/null; then
7533 if test -s conftest.err; then
7534 ac_cpp_err=$ac_c_preproc_warn_flag
7535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7536 else
7537 ac_cpp_err=
7538 fi
7539 else
7540 ac_cpp_err=yes
7541 fi
7542 if test -z "$ac_cpp_err"; then
7543 ac_header_preproc=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 ac_header_preproc=no
7549 fi
7550 rm -f conftest.err conftest.$ac_ext
7551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552 echo "${ECHO_T}$ac_header_preproc" >&6
7553
7554 # So? What about this header?
7555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7556 yes:no: )
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7561 ac_header_preproc=yes
7562 ;;
7563 no:yes:* )
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7576 (
7577 cat <<\_ASBOX
7578 ## ------------------------------------------ ##
7579 ## Report this to the AC_PACKAGE_NAME lists. ##
7580 ## ------------------------------------------ ##
7581 _ASBOX
7582 ) |
7583 sed "s/^/$as_me: WARNING: /" >&2
7584 ;;
7585 esac
7586 echo "$as_me:$LINENO: checking for $ac_header" >&5
7587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 eval "$as_ac_Header=\$ac_header_preproc"
7592 fi
7593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7595
7596 fi
7597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7598 cat >>confdefs.h <<_ACEOF
7599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600 _ACEOF
7601
7602 fi
7603
7604 done
7605
7606
7607
7608
7609 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7610 do
7611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613 echo "$as_me:$LINENO: checking for $ac_header" >&5
7614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 fi
7618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7620 else
7621 # Is the header compilable?
7622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #include <$ac_header>
7632 _ACEOF
7633 rm -f conftest.$ac_objext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_header_compiler=yes
7656 else
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660 ac_header_compiler=no
7661 fi
7662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7664 echo "${ECHO_T}$ac_header_compiler" >&6
7665
7666 # Is the header present?
7667 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7669 cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h. */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 #include <$ac_header>
7676 _ACEOF
7677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } >/dev/null; then
7685 if test -s conftest.err; then
7686 ac_cpp_err=$ac_c_preproc_warn_flag
7687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7688 else
7689 ac_cpp_err=
7690 fi
7691 else
7692 ac_cpp_err=yes
7693 fi
7694 if test -z "$ac_cpp_err"; then
7695 ac_header_preproc=yes
7696 else
7697 echo "$as_me: failed program was:" >&5
7698 sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_header_preproc=no
7701 fi
7702 rm -f conftest.err conftest.$ac_ext
7703 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7704 echo "${ECHO_T}$ac_header_preproc" >&6
7705
7706 # So? What about this header?
7707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7708 yes:no: )
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7713 ac_header_preproc=yes
7714 ;;
7715 no:yes:* )
7716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7728 (
7729 cat <<\_ASBOX
7730 ## ------------------------------------------ ##
7731 ## Report this to the AC_PACKAGE_NAME lists. ##
7732 ## ------------------------------------------ ##
7733 _ASBOX
7734 ) |
7735 sed "s/^/$as_me: WARNING: /" >&2
7736 ;;
7737 esac
7738 echo "$as_me:$LINENO: checking for $ac_header" >&5
7739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 eval "$as_ac_Header=\$ac_header_preproc"
7744 fi
7745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747
7748 fi
7749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752 _ACEOF
7753
7754 fi
7755
7756 done
7757
7758
7759 for ac_header in signal.h
7760 do
7761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763 echo "$as_me:$LINENO: checking for $ac_header" >&5
7764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 fi
7768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770 else
7771 # Is the header compilable?
7772 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 $ac_includes_default
7781 #include <$ac_header>
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_header_compiler=yes
7806 else
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 ac_header_compiler=no
7811 fi
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814 echo "${ECHO_T}$ac_header_compiler" >&6
7815
7816 # Is the header present?
7817 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7819 cat >conftest.$ac_ext <<_ACEOF
7820 /* confdefs.h. */
7821 _ACEOF
7822 cat confdefs.h >>conftest.$ac_ext
7823 cat >>conftest.$ac_ext <<_ACEOF
7824 /* end confdefs.h. */
7825 #include <$ac_header>
7826 _ACEOF
7827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } >/dev/null; then
7835 if test -s conftest.err; then
7836 ac_cpp_err=$ac_c_preproc_warn_flag
7837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838 else
7839 ac_cpp_err=
7840 fi
7841 else
7842 ac_cpp_err=yes
7843 fi
7844 if test -z "$ac_cpp_err"; then
7845 ac_header_preproc=yes
7846 else
7847 echo "$as_me: failed program was:" >&5
7848 sed 's/^/| /' conftest.$ac_ext >&5
7849
7850 ac_header_preproc=no
7851 fi
7852 rm -f conftest.err conftest.$ac_ext
7853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7854 echo "${ECHO_T}$ac_header_preproc" >&6
7855
7856 # So? What about this header?
7857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7858 yes:no: )
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7860 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7862 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7863 ac_header_preproc=yes
7864 ;;
7865 no:yes:* )
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7867 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7869 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7871 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7873 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7875 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7877 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7878 (
7879 cat <<\_ASBOX
7880 ## ------------------------------------------ ##
7881 ## Report this to the AC_PACKAGE_NAME lists. ##
7882 ## ------------------------------------------ ##
7883 _ASBOX
7884 ) |
7885 sed "s/^/$as_me: WARNING: /" >&2
7886 ;;
7887 esac
7888 echo "$as_me:$LINENO: checking for $ac_header" >&5
7889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893 eval "$as_ac_Header=\$ac_header_preproc"
7894 fi
7895 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7896 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7897
7898 fi
7899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902 _ACEOF
7903
7904 fi
7905
7906 done
7907
7908
7909 for ac_header in stddef.h
7910 do
7911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7913 echo "$as_me:$LINENO: checking for $ac_header" >&5
7914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 fi
7918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7920 else
7921 # Is the header compilable?
7922 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930 $ac_includes_default
7931 #include <$ac_header>
7932 _ACEOF
7933 rm -f conftest.$ac_objext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935 (eval $ac_compile) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_header_compiler=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 ac_header_compiler=no
7961 fi
7962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7963 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7964 echo "${ECHO_T}$ac_header_compiler" >&6
7965
7966 # Is the header present?
7967 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7969 cat >conftest.$ac_ext <<_ACEOF
7970 /* confdefs.h. */
7971 _ACEOF
7972 cat confdefs.h >>conftest.$ac_ext
7973 cat >>conftest.$ac_ext <<_ACEOF
7974 /* end confdefs.h. */
7975 #include <$ac_header>
7976 _ACEOF
7977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } >/dev/null; then
7985 if test -s conftest.err; then
7986 ac_cpp_err=$ac_c_preproc_warn_flag
7987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7988 else
7989 ac_cpp_err=
7990 fi
7991 else
7992 ac_cpp_err=yes
7993 fi
7994 if test -z "$ac_cpp_err"; then
7995 ac_header_preproc=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_header_preproc=no
8001 fi
8002 rm -f conftest.err conftest.$ac_ext
8003 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8004 echo "${ECHO_T}$ac_header_preproc" >&6
8005
8006 # So? What about this header?
8007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8008 yes:no: )
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8013 ac_header_preproc=yes
8014 ;;
8015 no:yes:* )
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8028 (
8029 cat <<\_ASBOX
8030 ## ------------------------------------------ ##
8031 ## Report this to the AC_PACKAGE_NAME lists. ##
8032 ## ------------------------------------------ ##
8033 _ASBOX
8034 ) |
8035 sed "s/^/$as_me: WARNING: /" >&2
8036 ;;
8037 esac
8038 echo "$as_me:$LINENO: checking for $ac_header" >&5
8039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 eval "$as_ac_Header=\$ac_header_preproc"
8044 fi
8045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8047
8048 fi
8049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8050 cat >>confdefs.h <<_ACEOF
8051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052 _ACEOF
8053
8054 fi
8055
8056 done
8057
8058
8059 for ac_header in stdlib.h
8060 do
8061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8063 echo "$as_me:$LINENO: checking for $ac_header" >&5
8064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 fi
8068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8070 else
8071 # Is the header compilable?
8072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8074 cat >conftest.$ac_ext <<_ACEOF
8075 /* confdefs.h. */
8076 _ACEOF
8077 cat confdefs.h >>conftest.$ac_ext
8078 cat >>conftest.$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 #include <$ac_header>
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
8092 { ac_try='test -z "$ac_c_werror_flag"
8093 || test ! -s conftest.err'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; } &&
8099 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
8105 ac_header_compiler=yes
8106 else
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_header_compiler=no
8111 fi
8112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8114 echo "${ECHO_T}$ac_header_compiler" >&6
8115
8116 # Is the header present?
8117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8119 cat >conftest.$ac_ext <<_ACEOF
8120 /* confdefs.h. */
8121 _ACEOF
8122 cat confdefs.h >>conftest.$ac_ext
8123 cat >>conftest.$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 #include <$ac_header>
8126 _ACEOF
8127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev/null; then
8135 if test -s conftest.err; then
8136 ac_cpp_err=$ac_c_preproc_warn_flag
8137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8138 else
8139 ac_cpp_err=
8140 fi
8141 else
8142 ac_cpp_err=yes
8143 fi
8144 if test -z "$ac_cpp_err"; then
8145 ac_header_preproc=yes
8146 else
8147 echo "$as_me: failed program was:" >&5
8148 sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_header_preproc=no
8151 fi
8152 rm -f conftest.err conftest.$ac_ext
8153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8154 echo "${ECHO_T}$ac_header_preproc" >&6
8155
8156 # So? What about this header?
8157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8158 yes:no: )
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8163 ac_header_preproc=yes
8164 ;;
8165 no:yes:* )
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8178 (
8179 cat <<\_ASBOX
8180 ## ------------------------------------------ ##
8181 ## Report this to the AC_PACKAGE_NAME lists. ##
8182 ## ------------------------------------------ ##
8183 _ASBOX
8184 ) |
8185 sed "s/^/$as_me: WARNING: /" >&2
8186 ;;
8187 esac
8188 echo "$as_me:$LINENO: checking for $ac_header" >&5
8189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 eval "$as_ac_Header=\$ac_header_preproc"
8194 fi
8195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8197
8198 fi
8199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200 cat >>confdefs.h <<_ACEOF
8201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8202 _ACEOF
8203
8204 fi
8205
8206 done
8207
8208
8209 for ac_header in stdint.h
8210 do
8211 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8213 echo "$as_me:$LINENO: checking for $ac_header" >&5
8214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 fi
8218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8220 else
8221 # Is the header compilable?
8222 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8224 cat >conftest.$ac_ext <<_ACEOF
8225 /* confdefs.h. */
8226 _ACEOF
8227 cat confdefs.h >>conftest.$ac_ext
8228 cat >>conftest.$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 $ac_includes_default
8231 #include <$ac_header>
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235 (eval $ac_compile) 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest.$ac_objext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_header_compiler=yes
8256 else
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 ac_header_compiler=no
8261 fi
8262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8264 echo "${ECHO_T}$ac_header_compiler" >&6
8265
8266 # Is the header present?
8267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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. */
8275 #include <$ac_header>
8276 _ACEOF
8277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } >/dev/null; then
8285 if test -s conftest.err; then
8286 ac_cpp_err=$ac_c_preproc_warn_flag
8287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8288 else
8289 ac_cpp_err=
8290 fi
8291 else
8292 ac_cpp_err=yes
8293 fi
8294 if test -z "$ac_cpp_err"; then
8295 ac_header_preproc=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_header_preproc=no
8301 fi
8302 rm -f conftest.err conftest.$ac_ext
8303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8304 echo "${ECHO_T}$ac_header_preproc" >&6
8305
8306 # So? What about this header?
8307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8308 yes:no: )
8309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8313 ac_header_preproc=yes
8314 ;;
8315 no:yes:* )
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8328 (
8329 cat <<\_ASBOX
8330 ## ------------------------------------------ ##
8331 ## Report this to the AC_PACKAGE_NAME lists. ##
8332 ## ------------------------------------------ ##
8333 _ASBOX
8334 ) |
8335 sed "s/^/$as_me: WARNING: /" >&2
8336 ;;
8337 esac
8338 echo "$as_me:$LINENO: checking for $ac_header" >&5
8339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342 else
8343 eval "$as_ac_Header=\$ac_header_preproc"
8344 fi
8345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8347
8348 fi
8349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8350 cat >>confdefs.h <<_ACEOF
8351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352 _ACEOF
8353
8354 fi
8355
8356 done
8357
8358
8359
8360
8361 for ac_header in string.h memory.h strings.h
8362 do
8363 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365 echo "$as_me:$LINENO: checking for $ac_header" >&5
8366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369 fi
8370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8372 else
8373 # Is the header compilable?
8374 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8376 cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h. */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #include <$ac_header>
8384 _ACEOF
8385 rm -f conftest.$ac_objext
8386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_header_compiler=yes
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_header_compiler=no
8413 fi
8414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416 echo "${ECHO_T}$ac_header_compiler" >&6
8417
8418 # Is the header present?
8419 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h. */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 #include <$ac_header>
8428 _ACEOF
8429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
8443 else
8444 ac_cpp_err=yes
8445 fi
8446 if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
8448 else
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_header_preproc=no
8453 fi
8454 rm -f conftest.err conftest.$ac_ext
8455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456 echo "${ECHO_T}$ac_header_preproc" >&6
8457
8458 # So? What about this header?
8459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460 yes:no: )
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8462 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8465 ac_header_preproc=yes
8466 ;;
8467 no:yes:* )
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8473 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8475 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8479 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8480 (
8481 cat <<\_ASBOX
8482 ## ------------------------------------------ ##
8483 ## Report this to the AC_PACKAGE_NAME lists. ##
8484 ## ------------------------------------------ ##
8485 _ASBOX
8486 ) |
8487 sed "s/^/$as_me: WARNING: /" >&2
8488 ;;
8489 esac
8490 echo "$as_me:$LINENO: checking for $ac_header" >&5
8491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495 eval "$as_ac_Header=\$ac_header_preproc"
8496 fi
8497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8499
8500 fi
8501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504 _ACEOF
8505
8506 fi
8507
8508 done
8509
8510
8511 for ac_header in sys/fault.h
8512 do
8513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo "$as_me:$LINENO: checking for $ac_header" >&5
8516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519 fi
8520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8522 else
8523 # Is the header compilable?
8524 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h. */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8533 #include <$ac_header>
8534 _ACEOF
8535 rm -f conftest.$ac_objext
8536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_header_compiler=yes
8558 else
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_header_compiler=no
8563 fi
8564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8565 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566 echo "${ECHO_T}$ac_header_compiler" >&6
8567
8568 # Is the header present?
8569 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h. */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h. */
8577 #include <$ac_header>
8578 _ACEOF
8579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } >/dev/null; then
8587 if test -s conftest.err; then
8588 ac_cpp_err=$ac_c_preproc_warn_flag
8589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8590 else
8591 ac_cpp_err=
8592 fi
8593 else
8594 ac_cpp_err=yes
8595 fi
8596 if test -z "$ac_cpp_err"; then
8597 ac_header_preproc=yes
8598 else
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8601
8602 ac_header_preproc=no
8603 fi
8604 rm -f conftest.err conftest.$ac_ext
8605 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8606 echo "${ECHO_T}$ac_header_preproc" >&6
8607
8608 # So? What about this header?
8609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8610 yes:no: )
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8615 ac_header_preproc=yes
8616 ;;
8617 no:yes:* )
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8630 (
8631 cat <<\_ASBOX
8632 ## ------------------------------------------ ##
8633 ## Report this to the AC_PACKAGE_NAME lists. ##
8634 ## ------------------------------------------ ##
8635 _ASBOX
8636 ) |
8637 sed "s/^/$as_me: WARNING: /" >&2
8638 ;;
8639 esac
8640 echo "$as_me:$LINENO: checking for $ac_header" >&5
8641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644 else
8645 eval "$as_ac_Header=\$ac_header_preproc"
8646 fi
8647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8649
8650 fi
8651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8652 cat >>confdefs.h <<_ACEOF
8653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8654 _ACEOF
8655
8656 fi
8657
8658 done
8659
8660
8661 for ac_header in sys/file.h
8662 do
8663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8665 echo "$as_me:$LINENO: checking for $ac_header" >&5
8666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 fi
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8672 else
8673 # Is the header compilable?
8674 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8676 cat >conftest.$ac_ext <<_ACEOF
8677 /* confdefs.h. */
8678 _ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 $ac_includes_default
8683 #include <$ac_header>
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_header_compiler=yes
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8711
8712 ac_header_compiler=no
8713 fi
8714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8716 echo "${ECHO_T}$ac_header_compiler" >&6
8717
8718 # Is the header present?
8719 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 #include <$ac_header>
8728 _ACEOF
8729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } >/dev/null; then
8737 if test -s conftest.err; then
8738 ac_cpp_err=$ac_c_preproc_warn_flag
8739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740 else
8741 ac_cpp_err=
8742 fi
8743 else
8744 ac_cpp_err=yes
8745 fi
8746 if test -z "$ac_cpp_err"; then
8747 ac_header_preproc=yes
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_header_preproc=no
8753 fi
8754 rm -f conftest.err conftest.$ac_ext
8755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8756 echo "${ECHO_T}$ac_header_preproc" >&6
8757
8758 # So? What about this header?
8759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8760 yes:no: )
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8765 ac_header_preproc=yes
8766 ;;
8767 no:yes:* )
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8780 (
8781 cat <<\_ASBOX
8782 ## ------------------------------------------ ##
8783 ## Report this to the AC_PACKAGE_NAME lists. ##
8784 ## ------------------------------------------ ##
8785 _ASBOX
8786 ) |
8787 sed "s/^/$as_me: WARNING: /" >&2
8788 ;;
8789 esac
8790 echo "$as_me:$LINENO: checking for $ac_header" >&5
8791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795 eval "$as_ac_Header=\$ac_header_preproc"
8796 fi
8797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8799
8800 fi
8801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8802 cat >>confdefs.h <<_ACEOF
8803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804 _ACEOF
8805
8806 fi
8807
8808 done
8809
8810
8811 for ac_header in sys/filio.h
8812 do
8813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815 echo "$as_me:$LINENO: checking for $ac_header" >&5
8816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 fi
8820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8822 else
8823 # Is the header compilable?
8824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8826 cat >conftest.$ac_ext <<_ACEOF
8827 /* confdefs.h. */
8828 _ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8832 $ac_includes_default
8833 #include <$ac_header>
8834 _ACEOF
8835 rm -f conftest.$ac_objext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8837 (eval $ac_compile) 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -z "$ac_c_werror_flag"
8845 || test ! -s conftest.err'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; } &&
8851 { ac_try='test -s conftest.$ac_objext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_header_compiler=yes
8858 else
8859 echo "$as_me: failed program was:" >&5
8860 sed 's/^/| /' conftest.$ac_ext >&5
8861
8862 ac_header_compiler=no
8863 fi
8864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866 echo "${ECHO_T}$ac_header_compiler" >&6
8867
8868 # Is the header present?
8869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8871 cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h. */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 #include <$ac_header>
8878 _ACEOF
8879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } >/dev/null; then
8887 if test -s conftest.err; then
8888 ac_cpp_err=$ac_c_preproc_warn_flag
8889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8890 else
8891 ac_cpp_err=
8892 fi
8893 else
8894 ac_cpp_err=yes
8895 fi
8896 if test -z "$ac_cpp_err"; then
8897 ac_header_preproc=yes
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_header_preproc=no
8903 fi
8904 rm -f conftest.err conftest.$ac_ext
8905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8906 echo "${ECHO_T}$ac_header_preproc" >&6
8907
8908 # So? What about this header?
8909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8910 yes:no: )
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8915 ac_header_preproc=yes
8916 ;;
8917 no:yes:* )
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8930 (
8931 cat <<\_ASBOX
8932 ## ------------------------------------------ ##
8933 ## Report this to the AC_PACKAGE_NAME lists. ##
8934 ## ------------------------------------------ ##
8935 _ASBOX
8936 ) |
8937 sed "s/^/$as_me: WARNING: /" >&2
8938 ;;
8939 esac
8940 echo "$as_me:$LINENO: checking for $ac_header" >&5
8941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 eval "$as_ac_Header=\$ac_header_preproc"
8946 fi
8947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8949
8950 fi
8951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954 _ACEOF
8955
8956 fi
8957
8958 done
8959
8960
8961 for ac_header in sys/ioctl.h
8962 do
8963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965 echo "$as_me:$LINENO: checking for $ac_header" >&5
8966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 fi
8970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8972 else
8973 # Is the header compilable?
8974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 $ac_includes_default
8983 #include <$ac_header>
8984 _ACEOF
8985 rm -f conftest.$ac_objext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_header_compiler=yes
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_header_compiler=no
9013 fi
9014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9016 echo "${ECHO_T}$ac_header_compiler" >&6
9017
9018 # Is the header present?
9019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9021 cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h. */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h. */
9027 #include <$ac_header>
9028 _ACEOF
9029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } >/dev/null; then
9037 if test -s conftest.err; then
9038 ac_cpp_err=$ac_c_preproc_warn_flag
9039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9040 else
9041 ac_cpp_err=
9042 fi
9043 else
9044 ac_cpp_err=yes
9045 fi
9046 if test -z "$ac_cpp_err"; then
9047 ac_header_preproc=yes
9048 else
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9051
9052 ac_header_preproc=no
9053 fi
9054 rm -f conftest.err conftest.$ac_ext
9055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9056 echo "${ECHO_T}$ac_header_preproc" >&6
9057
9058 # So? What about this header?
9059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9060 yes:no: )
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9065 ac_header_preproc=yes
9066 ;;
9067 no:yes:* )
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9080 (
9081 cat <<\_ASBOX
9082 ## ------------------------------------------ ##
9083 ## Report this to the AC_PACKAGE_NAME lists. ##
9084 ## ------------------------------------------ ##
9085 _ASBOX
9086 ) |
9087 sed "s/^/$as_me: WARNING: /" >&2
9088 ;;
9089 esac
9090 echo "$as_me:$LINENO: checking for $ac_header" >&5
9091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095 eval "$as_ac_Header=\$ac_header_preproc"
9096 fi
9097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9099
9100 fi
9101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9102 cat >>confdefs.h <<_ACEOF
9103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9104 _ACEOF
9105
9106 fi
9107
9108 done
9109
9110
9111 for ac_header in sys/param.h
9112 do
9113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115 echo "$as_me:$LINENO: checking for $ac_header" >&5
9116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119 fi
9120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122 else
9123 # Is the header compilable?
9124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9133 #include <$ac_header>
9134 _ACEOF
9135 rm -f conftest.$ac_objext
9136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_header_compiler=yes
9158 else
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9161
9162 ac_header_compiler=no
9163 fi
9164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9165 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9166 echo "${ECHO_T}$ac_header_compiler" >&6
9167
9168 # Is the header present?
9169 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9171 cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h. */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 #include <$ac_header>
9178 _ACEOF
9179 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } >/dev/null; then
9187 if test -s conftest.err; then
9188 ac_cpp_err=$ac_c_preproc_warn_flag
9189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190 else
9191 ac_cpp_err=
9192 fi
9193 else
9194 ac_cpp_err=yes
9195 fi
9196 if test -z "$ac_cpp_err"; then
9197 ac_header_preproc=yes
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202 ac_header_preproc=no
9203 fi
9204 rm -f conftest.err conftest.$ac_ext
9205 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9206 echo "${ECHO_T}$ac_header_preproc" >&6
9207
9208 # So? What about this header?
9209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9210 yes:no: )
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9215 ac_header_preproc=yes
9216 ;;
9217 no:yes:* )
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9230 (
9231 cat <<\_ASBOX
9232 ## ------------------------------------------ ##
9233 ## Report this to the AC_PACKAGE_NAME lists. ##
9234 ## ------------------------------------------ ##
9235 _ASBOX
9236 ) |
9237 sed "s/^/$as_me: WARNING: /" >&2
9238 ;;
9239 esac
9240 echo "$as_me:$LINENO: checking for $ac_header" >&5
9241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244 else
9245 eval "$as_ac_Header=\$ac_header_preproc"
9246 fi
9247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9249
9250 fi
9251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9252 cat >>confdefs.h <<_ACEOF
9253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9254 _ACEOF
9255
9256 fi
9257
9258 done
9259
9260
9261 for ac_header in sys/resource.h
9262 do
9263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265 echo "$as_me:$LINENO: checking for $ac_header" >&5
9266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269 fi
9270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9272 else
9273 # Is the header compilable?
9274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 $ac_includes_default
9283 #include <$ac_header>
9284 _ACEOF
9285 rm -f conftest.$ac_objext
9286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287 (eval $ac_compile) 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9307 ac_header_compiler=yes
9308 else
9309 echo "$as_me: failed program was:" >&5
9310 sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 ac_header_compiler=no
9313 fi
9314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9316 echo "${ECHO_T}$ac_header_compiler" >&6
9317
9318 # Is the header present?
9319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9327 #include <$ac_header>
9328 _ACEOF
9329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } >/dev/null; then
9337 if test -s conftest.err; then
9338 ac_cpp_err=$ac_c_preproc_warn_flag
9339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9340 else
9341 ac_cpp_err=
9342 fi
9343 else
9344 ac_cpp_err=yes
9345 fi
9346 if test -z "$ac_cpp_err"; then
9347 ac_header_preproc=yes
9348 else
9349 echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_header_preproc=no
9353 fi
9354 rm -f conftest.err conftest.$ac_ext
9355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9356 echo "${ECHO_T}$ac_header_preproc" >&6
9357
9358 # So? What about this header?
9359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9360 yes:no: )
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9365 ac_header_preproc=yes
9366 ;;
9367 no:yes:* )
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9380 (
9381 cat <<\_ASBOX
9382 ## ------------------------------------------ ##
9383 ## Report this to the AC_PACKAGE_NAME lists. ##
9384 ## ------------------------------------------ ##
9385 _ASBOX
9386 ) |
9387 sed "s/^/$as_me: WARNING: /" >&2
9388 ;;
9389 esac
9390 echo "$as_me:$LINENO: checking for $ac_header" >&5
9391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395 eval "$as_ac_Header=\$ac_header_preproc"
9396 fi
9397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399
9400 fi
9401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9402 cat >>confdefs.h <<_ACEOF
9403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404 _ACEOF
9405
9406 fi
9407
9408 done
9409
9410
9411 for ac_header in sys/proc.h
9412 do
9413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9414 echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 #if HAVE_SYS_PARAM_H
9426 # include <sys/param.h>
9427 #endif
9428
9429
9430 #include <$ac_header>
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 eval "$as_ac_Header=yes"
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 eval "$as_ac_Header=no"
9460 fi
9461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9462 fi
9463 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9464 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9466 cat >>confdefs.h <<_ACEOF
9467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 _ACEOF
9469
9470 fi
9471
9472 done
9473
9474
9475 for ac_header in sys/procfs.h
9476 do
9477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479 echo "$as_me:$LINENO: checking for $ac_header" >&5
9480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 fi
9484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9486 else
9487 # Is the header compilable?
9488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 $ac_includes_default
9497 #include <$ac_header>
9498 _ACEOF
9499 rm -f conftest.$ac_objext
9500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_header_compiler=yes
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 ac_header_compiler=no
9527 fi
9528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9530 echo "${ECHO_T}$ac_header_compiler" >&6
9531
9532 # Is the header present?
9533 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h. */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h. */
9541 #include <$ac_header>
9542 _ACEOF
9543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } >/dev/null; then
9551 if test -s conftest.err; then
9552 ac_cpp_err=$ac_c_preproc_warn_flag
9553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9554 else
9555 ac_cpp_err=
9556 fi
9557 else
9558 ac_cpp_err=yes
9559 fi
9560 if test -z "$ac_cpp_err"; then
9561 ac_header_preproc=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_header_preproc=no
9567 fi
9568 rm -f conftest.err conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9570 echo "${ECHO_T}$ac_header_preproc" >&6
9571
9572 # So? What about this header?
9573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9574 yes:no: )
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9579 ac_header_preproc=yes
9580 ;;
9581 no:yes:* )
9582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9594 (
9595 cat <<\_ASBOX
9596 ## ------------------------------------------ ##
9597 ## Report this to the AC_PACKAGE_NAME lists. ##
9598 ## ------------------------------------------ ##
9599 _ASBOX
9600 ) |
9601 sed "s/^/$as_me: WARNING: /" >&2
9602 ;;
9603 esac
9604 echo "$as_me:$LINENO: checking for $ac_header" >&5
9605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 else
9609 eval "$as_ac_Header=\$ac_header_preproc"
9610 fi
9611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9613
9614 fi
9615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9616 cat >>confdefs.h <<_ACEOF
9617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9618 _ACEOF
9619
9620 fi
9621
9622 done
9623
9624
9625
9626 for ac_header in sys/ptrace.h ptrace.h
9627 do
9628 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9630 echo "$as_me:$LINENO: checking for $ac_header" >&5
9631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 fi
9635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9637 else
9638 # Is the header compilable?
9639 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9641 cat >conftest.$ac_ext <<_ACEOF
9642 /* confdefs.h. */
9643 _ACEOF
9644 cat confdefs.h >>conftest.$ac_ext
9645 cat >>conftest.$ac_ext <<_ACEOF
9646 /* end confdefs.h. */
9647 $ac_includes_default
9648 #include <$ac_header>
9649 _ACEOF
9650 rm -f conftest.$ac_objext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_header_compiler=yes
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_header_compiler=no
9678 fi
9679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9681 echo "${ECHO_T}$ac_header_compiler" >&6
9682
9683 # Is the header present?
9684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9686 cat >conftest.$ac_ext <<_ACEOF
9687 /* confdefs.h. */
9688 _ACEOF
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 #include <$ac_header>
9693 _ACEOF
9694 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } >/dev/null; then
9702 if test -s conftest.err; then
9703 ac_cpp_err=$ac_c_preproc_warn_flag
9704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9705 else
9706 ac_cpp_err=
9707 fi
9708 else
9709 ac_cpp_err=yes
9710 fi
9711 if test -z "$ac_cpp_err"; then
9712 ac_header_preproc=yes
9713 else
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_header_preproc=no
9718 fi
9719 rm -f conftest.err conftest.$ac_ext
9720 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721 echo "${ECHO_T}$ac_header_preproc" >&6
9722
9723 # So? What about this header?
9724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9725 yes:no: )
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9730 ac_header_preproc=yes
9731 ;;
9732 no:yes:* )
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9745 (
9746 cat <<\_ASBOX
9747 ## ------------------------------------------ ##
9748 ## Report this to the AC_PACKAGE_NAME lists. ##
9749 ## ------------------------------------------ ##
9750 _ASBOX
9751 ) |
9752 sed "s/^/$as_me: WARNING: /" >&2
9753 ;;
9754 esac
9755 echo "$as_me:$LINENO: checking for $ac_header" >&5
9756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9757 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 else
9760 eval "$as_ac_Header=\$ac_header_preproc"
9761 fi
9762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9764
9765 fi
9766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9769 _ACEOF
9770
9771 fi
9772
9773 done
9774
9775
9776
9777 for ac_header in sys/reg.h sys/debugreg.h
9778 do
9779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781 echo "$as_me:$LINENO: checking for $ac_header" >&5
9782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 fi
9786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788 else
9789 # Is the header compilable?
9790 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9792 cat >conftest.$ac_ext <<_ACEOF
9793 /* confdefs.h. */
9794 _ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9798 $ac_includes_default
9799 #include <$ac_header>
9800 _ACEOF
9801 rm -f conftest.$ac_objext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 (eval $ac_compile) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_header_compiler=yes
9824 else
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9827
9828 ac_header_compiler=no
9829 fi
9830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9832 echo "${ECHO_T}$ac_header_compiler" >&6
9833
9834 # Is the header present?
9835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843 #include <$ac_header>
9844 _ACEOF
9845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev/null; then
9853 if test -s conftest.err; then
9854 ac_cpp_err=$ac_c_preproc_warn_flag
9855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9856 else
9857 ac_cpp_err=
9858 fi
9859 else
9860 ac_cpp_err=yes
9861 fi
9862 if test -z "$ac_cpp_err"; then
9863 ac_header_preproc=yes
9864 else
9865 echo "$as_me: failed program was:" >&5
9866 sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_header_preproc=no
9869 fi
9870 rm -f conftest.err conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9872 echo "${ECHO_T}$ac_header_preproc" >&6
9873
9874 # So? What about this header?
9875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876 yes:no: )
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9881 ac_header_preproc=yes
9882 ;;
9883 no:yes:* )
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9896 (
9897 cat <<\_ASBOX
9898 ## ------------------------------------------ ##
9899 ## Report this to the AC_PACKAGE_NAME lists. ##
9900 ## ------------------------------------------ ##
9901 _ASBOX
9902 ) |
9903 sed "s/^/$as_me: WARNING: /" >&2
9904 ;;
9905 esac
9906 echo "$as_me:$LINENO: checking for $ac_header" >&5
9907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911 eval "$as_ac_Header=\$ac_header_preproc"
9912 fi
9913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9914 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9915
9916 fi
9917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9918 cat >>confdefs.h <<_ACEOF
9919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9920 _ACEOF
9921
9922 fi
9923
9924 done
9925
9926
9927 for ac_header in sys/select.h
9928 do
9929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9931 echo "$as_me:$LINENO: checking for $ac_header" >&5
9932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 fi
9936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9938 else
9939 # Is the header compilable?
9940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h. */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h. */
9948 $ac_includes_default
9949 #include <$ac_header>
9950 _ACEOF
9951 rm -f conftest.$ac_objext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953 (eval $ac_compile) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag"
9961 || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest.$ac_objext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_header_compiler=yes
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9977
9978 ac_header_compiler=no
9979 fi
9980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982 echo "${ECHO_T}$ac_header_compiler" >&6
9983
9984 # Is the header present?
9985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9987 cat >conftest.$ac_ext <<_ACEOF
9988 /* confdefs.h. */
9989 _ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
9993 #include <$ac_header>
9994 _ACEOF
9995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } >/dev/null; then
10003 if test -s conftest.err; then
10004 ac_cpp_err=$ac_c_preproc_warn_flag
10005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10006 else
10007 ac_cpp_err=
10008 fi
10009 else
10010 ac_cpp_err=yes
10011 fi
10012 if test -z "$ac_cpp_err"; then
10013 ac_header_preproc=yes
10014 else
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 ac_header_preproc=no
10019 fi
10020 rm -f conftest.err conftest.$ac_ext
10021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022 echo "${ECHO_T}$ac_header_preproc" >&6
10023
10024 # So? What about this header?
10025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10026 yes:no: )
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10031 ac_header_preproc=yes
10032 ;;
10033 no:yes:* )
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10037 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10041 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10046 (
10047 cat <<\_ASBOX
10048 ## ------------------------------------------ ##
10049 ## Report this to the AC_PACKAGE_NAME lists. ##
10050 ## ------------------------------------------ ##
10051 _ASBOX
10052 ) |
10053 sed "s/^/$as_me: WARNING: /" >&2
10054 ;;
10055 esac
10056 echo "$as_me:$LINENO: checking for $ac_header" >&5
10057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 eval "$as_ac_Header=\$ac_header_preproc"
10062 fi
10063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10065
10066 fi
10067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10068 cat >>confdefs.h <<_ACEOF
10069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070 _ACEOF
10071
10072 fi
10073
10074 done
10075
10076
10077 for ac_header in sys/syscall.h
10078 do
10079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10081 echo "$as_me:$LINENO: checking for $ac_header" >&5
10082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 fi
10086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088 else
10089 # Is the header compilable?
10090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10092 cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h. */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h. */
10098 $ac_includes_default
10099 #include <$ac_header>
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag"
10111 || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_header_compiler=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_header_compiler=no
10129 fi
10130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132 echo "${ECHO_T}$ac_header_compiler" >&6
10133
10134 # Is the header present?
10135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10137 cat >conftest.$ac_ext <<_ACEOF
10138 /* confdefs.h. */
10139 _ACEOF
10140 cat confdefs.h >>conftest.$ac_ext
10141 cat >>conftest.$ac_ext <<_ACEOF
10142 /* end confdefs.h. */
10143 #include <$ac_header>
10144 _ACEOF
10145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } >/dev/null; then
10153 if test -s conftest.err; then
10154 ac_cpp_err=$ac_c_preproc_warn_flag
10155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10156 else
10157 ac_cpp_err=
10158 fi
10159 else
10160 ac_cpp_err=yes
10161 fi
10162 if test -z "$ac_cpp_err"; then
10163 ac_header_preproc=yes
10164 else
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 ac_header_preproc=no
10169 fi
10170 rm -f conftest.err conftest.$ac_ext
10171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10172 echo "${ECHO_T}$ac_header_preproc" >&6
10173
10174 # So? What about this header?
10175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10176 yes:no: )
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10181 ac_header_preproc=yes
10182 ;;
10183 no:yes:* )
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10196 (
10197 cat <<\_ASBOX
10198 ## ------------------------------------------ ##
10199 ## Report this to the AC_PACKAGE_NAME lists. ##
10200 ## ------------------------------------------ ##
10201 _ASBOX
10202 ) |
10203 sed "s/^/$as_me: WARNING: /" >&2
10204 ;;
10205 esac
10206 echo "$as_me:$LINENO: checking for $ac_header" >&5
10207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211 eval "$as_ac_Header=\$ac_header_preproc"
10212 fi
10213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10215
10216 fi
10217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10218 cat >>confdefs.h <<_ACEOF
10219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220 _ACEOF
10221
10222 fi
10223
10224 done
10225
10226
10227 for ac_header in sys/types.h
10228 do
10229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 fi
10236 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10238 else
10239 # Is the header compilable?
10240 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 $ac_includes_default
10249 #include <$ac_header>
10250 _ACEOF
10251 rm -f conftest.$ac_objext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_header_compiler=yes
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 ac_header_compiler=no
10279 fi
10280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10281 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282 echo "${ECHO_T}$ac_header_compiler" >&6
10283
10284 # Is the header present?
10285 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <$ac_header>
10294 _ACEOF
10295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } >/dev/null; then
10303 if test -s conftest.err; then
10304 ac_cpp_err=$ac_c_preproc_warn_flag
10305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10306 else
10307 ac_cpp_err=
10308 fi
10309 else
10310 ac_cpp_err=yes
10311 fi
10312 if test -z "$ac_cpp_err"; then
10313 ac_header_preproc=yes
10314 else
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_header_preproc=no
10319 fi
10320 rm -f conftest.err conftest.$ac_ext
10321 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 echo "${ECHO_T}$ac_header_preproc" >&6
10323
10324 # So? What about this header?
10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10332 ;;
10333 no:yes:* )
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10337 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10341 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10346 (
10347 cat <<\_ASBOX
10348 ## ------------------------------------------ ##
10349 ## Report this to the AC_PACKAGE_NAME lists. ##
10350 ## ------------------------------------------ ##
10351 _ASBOX
10352 ) |
10353 sed "s/^/$as_me: WARNING: /" >&2
10354 ;;
10355 esac
10356 echo "$as_me:$LINENO: checking for $ac_header" >&5
10357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360 else
10361 eval "$as_ac_Header=\$ac_header_preproc"
10362 fi
10363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10365
10366 fi
10367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10370 _ACEOF
10371
10372 fi
10373
10374 done
10375
10376
10377 for ac_header in sys/user.h
10378 do
10379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10380 echo "$as_me:$LINENO: checking for $ac_header" >&5
10381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10391 #if HAVE_SYS_PARAM_H
10392 # include <sys/param.h>
10393 #endif
10394
10395
10396 #include <$ac_header>
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -z "$ac_c_werror_flag"
10408 || test ! -s conftest.err'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 eval "$as_ac_Header=yes"
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 eval "$as_ac_Header=no"
10426 fi
10427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428 fi
10429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10432 cat >>confdefs.h <<_ACEOF
10433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10434 _ACEOF
10435
10436 fi
10437
10438 done
10439
10440
10441
10442 for ac_header in sys/wait.h wait.h
10443 do
10444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo "$as_me:$LINENO: checking for $ac_header" >&5
10447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 fi
10451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10453 else
10454 # Is the header compilable?
10455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10457 cat >conftest.$ac_ext <<_ACEOF
10458 /* confdefs.h. */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 $ac_includes_default
10464 #include <$ac_header>
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_header_compiler=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_header_compiler=no
10494 fi
10495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 echo "${ECHO_T}$ac_header_compiler" >&6
10498
10499 # Is the header present?
10500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <$ac_header>
10509 _ACEOF
10510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null; then
10518 if test -s conftest.err; then
10519 ac_cpp_err=$ac_c_preproc_warn_flag
10520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10521 else
10522 ac_cpp_err=
10523 fi
10524 else
10525 ac_cpp_err=yes
10526 fi
10527 if test -z "$ac_cpp_err"; then
10528 ac_header_preproc=yes
10529 else
10530 echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_header_preproc=no
10534 fi
10535 rm -f conftest.err conftest.$ac_ext
10536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537 echo "${ECHO_T}$ac_header_preproc" >&6
10538
10539 # So? What about this header?
10540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 yes:no: )
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546 ac_header_preproc=yes
10547 ;;
10548 no:yes:* )
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10561 (
10562 cat <<\_ASBOX
10563 ## ------------------------------------------ ##
10564 ## Report this to the AC_PACKAGE_NAME lists. ##
10565 ## ------------------------------------------ ##
10566 _ASBOX
10567 ) |
10568 sed "s/^/$as_me: WARNING: /" >&2
10569 ;;
10570 esac
10571 echo "$as_me:$LINENO: checking for $ac_header" >&5
10572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 eval "$as_ac_Header=\$ac_header_preproc"
10577 fi
10578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10580
10581 fi
10582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10585 _ACEOF
10586
10587 fi
10588
10589 done
10590
10591
10592
10593
10594 for ac_header in termios.h termio.h sgtty.h
10595 do
10596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10598 echo "$as_me:$LINENO: checking for $ac_header" >&5
10599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 fi
10603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10605 else
10606 # Is the header compilable?
10607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10609 cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h. */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 $ac_includes_default
10616 #include <$ac_header>
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_header_compiler=yes
10641 else
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10644
10645 ac_header_compiler=no
10646 fi
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649 echo "${ECHO_T}$ac_header_compiler" >&6
10650
10651 # Is the header present?
10652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h. */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 #include <$ac_header>
10661 _ACEOF
10662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } >/dev/null; then
10670 if test -s conftest.err; then
10671 ac_cpp_err=$ac_c_preproc_warn_flag
10672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10673 else
10674 ac_cpp_err=
10675 fi
10676 else
10677 ac_cpp_err=yes
10678 fi
10679 if test -z "$ac_cpp_err"; then
10680 ac_header_preproc=yes
10681 else
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10684
10685 ac_header_preproc=no
10686 fi
10687 rm -f conftest.err conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10689 echo "${ECHO_T}$ac_header_preproc" >&6
10690
10691 # So? What about this header?
10692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10693 yes:no: )
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10698 ac_header_preproc=yes
10699 ;;
10700 no:yes:* )
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10713 (
10714 cat <<\_ASBOX
10715 ## ------------------------------------------ ##
10716 ## Report this to the AC_PACKAGE_NAME lists. ##
10717 ## ------------------------------------------ ##
10718 _ASBOX
10719 ) |
10720 sed "s/^/$as_me: WARNING: /" >&2
10721 ;;
10722 esac
10723 echo "$as_me:$LINENO: checking for $ac_header" >&5
10724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728 eval "$as_ac_Header=\$ac_header_preproc"
10729 fi
10730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10732
10733 fi
10734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737 _ACEOF
10738
10739 fi
10740
10741 done
10742
10743
10744 for ac_header in unistd.h
10745 do
10746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10748 echo "$as_me:$LINENO: checking for $ac_header" >&5
10749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 fi
10753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10755 else
10756 # Is the header compilable?
10757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 $ac_includes_default
10766 #include <$ac_header>
10767 _ACEOF
10768 rm -f conftest.$ac_objext
10769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_header_compiler=yes
10791 else
10792 echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795 ac_header_compiler=no
10796 fi
10797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10798 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10799 echo "${ECHO_T}$ac_header_compiler" >&6
10800
10801 # Is the header present?
10802 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10805 /* confdefs.h. */
10806 _ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <$ac_header>
10811 _ACEOF
10812 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } >/dev/null; then
10820 if test -s conftest.err; then
10821 ac_cpp_err=$ac_c_preproc_warn_flag
10822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10823 else
10824 ac_cpp_err=
10825 fi
10826 else
10827 ac_cpp_err=yes
10828 fi
10829 if test -z "$ac_cpp_err"; then
10830 ac_header_preproc=yes
10831 else
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_header_preproc=no
10836 fi
10837 rm -f conftest.err conftest.$ac_ext
10838 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10839 echo "${ECHO_T}$ac_header_preproc" >&6
10840
10841 # So? What about this header?
10842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10843 yes:no: )
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10848 ac_header_preproc=yes
10849 ;;
10850 no:yes:* )
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10863 (
10864 cat <<\_ASBOX
10865 ## ------------------------------------------ ##
10866 ## Report this to the AC_PACKAGE_NAME lists. ##
10867 ## ------------------------------------------ ##
10868 _ASBOX
10869 ) |
10870 sed "s/^/$as_me: WARNING: /" >&2
10871 ;;
10872 esac
10873 echo "$as_me:$LINENO: checking for $ac_header" >&5
10874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877 else
10878 eval "$as_ac_Header=\$ac_header_preproc"
10879 fi
10880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10882
10883 fi
10884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10885 cat >>confdefs.h <<_ACEOF
10886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887 _ACEOF
10888
10889 fi
10890
10891 done
10892
10893
10894 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10895 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10896 # think that we don't have <curses.h> if we're using GCC.
10897 case $host_os in
10898 solaris2.[789])
10899 if test "$GCC" = yes; then
10900
10901 cat >>confdefs.h <<\_ACEOF
10902 #define _MSE_INT_H 1
10903 _ACEOF
10904
10905 fi ;;
10906 esac
10907
10908
10909
10910
10911 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10912 do
10913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10915 echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 fi
10920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10921 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10922 else
10923 # Is the header compilable?
10924 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10926 cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h. */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10932 $ac_includes_default
10933 #include <$ac_header>
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_header_compiler=yes
10958 else
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962 ac_header_compiler=no
10963 fi
10964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10966 echo "${ECHO_T}$ac_header_compiler" >&6
10967
10968 # Is the header present?
10969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10971 cat >conftest.$ac_ext <<_ACEOF
10972 /* confdefs.h. */
10973 _ACEOF
10974 cat confdefs.h >>conftest.$ac_ext
10975 cat >>conftest.$ac_ext <<_ACEOF
10976 /* end confdefs.h. */
10977 #include <$ac_header>
10978 _ACEOF
10979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_c_preproc_warn_flag
10989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990 else
10991 ac_cpp_err=
10992 fi
10993 else
10994 ac_cpp_err=yes
10995 fi
10996 if test -z "$ac_cpp_err"; then
10997 ac_header_preproc=yes
10998 else
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 ac_header_preproc=no
11003 fi
11004 rm -f conftest.err conftest.$ac_ext
11005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006 echo "${ECHO_T}$ac_header_preproc" >&6
11007
11008 # So? What about this header?
11009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11010 yes:no: )
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11015 ac_header_preproc=yes
11016 ;;
11017 no:yes:* )
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11030 (
11031 cat <<\_ASBOX
11032 ## ------------------------------------------ ##
11033 ## Report this to the AC_PACKAGE_NAME lists. ##
11034 ## ------------------------------------------ ##
11035 _ASBOX
11036 ) |
11037 sed "s/^/$as_me: WARNING: /" >&2
11038 ;;
11039 esac
11040 echo "$as_me:$LINENO: checking for $ac_header" >&5
11041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 else
11045 eval "$as_ac_Header=\$ac_header_preproc"
11046 fi
11047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11049
11050 fi
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057
11058 done
11059
11060
11061 for ac_header in ncurses/term.h
11062 do
11063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11065 echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 fi
11070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11072 else
11073 # Is the header compilable?
11074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11076 cat >conftest.$ac_ext <<_ACEOF
11077 /* confdefs.h. */
11078 _ACEOF
11079 cat confdefs.h >>conftest.$ac_ext
11080 cat >>conftest.$ac_ext <<_ACEOF
11081 /* end confdefs.h. */
11082 $ac_includes_default
11083 #include <$ac_header>
11084 _ACEOF
11085 rm -f conftest.$ac_objext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087 (eval $ac_compile) 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_header_compiler=yes
11108 else
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112 ac_header_compiler=no
11113 fi
11114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116 echo "${ECHO_T}$ac_header_compiler" >&6
11117
11118 # Is the header present?
11119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 #include <$ac_header>
11128 _ACEOF
11129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } >/dev/null; then
11137 if test -s conftest.err; then
11138 ac_cpp_err=$ac_c_preproc_warn_flag
11139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11140 else
11141 ac_cpp_err=
11142 fi
11143 else
11144 ac_cpp_err=yes
11145 fi
11146 if test -z "$ac_cpp_err"; then
11147 ac_header_preproc=yes
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_header_preproc=no
11153 fi
11154 rm -f conftest.err conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156 echo "${ECHO_T}$ac_header_preproc" >&6
11157
11158 # So? What about this header?
11159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160 yes:no: )
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165 ac_header_preproc=yes
11166 ;;
11167 no:yes:* )
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11180 (
11181 cat <<\_ASBOX
11182 ## ------------------------------------------ ##
11183 ## Report this to the AC_PACKAGE_NAME lists. ##
11184 ## ------------------------------------------ ##
11185 _ASBOX
11186 ) |
11187 sed "s/^/$as_me: WARNING: /" >&2
11188 ;;
11189 esac
11190 echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 eval "$as_ac_Header=\$ac_header_preproc"
11196 fi
11197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11199
11200 fi
11201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204 _ACEOF
11205
11206 fi
11207
11208 done
11209
11210
11211 for ac_header in term.h
11212 do
11213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11214 echo "$as_me:$LINENO: checking for $ac_header" >&5
11215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 else
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h. */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h. */
11225 #if HAVE_CURSES_H
11226 # include <curses.h>
11227 #endif
11228
11229
11230 #include <$ac_header>
11231 _ACEOF
11232 rm -f conftest.$ac_objext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 eval "$as_ac_Header=yes"
11255 else
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11258
11259 eval "$as_ac_Header=no"
11260 fi
11261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262 fi
11263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268 _ACEOF
11269
11270 fi
11271
11272 done
11273
11274
11275 # FIXME: kettenis/20030102: In most cases we include these
11276 # unconditionally, so what's the point in checking these?
11277
11278
11279 for ac_header in ctype.h time.h
11280 do
11281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo "$as_me:$LINENO: checking for $ac_header" >&5
11284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 fi
11288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11290 else
11291 # Is the header compilable?
11292 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 $ac_includes_default
11301 #include <$ac_header>
11302 _ACEOF
11303 rm -f conftest.$ac_objext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11326 else
11327 echo "$as_me: failed program was:" >&5
11328 sed 's/^/| /' conftest.$ac_ext >&5
11329
11330 ac_header_compiler=no
11331 fi
11332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11333 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334 echo "${ECHO_T}$ac_header_compiler" >&6
11335
11336 # Is the header present?
11337 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11339 cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h. */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h. */
11345 #include <$ac_header>
11346 _ACEOF
11347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358 else
11359 ac_cpp_err=
11360 fi
11361 else
11362 ac_cpp_err=yes
11363 fi
11364 if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11366 else
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 ac_header_preproc=no
11371 fi
11372 rm -f conftest.err conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11374 echo "${ECHO_T}$ac_header_preproc" >&6
11375
11376 # So? What about this header?
11377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11378 yes:no: )
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11383 ac_header_preproc=yes
11384 ;;
11385 no:yes:* )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11398 (
11399 cat <<\_ASBOX
11400 ## ------------------------------------------ ##
11401 ## Report this to the AC_PACKAGE_NAME lists. ##
11402 ## ------------------------------------------ ##
11403 _ASBOX
11404 ) |
11405 sed "s/^/$as_me: WARNING: /" >&2
11406 ;;
11407 esac
11408 echo "$as_me:$LINENO: checking for $ac_header" >&5
11409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413 eval "$as_ac_Header=\$ac_header_preproc"
11414 fi
11415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11417
11418 fi
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422 _ACEOF
11423
11424 fi
11425
11426 done
11427
11428
11429 # Create a header we can use portably to get the standard integer types.
11430
11431
11432 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11433
11434 acx_cv_header_stdint=stddef.h
11435 acx_cv_header_stdint_kind="(already complete)"
11436 for i in stdint.h $inttype_headers; do
11437 unset ac_cv_type_uintptr_t
11438 unset ac_cv_type_uintmax_t
11439 unset ac_cv_type_int_least32_t
11440 unset ac_cv_type_int_fast32_t
11441 unset ac_cv_type_uint64_t
11442 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11443 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11444 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11445 if test "${ac_cv_type_uintmax_t+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 cat >conftest.$ac_ext <<_ACEOF
11449 /* confdefs.h. */
11450 _ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <sys/types.h>
11455 #include <$i>
11456
11457 int
11458 main ()
11459 {
11460 if ((uintmax_t *) 0)
11461 return 0;
11462 if (sizeof (uintmax_t))
11463 return 0;
11464 ;
11465 return 0;
11466 }
11467 _ACEOF
11468 rm -f conftest.$ac_objext
11469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
11477 { ac_try='test -z "$ac_c_werror_flag"
11478 || test ! -s conftest.err'
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11490 ac_cv_type_uintmax_t=yes
11491 else
11492 echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495 ac_cv_type_uintmax_t=no
11496 fi
11497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498 fi
11499 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11500 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11501 if test $ac_cv_type_uintmax_t = yes; then
11502 acx_cv_header_stdint=$i
11503 else
11504 continue
11505 fi
11506
11507 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11508 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11509 if test "${ac_cv_type_uintptr_t+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 cat >conftest.$ac_ext <<_ACEOF
11513 /* confdefs.h. */
11514 _ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 #include <sys/types.h>
11519 #include <$i>
11520
11521 int
11522 main ()
11523 {
11524 if ((uintptr_t *) 0)
11525 return 0;
11526 if (sizeof (uintptr_t))
11527 return 0;
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
11541 { ac_try='test -z "$ac_c_werror_flag"
11542 || test ! -s conftest.err'
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
11554 ac_cv_type_uintptr_t=yes
11555 else
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_cv_type_uintptr_t=no
11560 fi
11561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562 fi
11563 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11564 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11565 if test $ac_cv_type_uintptr_t = yes; then
11566 :
11567 else
11568 acx_cv_header_stdint_kind="(mostly complete)"
11569 fi
11570
11571 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11572 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11573 if test "${ac_cv_type_int_least32_t+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576 cat >conftest.$ac_ext <<_ACEOF
11577 /* confdefs.h. */
11578 _ACEOF
11579 cat confdefs.h >>conftest.$ac_ext
11580 cat >>conftest.$ac_ext <<_ACEOF
11581 /* end confdefs.h. */
11582 #include <sys/types.h>
11583 #include <$i>
11584
11585 int
11586 main ()
11587 {
11588 if ((int_least32_t *) 0)
11589 return 0;
11590 if (sizeof (int_least32_t))
11591 return 0;
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag"
11606 || test ! -s conftest.err'
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest.$ac_objext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ac_cv_type_int_least32_t=yes
11619 else
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.$ac_ext >&5
11622
11623 ac_cv_type_int_least32_t=no
11624 fi
11625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11626 fi
11627 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11628 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11629 if test $ac_cv_type_int_least32_t = yes; then
11630 :
11631 else
11632 acx_cv_header_stdint_kind="(mostly complete)"
11633 fi
11634
11635 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11636 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11637 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640 cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h. */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h. */
11646 #include <sys/types.h>
11647 #include <$i>
11648
11649 int
11650 main ()
11651 {
11652 if ((int_fast32_t *) 0)
11653 return 0;
11654 if (sizeof (int_fast32_t))
11655 return 0;
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 rm -f conftest.$ac_objext
11661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
11682 ac_cv_type_int_fast32_t=yes
11683 else
11684 echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687 ac_cv_type_int_fast32_t=no
11688 fi
11689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11690 fi
11691 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11692 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11693 if test $ac_cv_type_int_fast32_t = yes; then
11694 :
11695 else
11696 acx_cv_header_stdint_kind="(mostly complete)"
11697 fi
11698
11699 echo "$as_me:$LINENO: checking for uint64_t" >&5
11700 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11701 if test "${ac_cv_type_uint64_t+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h. */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 #include <sys/types.h>
11711 #include <$i>
11712
11713 int
11714 main ()
11715 {
11716 if ((uint64_t *) 0)
11717 return 0;
11718 if (sizeof (uint64_t))
11719 return 0;
11720 ;
11721 return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest.$ac_objext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
11746 ac_cv_type_uint64_t=yes
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751 ac_cv_type_uint64_t=no
11752 fi
11753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11754 fi
11755 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11756 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11757 if test $ac_cv_type_uint64_t = yes; then
11758 :
11759 else
11760 acx_cv_header_stdint_kind="(lacks uint64_t)"
11761 fi
11762
11763 break
11764 done
11765 if test "$acx_cv_header_stdint" = stddef.h; then
11766 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11767 for i in stdint.h $inttype_headers; do
11768 unset ac_cv_type_uintptr_t
11769 unset ac_cv_type_uint32_t
11770 unset ac_cv_type_uint64_t
11771 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11772 echo "$as_me:$LINENO: checking for uint32_t" >&5
11773 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11774 if test "${ac_cv_type_uint32_t+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777 cat >conftest.$ac_ext <<_ACEOF
11778 /* confdefs.h. */
11779 _ACEOF
11780 cat confdefs.h >>conftest.$ac_ext
11781 cat >>conftest.$ac_ext <<_ACEOF
11782 /* end confdefs.h. */
11783 #include <sys/types.h>
11784 #include <$i>
11785
11786 int
11787 main ()
11788 {
11789 if ((uint32_t *) 0)
11790 return 0;
11791 if (sizeof (uint32_t))
11792 return 0;
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext
11798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11799 (eval $ac_compile) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
11806 { ac_try='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
11819 ac_cv_type_uint32_t=yes
11820 else
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 ac_cv_type_uint32_t=no
11825 fi
11826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11827 fi
11828 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11829 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11830 if test $ac_cv_type_uint32_t = yes; then
11831 acx_cv_header_stdint=$i
11832 else
11833 continue
11834 fi
11835
11836 echo "$as_me:$LINENO: checking for uint64_t" >&5
11837 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11838 if test "${ac_cv_type_uint64_t+set}" = set; then
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841 cat >conftest.$ac_ext <<_ACEOF
11842 /* confdefs.h. */
11843 _ACEOF
11844 cat confdefs.h >>conftest.$ac_ext
11845 cat >>conftest.$ac_ext <<_ACEOF
11846 /* end confdefs.h. */
11847 #include <sys/types.h>
11848 #include <$i>
11849
11850 int
11851 main ()
11852 {
11853 if ((uint64_t *) 0)
11854 return 0;
11855 if (sizeof (uint64_t))
11856 return 0;
11857 ;
11858 return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_type_uint64_t=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888 ac_cv_type_uint64_t=no
11889 fi
11890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891 fi
11892 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11893 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11894
11895 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11896 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11897 if test "${ac_cv_type_uintptr_t+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11906 #include <sys/types.h>
11907 #include <$i>
11908
11909 int
11910 main ()
11911 {
11912 if ((uintptr_t *) 0)
11913 return 0;
11914 if (sizeof (uintptr_t))
11915 return 0;
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag"
11930 || test ! -s conftest.err'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest.$ac_objext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_type_uintptr_t=yes
11943 else
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947 ac_cv_type_uintptr_t=no
11948 fi
11949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11950 fi
11951 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11952 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11953
11954 break
11955 done
11956 fi
11957 if test "$acx_cv_header_stdint" = stddef.h; then
11958 acx_cv_header_stdint_kind="(u_intXX_t style)"
11959 for i in sys/types.h $inttype_headers; do
11960 unset ac_cv_type_u_int32_t
11961 unset ac_cv_type_u_int64_t
11962 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
11963 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11964 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11965 if test "${ac_cv_type_u_int32_t+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 else
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 #include <sys/types.h>
11975 #include <$i>
11976
11977 int
11978 main ()
11979 {
11980 if ((u_int32_t *) 0)
11981 return 0;
11982 if (sizeof (u_int32_t))
11983 return 0;
11984 ;
11985 return 0;
11986 }
11987 _ACEOF
11988 rm -f conftest.$ac_objext
11989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -z "$ac_c_werror_flag"
11998 || test ! -s conftest.err'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
12010 ac_cv_type_u_int32_t=yes
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 ac_cv_type_u_int32_t=no
12016 fi
12017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12018 fi
12019 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12020 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12021 if test $ac_cv_type_u_int32_t = yes; then
12022 acx_cv_header_stdint=$i
12023 else
12024 continue
12025 fi
12026
12027 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12028 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12029 if test "${ac_cv_type_u_int64_t+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 else
12032 cat >conftest.$ac_ext <<_ACEOF
12033 /* confdefs.h. */
12034 _ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 #include <sys/types.h>
12039 #include <$i>
12040
12041 int
12042 main ()
12043 {
12044 if ((u_int64_t *) 0)
12045 return 0;
12046 if (sizeof (u_int64_t))
12047 return 0;
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
12061 { ac_try='test -z "$ac_c_werror_flag"
12062 || test ! -s conftest.err'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_cv_type_u_int64_t=yes
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12078
12079 ac_cv_type_u_int64_t=no
12080 fi
12081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082 fi
12083 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12084 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12085
12086 break
12087 done
12088 fi
12089 if test "$acx_cv_header_stdint" = stddef.h; then
12090 acx_cv_header_stdint_kind="(using manual detection)"
12091 fi
12092
12093 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12094 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12095 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12096 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12097 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12098
12099 # ----------------- Summarize what we found so far
12100
12101 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12102 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12103
12104 case `$as_basename gdb_stdint.h ||
12105 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12106 Xgdb_stdint.h : 'X\(//\)$' \| \
12107 Xgdb_stdint.h : 'X\(/\)$' \| \
12108 . : '\(.\)' 2>/dev/null ||
12109 echo X/gdb_stdint.h |
12110 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12111 /^X\/\(\/\/\)$/{ s//\1/; q; }
12112 /^X\/\(\/\).*/{ s//\1/; q; }
12113 s/.*/./; q'` in
12114 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12115 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12116 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12117 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12118 *) ;;
12119 esac
12120
12121 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12122 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12123
12124 # ----------------- done included file, check C basic types --------
12125
12126 # Lacking an uintptr_t? Test size of void *
12127 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12128 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12129 echo $ECHO_N "checking for void *... $ECHO_C" >&6
12130 if test "${ac_cv_type_void_p+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 $ac_includes_default
12140 int
12141 main ()
12142 {
12143 if ((void * *) 0)
12144 return 0;
12145 if (sizeof (void *))
12146 return 0;
12147 ;
12148 return 0;
12149 }
12150 _ACEOF
12151 rm -f conftest.$ac_objext
12152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
12167 { ac_try='test -s conftest.$ac_objext'
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_type_void_p=yes
12174 else
12175 echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178 ac_cv_type_void_p=no
12179 fi
12180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12181 fi
12182 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12183 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12184
12185 echo "$as_me:$LINENO: checking size of void *" >&5
12186 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12187 if test "${ac_cv_sizeof_void_p+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 if test "$ac_cv_type_void_p" = yes; then
12191 # The cast to unsigned long works around a bug in the HP C Compiler
12192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12194 # This bug is HP SR number 8606223364.
12195 if test "$cross_compiling" = yes; then
12196 # Depending upon the size, compute the lo and hi bounds.
12197 cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h. */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 $ac_includes_default
12204 int
12205 main ()
12206 {
12207 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12208 test_array [0] = 0
12209
12210 ;
12211 return 0;
12212 }
12213 _ACEOF
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -z "$ac_c_werror_flag"
12224 || test ! -s conftest.err'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
12236 ac_lo=0 ac_mid=0
12237 while :; do
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244 $ac_includes_default
12245 int
12246 main ()
12247 {
12248 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12249 test_array [0] = 0
12250
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12257 (eval $ac_compile) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest.$ac_objext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12277 ac_hi=$ac_mid; break
12278 else
12279 echo "$as_me: failed program was:" >&5
12280 sed 's/^/| /' conftest.$ac_ext >&5
12281
12282 ac_lo=`expr $ac_mid + 1`
12283 if test $ac_lo -le $ac_mid; then
12284 ac_lo= ac_hi=
12285 break
12286 fi
12287 ac_mid=`expr 2 '*' $ac_mid + 1`
12288 fi
12289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290 done
12291 else
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 $ac_includes_default
12302 int
12303 main ()
12304 {
12305 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12306 test_array [0] = 0
12307
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
12321 { ac_try='test -z "$ac_c_werror_flag"
12322 || test ! -s conftest.err'
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
12328 { ac_try='test -s conftest.$ac_objext'
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; }; then
12334 ac_hi=-1 ac_mid=-1
12335 while :; do
12336 cat >conftest.$ac_ext <<_ACEOF
12337 /* confdefs.h. */
12338 _ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 $ac_includes_default
12343 int
12344 main ()
12345 {
12346 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12347 test_array [0] = 0
12348
12349 ;
12350 return 0;
12351 }
12352 _ACEOF
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
12375 ac_lo=$ac_mid; break
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 ac_hi=`expr '(' $ac_mid ')' - 1`
12381 if test $ac_mid -le $ac_hi; then
12382 ac_lo= ac_hi=
12383 break
12384 fi
12385 ac_mid=`expr 2 '*' $ac_mid`
12386 fi
12387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388 done
12389 else
12390 echo "$as_me: failed program was:" >&5
12391 sed 's/^/| /' conftest.$ac_ext >&5
12392
12393 ac_lo= ac_hi=
12394 fi
12395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12396 fi
12397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12398 # Binary search between lo and hi bounds.
12399 while test "x$ac_lo" != "x$ac_hi"; do
12400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12401 cat >conftest.$ac_ext <<_ACEOF
12402 /* confdefs.h. */
12403 _ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 $ac_includes_default
12408 int
12409 main ()
12410 {
12411 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12412 test_array [0] = 0
12413
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 rm -f conftest.$ac_objext
12419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_hi=$ac_mid
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_lo=`expr '(' $ac_mid ')' + 1`
12446 fi
12447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448 done
12449 case $ac_lo in
12450 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12451 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12452 See \`config.log' for more details." >&5
12453 echo "$as_me: error: cannot compute sizeof (void *), 77
12454 See \`config.log' for more details." >&2;}
12455 { (exit 1); exit 1; }; } ;;
12456 esac
12457 else
12458 if test "$cross_compiling" = yes; then
12459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12460 See \`config.log' for more details." >&5
12461 echo "$as_me: error: cannot run test program while cross compiling
12462 See \`config.log' for more details." >&2;}
12463 { (exit 1); exit 1; }; }
12464 else
12465 cat >conftest.$ac_ext <<_ACEOF
12466 /* confdefs.h. */
12467 _ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 $ac_includes_default
12472 long longval () { return (long) (sizeof (void *)); }
12473 unsigned long ulongval () { return (long) (sizeof (void *)); }
12474 #include <stdio.h>
12475 #include <stdlib.h>
12476 int
12477 main ()
12478 {
12479
12480 FILE *f = fopen ("conftest.val", "w");
12481 if (! f)
12482 exit (1);
12483 if (((long) (sizeof (void *))) < 0)
12484 {
12485 long i = longval ();
12486 if (i != ((long) (sizeof (void *))))
12487 exit (1);
12488 fprintf (f, "%ld\n", i);
12489 }
12490 else
12491 {
12492 unsigned long i = ulongval ();
12493 if (i != ((long) (sizeof (void *))))
12494 exit (1);
12495 fprintf (f, "%lu\n", i);
12496 }
12497 exit (ferror (f) || fclose (f) != 0);
12498
12499 ;
12500 return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest$ac_exeext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_sizeof_void_p=`cat conftest.val`
12515 else
12516 echo "$as_me: program exited with status $ac_status" >&5
12517 echo "$as_me: failed program was:" >&5
12518 sed 's/^/| /' conftest.$ac_ext >&5
12519
12520 ( exit $ac_status )
12521 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12522 See \`config.log' for more details." >&5
12523 echo "$as_me: error: cannot compute sizeof (void *), 77
12524 See \`config.log' for more details." >&2;}
12525 { (exit 1); exit 1; }; }
12526 fi
12527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12528 fi
12529 fi
12530 rm -f conftest.val
12531 else
12532 ac_cv_sizeof_void_p=0
12533 fi
12534 fi
12535 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12536 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12537 cat >>confdefs.h <<_ACEOF
12538 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12539 _ACEOF
12540
12541 ;;
12542 esac
12543
12544 # Lacking an uint64_t? Test size of long
12545 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12546 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12547 echo $ECHO_N "checking for long... $ECHO_C" >&6
12548 if test "${ac_cv_type_long+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551 cat >conftest.$ac_ext <<_ACEOF
12552 /* confdefs.h. */
12553 _ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12557 $ac_includes_default
12558 int
12559 main ()
12560 {
12561 if ((long *) 0)
12562 return 0;
12563 if (sizeof (long))
12564 return 0;
12565 ;
12566 return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 ac_cv_type_long=yes
12592 else
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12595
12596 ac_cv_type_long=no
12597 fi
12598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12599 fi
12600 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12601 echo "${ECHO_T}$ac_cv_type_long" >&6
12602
12603 echo "$as_me:$LINENO: checking size of long" >&5
12604 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12605 if test "${ac_cv_sizeof_long+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 else
12608 if test "$ac_cv_type_long" = yes; then
12609 # The cast to unsigned long works around a bug in the HP C Compiler
12610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612 # This bug is HP SR number 8606223364.
12613 if test "$cross_compiling" = yes; then
12614 # Depending upon the size, compute the lo and hi bounds.
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 int
12623 main ()
12624 {
12625 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12626 test_array [0] = 0
12627
12628 ;
12629 return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_lo=0 ac_mid=0
12655 while :; do
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 int
12664 main ()
12665 {
12666 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12667 test_array [0] = 0
12668
12669 ;
12670 return 0;
12671 }
12672 _ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -z "$ac_c_werror_flag"
12683 || test ! -s conftest.err'
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_hi=$ac_mid; break
12696 else
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12699
12700 ac_lo=`expr $ac_mid + 1`
12701 if test $ac_lo -le $ac_mid; then
12702 ac_lo= ac_hi=
12703 break
12704 fi
12705 ac_mid=`expr 2 '*' $ac_mid + 1`
12706 fi
12707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708 done
12709 else
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h. */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12719 $ac_includes_default
12720 int
12721 main ()
12722 {
12723 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12724 test_array [0] = 0
12725
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 rm -f conftest.$ac_objext
12731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -z "$ac_c_werror_flag"
12740 || test ! -s conftest.err'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; }; then
12752 ac_hi=-1 ac_mid=-1
12753 while :; do
12754 cat >conftest.$ac_ext <<_ACEOF
12755 /* confdefs.h. */
12756 _ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12760 $ac_includes_default
12761 int
12762 main ()
12763 {
12764 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12765 test_array [0] = 0
12766
12767 ;
12768 return 0;
12769 }
12770 _ACEOF
12771 rm -f conftest.$ac_objext
12772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest.$ac_objext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_lo=$ac_mid; break
12794 else
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12797
12798 ac_hi=`expr '(' $ac_mid ')' - 1`
12799 if test $ac_mid -le $ac_hi; then
12800 ac_lo= ac_hi=
12801 break
12802 fi
12803 ac_mid=`expr 2 '*' $ac_mid`
12804 fi
12805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806 done
12807 else
12808 echo "$as_me: failed program was:" >&5
12809 sed 's/^/| /' conftest.$ac_ext >&5
12810
12811 ac_lo= ac_hi=
12812 fi
12813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814 fi
12815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816 # Binary search between lo and hi bounds.
12817 while test "x$ac_lo" != "x$ac_hi"; do
12818 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12819 cat >conftest.$ac_ext <<_ACEOF
12820 /* confdefs.h. */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 $ac_includes_default
12826 int
12827 main ()
12828 {
12829 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12830 test_array [0] = 0
12831
12832 ;
12833 return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_hi=$ac_mid
12859 else
12860 echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ac_lo=`expr '(' $ac_mid ')' + 1`
12864 fi
12865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866 done
12867 case $ac_lo in
12868 ?*) ac_cv_sizeof_long=$ac_lo;;
12869 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12870 See \`config.log' for more details." >&5
12871 echo "$as_me: error: cannot compute sizeof (long), 77
12872 See \`config.log' for more details." >&2;}
12873 { (exit 1); exit 1; }; } ;;
12874 esac
12875 else
12876 if test "$cross_compiling" = yes; then
12877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12878 See \`config.log' for more details." >&5
12879 echo "$as_me: error: cannot run test program while cross compiling
12880 See \`config.log' for more details." >&2;}
12881 { (exit 1); exit 1; }; }
12882 else
12883 cat >conftest.$ac_ext <<_ACEOF
12884 /* confdefs.h. */
12885 _ACEOF
12886 cat confdefs.h >>conftest.$ac_ext
12887 cat >>conftest.$ac_ext <<_ACEOF
12888 /* end confdefs.h. */
12889 $ac_includes_default
12890 long longval () { return (long) (sizeof (long)); }
12891 unsigned long ulongval () { return (long) (sizeof (long)); }
12892 #include <stdio.h>
12893 #include <stdlib.h>
12894 int
12895 main ()
12896 {
12897
12898 FILE *f = fopen ("conftest.val", "w");
12899 if (! f)
12900 exit (1);
12901 if (((long) (sizeof (long))) < 0)
12902 {
12903 long i = longval ();
12904 if (i != ((long) (sizeof (long))))
12905 exit (1);
12906 fprintf (f, "%ld\n", i);
12907 }
12908 else
12909 {
12910 unsigned long i = ulongval ();
12911 if (i != ((long) (sizeof (long))))
12912 exit (1);
12913 fprintf (f, "%lu\n", i);
12914 }
12915 exit (ferror (f) || fclose (f) != 0);
12916
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 rm -f conftest$ac_exeext
12922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923 (eval $ac_link) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_sizeof_long=`cat conftest.val`
12933 else
12934 echo "$as_me: program exited with status $ac_status" >&5
12935 echo "$as_me: failed program was:" >&5
12936 sed 's/^/| /' conftest.$ac_ext >&5
12937
12938 ( exit $ac_status )
12939 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12940 See \`config.log' for more details." >&5
12941 echo "$as_me: error: cannot compute sizeof (long), 77
12942 See \`config.log' for more details." >&2;}
12943 { (exit 1); exit 1; }; }
12944 fi
12945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12946 fi
12947 fi
12948 rm -f conftest.val
12949 else
12950 ac_cv_sizeof_long=0
12951 fi
12952 fi
12953 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12954 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12955 cat >>confdefs.h <<_ACEOF
12956 #define SIZEOF_LONG $ac_cv_sizeof_long
12957 _ACEOF
12958
12959 ;;
12960 esac
12961
12962 if test $acx_cv_header_stdint = stddef.h; then
12963 # Lacking a good header? Test size of everything and deduce all types.
12964 echo "$as_me:$LINENO: checking for int" >&5
12965 echo $ECHO_N "checking for int... $ECHO_C" >&6
12966 if test "${ac_cv_type_int+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 else
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h. */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h. */
12975 $ac_includes_default
12976 int
12977 main ()
12978 {
12979 if ((int *) 0)
12980 return 0;
12981 if (sizeof (int))
12982 return 0;
12983 ;
12984 return 0;
12985 }
12986 _ACEOF
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_type_int=yes
13010 else
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 ac_cv_type_int=no
13015 fi
13016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017 fi
13018 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13019 echo "${ECHO_T}$ac_cv_type_int" >&6
13020
13021 echo "$as_me:$LINENO: checking size of int" >&5
13022 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13023 if test "${ac_cv_sizeof_int+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 else
13026 if test "$ac_cv_type_int" = yes; then
13027 # The cast to unsigned long works around a bug in the HP C Compiler
13028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13030 # This bug is HP SR number 8606223364.
13031 if test "$cross_compiling" = yes; then
13032 # Depending upon the size, compute the lo and hi bounds.
13033 cat >conftest.$ac_ext <<_ACEOF
13034 /* confdefs.h. */
13035 _ACEOF
13036 cat confdefs.h >>conftest.$ac_ext
13037 cat >>conftest.$ac_ext <<_ACEOF
13038 /* end confdefs.h. */
13039 $ac_includes_default
13040 int
13041 main ()
13042 {
13043 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13044 test_array [0] = 0
13045
13046 ;
13047 return 0;
13048 }
13049 _ACEOF
13050 rm -f conftest.$ac_objext
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -z "$ac_c_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_lo=0 ac_mid=0
13073 while :; do
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h. */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 int
13082 main ()
13083 {
13084 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13085 test_array [0] = 0
13086
13087 ;
13088 return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_hi=$ac_mid; break
13114 else
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 ac_lo=`expr $ac_mid + 1`
13119 if test $ac_lo -le $ac_mid; then
13120 ac_lo= ac_hi=
13121 break
13122 fi
13123 ac_mid=`expr 2 '*' $ac_mid + 1`
13124 fi
13125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 done
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 cat >conftest.$ac_ext <<_ACEOF
13132 /* confdefs.h. */
13133 _ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 $ac_includes_default
13138 int
13139 main ()
13140 {
13141 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13142 test_array [0] = 0
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 rm -f conftest.$ac_objext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
13157 { ac_try='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; }; then
13170 ac_hi=-1 ac_mid=-1
13171 while :; do
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 $ac_includes_default
13179 int
13180 main ()
13181 {
13182 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13183 test_array [0] = 0
13184
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 rm -f conftest.$ac_objext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13191 (eval $ac_compile) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest.$ac_objext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_lo=$ac_mid; break
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 ac_hi=`expr '(' $ac_mid ')' - 1`
13217 if test $ac_mid -le $ac_hi; then
13218 ac_lo= ac_hi=
13219 break
13220 fi
13221 ac_mid=`expr 2 '*' $ac_mid`
13222 fi
13223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224 done
13225 else
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.$ac_ext >&5
13228
13229 ac_lo= ac_hi=
13230 fi
13231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232 fi
13233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234 # Binary search between lo and hi bounds.
13235 while test "x$ac_lo" != "x$ac_hi"; do
13236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13237 cat >conftest.$ac_ext <<_ACEOF
13238 /* confdefs.h. */
13239 _ACEOF
13240 cat confdefs.h >>conftest.$ac_ext
13241 cat >>conftest.$ac_ext <<_ACEOF
13242 /* end confdefs.h. */
13243 $ac_includes_default
13244 int
13245 main ()
13246 {
13247 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13248 test_array [0] = 0
13249
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 rm -f conftest.$ac_objext
13255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
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); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_hi=$ac_mid
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_lo=`expr '(' $ac_mid ')' + 1`
13282 fi
13283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 done
13285 case $ac_lo in
13286 ?*) ac_cv_sizeof_int=$ac_lo;;
13287 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13288 See \`config.log' for more details." >&5
13289 echo "$as_me: error: cannot compute sizeof (int), 77
13290 See \`config.log' for more details." >&2;}
13291 { (exit 1); exit 1; }; } ;;
13292 esac
13293 else
13294 if test "$cross_compiling" = yes; then
13295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13296 See \`config.log' for more details." >&5
13297 echo "$as_me: error: cannot run test program while cross compiling
13298 See \`config.log' for more details." >&2;}
13299 { (exit 1); exit 1; }; }
13300 else
13301 cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h. */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 $ac_includes_default
13308 long longval () { return (long) (sizeof (int)); }
13309 unsigned long ulongval () { return (long) (sizeof (int)); }
13310 #include <stdio.h>
13311 #include <stdlib.h>
13312 int
13313 main ()
13314 {
13315
13316 FILE *f = fopen ("conftest.val", "w");
13317 if (! f)
13318 exit (1);
13319 if (((long) (sizeof (int))) < 0)
13320 {
13321 long i = longval ();
13322 if (i != ((long) (sizeof (int))))
13323 exit (1);
13324 fprintf (f, "%ld\n", i);
13325 }
13326 else
13327 {
13328 unsigned long i = ulongval ();
13329 if (i != ((long) (sizeof (int))))
13330 exit (1);
13331 fprintf (f, "%lu\n", i);
13332 }
13333 exit (ferror (f) || fclose (f) != 0);
13334
13335 ;
13336 return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest$ac_exeext
13340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 ac_cv_sizeof_int=`cat conftest.val`
13351 else
13352 echo "$as_me: program exited with status $ac_status" >&5
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 ( exit $ac_status )
13357 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13358 See \`config.log' for more details." >&5
13359 echo "$as_me: error: cannot compute sizeof (int), 77
13360 See \`config.log' for more details." >&2;}
13361 { (exit 1); exit 1; }; }
13362 fi
13363 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13364 fi
13365 fi
13366 rm -f conftest.val
13367 else
13368 ac_cv_sizeof_int=0
13369 fi
13370 fi
13371 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13372 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13373 cat >>confdefs.h <<_ACEOF
13374 #define SIZEOF_INT $ac_cv_sizeof_int
13375 _ACEOF
13376
13377
13378 echo "$as_me:$LINENO: checking for short" >&5
13379 echo $ECHO_N "checking for short... $ECHO_C" >&6
13380 if test "${ac_cv_type_short+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h. */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 $ac_includes_default
13390 int
13391 main ()
13392 {
13393 if ((short *) 0)
13394 return 0;
13395 if (sizeof (short))
13396 return 0;
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 rm -f conftest.$ac_objext
13402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403 (eval $ac_compile) 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -z "$ac_c_werror_flag"
13411 || test ! -s conftest.err'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_type_short=yes
13424 else
13425 echo "$as_me: failed program was:" >&5
13426 sed 's/^/| /' conftest.$ac_ext >&5
13427
13428 ac_cv_type_short=no
13429 fi
13430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13431 fi
13432 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13433 echo "${ECHO_T}$ac_cv_type_short" >&6
13434
13435 echo "$as_me:$LINENO: checking size of short" >&5
13436 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13437 if test "${ac_cv_sizeof_short+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 else
13440 if test "$ac_cv_type_short" = yes; then
13441 # The cast to unsigned long works around a bug in the HP C Compiler
13442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13444 # This bug is HP SR number 8606223364.
13445 if test "$cross_compiling" = yes; then
13446 # Depending upon the size, compute the lo and hi bounds.
13447 cat >conftest.$ac_ext <<_ACEOF
13448 /* confdefs.h. */
13449 _ACEOF
13450 cat confdefs.h >>conftest.$ac_ext
13451 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13453 $ac_includes_default
13454 int
13455 main ()
13456 {
13457 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13458 test_array [0] = 0
13459
13460 ;
13461 return 0;
13462 }
13463 _ACEOF
13464 rm -f conftest.$ac_objext
13465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466 (eval $ac_compile) 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
13473 { ac_try='test -z "$ac_c_werror_flag"
13474 || test ! -s conftest.err'
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_lo=0 ac_mid=0
13487 while :; do
13488 cat >conftest.$ac_ext <<_ACEOF
13489 /* confdefs.h. */
13490 _ACEOF
13491 cat confdefs.h >>conftest.$ac_ext
13492 cat >>conftest.$ac_ext <<_ACEOF
13493 /* end confdefs.h. */
13494 $ac_includes_default
13495 int
13496 main ()
13497 {
13498 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13499 test_array [0] = 0
13500
13501 ;
13502 return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext
13506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_hi=$ac_mid; break
13528 else
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13531
13532 ac_lo=`expr $ac_mid + 1`
13533 if test $ac_lo -le $ac_mid; then
13534 ac_lo= ac_hi=
13535 break
13536 fi
13537 ac_mid=`expr 2 '*' $ac_mid + 1`
13538 fi
13539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13540 done
13541 else
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h. */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 $ac_includes_default
13552 int
13553 main ()
13554 {
13555 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13556 test_array [0] = 0
13557
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest.$ac_objext
13563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564 (eval $ac_compile) 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest.$ac_objext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_hi=-1 ac_mid=-1
13585 while :; do
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 $ac_includes_default
13593 int
13594 main ()
13595 {
13596 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13597 test_array [0] = 0
13598
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_lo=$ac_mid; break
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_hi=`expr '(' $ac_mid ')' - 1`
13631 if test $ac_mid -le $ac_hi; then
13632 ac_lo= ac_hi=
13633 break
13634 fi
13635 ac_mid=`expr 2 '*' $ac_mid`
13636 fi
13637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 done
13639 else
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_lo= ac_hi=
13644 fi
13645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13646 fi
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648 # Binary search between lo and hi bounds.
13649 while test "x$ac_lo" != "x$ac_hi"; do
13650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h. */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 $ac_includes_default
13658 int
13659 main ()
13660 {
13661 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13662 test_array [0] = 0
13663
13664 ;
13665 return 0;
13666 }
13667 _ACEOF
13668 rm -f conftest.$ac_objext
13669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
13677 { ac_try='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_hi=$ac_mid
13691 else
13692 echo "$as_me: failed program was:" >&5
13693 sed 's/^/| /' conftest.$ac_ext >&5
13694
13695 ac_lo=`expr '(' $ac_mid ')' + 1`
13696 fi
13697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698 done
13699 case $ac_lo in
13700 ?*) ac_cv_sizeof_short=$ac_lo;;
13701 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13702 See \`config.log' for more details." >&5
13703 echo "$as_me: error: cannot compute sizeof (short), 77
13704 See \`config.log' for more details." >&2;}
13705 { (exit 1); exit 1; }; } ;;
13706 esac
13707 else
13708 if test "$cross_compiling" = yes; then
13709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13710 See \`config.log' for more details." >&5
13711 echo "$as_me: error: cannot run test program while cross compiling
13712 See \`config.log' for more details." >&2;}
13713 { (exit 1); exit 1; }; }
13714 else
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13722 long longval () { return (long) (sizeof (short)); }
13723 unsigned long ulongval () { return (long) (sizeof (short)); }
13724 #include <stdio.h>
13725 #include <stdlib.h>
13726 int
13727 main ()
13728 {
13729
13730 FILE *f = fopen ("conftest.val", "w");
13731 if (! f)
13732 exit (1);
13733 if (((long) (sizeof (short))) < 0)
13734 {
13735 long i = longval ();
13736 if (i != ((long) (sizeof (short))))
13737 exit (1);
13738 fprintf (f, "%ld\n", i);
13739 }
13740 else
13741 {
13742 unsigned long i = ulongval ();
13743 if (i != ((long) (sizeof (short))))
13744 exit (1);
13745 fprintf (f, "%lu\n", i);
13746 }
13747 exit (ferror (f) || fclose (f) != 0);
13748
13749 ;
13750 return 0;
13751 }
13752 _ACEOF
13753 rm -f conftest$ac_exeext
13754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755 (eval $ac_link) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_sizeof_short=`cat conftest.val`
13765 else
13766 echo "$as_me: program exited with status $ac_status" >&5
13767 echo "$as_me: failed program was:" >&5
13768 sed 's/^/| /' conftest.$ac_ext >&5
13769
13770 ( exit $ac_status )
13771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13772 See \`config.log' for more details." >&5
13773 echo "$as_me: error: cannot compute sizeof (short), 77
13774 See \`config.log' for more details." >&2;}
13775 { (exit 1); exit 1; }; }
13776 fi
13777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13778 fi
13779 fi
13780 rm -f conftest.val
13781 else
13782 ac_cv_sizeof_short=0
13783 fi
13784 fi
13785 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13786 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13787 cat >>confdefs.h <<_ACEOF
13788 #define SIZEOF_SHORT $ac_cv_sizeof_short
13789 _ACEOF
13790
13791
13792 echo "$as_me:$LINENO: checking for char" >&5
13793 echo $ECHO_N "checking for char... $ECHO_C" >&6
13794 if test "${ac_cv_type_char+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 else
13797 cat >conftest.$ac_ext <<_ACEOF
13798 /* confdefs.h. */
13799 _ACEOF
13800 cat confdefs.h >>conftest.$ac_ext
13801 cat >>conftest.$ac_ext <<_ACEOF
13802 /* end confdefs.h. */
13803 $ac_includes_default
13804 int
13805 main ()
13806 {
13807 if ((char *) 0)
13808 return 0;
13809 if (sizeof (char))
13810 return 0;
13811 ;
13812 return 0;
13813 }
13814 _ACEOF
13815 rm -f conftest.$ac_objext
13816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>conftest.er1
13818 ac_status=$?
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag"
13825 || test ! -s conftest.err'
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_type_char=yes
13838 else
13839 echo "$as_me: failed program was:" >&5
13840 sed 's/^/| /' conftest.$ac_ext >&5
13841
13842 ac_cv_type_char=no
13843 fi
13844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13847 echo "${ECHO_T}$ac_cv_type_char" >&6
13848
13849 echo "$as_me:$LINENO: checking size of char" >&5
13850 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13851 if test "${ac_cv_sizeof_char+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854 if test "$ac_cv_type_char" = yes; then
13855 # The cast to unsigned long works around a bug in the HP C Compiler
13856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13858 # This bug is HP SR number 8606223364.
13859 if test "$cross_compiling" = yes; then
13860 # Depending upon the size, compute the lo and hi bounds.
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 $ac_includes_default
13868 int
13869 main ()
13870 {
13871 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13872 test_array [0] = 0
13873
13874 ;
13875 return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_lo=0 ac_mid=0
13901 while :; do
13902 cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h. */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 $ac_includes_default
13909 int
13910 main ()
13911 {
13912 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13913 test_array [0] = 0
13914
13915 ;
13916 return 0;
13917 }
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13921 (eval $ac_compile) 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag"
13929 || test ! -s conftest.err'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_hi=$ac_mid; break
13942 else
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13945
13946 ac_lo=`expr $ac_mid + 1`
13947 if test $ac_lo -le $ac_mid; then
13948 ac_lo= ac_hi=
13949 break
13950 fi
13951 ac_mid=`expr 2 '*' $ac_mid + 1`
13952 fi
13953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 done
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h. */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 $ac_includes_default
13966 int
13967 main ()
13968 {
13969 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13970 test_array [0] = 0
13971
13972 ;
13973 return 0;
13974 }
13975 _ACEOF
13976 rm -f conftest.$ac_objext
13977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13978 (eval $ac_compile) 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag"
13986 || test ! -s conftest.err'
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } &&
13992 { ac_try='test -s conftest.$ac_objext'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; }; then
13998 ac_hi=-1 ac_mid=-1
13999 while :; do
14000 cat >conftest.$ac_ext <<_ACEOF
14001 /* confdefs.h. */
14002 _ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 $ac_includes_default
14007 int
14008 main ()
14009 {
14010 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14011 test_array [0] = 0
14012
14013 ;
14014 return 0;
14015 }
14016 _ACEOF
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_lo=$ac_mid; break
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ac_hi=`expr '(' $ac_mid ')' - 1`
14045 if test $ac_mid -le $ac_hi; then
14046 ac_lo= ac_hi=
14047 break
14048 fi
14049 ac_mid=`expr 2 '*' $ac_mid`
14050 fi
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 done
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 ac_lo= ac_hi=
14058 fi
14059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14060 fi
14061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14062 # Binary search between lo and hi bounds.
14063 while test "x$ac_lo" != "x$ac_hi"; do
14064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14065 cat >conftest.$ac_ext <<_ACEOF
14066 /* confdefs.h. */
14067 _ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14071 $ac_includes_default
14072 int
14073 main ()
14074 {
14075 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14076 test_array [0] = 0
14077
14078 ;
14079 return 0;
14080 }
14081 _ACEOF
14082 rm -f conftest.$ac_objext
14083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -z "$ac_c_werror_flag"
14092 || test ! -s conftest.err'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest.$ac_objext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_hi=$ac_mid
14105 else
14106 echo "$as_me: failed program was:" >&5
14107 sed 's/^/| /' conftest.$ac_ext >&5
14108
14109 ac_lo=`expr '(' $ac_mid ')' + 1`
14110 fi
14111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14112 done
14113 case $ac_lo in
14114 ?*) ac_cv_sizeof_char=$ac_lo;;
14115 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14116 See \`config.log' for more details." >&5
14117 echo "$as_me: error: cannot compute sizeof (char), 77
14118 See \`config.log' for more details." >&2;}
14119 { (exit 1); exit 1; }; } ;;
14120 esac
14121 else
14122 if test "$cross_compiling" = yes; then
14123 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14124 See \`config.log' for more details." >&5
14125 echo "$as_me: error: cannot run test program while cross compiling
14126 See \`config.log' for more details." >&2;}
14127 { (exit 1); exit 1; }; }
14128 else
14129 cat >conftest.$ac_ext <<_ACEOF
14130 /* confdefs.h. */
14131 _ACEOF
14132 cat confdefs.h >>conftest.$ac_ext
14133 cat >>conftest.$ac_ext <<_ACEOF
14134 /* end confdefs.h. */
14135 $ac_includes_default
14136 long longval () { return (long) (sizeof (char)); }
14137 unsigned long ulongval () { return (long) (sizeof (char)); }
14138 #include <stdio.h>
14139 #include <stdlib.h>
14140 int
14141 main ()
14142 {
14143
14144 FILE *f = fopen ("conftest.val", "w");
14145 if (! f)
14146 exit (1);
14147 if (((long) (sizeof (char))) < 0)
14148 {
14149 long i = longval ();
14150 if (i != ((long) (sizeof (char))))
14151 exit (1);
14152 fprintf (f, "%ld\n", i);
14153 }
14154 else
14155 {
14156 unsigned long i = ulongval ();
14157 if (i != ((long) (sizeof (char))))
14158 exit (1);
14159 fprintf (f, "%lu\n", i);
14160 }
14161 exit (ferror (f) || fclose (f) != 0);
14162
14163 ;
14164 return 0;
14165 }
14166 _ACEOF
14167 rm -f conftest$ac_exeext
14168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_sizeof_char=`cat conftest.val`
14179 else
14180 echo "$as_me: program exited with status $ac_status" >&5
14181 echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 ( exit $ac_status )
14185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14186 See \`config.log' for more details." >&5
14187 echo "$as_me: error: cannot compute sizeof (char), 77
14188 See \`config.log' for more details." >&2;}
14189 { (exit 1); exit 1; }; }
14190 fi
14191 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14192 fi
14193 fi
14194 rm -f conftest.val
14195 else
14196 ac_cv_sizeof_char=0
14197 fi
14198 fi
14199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14200 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14201 cat >>confdefs.h <<_ACEOF
14202 #define SIZEOF_CHAR $ac_cv_sizeof_char
14203 _ACEOF
14204
14205
14206
14207 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14208 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14209 case "$ac_cv_sizeof_char" in
14210 1) acx_cv_type_int8_t=char ;;
14211 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14212 echo "$as_me: error: no 8-bit type" >&2;}
14213 { (exit please report a bug); exit please report a bug; }; }
14214 esac
14215 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14216 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14217
14218 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14219 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14220 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14221 2:*) acx_cv_type_int16_t=int ;;
14222 *:2) acx_cv_type_int16_t=short ;;
14223 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14224 echo "$as_me: error: no 16-bit type" >&2;}
14225 { (exit please report a bug); exit please report a bug; }; }
14226 esac
14227 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14228 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14229
14230 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14231 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14232 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14233 4:*) acx_cv_type_int32_t=int ;;
14234 *:4) acx_cv_type_int32_t=long ;;
14235 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14236 echo "$as_me: error: no 32-bit type" >&2;}
14237 { (exit please report a bug); exit please report a bug; }; }
14238 esac
14239 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14240 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14241 fi
14242
14243 # These tests are here to make the output prettier
14244
14245 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14246 case "$ac_cv_sizeof_long" in
14247 8) acx_cv_type_int64_t=long ;;
14248 esac
14249 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14250 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14251 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14252 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14253 fi
14254
14255 # Now we can use the above types
14256
14257 if test "$ac_cv_type_uintptr_t" != yes; then
14258 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14259 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14260 case $ac_cv_sizeof_void_p in
14261 2) acx_cv_type_intptr_t=int16_t ;;
14262 4) acx_cv_type_intptr_t=int32_t ;;
14263 8) acx_cv_type_intptr_t=int64_t ;;
14264 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14265 echo "$as_me: error: no equivalent for intptr_t" >&2;}
14266 { (exit please report a bug); exit please report a bug; }; }
14267 esac
14268 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14269 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14270 fi
14271
14272 # ----------------- done all checks, emit header -------------
14273 ac_config_commands="$ac_config_commands gdb_stdint.h"
14274
14275
14276
14277
14278 # ------------------------- #
14279 # Checks for declarations. #
14280 # ------------------------- #
14281
14282 echo "$as_me:$LINENO: checking whether free is declared" >&5
14283 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14284 if test "${ac_cv_have_decl_free+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 else
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14294 int
14295 main ()
14296 {
14297 #ifndef free
14298 char *p = (char *) free;
14299 #endif
14300
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_have_decl_free=yes
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 ac_cv_have_decl_free=no
14333 fi
14334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 fi
14336 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14337 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14338 if test $ac_cv_have_decl_free = yes; then
14339
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_DECL_FREE 1
14342 _ACEOF
14343
14344
14345 else
14346 cat >>confdefs.h <<_ACEOF
14347 #define HAVE_DECL_FREE 0
14348 _ACEOF
14349
14350
14351 fi
14352 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14353 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14354 if test "${ac_cv_have_decl_malloc+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14364 int
14365 main ()
14366 {
14367 #ifndef malloc
14368 char *p = (char *) malloc;
14369 #endif
14370
14371 ;
14372 return 0;
14373 }
14374 _ACEOF
14375 rm -f conftest.$ac_objext
14376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_have_decl_malloc=yes
14398 else
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14401
14402 ac_cv_have_decl_malloc=no
14403 fi
14404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405 fi
14406 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14407 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14408 if test $ac_cv_have_decl_malloc = yes; then
14409
14410 cat >>confdefs.h <<_ACEOF
14411 #define HAVE_DECL_MALLOC 1
14412 _ACEOF
14413
14414
14415 else
14416 cat >>confdefs.h <<_ACEOF
14417 #define HAVE_DECL_MALLOC 0
14418 _ACEOF
14419
14420
14421 fi
14422 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14423 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14424 if test "${ac_cv_have_decl_realloc+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 else
14427 cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h. */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14434 int
14435 main ()
14436 {
14437 #ifndef realloc
14438 char *p = (char *) realloc;
14439 #endif
14440
14441 ;
14442 return 0;
14443 }
14444 _ACEOF
14445 rm -f conftest.$ac_objext
14446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
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_have_decl_realloc=yes
14468 else
14469 echo "$as_me: failed program was:" >&5
14470 sed 's/^/| /' conftest.$ac_ext >&5
14471
14472 ac_cv_have_decl_realloc=no
14473 fi
14474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14477 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14478 if test $ac_cv_have_decl_realloc = yes; then
14479
14480 cat >>confdefs.h <<_ACEOF
14481 #define HAVE_DECL_REALLOC 1
14482 _ACEOF
14483
14484
14485 else
14486 cat >>confdefs.h <<_ACEOF
14487 #define HAVE_DECL_REALLOC 0
14488 _ACEOF
14489
14490
14491 fi
14492
14493
14494 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14495 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14496 if test "${ac_cv_have_decl_strerror+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499 cat >conftest.$ac_ext <<_ACEOF
14500 /* confdefs.h. */
14501 _ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 $ac_includes_default
14506 int
14507 main ()
14508 {
14509 #ifndef strerror
14510 char *p = (char *) strerror;
14511 #endif
14512
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 rm -f conftest.$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519 (eval $ac_compile) 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_have_decl_strerror=yes
14540 else
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14543
14544 ac_cv_have_decl_strerror=no
14545 fi
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14549 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14550 if test $ac_cv_have_decl_strerror = yes; then
14551
14552 cat >>confdefs.h <<_ACEOF
14553 #define HAVE_DECL_STRERROR 1
14554 _ACEOF
14555
14556
14557 else
14558 cat >>confdefs.h <<_ACEOF
14559 #define HAVE_DECL_STRERROR 0
14560 _ACEOF
14561
14562
14563 fi
14564 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14565 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14566 if test "${ac_cv_have_decl_strstr+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 else
14569 cat >conftest.$ac_ext <<_ACEOF
14570 /* confdefs.h. */
14571 _ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 $ac_includes_default
14576 int
14577 main ()
14578 {
14579 #ifndef strstr
14580 char *p = (char *) strstr;
14581 #endif
14582
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 rm -f conftest.$ac_objext
14588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14589 (eval $ac_compile) 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
14596 { ac_try='test -z "$ac_c_werror_flag"
14597 || test ! -s conftest.err'
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; } &&
14603 { ac_try='test -s conftest.$ac_objext'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14609 ac_cv_have_decl_strstr=yes
14610 else
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.$ac_ext >&5
14613
14614 ac_cv_have_decl_strstr=no
14615 fi
14616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14617 fi
14618 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14619 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14620 if test $ac_cv_have_decl_strstr = yes; then
14621
14622 cat >>confdefs.h <<_ACEOF
14623 #define HAVE_DECL_STRSTR 1
14624 _ACEOF
14625
14626
14627 else
14628 cat >>confdefs.h <<_ACEOF
14629 #define HAVE_DECL_STRSTR 0
14630 _ACEOF
14631
14632
14633 fi
14634
14635
14636 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14637 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14638 if test "${ac_cv_have_decl_getopt+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 $ac_includes_default
14648 int
14649 main ()
14650 {
14651 #ifndef getopt
14652 char *p = (char *) getopt;
14653 #endif
14654
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 rm -f conftest.$ac_objext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>conftest.er1
14662 ac_status=$?
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
14668 { ac_try='test -z "$ac_c_werror_flag"
14669 || test ! -s conftest.err'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_have_decl_getopt=yes
14682 else
14683 echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686 ac_cv_have_decl_getopt=no
14687 fi
14688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689 fi
14690 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14691 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14692 if test $ac_cv_have_decl_getopt = yes; then
14693
14694 cat >>confdefs.h <<_ACEOF
14695 #define HAVE_DECL_GETOPT 1
14696 _ACEOF
14697
14698
14699 else
14700 cat >>confdefs.h <<_ACEOF
14701 #define HAVE_DECL_GETOPT 0
14702 _ACEOF
14703
14704
14705 fi
14706 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14707 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14708 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 else
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 $ac_includes_default
14718 int
14719 main ()
14720 {
14721 #ifndef snprintf
14722 char *p = (char *) snprintf;
14723 #endif
14724
14725 ;
14726 return 0;
14727 }
14728 _ACEOF
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -z "$ac_c_werror_flag"
14739 || test ! -s conftest.err'
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_have_decl_snprintf=yes
14752 else
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14755
14756 ac_cv_have_decl_snprintf=no
14757 fi
14758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14759 fi
14760 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14761 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14762 if test $ac_cv_have_decl_snprintf = yes; then
14763
14764 cat >>confdefs.h <<_ACEOF
14765 #define HAVE_DECL_SNPRINTF 1
14766 _ACEOF
14767
14768
14769 else
14770 cat >>confdefs.h <<_ACEOF
14771 #define HAVE_DECL_SNPRINTF 0
14772 _ACEOF
14773
14774
14775 fi
14776 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14777 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14778 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 int
14789 main ()
14790 {
14791 #ifndef vsnprintf
14792 char *p = (char *) vsnprintf;
14793 #endif
14794
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 rm -f conftest.$ac_objext
14800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -z "$ac_c_werror_flag"
14809 || test ! -s conftest.err'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest.$ac_objext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_have_decl_vsnprintf=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_cv_have_decl_vsnprintf=no
14827 fi
14828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14829 fi
14830 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14831 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14832 if test $ac_cv_have_decl_vsnprintf = yes; then
14833
14834 cat >>confdefs.h <<_ACEOF
14835 #define HAVE_DECL_VSNPRINTF 1
14836 _ACEOF
14837
14838
14839 else
14840 cat >>confdefs.h <<_ACEOF
14841 #define HAVE_DECL_VSNPRINTF 0
14842 _ACEOF
14843
14844
14845 fi
14846
14847
14848
14849 # ----------------------- #
14850 # Checks for structures. #
14851 # ----------------------- #
14852
14853 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14854 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14855 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 else
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h. */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 $ac_includes_default
14865 int
14866 main ()
14867 {
14868 static struct stat ac_aggr;
14869 if (ac_aggr.st_blocks)
14870 return 0;
14871 ;
14872 return 0;
14873 }
14874 _ACEOF
14875 rm -f conftest.$ac_objext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
14884 { ac_try='test -z "$ac_c_werror_flag"
14885 || test ! -s conftest.err'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try='test -s conftest.$ac_objext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_member_struct_stat_st_blocks=yes
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h. */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 $ac_includes_default
14909 int
14910 main ()
14911 {
14912 static struct stat ac_aggr;
14913 if (sizeof ac_aggr.st_blocks)
14914 return 0;
14915 ;
14916 return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_member_struct_stat_st_blocks=yes
14942 else
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ac_cv_member_struct_stat_st_blocks=no
14947 fi
14948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14949 fi
14950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951 fi
14952 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14953 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14954 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14955
14956 cat >>confdefs.h <<_ACEOF
14957 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14958 _ACEOF
14959
14960
14961 fi
14962
14963 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14964 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14965 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 else
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h. */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 int
14976 main ()
14977 {
14978 static struct stat ac_aggr;
14979 if (ac_aggr.st_blksize)
14980 return 0;
14981 ;
14982 return 0;
14983 }
14984 _ACEOF
14985 rm -f conftest.$ac_objext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_member_struct_stat_st_blksize=yes
15008 else
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012 cat >conftest.$ac_ext <<_ACEOF
15013 /* confdefs.h. */
15014 _ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 $ac_includes_default
15019 int
15020 main ()
15021 {
15022 static struct stat ac_aggr;
15023 if (sizeof ac_aggr.st_blksize)
15024 return 0;
15025 ;
15026 return 0;
15027 }
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_cv_member_struct_stat_st_blksize=yes
15052 else
15053 echo "$as_me: failed program was:" >&5
15054 sed 's/^/| /' conftest.$ac_ext >&5
15055
15056 ac_cv_member_struct_stat_st_blksize=no
15057 fi
15058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15059 fi
15060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15063 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15064 if test $ac_cv_member_struct_stat_st_blksize = yes; then
15065
15066 cat >>confdefs.h <<_ACEOF
15067 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15068 _ACEOF
15069
15070
15071 fi
15072
15073
15074 # ------------------ #
15075 # Checks for types. #
15076 # ------------------ #
15077
15078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15080 if test "${ac_cv_type_signal+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #include <sys/types.h>
15090 #include <signal.h>
15091 #ifdef signal
15092 # undef signal
15093 #endif
15094 #ifdef __cplusplus
15095 extern "C" void (*signal (int, void (*)(int)))(int);
15096 #else
15097 void (*signal ()) ();
15098 #endif
15099
15100 int
15101 main ()
15102 {
15103 int i;
15104 ;
15105 return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110 (eval $ac_compile) 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
15130 ac_cv_type_signal=void
15131 else
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 ac_cv_type_signal=int
15136 fi
15137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15138 fi
15139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15140 echo "${ECHO_T}$ac_cv_type_signal" >&6
15141
15142 cat >>confdefs.h <<_ACEOF
15143 #define RETSIGTYPE $ac_cv_type_signal
15144 _ACEOF
15145
15146
15147 echo "$as_me:$LINENO: checking for socklen_t" >&5
15148 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15149 if test "${ac_cv_type_socklen_t+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152 cat >conftest.$ac_ext <<_ACEOF
15153 /* confdefs.h. */
15154 _ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <sys/types.h>
15159 #include <sys/socket.h>
15160
15161
15162 int
15163 main ()
15164 {
15165 if ((socklen_t *) 0)
15166 return 0;
15167 if (sizeof (socklen_t))
15168 return 0;
15169 ;
15170 return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext
15174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175 (eval $ac_compile) 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
15182 { ac_try='test -z "$ac_c_werror_flag"
15183 || test ! -s conftest.err'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest.$ac_objext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_cv_type_socklen_t=yes
15196 else
15197 echo "$as_me: failed program was:" >&5
15198 sed 's/^/| /' conftest.$ac_ext >&5
15199
15200 ac_cv_type_socklen_t=no
15201 fi
15202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15203 fi
15204 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15205 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15206 if test $ac_cv_type_socklen_t = yes; then
15207
15208 cat >>confdefs.h <<_ACEOF
15209 #define HAVE_SOCKLEN_T 1
15210 _ACEOF
15211
15212
15213 fi
15214
15215 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15216 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15217 if test "${ac_cv_type_uintptr_t+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 else
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 #include <stdint.h>
15227
15228 int
15229 main ()
15230 {
15231 if ((uintptr_t *) 0)
15232 return 0;
15233 if (sizeof (uintptr_t))
15234 return 0;
15235 ;
15236 return 0;
15237 }
15238 _ACEOF
15239 rm -f conftest.$ac_objext
15240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241 (eval $ac_compile) 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_type_uintptr_t=yes
15262 else
15263 echo "$as_me: failed program was:" >&5
15264 sed 's/^/| /' conftest.$ac_ext >&5
15265
15266 ac_cv_type_uintptr_t=no
15267 fi
15268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269 fi
15270 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15271 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15272 if test $ac_cv_type_uintptr_t = yes; then
15273
15274 cat >>confdefs.h <<_ACEOF
15275 #define HAVE_UINTPTR_T 1
15276 _ACEOF
15277
15278
15279 fi
15280
15281
15282 # ------------------------------------- #
15283 # Checks for compiler characteristics. #
15284 # ------------------------------------- #
15285
15286 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15287 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15288 if test "${ac_cv_c_const+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297
15298 int
15299 main ()
15300 {
15301 /* FIXME: Include the comments suggested by Paul. */
15302 #ifndef __cplusplus
15303 /* Ultrix mips cc rejects this. */
15304 typedef int charset[2];
15305 const charset x;
15306 /* SunOS 4.1.1 cc rejects this. */
15307 char const *const *ccp;
15308 char **p;
15309 /* NEC SVR4.0.2 mips cc rejects this. */
15310 struct point {int x, y;};
15311 static struct point const zero = {0,0};
15312 /* AIX XL C 1.02.0.0 rejects this.
15313 It does not let you subtract one const X* pointer from another in
15314 an arm of an if-expression whose if-part is not a constant
15315 expression */
15316 const char *g = "string";
15317 ccp = &g + (g ? g-g : 0);
15318 /* HPUX 7.0 cc rejects these. */
15319 ++ccp;
15320 p = (char**) ccp;
15321 ccp = (char const *const *) p;
15322 { /* SCO 3.2v4 cc rejects this. */
15323 char *t;
15324 char const *s = 0 ? (char *) 0 : (char const *) 0;
15325
15326 *t++ = 0;
15327 }
15328 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15329 int x[] = {25, 17};
15330 const int *foo = &x[0];
15331 ++foo;
15332 }
15333 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15334 typedef const int *iptr;
15335 iptr p = 0;
15336 ++p;
15337 }
15338 { /* AIX XL C 1.02.0.0 rejects this saying
15339 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15340 struct s { int j; const int *ap[3]; };
15341 struct s *b; b->j = 5;
15342 }
15343 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15344 const int foo = 10;
15345 }
15346 #endif
15347
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 rm -f conftest.$ac_objext
15353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15354 (eval $ac_compile) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
15361 { ac_try='test -z "$ac_c_werror_flag"
15362 || test ! -s conftest.err'
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try='test -s conftest.$ac_objext'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_cv_c_const=yes
15375 else
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15378
15379 ac_cv_c_const=no
15380 fi
15381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15382 fi
15383 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15384 echo "${ECHO_T}$ac_cv_c_const" >&6
15385 if test $ac_cv_c_const = no; then
15386
15387 cat >>confdefs.h <<\_ACEOF
15388 #define const
15389 _ACEOF
15390
15391 fi
15392
15393 echo "$as_me:$LINENO: checking for inline" >&5
15394 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15395 if test "${ac_cv_c_inline+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398 ac_cv_c_inline=no
15399 for ac_kw in inline __inline__ __inline; do
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 #ifndef __cplusplus
15407 typedef int foo_t;
15408 static $ac_kw foo_t static_foo () {return 0; }
15409 $ac_kw foo_t foo () {return 0; }
15410 #endif
15411
15412 _ACEOF
15413 rm -f conftest.$ac_objext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415 (eval $ac_compile) 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest.$ac_objext'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_c_inline=$ac_kw; break
15436 else
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15439
15440 fi
15441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15442 done
15443
15444 fi
15445 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15446 echo "${ECHO_T}$ac_cv_c_inline" >&6
15447
15448
15449 case $ac_cv_c_inline in
15450 inline | yes) ;;
15451 *)
15452 case $ac_cv_c_inline in
15453 no) ac_val=;;
15454 *) ac_val=$ac_cv_c_inline;;
15455 esac
15456 cat >>confdefs.h <<_ACEOF
15457 #ifndef __cplusplus
15458 #define inline $ac_val
15459 #endif
15460 _ACEOF
15461 ;;
15462 esac
15463
15464
15465 # ------------------------------ #
15466 # Checks for library functions. #
15467 # ------------------------------ #
15468
15469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15470 # for constant arguments. Useless!
15471 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15472 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15473 if test "${ac_cv_working_alloca_h+set}" = set; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476 cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h. */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15482 #include <alloca.h>
15483 int
15484 main ()
15485 {
15486 char *p = (char *) alloca (2 * sizeof (int));
15487 ;
15488 return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_working_alloca_h=yes
15514 else
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 ac_cv_working_alloca_h=no
15519 fi
15520 rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 fi
15523 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15524 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15525 if test $ac_cv_working_alloca_h = yes; then
15526
15527 cat >>confdefs.h <<\_ACEOF
15528 #define HAVE_ALLOCA_H 1
15529 _ACEOF
15530
15531 fi
15532
15533 echo "$as_me:$LINENO: checking for alloca" >&5
15534 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15535 if test "${ac_cv_func_alloca_works+set}" = set; then
15536 echo $ECHO_N "(cached) $ECHO_C" >&6
15537 else
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h. */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 #ifdef __GNUC__
15545 # define alloca __builtin_alloca
15546 #else
15547 # ifdef _MSC_VER
15548 # include <malloc.h>
15549 # define alloca _alloca
15550 # else
15551 # if HAVE_ALLOCA_H
15552 # include <alloca.h>
15553 # else
15554 # ifdef _AIX
15555 #pragma alloca
15556 # else
15557 # ifndef alloca /* predefined by HP cc +Olibcalls */
15558 char *alloca ();
15559 # endif
15560 # endif
15561 # endif
15562 # endif
15563 #endif
15564
15565 int
15566 main ()
15567 {
15568 char *p = (char *) alloca (1);
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>conftest.er1
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest$ac_exeext'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_cv_func_alloca_works=yes
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_cv_func_alloca_works=no
15601 fi
15602 rm -f conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
15604 fi
15605 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15606 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15607
15608 if test $ac_cv_func_alloca_works = yes; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE_ALLOCA 1
15612 _ACEOF
15613
15614 else
15615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15616 # that cause trouble. Some versions do not even contain alloca or
15617 # contain a buggy version. If you still want to use their alloca,
15618 # use ar to extract alloca.o from them instead of compiling alloca.c.
15619
15620 ALLOCA=alloca.$ac_objext
15621
15622 cat >>confdefs.h <<\_ACEOF
15623 #define C_ALLOCA 1
15624 _ACEOF
15625
15626
15627 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15628 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15629 if test "${ac_cv_os_cray+set}" = set; then
15630 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 else
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 #if defined(CRAY) && ! defined(CRAY2)
15639 webecray
15640 #else
15641 wenotbecray
15642 #endif
15643
15644 _ACEOF
15645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15646 $EGREP "webecray" >/dev/null 2>&1; then
15647 ac_cv_os_cray=yes
15648 else
15649 ac_cv_os_cray=no
15650 fi
15651 rm -f conftest*
15652
15653 fi
15654 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15655 echo "${ECHO_T}$ac_cv_os_cray" >&6
15656 if test $ac_cv_os_cray = yes; then
15657 for ac_func in _getb67 GETB67 getb67; do
15658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15659 echo "$as_me:$LINENO: checking for $ac_func" >&5
15660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15661 if eval "test \"\${$as_ac_var+set}\" = set"; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h. */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15672 #define $ac_func innocuous_$ac_func
15673
15674 /* System header to define __stub macros and hopefully few prototypes,
15675 which can conflict with char $ac_func (); below.
15676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15677 <limits.h> exists even on freestanding compilers. */
15678
15679 #ifdef __STDC__
15680 # include <limits.h>
15681 #else
15682 # include <assert.h>
15683 #endif
15684
15685 #undef $ac_func
15686
15687 /* Override any gcc2 internal prototype to avoid an error. */
15688 #ifdef __cplusplus
15689 extern "C"
15690 {
15691 #endif
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15694 char $ac_func ();
15695 /* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
15698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 choke me
15700 #else
15701 char (*f) () = $ac_func;
15702 #endif
15703 #ifdef __cplusplus
15704 }
15705 #endif
15706
15707 int
15708 main ()
15709 {
15710 return f != $ac_func;
15711 ;
15712 return 0;
15713 }
15714 _ACEOF
15715 rm -f conftest.$ac_objext conftest$ac_exeext
15716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 eval "$as_ac_var=yes"
15738 else
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15741
15742 eval "$as_ac_var=no"
15743 fi
15744 rm -f conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746 fi
15747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15749 if test `eval echo '${'$as_ac_var'}'` = yes; then
15750
15751 cat >>confdefs.h <<_ACEOF
15752 #define CRAY_STACKSEG_END $ac_func
15753 _ACEOF
15754
15755 break
15756 fi
15757
15758 done
15759 fi
15760
15761 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15762 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15763 if test "${ac_cv_c_stack_direction+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 else
15766 if test "$cross_compiling" = yes; then
15767 ac_cv_c_stack_direction=0
15768 else
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h. */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 int
15776 find_stack_direction ()
15777 {
15778 static char *addr = 0;
15779 auto char dummy;
15780 if (addr == 0)
15781 {
15782 addr = &dummy;
15783 return find_stack_direction ();
15784 }
15785 else
15786 return (&dummy > addr) ? 1 : -1;
15787 }
15788
15789 int
15790 main ()
15791 {
15792 exit (find_stack_direction () < 0);
15793 }
15794 _ACEOF
15795 rm -f conftest$ac_exeext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15797 (eval $ac_link) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_c_stack_direction=1
15807 else
15808 echo "$as_me: program exited with status $ac_status" >&5
15809 echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15811
15812 ( exit $ac_status )
15813 ac_cv_c_stack_direction=-1
15814 fi
15815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15816 fi
15817 fi
15818 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15819 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15820
15821 cat >>confdefs.h <<_ACEOF
15822 #define STACK_DIRECTION $ac_cv_c_stack_direction
15823 _ACEOF
15824
15825
15826 fi
15827
15828
15829
15830 for ac_header in stdlib.h unistd.h
15831 do
15832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15834 echo "$as_me:$LINENO: checking for $ac_header" >&5
15835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 fi
15839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15841 else
15842 # Is the header compilable?
15843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h. */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15852 #include <$ac_header>
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>conftest.er1
15857 ac_status=$?
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest.$ac_objext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_header_compiler=yes
15877 else
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ac_header_compiler=no
15882 fi
15883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885 echo "${ECHO_T}$ac_header_compiler" >&6
15886
15887 # Is the header present?
15888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <$ac_header>
15897 _ACEOF
15898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } >/dev/null; then
15906 if test -s conftest.err; then
15907 ac_cpp_err=$ac_c_preproc_warn_flag
15908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15909 else
15910 ac_cpp_err=
15911 fi
15912 else
15913 ac_cpp_err=yes
15914 fi
15915 if test -z "$ac_cpp_err"; then
15916 ac_header_preproc=yes
15917 else
15918 echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_preproc=no
15922 fi
15923 rm -f conftest.err conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6
15926
15927 # So? What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 yes:no: )
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15935 ;;
15936 no:yes:* )
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949 (
15950 cat <<\_ASBOX
15951 ## ------------------------------------------ ##
15952 ## Report this to the AC_PACKAGE_NAME lists. ##
15953 ## ------------------------------------------ ##
15954 _ASBOX
15955 ) |
15956 sed "s/^/$as_me: WARNING: /" >&2
15957 ;;
15958 esac
15959 echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964 eval "$as_ac_Header=\$ac_header_preproc"
15965 fi
15966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15968
15969 fi
15970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15971 cat >>confdefs.h <<_ACEOF
15972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973 _ACEOF
15974
15975 fi
15976
15977 done
15978
15979
15980 for ac_func in getpagesize
15981 do
15982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15983 echo "$as_me:$LINENO: checking for $ac_func" >&5
15984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15985 if eval "test \"\${$as_ac_var+set}\" = set"; then
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 else
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h. */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15996 #define $ac_func innocuous_$ac_func
15997
15998 /* System header to define __stub macros and hopefully few prototypes,
15999 which can conflict with char $ac_func (); below.
16000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16001 <limits.h> exists even on freestanding compilers. */
16002
16003 #ifdef __STDC__
16004 # include <limits.h>
16005 #else
16006 # include <assert.h>
16007 #endif
16008
16009 #undef $ac_func
16010
16011 /* Override any gcc2 internal prototype to avoid an error. */
16012 #ifdef __cplusplus
16013 extern "C"
16014 {
16015 #endif
16016 /* We use char because int might match the return type of a gcc2
16017 builtin and then its argument prototype would still apply. */
16018 char $ac_func ();
16019 /* The GNU C library defines this for functions which it implements
16020 to always fail with ENOSYS. Some functions are actually named
16021 something starting with __ and the normal name is an alias. */
16022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16023 choke me
16024 #else
16025 char (*f) () = $ac_func;
16026 #endif
16027 #ifdef __cplusplus
16028 }
16029 #endif
16030
16031 int
16032 main ()
16033 {
16034 return f != $ac_func;
16035 ;
16036 return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>conftest.er1
16042 ac_status=$?
16043 grep -v '^ *+' conftest.er1 >conftest.err
16044 rm -f conftest.er1
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
16048 { ac_try='test -z "$ac_c_werror_flag"
16049 || test ! -s conftest.err'
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } &&
16055 { ac_try='test -s conftest$ac_exeext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 eval "$as_ac_var=yes"
16062 else
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066 eval "$as_ac_var=no"
16067 fi
16068 rm -f conftest.err conftest.$ac_objext \
16069 conftest$ac_exeext conftest.$ac_ext
16070 fi
16071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16073 if test `eval echo '${'$as_ac_var'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16076 _ACEOF
16077
16078 fi
16079 done
16080
16081 echo "$as_me:$LINENO: checking for working mmap" >&5
16082 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16083 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16084 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086 if test "$cross_compiling" = yes; then
16087 ac_cv_func_mmap_fixed_mapped=no
16088 else
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 $ac_includes_default
16096 /* malloc might have been renamed as rpl_malloc. */
16097 #undef malloc
16098
16099 /* Thanks to Mike Haertel and Jim Avera for this test.
16100 Here is a matrix of mmap possibilities:
16101 mmap private not fixed
16102 mmap private fixed at somewhere currently unmapped
16103 mmap private fixed at somewhere already mapped
16104 mmap shared not fixed
16105 mmap shared fixed at somewhere currently unmapped
16106 mmap shared fixed at somewhere already mapped
16107 For private mappings, we should verify that changes cannot be read()
16108 back from the file, nor mmap's back from the file at a different
16109 address. (There have been systems where private was not correctly
16110 implemented like the infamous i386 svr4.0, and systems where the
16111 VM page cache was not coherent with the file system buffer cache
16112 like early versions of FreeBSD and possibly contemporary NetBSD.)
16113 For shared mappings, we should conversely verify that changes get
16114 propagated back to all the places they're supposed to be.
16115
16116 Grep wants private fixed already mapped.
16117 The main things grep needs to know about mmap are:
16118 * does it exist and is it safe to write into the mmap'd area
16119 * how to use it (BSD variants) */
16120
16121 #include <fcntl.h>
16122 #include <sys/mman.h>
16123
16124 #if !STDC_HEADERS && !HAVE_STDLIB_H
16125 char *malloc ();
16126 #endif
16127
16128 /* This mess was copied from the GNU getpagesize.h. */
16129 #if !HAVE_GETPAGESIZE
16130 /* Assume that all systems that can run configure have sys/param.h. */
16131 # if !HAVE_SYS_PARAM_H
16132 # define HAVE_SYS_PARAM_H 1
16133 # endif
16134
16135 # ifdef _SC_PAGESIZE
16136 # define getpagesize() sysconf(_SC_PAGESIZE)
16137 # else /* no _SC_PAGESIZE */
16138 # if HAVE_SYS_PARAM_H
16139 # include <sys/param.h>
16140 # ifdef EXEC_PAGESIZE
16141 # define getpagesize() EXEC_PAGESIZE
16142 # else /* no EXEC_PAGESIZE */
16143 # ifdef NBPG
16144 # define getpagesize() NBPG * CLSIZE
16145 # ifndef CLSIZE
16146 # define CLSIZE 1
16147 # endif /* no CLSIZE */
16148 # else /* no NBPG */
16149 # ifdef NBPC
16150 # define getpagesize() NBPC
16151 # else /* no NBPC */
16152 # ifdef PAGESIZE
16153 # define getpagesize() PAGESIZE
16154 # endif /* PAGESIZE */
16155 # endif /* no NBPC */
16156 # endif /* no NBPG */
16157 # endif /* no EXEC_PAGESIZE */
16158 # else /* no HAVE_SYS_PARAM_H */
16159 # define getpagesize() 8192 /* punt totally */
16160 # endif /* no HAVE_SYS_PARAM_H */
16161 # endif /* no _SC_PAGESIZE */
16162
16163 #endif /* no HAVE_GETPAGESIZE */
16164
16165 int
16166 main ()
16167 {
16168 char *data, *data2, *data3;
16169 int i, pagesize;
16170 int fd;
16171
16172 pagesize = getpagesize ();
16173
16174 /* First, make a file with some known garbage in it. */
16175 data = (char *) malloc (pagesize);
16176 if (!data)
16177 exit (1);
16178 for (i = 0; i < pagesize; ++i)
16179 *(data + i) = rand ();
16180 umask (0);
16181 fd = creat ("conftest.mmap", 0600);
16182 if (fd < 0)
16183 exit (1);
16184 if (write (fd, data, pagesize) != pagesize)
16185 exit (1);
16186 close (fd);
16187
16188 /* Next, try to mmap the file at a fixed address which already has
16189 something else allocated at it. If we can, also make sure that
16190 we see the same garbage. */
16191 fd = open ("conftest.mmap", O_RDWR);
16192 if (fd < 0)
16193 exit (1);
16194 data2 = (char *) malloc (2 * pagesize);
16195 if (!data2)
16196 exit (1);
16197 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16200 exit (1);
16201 for (i = 0; i < pagesize; ++i)
16202 if (*(data + i) != *(data2 + i))
16203 exit (1);
16204
16205 /* Finally, make sure that changes to the mapped area do not
16206 percolate back to the file as seen by read(). (This is a bug on
16207 some variants of i386 svr4.0.) */
16208 for (i = 0; i < pagesize; ++i)
16209 *(data2 + i) = *(data2 + i) + 1;
16210 data3 = (char *) malloc (pagesize);
16211 if (!data3)
16212 exit (1);
16213 if (read (fd, data3, pagesize) != pagesize)
16214 exit (1);
16215 for (i = 0; i < pagesize; ++i)
16216 if (*(data + i) != *(data3 + i))
16217 exit (1);
16218 close (fd);
16219 exit (0);
16220 }
16221 _ACEOF
16222 rm -f conftest$ac_exeext
16223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ac_cv_func_mmap_fixed_mapped=yes
16234 else
16235 echo "$as_me: program exited with status $ac_status" >&5
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 ( exit $ac_status )
16240 ac_cv_func_mmap_fixed_mapped=no
16241 fi
16242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16243 fi
16244 fi
16245 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16248
16249 cat >>confdefs.h <<\_ACEOF
16250 #define HAVE_MMAP 1
16251 _ACEOF
16252
16253 fi
16254 rm -f conftest.mmap
16255
16256 echo "$as_me:$LINENO: checking for pid_t" >&5
16257 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16258 if test "${ac_cv_type_pid_t+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260 else
16261 cat >conftest.$ac_ext <<_ACEOF
16262 /* confdefs.h. */
16263 _ACEOF
16264 cat confdefs.h >>conftest.$ac_ext
16265 cat >>conftest.$ac_ext <<_ACEOF
16266 /* end confdefs.h. */
16267 $ac_includes_default
16268 int
16269 main ()
16270 {
16271 if ((pid_t *) 0)
16272 return 0;
16273 if (sizeof (pid_t))
16274 return 0;
16275 ;
16276 return 0;
16277 }
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16281 (eval $ac_compile) 2>conftest.er1
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
16288 { ac_try='test -z "$ac_c_werror_flag"
16289 || test ! -s conftest.err'
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
16295 { ac_try='test -s conftest.$ac_objext'
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 ac_cv_type_pid_t=yes
16302 else
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306 ac_cv_type_pid_t=no
16307 fi
16308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16309 fi
16310 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16311 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16312 if test $ac_cv_type_pid_t = yes; then
16313 :
16314 else
16315
16316 cat >>confdefs.h <<_ACEOF
16317 #define pid_t int
16318 _ACEOF
16319
16320 fi
16321
16322
16323
16324 for ac_header in unistd.h vfork.h
16325 do
16326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo "$as_me:$LINENO: checking for $ac_header" >&5
16329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16331 echo $ECHO_N "(cached) $ECHO_C" >&6
16332 fi
16333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16335 else
16336 # Is the header compilable?
16337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16339 cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h. */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 $ac_includes_default
16346 #include <$ac_header>
16347 _ACEOF
16348 rm -f conftest.$ac_objext
16349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>conftest.er1
16351 ac_status=$?
16352 grep -v '^ *+' conftest.er1 >conftest.err
16353 rm -f conftest.er1
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
16357 { ac_try='test -z "$ac_c_werror_flag"
16358 || test ! -s conftest.err'
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; } &&
16364 { ac_try='test -s conftest.$ac_objext'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
16370 ac_header_compiler=yes
16371 else
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.$ac_ext >&5
16374
16375 ac_header_compiler=no
16376 fi
16377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379 echo "${ECHO_T}$ac_header_compiler" >&6
16380
16381 # Is the header present?
16382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h. */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 #include <$ac_header>
16391 _ACEOF
16392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } >/dev/null; then
16400 if test -s conftest.err; then
16401 ac_cpp_err=$ac_c_preproc_warn_flag
16402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16403 else
16404 ac_cpp_err=
16405 fi
16406 else
16407 ac_cpp_err=yes
16408 fi
16409 if test -z "$ac_cpp_err"; then
16410 ac_header_preproc=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_header_preproc=no
16416 fi
16417 rm -f conftest.err conftest.$ac_ext
16418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16419 echo "${ECHO_T}$ac_header_preproc" >&6
16420
16421 # So? What about this header?
16422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16423 yes:no: )
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16428 ac_header_preproc=yes
16429 ;;
16430 no:yes:* )
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16443 (
16444 cat <<\_ASBOX
16445 ## ------------------------------------------ ##
16446 ## Report this to the AC_PACKAGE_NAME lists. ##
16447 ## ------------------------------------------ ##
16448 _ASBOX
16449 ) |
16450 sed "s/^/$as_me: WARNING: /" >&2
16451 ;;
16452 esac
16453 echo "$as_me:$LINENO: checking for $ac_header" >&5
16454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458 eval "$as_ac_Header=\$ac_header_preproc"
16459 fi
16460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16462
16463 fi
16464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16465 cat >>confdefs.h <<_ACEOF
16466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16467 _ACEOF
16468
16469 fi
16470
16471 done
16472
16473
16474
16475 for ac_func in fork vfork
16476 do
16477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16478 echo "$as_me:$LINENO: checking for $ac_func" >&5
16479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16480 if eval "test \"\${$as_ac_var+set}\" = set"; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483 cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h. */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16491 #define $ac_func innocuous_$ac_func
16492
16493 /* System header to define __stub macros and hopefully few prototypes,
16494 which can conflict with char $ac_func (); below.
16495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16496 <limits.h> exists even on freestanding compilers. */
16497
16498 #ifdef __STDC__
16499 # include <limits.h>
16500 #else
16501 # include <assert.h>
16502 #endif
16503
16504 #undef $ac_func
16505
16506 /* Override any gcc2 internal prototype to avoid an error. */
16507 #ifdef __cplusplus
16508 extern "C"
16509 {
16510 #endif
16511 /* We use char because int might match the return type of a gcc2
16512 builtin and then its argument prototype would still apply. */
16513 char $ac_func ();
16514 /* The GNU C library defines this for functions which it implements
16515 to always fail with ENOSYS. Some functions are actually named
16516 something starting with __ and the normal name is an alias. */
16517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16518 choke me
16519 #else
16520 char (*f) () = $ac_func;
16521 #endif
16522 #ifdef __cplusplus
16523 }
16524 #endif
16525
16526 int
16527 main ()
16528 {
16529 return f != $ac_func;
16530 ;
16531 return 0;
16532 }
16533 _ACEOF
16534 rm -f conftest.$ac_objext conftest$ac_exeext
16535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16536 (eval $ac_link) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
16543 { ac_try='test -z "$ac_c_werror_flag"
16544 || test ! -s conftest.err'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest$ac_exeext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 eval "$as_ac_var=yes"
16557 else
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16560
16561 eval "$as_ac_var=no"
16562 fi
16563 rm -f conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 fi
16566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16568 if test `eval echo '${'$as_ac_var'}'` = yes; then
16569 cat >>confdefs.h <<_ACEOF
16570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16571 _ACEOF
16572
16573 fi
16574 done
16575
16576 if test "x$ac_cv_func_fork" = xyes; then
16577 echo "$as_me:$LINENO: checking for working fork" >&5
16578 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16579 if test "${ac_cv_func_fork_works+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581 else
16582 if test "$cross_compiling" = yes; then
16583 ac_cv_func_fork_works=cross
16584 else
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* By Ruediger Kuhlmann. */
16587 #include <sys/types.h>
16588 #if HAVE_UNISTD_H
16589 # include <unistd.h>
16590 #endif
16591 /* Some systems only have a dummy stub for fork() */
16592 int main ()
16593 {
16594 if (fork() < 0)
16595 exit (1);
16596 exit (0);
16597 }
16598 _ACEOF
16599 rm -f conftest$ac_exeext
16600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_func_fork_works=yes
16611 else
16612 echo "$as_me: program exited with status $ac_status" >&5
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 ( exit $ac_status )
16617 ac_cv_func_fork_works=no
16618 fi
16619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 fi
16622 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16623 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16624
16625 else
16626 ac_cv_func_fork_works=$ac_cv_func_fork
16627 fi
16628 if test "x$ac_cv_func_fork_works" = xcross; then
16629 case $host in
16630 *-*-amigaos* | *-*-msdosdjgpp*)
16631 # Override, as these systems have only a dummy fork() stub
16632 ac_cv_func_fork_works=no
16633 ;;
16634 *)
16635 ac_cv_func_fork_works=yes
16636 ;;
16637 esac
16638 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16639 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16640 fi
16641 ac_cv_func_vfork_works=$ac_cv_func_vfork
16642 if test "x$ac_cv_func_vfork" = xyes; then
16643 echo "$as_me:$LINENO: checking for working vfork" >&5
16644 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16645 if test "${ac_cv_func_vfork_works+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 else
16648 if test "$cross_compiling" = yes; then
16649 ac_cv_func_vfork_works=cross
16650 else
16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 /* Thanks to Paul Eggert for this test. */
16658 #include <stdio.h>
16659 #include <stdlib.h>
16660 #include <sys/types.h>
16661 #include <sys/stat.h>
16662 #include <sys/wait.h>
16663 #if HAVE_UNISTD_H
16664 # include <unistd.h>
16665 #endif
16666 #if HAVE_VFORK_H
16667 # include <vfork.h>
16668 #endif
16669 /* On some sparc systems, changes by the child to local and incoming
16670 argument registers are propagated back to the parent. The compiler
16671 is told about this with #include <vfork.h>, but some compilers
16672 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16673 static variable whose address is put into a register that is
16674 clobbered by the vfork. */
16675 static void
16676 #ifdef __cplusplus
16677 sparc_address_test (int arg)
16678 # else
16679 sparc_address_test (arg) int arg;
16680 #endif
16681 {
16682 static pid_t child;
16683 if (!child) {
16684 child = vfork ();
16685 if (child < 0) {
16686 perror ("vfork");
16687 _exit(2);
16688 }
16689 if (!child) {
16690 arg = getpid();
16691 write(-1, "", 0);
16692 _exit (arg);
16693 }
16694 }
16695 }
16696
16697 int
16698 main ()
16699 {
16700 pid_t parent = getpid ();
16701 pid_t child;
16702
16703 sparc_address_test (0);
16704
16705 child = vfork ();
16706
16707 if (child == 0) {
16708 /* Here is another test for sparc vfork register problems. This
16709 test uses lots of local variables, at least as many local
16710 variables as main has allocated so far including compiler
16711 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16712 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16713 reuse the register of parent for one of the local variables,
16714 since it will think that parent can't possibly be used any more
16715 in this routine. Assigning to the local variable will thus
16716 munge parent in the parent process. */
16717 pid_t
16718 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16719 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16720 /* Convince the compiler that p..p7 are live; otherwise, it might
16721 use the same hardware register for all 8 local variables. */
16722 if (p != p1 || p != p2 || p != p3 || p != p4
16723 || p != p5 || p != p6 || p != p7)
16724 _exit(1);
16725
16726 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16727 from child file descriptors. If the child closes a descriptor
16728 before it execs or exits, this munges the parent's descriptor
16729 as well. Test for this by closing stdout in the child. */
16730 _exit(close(fileno(stdout)) != 0);
16731 } else {
16732 int status;
16733 struct stat st;
16734
16735 while (wait(&status) != child)
16736 ;
16737 exit(
16738 /* Was there some problem with vforking? */
16739 child < 0
16740
16741 /* Did the child fail? (This shouldn't happen.) */
16742 || status
16743
16744 /* Did the vfork/compiler bug occur? */
16745 || parent != getpid()
16746
16747 /* Did the file descriptor bug occur? */
16748 || fstat(fileno(stdout), &st) != 0
16749 );
16750 }
16751 }
16752 _ACEOF
16753 rm -f conftest$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_func_vfork_works=yes
16765 else
16766 echo "$as_me: program exited with status $ac_status" >&5
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16769
16770 ( exit $ac_status )
16771 ac_cv_func_vfork_works=no
16772 fi
16773 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16774 fi
16775 fi
16776 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16777 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16778
16779 fi;
16780 if test "x$ac_cv_func_fork_works" = xcross; then
16781 ac_cv_func_vfork_works=$ac_cv_func_vfork
16782 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16783 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16784 fi
16785
16786 if test "x$ac_cv_func_vfork_works" = xyes; then
16787
16788 cat >>confdefs.h <<\_ACEOF
16789 #define HAVE_WORKING_VFORK 1
16790 _ACEOF
16791
16792 else
16793
16794 cat >>confdefs.h <<\_ACEOF
16795 #define vfork fork
16796 _ACEOF
16797
16798 fi
16799 if test "x$ac_cv_func_fork_works" = xyes; then
16800
16801 cat >>confdefs.h <<\_ACEOF
16802 #define HAVE_WORKING_FORK 1
16803 _ACEOF
16804
16805 fi
16806
16807
16808
16809 for ac_func in canonicalize_file_name realpath
16810 do
16811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16812 echo "$as_me:$LINENO: checking for $ac_func" >&5
16813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16814 if eval "test \"\${$as_ac_var+set}\" = set"; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816 else
16817 cat >conftest.$ac_ext <<_ACEOF
16818 /* confdefs.h. */
16819 _ACEOF
16820 cat confdefs.h >>conftest.$ac_ext
16821 cat >>conftest.$ac_ext <<_ACEOF
16822 /* end confdefs.h. */
16823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16825 #define $ac_func innocuous_$ac_func
16826
16827 /* System header to define __stub macros and hopefully few prototypes,
16828 which can conflict with char $ac_func (); below.
16829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16830 <limits.h> exists even on freestanding compilers. */
16831
16832 #ifdef __STDC__
16833 # include <limits.h>
16834 #else
16835 # include <assert.h>
16836 #endif
16837
16838 #undef $ac_func
16839
16840 /* Override any gcc2 internal prototype to avoid an error. */
16841 #ifdef __cplusplus
16842 extern "C"
16843 {
16844 #endif
16845 /* We use char because int might match the return type of a gcc2
16846 builtin and then its argument prototype would still apply. */
16847 char $ac_func ();
16848 /* The GNU C library defines this for functions which it implements
16849 to always fail with ENOSYS. Some functions are actually named
16850 something starting with __ and the normal name is an alias. */
16851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16852 choke me
16853 #else
16854 char (*f) () = $ac_func;
16855 #endif
16856 #ifdef __cplusplus
16857 }
16858 #endif
16859
16860 int
16861 main ()
16862 {
16863 return f != $ac_func;
16864 ;
16865 return 0;
16866 }
16867 _ACEOF
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870 (eval $ac_link) 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -z "$ac_c_werror_flag"
16878 || test ! -s conftest.err'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_var=yes"
16891 else
16892 echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895 eval "$as_ac_var=no"
16896 fi
16897 rm -f conftest.err conftest.$ac_objext \
16898 conftest$ac_exeext conftest.$ac_ext
16899 fi
16900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16901 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16902 if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905 _ACEOF
16906
16907 fi
16908 done
16909
16910
16911 for ac_func in getrusage
16912 do
16913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914 echo "$as_me:$LINENO: checking for $ac_func" >&5
16915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16916 if eval "test \"\${$as_ac_var+set}\" = set"; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918 else
16919 cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h. */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16927 #define $ac_func innocuous_$ac_func
16928
16929 /* System header to define __stub macros and hopefully few prototypes,
16930 which can conflict with char $ac_func (); below.
16931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16932 <limits.h> exists even on freestanding compilers. */
16933
16934 #ifdef __STDC__
16935 # include <limits.h>
16936 #else
16937 # include <assert.h>
16938 #endif
16939
16940 #undef $ac_func
16941
16942 /* Override any gcc2 internal prototype to avoid an error. */
16943 #ifdef __cplusplus
16944 extern "C"
16945 {
16946 #endif
16947 /* We use char because int might match the return type of a gcc2
16948 builtin and then its argument prototype would still apply. */
16949 char $ac_func ();
16950 /* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16954 choke me
16955 #else
16956 char (*f) () = $ac_func;
16957 #endif
16958 #ifdef __cplusplus
16959 }
16960 #endif
16961
16962 int
16963 main ()
16964 {
16965 return f != $ac_func;
16966 ;
16967 return 0;
16968 }
16969 _ACEOF
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
16979 { ac_try='test -z "$ac_c_werror_flag"
16980 || test ! -s conftest.err'
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 eval "$as_ac_var=yes"
16993 else
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16996
16997 eval "$as_ac_var=no"
16998 fi
16999 rm -f conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001 fi
17002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17003 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17004 if test `eval echo '${'$as_ac_var'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17007 _ACEOF
17008
17009 fi
17010 done
17011
17012
17013
17014 for ac_func in getuid getgid
17015 do
17016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17017 echo "$as_me:$LINENO: checking for $ac_func" >&5
17018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17019 if eval "test \"\${$as_ac_var+set}\" = set"; then
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 else
17022 cat >conftest.$ac_ext <<_ACEOF
17023 /* confdefs.h. */
17024 _ACEOF
17025 cat confdefs.h >>conftest.$ac_ext
17026 cat >>conftest.$ac_ext <<_ACEOF
17027 /* end confdefs.h. */
17028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17030 #define $ac_func innocuous_$ac_func
17031
17032 /* System header to define __stub macros and hopefully few prototypes,
17033 which can conflict with char $ac_func (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
17036
17037 #ifdef __STDC__
17038 # include <limits.h>
17039 #else
17040 # include <assert.h>
17041 #endif
17042
17043 #undef $ac_func
17044
17045 /* Override any gcc2 internal prototype to avoid an error. */
17046 #ifdef __cplusplus
17047 extern "C"
17048 {
17049 #endif
17050 /* We use char because int might match the return type of a gcc2
17051 builtin and then its argument prototype would still apply. */
17052 char $ac_func ();
17053 /* The GNU C library defines this for functions which it implements
17054 to always fail with ENOSYS. Some functions are actually named
17055 something starting with __ and the normal name is an alias. */
17056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17057 choke me
17058 #else
17059 char (*f) () = $ac_func;
17060 #endif
17061 #ifdef __cplusplus
17062 }
17063 #endif
17064
17065 int
17066 main ()
17067 {
17068 return f != $ac_func;
17069 ;
17070 return 0;
17071 }
17072 _ACEOF
17073 rm -f conftest.$ac_objext conftest$ac_exeext
17074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -z "$ac_c_werror_flag"
17083 || test ! -s conftest.err'
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 eval "$as_ac_var=yes"
17096 else
17097 echo "$as_me: failed program was:" >&5
17098 sed 's/^/| /' conftest.$ac_ext >&5
17099
17100 eval "$as_ac_var=no"
17101 fi
17102 rm -f conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17104 fi
17105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17107 if test `eval echo '${'$as_ac_var'}'` = yes; then
17108 cat >>confdefs.h <<_ACEOF
17109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17110 _ACEOF
17111
17112 fi
17113 done
17114
17115
17116 for ac_func in poll
17117 do
17118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17119 echo "$as_me:$LINENO: checking for $ac_func" >&5
17120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17121 if eval "test \"\${$as_ac_var+set}\" = set"; then
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 else
17124 cat >conftest.$ac_ext <<_ACEOF
17125 /* confdefs.h. */
17126 _ACEOF
17127 cat confdefs.h >>conftest.$ac_ext
17128 cat >>conftest.$ac_ext <<_ACEOF
17129 /* end confdefs.h. */
17130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17132 #define $ac_func innocuous_$ac_func
17133
17134 /* System header to define __stub macros and hopefully few prototypes,
17135 which can conflict with char $ac_func (); below.
17136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137 <limits.h> exists even on freestanding compilers. */
17138
17139 #ifdef __STDC__
17140 # include <limits.h>
17141 #else
17142 # include <assert.h>
17143 #endif
17144
17145 #undef $ac_func
17146
17147 /* Override any gcc2 internal prototype to avoid an error. */
17148 #ifdef __cplusplus
17149 extern "C"
17150 {
17151 #endif
17152 /* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
17154 char $ac_func ();
17155 /* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
17158 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17159 choke me
17160 #else
17161 char (*f) () = $ac_func;
17162 #endif
17163 #ifdef __cplusplus
17164 }
17165 #endif
17166
17167 int
17168 main ()
17169 {
17170 return f != $ac_func;
17171 ;
17172 return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext conftest$ac_exeext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 eval "$as_ac_var=yes"
17198 else
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 eval "$as_ac_var=no"
17203 fi
17204 rm -f conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17209 if test `eval echo '${'$as_ac_var'}'` = yes; then
17210 cat >>confdefs.h <<_ACEOF
17211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212 _ACEOF
17213
17214 fi
17215 done
17216
17217
17218 for ac_func in pread64
17219 do
17220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17221 echo "$as_me:$LINENO: checking for $ac_func" >&5
17222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17223 if eval "test \"\${$as_ac_var+set}\" = set"; then
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 else
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234 #define $ac_func innocuous_$ac_func
17235
17236 /* System header to define __stub macros and hopefully few prototypes,
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17240
17241 #ifdef __STDC__
17242 # include <limits.h>
17243 #else
17244 # include <assert.h>
17245 #endif
17246
17247 #undef $ac_func
17248
17249 /* Override any gcc2 internal prototype to avoid an error. */
17250 #ifdef __cplusplus
17251 extern "C"
17252 {
17253 #endif
17254 /* We use char because int might match the return type of a gcc2
17255 builtin and then its argument prototype would still apply. */
17256 char $ac_func ();
17257 /* The GNU C library defines this for functions which it implements
17258 to always fail with ENOSYS. Some functions are actually named
17259 something starting with __ and the normal name is an alias. */
17260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17261 choke me
17262 #else
17263 char (*f) () = $ac_func;
17264 #endif
17265 #ifdef __cplusplus
17266 }
17267 #endif
17268
17269 int
17270 main ()
17271 {
17272 return f != $ac_func;
17273 ;
17274 return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext conftest$ac_exeext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest$ac_exeext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 eval "$as_ac_var=yes"
17300 else
17301 echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 eval "$as_ac_var=no"
17305 fi
17306 rm -f conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308 fi
17309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17311 if test `eval echo '${'$as_ac_var'}'` = yes; then
17312 cat >>confdefs.h <<_ACEOF
17313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17314 _ACEOF
17315
17316 fi
17317 done
17318
17319
17320 for ac_func in sbrk
17321 do
17322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17323 echo "$as_me:$LINENO: checking for $ac_func" >&5
17324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17325 if eval "test \"\${$as_ac_var+set}\" = set"; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327 else
17328 cat >conftest.$ac_ext <<_ACEOF
17329 /* confdefs.h. */
17330 _ACEOF
17331 cat confdefs.h >>conftest.$ac_ext
17332 cat >>conftest.$ac_ext <<_ACEOF
17333 /* end confdefs.h. */
17334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17336 #define $ac_func innocuous_$ac_func
17337
17338 /* System header to define __stub macros and hopefully few prototypes,
17339 which can conflict with char $ac_func (); below.
17340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17341 <limits.h> exists even on freestanding compilers. */
17342
17343 #ifdef __STDC__
17344 # include <limits.h>
17345 #else
17346 # include <assert.h>
17347 #endif
17348
17349 #undef $ac_func
17350
17351 /* Override any gcc2 internal prototype to avoid an error. */
17352 #ifdef __cplusplus
17353 extern "C"
17354 {
17355 #endif
17356 /* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
17358 char $ac_func ();
17359 /* The GNU C library defines this for functions which it implements
17360 to always fail with ENOSYS. Some functions are actually named
17361 something starting with __ and the normal name is an alias. */
17362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17363 choke me
17364 #else
17365 char (*f) () = $ac_func;
17366 #endif
17367 #ifdef __cplusplus
17368 }
17369 #endif
17370
17371 int
17372 main ()
17373 {
17374 return f != $ac_func;
17375 ;
17376 return 0;
17377 }
17378 _ACEOF
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 eval "$as_ac_var=yes"
17402 else
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.$ac_ext >&5
17405
17406 eval "$as_ac_var=no"
17407 fi
17408 rm -f conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 fi
17411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17413 if test `eval echo '${'$as_ac_var'}'` = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17416 _ACEOF
17417
17418 fi
17419 done
17420
17421
17422
17423 for ac_func in setpgid setpgrp
17424 do
17425 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17426 echo "$as_me:$LINENO: checking for $ac_func" >&5
17427 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17428 if eval "test \"\${$as_ac_var+set}\" = set"; then
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 else
17431 cat >conftest.$ac_ext <<_ACEOF
17432 /* confdefs.h. */
17433 _ACEOF
17434 cat confdefs.h >>conftest.$ac_ext
17435 cat >>conftest.$ac_ext <<_ACEOF
17436 /* end confdefs.h. */
17437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17439 #define $ac_func innocuous_$ac_func
17440
17441 /* System header to define __stub macros and hopefully few prototypes,
17442 which can conflict with char $ac_func (); below.
17443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444 <limits.h> exists even on freestanding compilers. */
17445
17446 #ifdef __STDC__
17447 # include <limits.h>
17448 #else
17449 # include <assert.h>
17450 #endif
17451
17452 #undef $ac_func
17453
17454 /* Override any gcc2 internal prototype to avoid an error. */
17455 #ifdef __cplusplus
17456 extern "C"
17457 {
17458 #endif
17459 /* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
17461 char $ac_func ();
17462 /* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17466 choke me
17467 #else
17468 char (*f) () = $ac_func;
17469 #endif
17470 #ifdef __cplusplus
17471 }
17472 #endif
17473
17474 int
17475 main ()
17476 {
17477 return f != $ac_func;
17478 ;
17479 return 0;
17480 }
17481 _ACEOF
17482 rm -f conftest.$ac_objext conftest$ac_exeext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
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); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 eval "$as_ac_var=yes"
17505 else
17506 echo "$as_me: failed program was:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 eval "$as_ac_var=no"
17510 fi
17511 rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513 fi
17514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17515 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17516 if test `eval echo '${'$as_ac_var'}'` = yes; then
17517 cat >>confdefs.h <<_ACEOF
17518 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17519 _ACEOF
17520
17521 fi
17522 done
17523
17524
17525
17526
17527 for ac_func in sigaction sigprocmask sigsetmask
17528 do
17529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17530 echo "$as_me:$LINENO: checking for $ac_func" >&5
17531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17532 if eval "test \"\${$as_ac_var+set}\" = set"; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17543 #define $ac_func innocuous_$ac_func
17544
17545 /* System header to define __stub macros and hopefully few prototypes,
17546 which can conflict with char $ac_func (); below.
17547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548 <limits.h> exists even on freestanding compilers. */
17549
17550 #ifdef __STDC__
17551 # include <limits.h>
17552 #else
17553 # include <assert.h>
17554 #endif
17555
17556 #undef $ac_func
17557
17558 /* Override any gcc2 internal prototype to avoid an error. */
17559 #ifdef __cplusplus
17560 extern "C"
17561 {
17562 #endif
17563 /* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
17565 char $ac_func ();
17566 /* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
17569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17570 choke me
17571 #else
17572 char (*f) () = $ac_func;
17573 #endif
17574 #ifdef __cplusplus
17575 }
17576 #endif
17577
17578 int
17579 main ()
17580 {
17581 return f != $ac_func;
17582 ;
17583 return 0;
17584 }
17585 _ACEOF
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest$ac_exeext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 eval "$as_ac_var=yes"
17609 else
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613 eval "$as_ac_var=no"
17614 fi
17615 rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617 fi
17618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17620 if test `eval echo '${'$as_ac_var'}'` = yes; then
17621 cat >>confdefs.h <<_ACEOF
17622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17623 _ACEOF
17624
17625 fi
17626 done
17627
17628
17629 for ac_func in socketpair
17630 do
17631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17632 echo "$as_me:$LINENO: checking for $ac_func" >&5
17633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17634 if eval "test \"\${$as_ac_var+set}\" = set"; then
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 else
17637 cat >conftest.$ac_ext <<_ACEOF
17638 /* confdefs.h. */
17639 _ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17645 #define $ac_func innocuous_$ac_func
17646
17647 /* System header to define __stub macros and hopefully few prototypes,
17648 which can conflict with char $ac_func (); below.
17649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650 <limits.h> exists even on freestanding compilers. */
17651
17652 #ifdef __STDC__
17653 # include <limits.h>
17654 #else
17655 # include <assert.h>
17656 #endif
17657
17658 #undef $ac_func
17659
17660 /* Override any gcc2 internal prototype to avoid an error. */
17661 #ifdef __cplusplus
17662 extern "C"
17663 {
17664 #endif
17665 /* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667 char $ac_func ();
17668 /* The GNU C library defines this for functions which it implements
17669 to always fail with ENOSYS. Some functions are actually named
17670 something starting with __ and the normal name is an alias. */
17671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17672 choke me
17673 #else
17674 char (*f) () = $ac_func;
17675 #endif
17676 #ifdef __cplusplus
17677 }
17678 #endif
17679
17680 int
17681 main ()
17682 {
17683 return f != $ac_func;
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 rm -f conftest.$ac_objext conftest$ac_exeext
17689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690 (eval $ac_link) 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag"
17698 || test ! -s conftest.err'
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
17704 { ac_try='test -s conftest$ac_exeext'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
17710 eval "$as_ac_var=yes"
17711 else
17712 echo "$as_me: failed program was:" >&5
17713 sed 's/^/| /' conftest.$ac_ext >&5
17714
17715 eval "$as_ac_var=no"
17716 fi
17717 rm -f conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
17719 fi
17720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17722 if test `eval echo '${'$as_ac_var'}'` = yes; then
17723 cat >>confdefs.h <<_ACEOF
17724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17725 _ACEOF
17726
17727 fi
17728 done
17729
17730
17731 for ac_func in syscall
17732 do
17733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17734 echo "$as_me:$LINENO: checking for $ac_func" >&5
17735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17736 if eval "test \"\${$as_ac_var+set}\" = set"; then
17737 echo $ECHO_N "(cached) $ECHO_C" >&6
17738 else
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17747 #define $ac_func innocuous_$ac_func
17748
17749 /* System header to define __stub macros and hopefully few prototypes,
17750 which can conflict with char $ac_func (); below.
17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752 <limits.h> exists even on freestanding compilers. */
17753
17754 #ifdef __STDC__
17755 # include <limits.h>
17756 #else
17757 # include <assert.h>
17758 #endif
17759
17760 #undef $ac_func
17761
17762 /* Override any gcc2 internal prototype to avoid an error. */
17763 #ifdef __cplusplus
17764 extern "C"
17765 {
17766 #endif
17767 /* We use char because int might match the return type of a gcc2
17768 builtin and then its argument prototype would still apply. */
17769 char $ac_func ();
17770 /* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
17773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17774 choke me
17775 #else
17776 char (*f) () = $ac_func;
17777 #endif
17778 #ifdef __cplusplus
17779 }
17780 #endif
17781
17782 int
17783 main ()
17784 {
17785 return f != $ac_func;
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17792 (eval $ac_link) 2>conftest.er1
17793 ac_status=$?
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); } &&
17799 { ac_try='test -z "$ac_c_werror_flag"
17800 || test ! -s conftest.err'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest$ac_exeext'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; }; then
17812 eval "$as_ac_var=yes"
17813 else
17814 echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817 eval "$as_ac_var=no"
17818 fi
17819 rm -f conftest.err conftest.$ac_objext \
17820 conftest$ac_exeext conftest.$ac_ext
17821 fi
17822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827 _ACEOF
17828
17829 fi
17830 done
17831
17832
17833 for ac_func in ttrace
17834 do
17835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17836 echo "$as_me:$LINENO: checking for $ac_func" >&5
17837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17838 if eval "test \"\${$as_ac_var+set}\" = set"; then
17839 echo $ECHO_N "(cached) $ECHO_C" >&6
17840 else
17841 cat >conftest.$ac_ext <<_ACEOF
17842 /* confdefs.h. */
17843 _ACEOF
17844 cat confdefs.h >>conftest.$ac_ext
17845 cat >>conftest.$ac_ext <<_ACEOF
17846 /* end confdefs.h. */
17847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17849 #define $ac_func innocuous_$ac_func
17850
17851 /* System header to define __stub macros and hopefully few prototypes,
17852 which can conflict with char $ac_func (); below.
17853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17854 <limits.h> exists even on freestanding compilers. */
17855
17856 #ifdef __STDC__
17857 # include <limits.h>
17858 #else
17859 # include <assert.h>
17860 #endif
17861
17862 #undef $ac_func
17863
17864 /* Override any gcc2 internal prototype to avoid an error. */
17865 #ifdef __cplusplus
17866 extern "C"
17867 {
17868 #endif
17869 /* We use char because int might match the return type of a gcc2
17870 builtin and then its argument prototype would still apply. */
17871 char $ac_func ();
17872 /* The GNU C library defines this for functions which it implements
17873 to always fail with ENOSYS. Some functions are actually named
17874 something starting with __ and the normal name is an alias. */
17875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17876 choke me
17877 #else
17878 char (*f) () = $ac_func;
17879 #endif
17880 #ifdef __cplusplus
17881 }
17882 #endif
17883
17884 int
17885 main ()
17886 {
17887 return f != $ac_func;
17888 ;
17889 return 0;
17890 }
17891 _ACEOF
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17894 (eval $ac_link) 2>conftest.er1
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
17901 { ac_try='test -z "$ac_c_werror_flag"
17902 || test ! -s conftest.err'
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try='test -s conftest$ac_exeext'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914 eval "$as_ac_var=yes"
17915 else
17916 echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 eval "$as_ac_var=no"
17920 fi
17921 rm -f conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
17923 fi
17924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17926 if test `eval echo '${'$as_ac_var'}'` = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929 _ACEOF
17930
17931 fi
17932 done
17933
17934
17935 for ac_func in wborder
17936 do
17937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17938 echo "$as_me:$LINENO: checking for $ac_func" >&5
17939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17940 if eval "test \"\${$as_ac_var+set}\" = set"; then
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17942 else
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17951 #define $ac_func innocuous_$ac_func
17952
17953 /* System header to define __stub macros and hopefully few prototypes,
17954 which can conflict with char $ac_func (); below.
17955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956 <limits.h> exists even on freestanding compilers. */
17957
17958 #ifdef __STDC__
17959 # include <limits.h>
17960 #else
17961 # include <assert.h>
17962 #endif
17963
17964 #undef $ac_func
17965
17966 /* Override any gcc2 internal prototype to avoid an error. */
17967 #ifdef __cplusplus
17968 extern "C"
17969 {
17970 #endif
17971 /* We use char because int might match the return type of a gcc2
17972 builtin and then its argument prototype would still apply. */
17973 char $ac_func ();
17974 /* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
17977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17978 choke me
17979 #else
17980 char (*f) () = $ac_func;
17981 #endif
17982 #ifdef __cplusplus
17983 }
17984 #endif
17985
17986 int
17987 main ()
17988 {
17989 return f != $ac_func;
17990 ;
17991 return 0;
17992 }
17993 _ACEOF
17994 rm -f conftest.$ac_objext conftest$ac_exeext
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>conftest.er1
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
18003 { ac_try='test -z "$ac_c_werror_flag"
18004 || test ! -s conftest.err'
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
18010 { ac_try='test -s conftest$ac_exeext'
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18017 else
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 eval "$as_ac_var=no"
18022 fi
18023 rm -f conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
18025 fi
18026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18028 if test `eval echo '${'$as_ac_var'}'` = yes; then
18029 cat >>confdefs.h <<_ACEOF
18030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18031 _ACEOF
18032
18033 fi
18034 done
18035
18036
18037 # Check the return and argument types of ptrace. No canned test for
18038 # this, so roll our own.
18039 gdb_ptrace_headers='
18040 #if HAVE_SYS_TYPES_H
18041 # include <sys/types.h>
18042 #endif
18043 #if HAVE_SYS_PTRACE_H
18044 # include <sys/ptrace.h>
18045 #endif
18046 #if HAVE_UNISTD_H
18047 # include <unistd.h>
18048 #endif
18049 '
18050 # There is no point in checking if we don't have a prototype.
18051 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18052 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18053 if test "${ac_cv_have_decl_ptrace+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056 cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h. */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 $gdb_ptrace_headers
18063
18064 int
18065 main ()
18066 {
18067 #ifndef ptrace
18068 char *p = (char *) ptrace;
18069 #endif
18070
18071 ;
18072 return 0;
18073 }
18074 _ACEOF
18075 rm -f conftest.$ac_objext
18076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077 (eval $ac_compile) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
18084 { ac_try='test -z "$ac_c_werror_flag"
18085 || test ! -s conftest.err'
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_have_decl_ptrace=yes
18098 else
18099 echo "$as_me: failed program was:" >&5
18100 sed 's/^/| /' conftest.$ac_ext >&5
18101
18102 ac_cv_have_decl_ptrace=no
18103 fi
18104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18105 fi
18106 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18107 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18108 if test $ac_cv_have_decl_ptrace = yes; then
18109
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_DECL_PTRACE 1
18112 _ACEOF
18113
18114
18115 else
18116 cat >>confdefs.h <<_ACEOF
18117 #define HAVE_DECL_PTRACE 0
18118 _ACEOF
18119
18120
18121 : ${gdb_cv_func_ptrace_ret='int'}
18122 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18123
18124 fi
18125
18126
18127 # Check return type.
18128 echo "$as_me:$LINENO: checking return type of ptrace" >&5
18129 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18130 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 $gdb_ptrace_headers
18140 int
18141 main ()
18142 {
18143 extern int ptrace ();
18144 ;
18145 return 0;
18146 }
18147 _ACEOF
18148 rm -f conftest.$ac_objext
18149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
18157 { ac_try='test -z "$ac_c_werror_flag"
18158 || test ! -s conftest.err'
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest.$ac_objext'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
18170 gdb_cv_func_ptrace_ret='int'
18171 else
18172 echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18174
18175 gdb_cv_func_ptrace_ret='long'
18176 fi
18177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18178 fi
18179 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18180 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18181
18182 cat >>confdefs.h <<_ACEOF
18183 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18184 _ACEOF
18185
18186 # Check argument types.
18187 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18188 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18189 if test "${gdb_cv_func_ptrace_args+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192
18193 for gdb_arg1 in 'int' 'long'; do
18194 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18195 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18196 for gdb_arg4 in 'int' 'long'; do
18197 cat >conftest.$ac_ext <<_ACEOF
18198 /* confdefs.h. */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h. */
18203 $gdb_ptrace_headers
18204 int
18205 main ()
18206 {
18207
18208 extern $gdb_cv_func_ptrace_ret
18209 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18210
18211 ;
18212 return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18238 break 4;
18239 else
18240 echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 fi
18244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18245 for gdb_arg5 in 'int *' 'int' 'long'; do
18246 cat >conftest.$ac_ext <<_ACEOF
18247 /* confdefs.h. */
18248 _ACEOF
18249 cat confdefs.h >>conftest.$ac_ext
18250 cat >>conftest.$ac_ext <<_ACEOF
18251 /* end confdefs.h. */
18252 $gdb_ptrace_headers
18253 int
18254 main ()
18255 {
18256
18257 extern $gdb_cv_func_ptrace_ret
18258 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18259
18260 ;
18261 return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286
18287 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18288 break 5;
18289 else
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293 fi
18294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18295 done
18296 done
18297 done
18298 done
18299 done
18300 # Provide a safe default value.
18301 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18302
18303 fi
18304 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18305 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18306 ac_save_IFS=$IFS; IFS=','
18307 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18308 IFS=$ac_save_IFS
18309 shift
18310
18311 cat >>confdefs.h <<_ACEOF
18312 #define PTRACE_TYPE_ARG3 $3
18313 _ACEOF
18314
18315 if test -n "$5"; then
18316
18317 cat >>confdefs.h <<_ACEOF
18318 #define PTRACE_TYPE_ARG5 $5
18319 _ACEOF
18320
18321 fi
18322
18323 if test "$cross_compiling" = no; then
18324 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18325 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18326 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 else
18329 if test "$cross_compiling" = yes; then
18330 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18331 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18332 { (exit 1); exit 1; }; }
18333 else
18334 cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h. */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 #if HAVE_UNISTD_H
18341 # include <unistd.h>
18342 #endif
18343
18344 int
18345 main ()
18346 {
18347 /* If this system has a BSD-style setpgrp which takes arguments,
18348 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18349 exit successfully. */
18350 exit (setpgrp (1,1) == -1 ? 0 : 1);
18351 ;
18352 return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest$ac_exeext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357 (eval $ac_link) 2>&5
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_func_setpgrp_void=no
18367 else
18368 echo "$as_me: program exited with status $ac_status" >&5
18369 echo "$as_me: failed program was:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18371
18372 ( exit $ac_status )
18373 ac_cv_func_setpgrp_void=yes
18374 fi
18375 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18376 fi
18377 fi
18378 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18379 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18380 if test $ac_cv_func_setpgrp_void = yes; then
18381
18382 cat >>confdefs.h <<\_ACEOF
18383 #define SETPGRP_VOID 1
18384 _ACEOF
18385
18386 fi
18387
18388 else
18389 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18390 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18391 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h. */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400
18401 #include <unistd.h>
18402
18403 int
18404 main ()
18405 {
18406
18407 if (setpgrp(1,1) == -1)
18408 exit (0);
18409 else
18410 exit (1);
18411
18412 ;
18413 return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext
18417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18418 (eval $ac_compile) 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -z "$ac_c_werror_flag"
18426 || test ! -s conftest.err'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest.$ac_objext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 ac_cv_func_setpgrp_void=no
18439 else
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18442
18443 ac_cv_func_setpgrp_void=yes
18444 fi
18445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18446 fi
18447 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18448 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18449 if test $ac_cv_func_setpgrp_void = yes; then
18450 cat >>confdefs.h <<\_ACEOF
18451 #define SETPGRP_VOID 1
18452 _ACEOF
18453
18454 fi
18455 fi
18456
18457 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18458 # since sigsetjmp might only be defined as a macro.
18459 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18460 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
18461 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463 else
18464 cat >conftest.$ac_ext <<_ACEOF
18465 /* confdefs.h. */
18466 _ACEOF
18467 cat confdefs.h >>conftest.$ac_ext
18468 cat >>conftest.$ac_ext <<_ACEOF
18469 /* end confdefs.h. */
18470
18471 #include <setjmp.h>
18472
18473 int
18474 main ()
18475 {
18476 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18477 ;
18478 return 0;
18479 }
18480 _ACEOF
18481 rm -f conftest.$ac_objext
18482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18483 (eval $ac_compile) 2>conftest.er1
18484 ac_status=$?
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
18490 { ac_try='test -z "$ac_c_werror_flag"
18491 || test ! -s conftest.err'
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
18503 gdb_cv_func_sigsetjmp=yes
18504 else
18505 echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508 gdb_cv_func_sigsetjmp=no
18509 fi
18510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18511 fi
18512 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18513 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18514 if test $gdb_cv_func_sigsetjmp = yes; then
18515
18516 cat >>confdefs.h <<\_ACEOF
18517 #define HAVE_SIGSETJMP 1
18518 _ACEOF
18519
18520 fi
18521
18522 # Assume we'll default to using the included libiberty regex.
18523 gdb_use_included_regex=yes
18524
18525 # However, if the system regex is GNU regex, then default to *not*
18526 # using the included regex.
18527 echo "$as_me:$LINENO: checking for GNU regex" >&5
18528 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18529 if test "${gdb_cv_have_gnu_regex+set}" = set; then
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531 else
18532 cat >conftest.$ac_ext <<_ACEOF
18533 /* confdefs.h. */
18534 _ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 #include <gnu-versions.h>
18539 int
18540 main ()
18541 {
18542 #define REGEX_INTERFACE_VERSION 1
18543 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18544 # error "Version mismatch"
18545 #endif
18546 ;
18547 return 0;
18548 }
18549 _ACEOF
18550 rm -f conftest.$ac_objext
18551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
18559 { ac_try='test -z "$ac_c_werror_flag"
18560 || test ! -s conftest.err'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 gdb_cv_have_gnu_regex=yes
18573 else
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18576
18577 gdb_cv_have_gnu_regex=no
18578 fi
18579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18580 fi
18581 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18582 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18583 if test $gdb_cv_have_gnu_regex = yes; then
18584 gdb_use_included_regex=no
18585 fi
18586
18587
18588 # Check whether --with-included-regex or --without-included-regex was given.
18589 if test "${with_included_regex+set}" = set; then
18590 withval="$with_included_regex"
18591 gdb_with_regex=$withval
18592 else
18593 gdb_with_regex=$gdb_use_included_regex
18594 fi;
18595 if test "$gdb_with_regex" = yes; then
18596
18597 cat >>confdefs.h <<\_ACEOF
18598 #define USE_INCLUDED_REGEX 1
18599 _ACEOF
18600
18601 fi
18602
18603 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18604 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18605 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18606 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 else
18609 cat >conftest.$ac_ext <<_ACEOF
18610 /* confdefs.h. */
18611 _ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 #include <sys/param.h>
18616 #include <sys/proc.h>
18617
18618
18619 int
18620 main ()
18621 {
18622 static struct thread ac_aggr;
18623 if (ac_aggr.td_pcb)
18624 return 0;
18625 ;
18626 return 0;
18627 }
18628 _ACEOF
18629 rm -f conftest.$ac_objext
18630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18631 (eval $ac_compile) 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
18638 { ac_try='test -z "$ac_c_werror_flag"
18639 || test ! -s conftest.err'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
18651 ac_cv_member_struct_thread_td_pcb=yes
18652 else
18653 echo "$as_me: failed program was:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18655
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 #include <sys/param.h>
18663 #include <sys/proc.h>
18664
18665
18666 int
18667 main ()
18668 {
18669 static struct thread ac_aggr;
18670 if (sizeof ac_aggr.td_pcb)
18671 return 0;
18672 ;
18673 return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext
18677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678 (eval $ac_compile) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_member_struct_thread_td_pcb=yes
18699 else
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 ac_cv_member_struct_thread_td_pcb=no
18704 fi
18705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18706 fi
18707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18708 fi
18709 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18710 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18711 if test $ac_cv_member_struct_thread_td_pcb = yes; then
18712
18713 cat >>confdefs.h <<_ACEOF
18714 #define HAVE_STRUCT_THREAD_TD_PCB 1
18715 _ACEOF
18716
18717
18718 fi
18719
18720
18721 # See if <sys/lwp.h> defines `struct lwp`.
18722 echo "$as_me:$LINENO: checking for struct lwp" >&5
18723 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18724 if test "${gdb_cv_struct_lwp+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 #include <sys/param.h>
18734 #include <sys/lwp.h>
18735 int
18736 main ()
18737 {
18738 struct lwp l;
18739 ;
18740 return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745 (eval $ac_compile) 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 gdb_cv_struct_lwp=yes
18766 else
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770 gdb_cv_struct_lwp=no
18771 fi
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773 fi
18774 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18775 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18776 if test $gdb_cv_struct_lwp = yes; then
18777
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE_STRUCT_LWP 1
18780 _ACEOF
18781
18782 fi
18783
18784 # See if <machine/reg.h> degines `struct reg'.
18785 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18786 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18787 if test "${gdb_cv_struct_reg+set}" = set; then
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 else
18790 cat >conftest.$ac_ext <<_ACEOF
18791 /* confdefs.h. */
18792 _ACEOF
18793 cat confdefs.h >>conftest.$ac_ext
18794 cat >>conftest.$ac_ext <<_ACEOF
18795 /* end confdefs.h. */
18796 #include <sys/types.h>
18797 #include <machine/reg.h>
18798 int
18799 main ()
18800 {
18801 struct reg r;
18802 ;
18803 return 0;
18804 }
18805 _ACEOF
18806 rm -f conftest.$ac_objext
18807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18808 (eval $ac_compile) 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest.$ac_objext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
18828 gdb_cv_struct_reg=yes
18829 else
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 gdb_cv_struct_reg=no
18834 fi
18835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18836 fi
18837 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18838 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18839 if test $gdb_cv_struct_reg = yes; then
18840
18841 cat >>confdefs.h <<\_ACEOF
18842 #define HAVE_STRUCT_REG 1
18843 _ACEOF
18844
18845 fi
18846
18847 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18848 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18849 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18850 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18851 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 #include <machine/reg.h>
18861
18862 int
18863 main ()
18864 {
18865 static struct reg ac_aggr;
18866 if (ac_aggr.r_fs)
18867 return 0;
18868 ;
18869 return 0;
18870 }
18871 _ACEOF
18872 rm -f conftest.$ac_objext
18873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874 (eval $ac_compile) 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
18881 { ac_try='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_member_struct_reg_r_fs=yes
18895 else
18896 echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899 cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h. */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 #include <machine/reg.h>
18906
18907 int
18908 main ()
18909 {
18910 static struct reg ac_aggr;
18911 if (sizeof ac_aggr.r_fs)
18912 return 0;
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18919 (eval $ac_compile) 2>conftest.er1
18920 ac_status=$?
18921 grep -v '^ *+' conftest.er1 >conftest.err
18922 rm -f conftest.er1
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
18926 { ac_try='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
18939 ac_cv_member_struct_reg_r_fs=yes
18940 else
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ac_cv_member_struct_reg_r_fs=no
18945 fi
18946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18947 fi
18948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18949 fi
18950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18951 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
18952 if test $ac_cv_member_struct_reg_r_fs = yes; then
18953
18954 cat >>confdefs.h <<_ACEOF
18955 #define HAVE_STRUCT_REG_R_FS 1
18956 _ACEOF
18957
18958
18959 fi
18960 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18961 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
18962 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
18963 echo $ECHO_N "(cached) $ECHO_C" >&6
18964 else
18965 cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h. */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 #include <machine/reg.h>
18972
18973 int
18974 main ()
18975 {
18976 static struct reg ac_aggr;
18977 if (ac_aggr.r_gs)
18978 return 0;
18979 ;
18980 return 0;
18981 }
18982 _ACEOF
18983 rm -f conftest.$ac_objext
18984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18985 (eval $ac_compile) 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_c_werror_flag"
18993 || test ! -s conftest.err'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; } &&
18999 { ac_try='test -s conftest.$ac_objext'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; }; then
19005 ac_cv_member_struct_reg_r_gs=yes
19006 else
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h. */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 #include <machine/reg.h>
19017
19018 int
19019 main ()
19020 {
19021 static struct reg ac_aggr;
19022 if (sizeof ac_aggr.r_gs)
19023 return 0;
19024 ;
19025 return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030 (eval $ac_compile) 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_member_struct_reg_r_gs=yes
19051 else
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19054
19055 ac_cv_member_struct_reg_r_gs=no
19056 fi
19057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19058 fi
19059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19060 fi
19061 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19062 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19063 if test $ac_cv_member_struct_reg_r_gs = yes; then
19064
19065 cat >>confdefs.h <<_ACEOF
19066 #define HAVE_STRUCT_REG_R_GS 1
19067 _ACEOF
19068
19069
19070 fi
19071
19072
19073 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19074 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19075 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19076 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
19077 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h. */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 #include <sys/ptrace.h>
19086 int
19087 main ()
19088 {
19089 PTRACE_GETREGS;
19090 ;
19091 return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext
19095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest.$ac_objext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
19116 gdb_cv_have_ptrace_getregs=yes
19117 else
19118 echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 gdb_cv_have_ptrace_getregs=no
19122 fi
19123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19124 fi
19125
19126 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19127 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19128 if test $gdb_cv_have_ptrace_getregs = yes; then
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_PTRACE_GETREGS 1
19132 _ACEOF
19133
19134 fi
19135
19136 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19137 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19138 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19139 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 #include <sys/ptrace.h>
19149 int
19150 main ()
19151 {
19152 PTRACE_GETFPXREGS;
19153 ;
19154 return 0;
19155 }
19156 _ACEOF
19157 rm -f conftest.$ac_objext
19158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
19166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
19179 gdb_cv_have_ptrace_getfpxregs=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 gdb_cv_have_ptrace_getfpxregs=no
19185 fi
19186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19187 fi
19188
19189 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19190 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19191 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19192
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_PTRACE_GETFPXREGS 1
19195 _ACEOF
19196
19197 fi
19198
19199 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19200 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19201 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19202 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <sys/types.h>
19212 #include <sys/ptrace.h>
19213 int
19214 main ()
19215 {
19216 PT_GETDBREGS;
19217 ;
19218 return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest.$ac_objext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243 gdb_cv_have_pt_getdbregs=yes
19244 else
19245 echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19247
19248 gdb_cv_have_pt_getdbregs=no
19249 fi
19250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19251 fi
19252
19253 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19254 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19255 if test $gdb_cv_have_pt_getdbregs = yes; then
19256
19257 cat >>confdefs.h <<\_ACEOF
19258 #define HAVE_PT_GETDBREGS 1
19259 _ACEOF
19260
19261 fi
19262
19263 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19264 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19265 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19266 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269 cat >conftest.$ac_ext <<_ACEOF
19270 /* confdefs.h. */
19271 _ACEOF
19272 cat confdefs.h >>conftest.$ac_ext
19273 cat >>conftest.$ac_ext <<_ACEOF
19274 /* end confdefs.h. */
19275 #include <sys/types.h>
19276 #include <sys/ptrace.h>
19277 int
19278 main ()
19279 {
19280 PT_GETXMMREGS;
19281 ;
19282 return 0;
19283 }
19284 _ACEOF
19285 rm -f conftest.$ac_objext
19286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
19294 { ac_try='test -z "$ac_c_werror_flag"
19295 || test ! -s conftest.err'
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try='test -s conftest.$ac_objext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
19307 gdb_cv_have_pt_getxmmregs=yes
19308 else
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19311
19312 gdb_cv_have_pt_getxmmregs=no
19313 fi
19314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19315 fi
19316
19317 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19318 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19319 if test $gdb_cv_have_pt_getxmmregs = yes; then
19320
19321 cat >>confdefs.h <<\_ACEOF
19322 #define HAVE_PT_GETXMMREGS 1
19323 _ACEOF
19324
19325 fi
19326
19327 # Detect which type of /proc is in use, such as for Unixware or Solaris.
19328
19329 if test "${target}" = "${host}"; then
19330 case "${host}" in
19331 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19332
19333 cat >>confdefs.h <<\_ACEOF
19334 #define NEW_PROC_API 1
19335 _ACEOF
19336
19337 ;;
19338 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19339
19340 cat >>confdefs.h <<\_ACEOF
19341 #define NEW_PROC_API 1
19342 _ACEOF
19343
19344 ;;
19345 mips-sgi-irix5*)
19346 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19347
19348 cat >>confdefs.h <<\_ACEOF
19349 #define _KMEMUSER 1
19350 _ACEOF
19351
19352 ;;
19353 esac
19354 fi
19355
19356 if test "$ac_cv_header_sys_procfs_h" = yes; then
19357 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19358 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19359 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368
19369 #define _SYSCALL32
19370 #include <sys/procfs.h>
19371 int
19372 main ()
19373 {
19374 pstatus_t avar
19375 ;
19376 return 0;
19377 }
19378 _ACEOF
19379 rm -f conftest.$ac_objext
19380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
19401 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19402 else
19403 echo "$as_me: failed program was:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19405
19406 bfd_cv_have_sys_procfs_type_pstatus_t=no
19407
19408 fi
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 fi
19411
19412 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19413
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE_PSTATUS_T 1
19416 _ACEOF
19417
19418 fi
19419 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19420 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19421
19422 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19423 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
19424 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427 cat >conftest.$ac_ext <<_ACEOF
19428 /* confdefs.h. */
19429 _ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19433
19434 #define _SYSCALL32
19435 #include <sys/procfs.h>
19436 int
19437 main ()
19438 {
19439 prrun_t avar
19440 ;
19441 return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 bfd_cv_have_sys_procfs_type_prrun_t=yes
19467 else
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471 bfd_cv_have_sys_procfs_type_prrun_t=no
19472
19473 fi
19474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19475 fi
19476
19477 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19478
19479 cat >>confdefs.h <<\_ACEOF
19480 #define HAVE_PRRUN_T 1
19481 _ACEOF
19482
19483 fi
19484 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19485 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19486
19487 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19488 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19489 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492 cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h. */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498
19499 #define _SYSCALL32
19500 #include <sys/procfs.h>
19501 int
19502 main ()
19503 {
19504 gregset_t avar
19505 ;
19506 return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
19518 { ac_try='test -z "$ac_c_werror_flag"
19519 || test ! -s conftest.err'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19531 bfd_cv_have_sys_procfs_type_gregset_t=yes
19532 else
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19535
19536 bfd_cv_have_sys_procfs_type_gregset_t=no
19537
19538 fi
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19540 fi
19541
19542 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19543
19544 cat >>confdefs.h <<\_ACEOF
19545 #define HAVE_GREGSET_T 1
19546 _ACEOF
19547
19548 fi
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19550 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19551
19552 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19553 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19554 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563
19564 #define _SYSCALL32
19565 #include <sys/procfs.h>
19566 int
19567 main ()
19568 {
19569 fpregset_t avar
19570 ;
19571 return 0;
19572 }
19573 _ACEOF
19574 rm -f conftest.$ac_objext
19575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19597 else
19598 echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 bfd_cv_have_sys_procfs_type_fpregset_t=no
19602
19603 fi
19604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19605 fi
19606
19607 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19608
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE_FPREGSET_T 1
19611 _ACEOF
19612
19613 fi
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19615 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19616
19617 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19618 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19619 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622 cat >conftest.$ac_ext <<_ACEOF
19623 /* confdefs.h. */
19624 _ACEOF
19625 cat confdefs.h >>conftest.$ac_ext
19626 cat >>conftest.$ac_ext <<_ACEOF
19627 /* end confdefs.h. */
19628
19629 #define _SYSCALL32
19630 #include <sys/procfs.h>
19631 int
19632 main ()
19633 {
19634 prgregset_t avar
19635 ;
19636 return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext
19640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19661 bfd_cv_have_sys_procfs_type_prgregset_t=yes
19662 else
19663 echo "$as_me: failed program was:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19665
19666 bfd_cv_have_sys_procfs_type_prgregset_t=no
19667
19668 fi
19669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670 fi
19671
19672 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define HAVE_PRGREGSET_T 1
19676 _ACEOF
19677
19678 fi
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19680 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19681
19682 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19683 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19684 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 else
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h. */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693
19694 #define _SYSCALL32
19695 #include <sys/procfs.h>
19696 int
19697 main ()
19698 {
19699 prfpregset_t avar
19700 ;
19701 return 0;
19702 }
19703 _ACEOF
19704 rm -f conftest.$ac_objext
19705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 bfd_cv_have_sys_procfs_type_prfpregset_t=no
19732
19733 fi
19734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735 fi
19736
19737 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19738
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_PRFPREGSET_T 1
19741 _ACEOF
19742
19743 fi
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19745 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19746
19747 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19748 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19749 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19751 else
19752 cat >conftest.$ac_ext <<_ACEOF
19753 /* confdefs.h. */
19754 _ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19758
19759 #define _SYSCALL32
19760 #include <sys/procfs.h>
19761 int
19762 main ()
19763 {
19764 prgregset32_t avar
19765 ;
19766 return 0;
19767 }
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771 (eval $ac_compile) 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } &&
19778 { ac_try='test -z "$ac_c_werror_flag"
19779 || test ! -s conftest.err'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19792 else
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 bfd_cv_have_sys_procfs_type_prgregset32_t=no
19797
19798 fi
19799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19800 fi
19801
19802 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19803
19804 cat >>confdefs.h <<\_ACEOF
19805 #define HAVE_PRGREGSET32_T 1
19806 _ACEOF
19807
19808 fi
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19810 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19811
19812 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19813 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19814 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817 cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h. */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19823
19824 #define _SYSCALL32
19825 #include <sys/procfs.h>
19826 int
19827 main ()
19828 {
19829 prfpregset32_t avar
19830 ;
19831 return 0;
19832 }
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
19843 { ac_try='test -z "$ac_c_werror_flag"
19844 || test ! -s conftest.err'
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19857 else
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19862
19863 fi
19864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19865 fi
19866
19867 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19868
19869 cat >>confdefs.h <<\_ACEOF
19870 #define HAVE_PRFPREGSET32_T 1
19871 _ACEOF
19872
19873 fi
19874 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19875 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19876
19877 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19878 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19879 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h. */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888
19889 #define _SYSCALL32
19890 #include <sys/procfs.h>
19891 int
19892 main ()
19893 {
19894 lwpid_t avar
19895 ;
19896 return 0;
19897 }
19898 _ACEOF
19899 rm -f conftest.$ac_objext
19900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
19908 { ac_try='test -z "$ac_c_werror_flag"
19909 || test ! -s conftest.err'
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
19921 bfd_cv_have_sys_procfs_type_lwpid_t=yes
19922 else
19923 echo "$as_me: failed program was:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19925
19926 bfd_cv_have_sys_procfs_type_lwpid_t=no
19927
19928 fi
19929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19930 fi
19931
19932 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19933
19934 cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_LWPID_T 1
19936 _ACEOF
19937
19938 fi
19939 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19940 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
19941
19942 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19943 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
19944 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
19946 else
19947 cat >conftest.$ac_ext <<_ACEOF
19948 /* confdefs.h. */
19949 _ACEOF
19950 cat confdefs.h >>conftest.$ac_ext
19951 cat >>conftest.$ac_ext <<_ACEOF
19952 /* end confdefs.h. */
19953
19954 #define _SYSCALL32
19955 #include <sys/procfs.h>
19956 int
19957 main ()
19958 {
19959 psaddr_t avar
19960 ;
19961 return 0;
19962 }
19963 _ACEOF
19964 rm -f conftest.$ac_objext
19965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19966 (eval $ac_compile) 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
19973 { ac_try='test -z "$ac_c_werror_flag"
19974 || test ! -s conftest.err'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
19986 bfd_cv_have_sys_procfs_type_psaddr_t=yes
19987 else
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991 bfd_cv_have_sys_procfs_type_psaddr_t=no
19992
19993 fi
19994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19995 fi
19996
19997 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
19998
19999 cat >>confdefs.h <<\_ACEOF
20000 #define HAVE_PSADDR_T 1
20001 _ACEOF
20002
20003 fi
20004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20005 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20006
20007 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20008 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20009 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018
20019 #define _SYSCALL32
20020 #include <sys/procfs.h>
20021 int
20022 main ()
20023 {
20024 prsysent_t avar
20025 ;
20026 return 0;
20027 }
20028 _ACEOF
20029 rm -f conftest.$ac_objext
20030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
20051 bfd_cv_have_sys_procfs_type_prsysent_t=yes
20052 else
20053 echo "$as_me: failed program was:" >&5
20054 sed 's/^/| /' conftest.$ac_ext >&5
20055
20056 bfd_cv_have_sys_procfs_type_prsysent_t=no
20057
20058 fi
20059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20060 fi
20061
20062 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20063
20064 cat >>confdefs.h <<\_ACEOF
20065 #define HAVE_PRSYSENT_T 1
20066 _ACEOF
20067
20068 fi
20069 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20070 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20071
20072 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20073 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20074 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076 else
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h. */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083
20084 #define _SYSCALL32
20085 #include <sys/procfs.h>
20086 int
20087 main ()
20088 {
20089 pr_sigset_t avar
20090 ;
20091 return 0;
20092 }
20093 _ACEOF
20094 rm -f conftest.$ac_objext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -z "$ac_c_werror_flag"
20104 || test ! -s conftest.err'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20117 else
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20122
20123 fi
20124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20125 fi
20126
20127 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20128
20129 cat >>confdefs.h <<\_ACEOF
20130 #define HAVE_PR_SIGSET_T 1
20131 _ACEOF
20132
20133 fi
20134 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20135 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20136
20137 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20138 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20139 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148
20149 #define _SYSCALL32
20150 #include <sys/procfs.h>
20151 int
20152 main ()
20153 {
20154 pr_sigaction64_t avar
20155 ;
20156 return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext
20160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
20168 { ac_try='test -z "$ac_c_werror_flag"
20169 || test ! -s conftest.err'
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20182 else
20183 echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20187
20188 fi
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20190 fi
20191
20192 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20193
20194 cat >>confdefs.h <<\_ACEOF
20195 #define HAVE_PR_SIGACTION64_T 1
20196 _ACEOF
20197
20198 fi
20199 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20200 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20201
20202 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20203 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20204 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213
20214 #define _SYSCALL32
20215 #include <sys/procfs.h>
20216 int
20217 main ()
20218 {
20219 pr_siginfo64_t avar
20220 ;
20221 return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20247 else
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20252
20253 fi
20254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20255 fi
20256
20257 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20258
20259 cat >>confdefs.h <<\_ACEOF
20260 #define HAVE_PR_SIGINFO64_T 1
20261 _ACEOF
20262
20263 fi
20264 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20265 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20266
20267
20268
20269
20270
20271 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20272 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20273 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20274 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 if test "$cross_compiling" = yes; then
20278 gdb_cv_prfpregset_t_broken=yes
20279 else
20280 cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h. */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h. */
20286 #include <sys/procfs.h>
20287 int main ()
20288 {
20289 if (sizeof (prfpregset_t) == sizeof (void *))
20290 return 1;
20291 return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest$ac_exeext
20295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 gdb_cv_prfpregset_t_broken=no
20306 else
20307 echo "$as_me: program exited with status $ac_status" >&5
20308 echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311 ( exit $ac_status )
20312 gdb_cv_prfpregset_t_broken=yes
20313 fi
20314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20315 fi
20316 fi
20317
20318 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20319 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20320 if test $gdb_cv_prfpregset_t_broken = yes; then
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define PRFPREGSET_T_BROKEN 1
20324 _ACEOF
20325
20326 fi
20327 fi
20328
20329
20330 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20331 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20332 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20341 #include <unistd.h>
20342 #include <sys/types.h>
20343 #include <sys/procfs.h>
20344
20345 int
20346 main ()
20347 {
20348
20349 int dummy;;
20350 dummy = ioctl(0, PIOCSET, &dummy);
20351
20352 ;
20353 return 0;
20354 }
20355 _ACEOF
20356 rm -f conftest.$ac_objext
20357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20358 (eval $ac_compile) 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
20365 { ac_try='test -z "$ac_c_werror_flag"
20366 || test ! -s conftest.err'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 gdb_cv_have_procfs_piocset=yes
20379 else
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383 gdb_cv_have_procfs_piocset=no
20384 fi
20385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20386 fi
20387
20388 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20389 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
20390 if test $gdb_cv_have_procfs_piocset = yes; then
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE_PROCFS_PIOCSET 1
20394 _ACEOF
20395
20396 fi
20397 fi
20398
20399 if test ${host} = ${target} ; then
20400
20401 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20402 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
20403 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20412 #include <link.h>
20413 int
20414 main ()
20415 {
20416 struct link_map lm; (void) lm.l_addr;
20417 ;
20418 return 0;
20419 }
20420 _ACEOF
20421 rm -f conftest.$ac_objext
20422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
20430 { ac_try='test -z "$ac_c_werror_flag"
20431 || test ! -s conftest.err'
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 gdb_cv_have_struct_link_map_with_l_members=yes
20444 else
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 gdb_cv_have_struct_link_map_with_l_members=no
20449 fi
20450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20451 fi
20452
20453 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20454 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20455 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20456
20457 cat >>confdefs.h <<\_ACEOF
20458 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20459 _ACEOF
20460
20461 fi
20462
20463
20464 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20465 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20466 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 else
20469 cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h. */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20475 #include <sys/types.h>
20476 #include <link.h>
20477 int
20478 main ()
20479 {
20480 struct link_map lm; (void) lm.lm_addr;
20481 ;
20482 return 0;
20483 }
20484 _ACEOF
20485 rm -f conftest.$ac_objext
20486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
20507 gdb_cv_have_struct_link_map_with_lm_members=yes
20508 else
20509 echo "$as_me: failed program was:" >&5
20510 sed 's/^/| /' conftest.$ac_ext >&5
20511
20512 gdb_cv_have_struct_link_map_with_lm_members=no
20513 fi
20514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516
20517 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20518 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20519 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20520
20521 cat >>confdefs.h <<\_ACEOF
20522 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20523 _ACEOF
20524
20525 fi
20526
20527
20528 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20529 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20530 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 else
20533 cat >conftest.$ac_ext <<_ACEOF
20534 /* confdefs.h. */
20535 _ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include <sys/types.h>
20540 #ifdef HAVE_NLIST_H
20541 #include <nlist.h>
20542 #endif
20543 #include <link.h>
20544 int
20545 main ()
20546 {
20547 struct so_map lm; (void) lm.som_addr;
20548 ;
20549 return 0;
20550 }
20551 _ACEOF
20552 rm -f conftest.$ac_objext
20553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>conftest.er1
20555 ac_status=$?
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
20561 { ac_try='test -z "$ac_c_werror_flag"
20562 || test ! -s conftest.err'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 gdb_cv_have_struct_so_map_with_som_members=yes
20575 else
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20578
20579 gdb_cv_have_struct_so_map_with_som_members=no
20580 fi
20581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20582 fi
20583
20584 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20585 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20586 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20587
20588 cat >>confdefs.h <<\_ACEOF
20589 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20590 _ACEOF
20591
20592 fi
20593
20594
20595 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20596 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20597 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 else
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 #define _SYSCALL32
20607 #include <sys/link.h>
20608 int
20609 main ()
20610 {
20611 struct link_map32 l;
20612 ;
20613 return 0;
20614 }
20615 _ACEOF
20616 rm -f conftest.$ac_objext
20617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20618 (eval $ac_compile) 2>conftest.er1
20619 ac_status=$?
20620 grep -v '^ *+' conftest.er1 >conftest.err
20621 rm -f conftest.er1
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } &&
20625 { ac_try='test -z "$ac_c_werror_flag"
20626 || test ! -s conftest.err'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try='test -s conftest.$ac_objext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
20638 gdb_cv_have_struct_link_map32=yes
20639 else
20640 echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643 gdb_cv_have_struct_link_map32=no
20644 fi
20645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20646 fi
20647
20648 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20649 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20650 if test $gdb_cv_have_struct_link_map32 = yes; then
20651
20652 cat >>confdefs.h <<\_ACEOF
20653 #define HAVE_STRUCT_LINK_MAP32 1
20654 _ACEOF
20655
20656
20657 cat >>confdefs.h <<\_ACEOF
20658 #define _SYSCALL32 1
20659 _ACEOF
20660
20661 fi
20662 fi
20663
20664 # Check if the compiler supports the `long long' type.
20665
20666 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20667 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20668 if test "${gdb_cv_c_long_long+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671 cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h. */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677 extern long long foo;
20678 int
20679 main ()
20680 {
20681 switch (foo & 2) { case 0: return 1; }
20682 ;
20683 return 0;
20684 }
20685 _ACEOF
20686 rm -f conftest.$ac_objext
20687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20688 (eval $ac_compile) 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } &&
20695 { ac_try='test -z "$ac_c_werror_flag"
20696 || test ! -s conftest.err'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest.$ac_objext'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 gdb_cv_c_long_long=yes
20709 else
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20712
20713 gdb_cv_c_long_long=no
20714 fi
20715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20716 fi
20717 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20718 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20719 if test $gdb_cv_c_long_long = yes; then
20720
20721 cat >>confdefs.h <<\_ACEOF
20722 #define CC_HAS_LONG_LONG 1
20723 _ACEOF
20724
20725 fi
20726
20727 # Check if the compiler and runtime support printing long longs.
20728
20729 echo "$as_me:$LINENO: checking for long long support in printf" >&5
20730 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20731 if test "${gdb_cv_printf_has_long_long+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 if test "$cross_compiling" = yes; then
20735 gdb_cv_printf_has_long_long=no
20736 else
20737 cat >conftest.$ac_ext <<_ACEOF
20738 /* confdefs.h. */
20739 _ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 $ac_includes_default
20744 int
20745 main ()
20746 {
20747 char buf[32];
20748 long long l = 0;
20749 l = (l << 16) + 0x0123;
20750 l = (l << 16) + 0x4567;
20751 l = (l << 16) + 0x89ab;
20752 l = (l << 16) + 0xcdef;
20753 sprintf (buf, "0x%016llx", l);
20754 return (strcmp ("0x0123456789abcdef", buf));
20755 ;
20756 return 0;
20757 }
20758 _ACEOF
20759 rm -f conftest$ac_exeext
20760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761 (eval $ac_link) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
20770 gdb_cv_printf_has_long_long=yes
20771 else
20772 echo "$as_me: program exited with status $ac_status" >&5
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 ( exit $ac_status )
20777 gdb_cv_printf_has_long_long=no
20778 fi
20779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20780 fi
20781 fi
20782 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20783 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20784 if test $gdb_cv_printf_has_long_long = yes; then
20785
20786 cat >>confdefs.h <<\_ACEOF
20787 #define PRINTF_HAS_LONG_LONG 1
20788 _ACEOF
20789
20790 fi
20791
20792 # Check if the compiler supports the `long double' type. We can't use
20793 # AC_C_LONG_DOUBLE because that one does additional checks on the
20794 # constants defined in <float.h> that fail on some systems,
20795 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20796
20797 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20798 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20799 if test "${gdb_cv_c_long_double+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 long double foo;
20809 _ACEOF
20810 rm -f conftest.$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
20832 gdb_cv_c_long_double=yes
20833 else
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20836
20837 gdb_cv_c_long_double=no
20838 fi
20839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20840 fi
20841 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20842 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20843 if test $gdb_cv_c_long_double = yes; then
20844
20845 cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_LONG_DOUBLE 1
20847 _ACEOF
20848
20849 fi
20850
20851 # Check if the compiler and runtime support printing long doubles.
20852
20853 echo "$as_me:$LINENO: checking for long double support in printf" >&5
20854 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20855 if test "${gdb_cv_printf_has_long_double+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20857 else
20858 if test "$cross_compiling" = yes; then
20859 gdb_cv_printf_has_long_double=no
20860 else
20861 cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h. */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 $ac_includes_default
20868 int
20869 main ()
20870 {
20871 char buf[16];
20872 long double f = 3.141592653;
20873 sprintf (buf, "%Lg", f);
20874 return (strncmp ("3.14159", buf, 7));
20875 ;
20876 return 0;
20877 }
20878 _ACEOF
20879 rm -f conftest$ac_exeext
20880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20881 (eval $ac_link) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
20890 gdb_cv_printf_has_long_double=yes
20891 else
20892 echo "$as_me: program exited with status $ac_status" >&5
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ( exit $ac_status )
20897 gdb_cv_printf_has_long_double=no
20898 fi
20899 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20900 fi
20901 fi
20902 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20903 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20904 if test $gdb_cv_printf_has_long_double = yes; then
20905
20906 cat >>confdefs.h <<\_ACEOF
20907 #define PRINTF_HAS_LONG_DOUBLE 1
20908 _ACEOF
20909
20910 fi
20911
20912 # Check if the compiler and runtime support scanning long doubles.
20913
20914 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20915 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20916 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919 if test "$cross_compiling" = yes; then
20920 gdb_cv_scanf_has_long_double=no
20921 else
20922 cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h. */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <stdio.h>
20929 int
20930 main ()
20931 {
20932 char *buf = "3.141592653";
20933 long double f = 0;
20934 sscanf (buf, "%Lg", &f);
20935 return !(f > 3.14159 && f < 3.14160);
20936 ;
20937 return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
20951 gdb_cv_scanf_has_long_double=yes
20952 else
20953 echo "$as_me: program exited with status $ac_status" >&5
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ( exit $ac_status )
20958 gdb_cv_scanf_has_long_double=no
20959 fi
20960 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20961 fi
20962 fi
20963 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20964 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
20965 if test $gdb_cv_scanf_has_long_double = yes; then
20966
20967 cat >>confdefs.h <<\_ACEOF
20968 #define SCANF_HAS_LONG_DOUBLE 1
20969 _ACEOF
20970
20971 fi
20972
20973 case ${host_os} in
20974 aix*)
20975 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20976 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
20977 if test "${gdb_cv_bigtoc+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
20979 else
20980
20981 SAVE_LDFLAGS=$LDFLAGS
20982
20983 case $GCC in
20984 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20985 *) gdb_cv_bigtoc=-bbigtoc ;;
20986 esac
20987
20988 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995
20996 int
20997 main ()
20998 {
20999 int i;
21000 ;
21001 return 0;
21002 }
21003 _ACEOF
21004 rm -f conftest.$ac_objext conftest$ac_exeext
21005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006 (eval $ac_link) 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
21013 { ac_try='test -z "$ac_c_werror_flag"
21014 || test ! -s conftest.err'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest$ac_exeext'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
21026 :
21027 else
21028 echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21030
21031 gdb_cv_bigtoc=
21032 fi
21033 rm -f conftest.err conftest.$ac_objext \
21034 conftest$ac_exeext conftest.$ac_ext
21035 LDFLAGS="${SAVE_LDFLAGS}"
21036
21037 fi
21038 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21039 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21040 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21041 ;;
21042 esac
21043
21044
21045
21046 if test ${build} = ${host} -a ${host} = ${target} ; then
21047 case ${host_os} in
21048 hpux*)
21049 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21050 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21051 if test -f /usr/include/dce/cma_config.h ; then
21052 if test "$GCC" = "yes" ; then
21053 echo "$as_me:$LINENO: result: yes" >&5
21054 echo "${ECHO_T}yes" >&6
21055
21056 cat >>confdefs.h <<\_ACEOF
21057 #define HAVE_HPUX_THREAD_SUPPORT 1
21058 _ACEOF
21059
21060 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21061 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21062 else
21063 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21064 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21065 fi
21066 else
21067 echo "$as_me:$LINENO: result: no" >&5
21068 echo "${ECHO_T}no" >&6
21069 fi
21070 ;;
21071 solaris*)
21072 # See if thread_db library is around for Solaris thread debugging.
21073 # Note that we must explicitly test for version 1 of the library
21074 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21075 # the same API.
21076 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21077 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21078 if test -f /usr/lib/libthread_db.so.1 ; then
21079 echo "$as_me:$LINENO: result: yes" >&5
21080 echo "${ECHO_T}yes" >&6
21081
21082 cat >>confdefs.h <<\_ACEOF
21083 #define HAVE_THREAD_DB_LIB 1
21084 _ACEOF
21085
21086 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21087 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21088
21089 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21090 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 ac_check_lib_save_LIBS=$LIBS
21095 LIBS="-ldl $LIBS"
21096 cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h. */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102
21103 /* Override any gcc2 internal prototype to avoid an error. */
21104 #ifdef __cplusplus
21105 extern "C"
21106 #endif
21107 /* We use char because int might match the return type of a gcc2
21108 builtin and then its argument prototype would still apply. */
21109 char dlopen ();
21110 int
21111 main ()
21112 {
21113 dlopen ();
21114 ;
21115 return 0;
21116 }
21117 _ACEOF
21118 rm -f conftest.$ac_objext conftest$ac_exeext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120 (eval $ac_link) 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest$ac_exeext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_lib_dl_dlopen=yes
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 ac_cv_lib_dl_dlopen=no
21146 fi
21147 rm -f conftest.err conftest.$ac_objext \
21148 conftest$ac_exeext conftest.$ac_ext
21149 LIBS=$ac_check_lib_save_LIBS
21150 fi
21151 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21152 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21153 if test $ac_cv_lib_dl_dlopen = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define HAVE_LIBDL 1
21156 _ACEOF
21157
21158 LIBS="-ldl $LIBS"
21159
21160 fi
21161
21162 if test "$GCC" = "yes" ; then
21163 # The GNU linker requires the -export-dynamic option to make
21164 # all symbols visible in the dynamic symbol table.
21165 hold_ldflags=$LDFLAGS
21166 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21167 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21168 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h. */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175
21176 int
21177 main ()
21178 {
21179 int i;
21180 ;
21181 return 0;
21182 }
21183 _ACEOF
21184 rm -f conftest.$ac_objext conftest$ac_exeext
21185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186 (eval $ac_link) 2>conftest.er1
21187 ac_status=$?
21188 grep -v '^ *+' conftest.er1 >conftest.err
21189 rm -f conftest.er1
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } &&
21193 { ac_try='test -z "$ac_c_werror_flag"
21194 || test ! -s conftest.err'
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try='test -s conftest$ac_exeext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 found=yes
21207 else
21208 echo "$as_me: failed program was:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21210
21211 found=no
21212 fi
21213 rm -f conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21215 LDFLAGS=$hold_ldflags
21216 echo "$as_me:$LINENO: result: $found" >&5
21217 echo "${ECHO_T}$found" >&6
21218 if test $found = yes; then
21219 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21220 fi
21221 fi
21222 # Sun randomly tweaked the prototypes in <proc_service.h>
21223 # at one point.
21224 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21225 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21226 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229
21230 cat >conftest.$ac_ext <<_ACEOF
21231 /* confdefs.h. */
21232 _ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236
21237 #include <proc_service.h>
21238 ps_err_e ps_pdwrite
21239 (struct ps_prochandle*, psaddr_t, const void*, size_t);
21240
21241 int
21242 main ()
21243 {
21244
21245 ;
21246 return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext
21250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251 (eval $ac_compile) 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
21258 { ac_try='test -z "$ac_c_werror_flag"
21259 || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 gdb_cv_proc_service_is_old=no
21272 else
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21275
21276 gdb_cv_proc_service_is_old=yes
21277 fi
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279
21280 fi
21281
21282 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21283 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21284 if test $gdb_cv_proc_service_is_old = yes; then
21285
21286 cat >>confdefs.h <<\_ACEOF
21287 #define PROC_SERVICE_IS_OLD 1
21288 _ACEOF
21289
21290 fi
21291 else
21292 echo "$as_me:$LINENO: result: no" >&5
21293 echo "${ECHO_T}no" >&6
21294 fi
21295 ;;
21296 aix*)
21297 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21298 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21299 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301 else
21302 cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h. */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21308 #include <sys/pthdebug.h>
21309 int
21310 main ()
21311 {
21312 #ifndef PTHDB_VERSION_3
21313 #error
21314 #endif
21315 ;
21316 return 0;
21317 }
21318 _ACEOF
21319 rm -f conftest.$ac_objext
21320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21321 (eval $ac_compile) 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
21328 { ac_try='test -z "$ac_c_werror_flag"
21329 || test ! -s conftest.err'
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest.$ac_objext'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
21341 gdb_cv_have_aix_thread_debug=yes
21342 else
21343 echo "$as_me: failed program was:" >&5
21344 sed 's/^/| /' conftest.$ac_ext >&5
21345
21346 gdb_cv_have_aix_thread_debug=no
21347 fi
21348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21349 fi
21350
21351 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21352 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
21353 if test $gdb_cv_have_aix_thread_debug = yes; then
21354 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
21355 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
21356 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21357 fi
21358 ;;
21359 esac
21360
21361 fi
21362
21363 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
21364 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21365 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
21366 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369 cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h. */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 #include <thread_db.h>
21376 int
21377 main ()
21378 {
21379 int i = TD_NOTALLOC;
21380 ;
21381 return 0;
21382 }
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21386 (eval $ac_compile) 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
21393 { ac_try='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest.$ac_objext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 gdb_cv_thread_db_h_has_td_notalloc=yes
21407 else
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21410
21411 gdb_cv_thread_db_h_has_td_notalloc=no
21412
21413 fi
21414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21415
21416 fi
21417 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21418 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
21419 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21420 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21421 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h. */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 #include <thread_db.h>
21431 int
21432 main ()
21433 {
21434 int i = TD_VERSION;
21435 ;
21436 return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441 (eval $ac_compile) 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -z "$ac_c_werror_flag"
21449 || test ! -s conftest.err'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 gdb_cv_thread_db_h_has_td_version=yes
21462 else
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466 gdb_cv_thread_db_h_has_td_version=no
21467
21468 fi
21469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470
21471 fi
21472 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21473 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21474 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21475 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21476 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479 cat >conftest.$ac_ext <<_ACEOF
21480 /* confdefs.h. */
21481 _ACEOF
21482 cat confdefs.h >>conftest.$ac_ext
21483 cat >>conftest.$ac_ext <<_ACEOF
21484 /* end confdefs.h. */
21485 #include <thread_db.h>
21486 int
21487 main ()
21488 {
21489 int i = TD_NOTLS;
21490 ;
21491 return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21496 (eval $ac_compile) 2>conftest.er1
21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } &&
21503 { ac_try='test -z "$ac_c_werror_flag"
21504 || test ! -s conftest.err'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; } &&
21510 { ac_try='test -s conftest.$ac_objext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 gdb_cv_thread_db_h_has_td_notls=yes
21517 else
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 gdb_cv_thread_db_h_has_td_notls=no
21522
21523 fi
21524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21525
21526 fi
21527 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21528 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21529 fi
21530 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21531
21532 cat >>confdefs.h <<\_ACEOF
21533 #define THREAD_DB_HAS_TD_NOTALLOC 1
21534 _ACEOF
21535
21536 fi
21537 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21538
21539 cat >>confdefs.h <<\_ACEOF
21540 #define THREAD_DB_HAS_TD_VERSION 1
21541 _ACEOF
21542
21543 fi
21544 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21545
21546 cat >>confdefs.h <<\_ACEOF
21547 #define THREAD_DB_HAS_TD_NOTLS 1
21548 _ACEOF
21549
21550 fi
21551
21552 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21553 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21554 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21555 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557 else
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 #include <sys/syscall.h>
21565 int
21566 main ()
21567 {
21568 int i = __NR_tkill;
21569 ;
21570 return 0;
21571 }
21572 _ACEOF
21573 rm -f conftest.$ac_objext
21574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575 (eval $ac_compile) 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } &&
21582 { ac_try='test -z "$ac_c_werror_flag"
21583 || test ! -s conftest.err'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; } &&
21589 { ac_try='test -s conftest.$ac_objext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
21595 gdb_cv_sys_syscall_h_has_tkill=yes
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 gdb_cv_sys_syscall_h_has_tkill=no
21601
21602 fi
21603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21604
21605 fi
21606 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21607 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21608 fi
21609 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21610
21611 cat >>confdefs.h <<\_ACEOF
21612 #define HAVE_TKILL_SYSCALL 1
21613 _ACEOF
21614
21615 fi
21616
21617
21618
21619 # Check whether --with-sysroot or --without-sysroot was given.
21620 if test "${with_sysroot+set}" = set; then
21621 withval="$with_sysroot"
21622
21623 case ${with_sysroot} in
21624 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21625 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21626 esac
21627
21628 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21629
21630 if test "x$prefix" = xNONE; then
21631 test_prefix=/usr/local
21632 else
21633 test_prefix=$prefix
21634 fi
21635 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21636 test_exec_prefix=$test_prefix
21637 else
21638 test_exec_prefix=$exec_prefix
21639 fi
21640 case ${TARGET_SYSTEM_ROOT} in
21641 "${test_prefix}"|"${test_prefix}/"*|\
21642 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21643 '${prefix}'|'${prefix}/'*|\
21644 '${exec_prefix}'|'${exec_prefix}/'*)
21645 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21646 TARGET_SYSTEM_ROOT_DEFINE="$t"
21647 ;;
21648 esac
21649
21650 else
21651
21652 TARGET_SYSTEM_ROOT=
21653 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21654
21655 fi;
21656
21657
21658
21659 # Check whether --enable-werror or --disable-werror was given.
21660 if test "${enable_werror+set}" = set; then
21661 enableval="$enable_werror"
21662 case "${enableval}" in
21663 yes | y) ERROR_ON_WARNING="yes" ;;
21664 no | n) ERROR_ON_WARNING="no" ;;
21665 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21666 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21667 { (exit 1); exit 1; }; } ;;
21668 esac
21669 fi;
21670
21671 # Enable -Werror by default when using gcc
21672 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21673 ERROR_ON_WARNING=yes
21674 fi
21675
21676 WERROR_CFLAGS=""
21677 if test "${ERROR_ON_WARNING}" = yes ; then
21678 WERROR_CFLAGS="-Werror"
21679 fi
21680
21681 # The entries after -Wno-pointer-sign are disabled warnings which may
21682 # be enabled in the future, which can not currently be used to build
21683 # GDB.
21684 # NOTE: If you change this list, remember to update
21685 # gdb/doc/gdbint.texinfo.
21686 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21687 -Wformat-nonliteral -Wno-pointer-sign \
21688 -Wno-unused -Wno-switch -Wno-char-subscripts"
21689
21690 # Check whether --enable-build-warnings or --disable-build-warnings was given.
21691 if test "${enable_build_warnings+set}" = set; then
21692 enableval="$enable_build_warnings"
21693 case "${enableval}" in
21694 yes) ;;
21695 no) build_warnings="-w";;
21696 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21697 build_warnings="${build_warnings} ${t}";;
21698 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21699 build_warnings="${t} ${build_warnings}";;
21700 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21701 esac
21702 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21703 echo "Setting compiler warning flags = $build_warnings" 6>&1
21704 fi
21705 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21706 if test "${enable_gdb_build_warnings+set}" = set; then
21707 enableval="$enable_gdb_build_warnings"
21708 case "${enableval}" in
21709 yes) ;;
21710 no) build_warnings="-w";;
21711 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21712 build_warnings="${build_warnings} ${t}";;
21713 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21714 build_warnings="${t} ${build_warnings}";;
21715 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21716 esac
21717 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21718 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21719 fi
21720 fi; WARN_CFLAGS=""
21721 if test "x${build_warnings}" != x -a "x$GCC" = xyes
21722 then
21723 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21724 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21725 # Separate out the -Werror flag as some files just cannot be
21726 # compiled with it enabled.
21727 for w in ${build_warnings}; do
21728 case $w in
21729 -Werr*) WERROR_CFLAGS=-Werror ;;
21730 *) # Check that GCC accepts it
21731 saved_CFLAGS="$CFLAGS"
21732 CFLAGS="$CFLAGS $w"
21733 cat >conftest.$ac_ext <<_ACEOF
21734 /* confdefs.h. */
21735 _ACEOF
21736 cat confdefs.h >>conftest.$ac_ext
21737 cat >>conftest.$ac_ext <<_ACEOF
21738 /* end confdefs.h. */
21739
21740 int
21741 main ()
21742 {
21743
21744 ;
21745 return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750 (eval $ac_compile) 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest.$ac_objext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21770 WARN_CFLAGS="${WARN_CFLAGS} $w"
21771 else
21772 echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21774
21775 fi
21776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21777 CFLAGS="$saved_CFLAGS"
21778 esac
21779 done
21780 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21781 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
21782 fi
21783
21784
21785
21786 # In the Cygwin environment, we need some additional flags.
21787 echo "$as_me:$LINENO: checking for cygwin" >&5
21788 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21789 if test "${gdb_cv_os_cygwin+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792 cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h. */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h. */
21798
21799 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
21800 lose
21801 #endif
21802 _ACEOF
21803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21804 $EGREP "lose" >/dev/null 2>&1; then
21805 gdb_cv_os_cygwin=yes
21806 else
21807 gdb_cv_os_cygwin=no
21808 fi
21809 rm -f conftest*
21810
21811 fi
21812 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21813 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21814
21815
21816 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21817 case ${host} in
21818 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21819 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21820 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21821 esac
21822
21823
21824 # libreadline needs libuser32.a in a cygwin environment
21825 WIN32LIBS=
21826 if test x$gdb_cv_os_cygwin = xyes; then
21827 WIN32LIBS="-luser32"
21828 case "${target}" in
21829 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21830 ;;
21831 esac
21832 fi
21833
21834 # The ser-tcp.c module requires sockets.
21835 case ${host} in
21836 *mingw32*)
21837
21838 cat >>confdefs.h <<\_ACEOF
21839 #define USE_WIN32API 1
21840 _ACEOF
21841
21842 WIN32LIBS="$WIN32LIBS -lws2_32"
21843 ;;
21844 esac
21845
21846
21847 # Add ELF support to GDB, but only if BFD includes ELF support.
21848 OLD_CFLAGS=$CFLAGS
21849 OLD_LDFLAGS=$LDFLAGS
21850 OLD_LIBS=$LIBS
21851 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
21852 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
21853 LIBS="$LIBS -lbfd -liberty"
21854 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21855 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21856 if test "${gdb_cv_var_elf+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858 else
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h. */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <stdlib.h>
21866 #include "bfd.h"
21867 #include "elf-bfd.h"
21868
21869 int
21870 main ()
21871 {
21872 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21873 ;
21874 return 0;
21875 }
21876 _ACEOF
21877 rm -f conftest.$ac_objext conftest$ac_exeext
21878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21879 (eval $ac_link) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest$ac_exeext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 gdb_cv_var_elf=yes
21900 else
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21903
21904 gdb_cv_var_elf=no
21905 fi
21906 rm -f conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21908 fi
21909 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21910 echo "${ECHO_T}$gdb_cv_var_elf" >&6
21911 if test $gdb_cv_var_elf = yes; then
21912 CONFIG_OBS="$CONFIG_OBS elfread.o"
21913
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_ELF 1
21916 _ACEOF
21917
21918 fi
21919 CFLAGS=$OLD_CFLAGS
21920 LDFLAGS=$OLD_LDFLAGS
21921 LIBS=$OLD_LIBS
21922
21923 # Add any host-specific objects to GDB.
21924 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21925
21926 LIBGUI="../libgui/src/libgui.a"
21927 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21928
21929
21930
21931 WIN32LDAPP=
21932
21933
21934
21935 case "${host}" in
21936 *-*-cygwin*)
21937 configdir="win"
21938 ;;
21939 *)
21940 configdir="unix"
21941 ;;
21942 esac
21943
21944 GDBTKLIBS=
21945 if test "${enable_gdbtk}" = "yes"; then
21946
21947 # Gdbtk must have an absolute path to srcdir in order to run
21948 # properly when not installed.
21949 here=`pwd`
21950 cd ${srcdir}
21951 GDBTK_SRC_DIR=`pwd`
21952 cd $here
21953
21954
21955 #
21956 # Ok, lets find the tcl configuration
21957 # First, look for one uninstalled.
21958 # the alternative search directory is invoked by --with-tclconfig
21959 #
21960
21961 if test x"${no_tcl}" = x ; then
21962 # we reset no_tcl in case something fails here
21963 no_tcl=true
21964
21965 # Check whether --with-tclconfig or --without-tclconfig was given.
21966 if test "${with_tclconfig+set}" = set; then
21967 withval="$with_tclconfig"
21968 with_tclconfig=${withval}
21969 fi;
21970 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21971 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
21972 if test "${ac_cv_c_tclconfig+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
21974 else
21975
21976
21977 # First check to see if --with-tclconfig was specified.
21978 if test x"${with_tclconfig}" != x ; then
21979 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21980 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21981 else
21982 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21983 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21984 { (exit 1); exit 1; }; }
21985 fi
21986 fi
21987
21988 # then check for a private Tcl installation
21989 if test x"${ac_cv_c_tclconfig}" = x ; then
21990 for i in \
21991 ../tcl \
21992 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21993 ../../tcl \
21994 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21995 ../../../tcl \
21996 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21997 if test -f "$i/${configdir}/tclConfig.sh" ; then
21998 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21999 break
22000 fi
22001 done
22002 fi
22003 # check in a few common install locations
22004 if test x"${ac_cv_c_tclconfig}" = x ; then
22005 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22006 if test -f "$i/tclConfig.sh" ; then
22007 ac_cv_c_tclconfig=`(cd $i; pwd)`
22008 break
22009 fi
22010 done
22011 fi
22012 # check in a few other private locations
22013 if test x"${ac_cv_c_tclconfig}" = x ; then
22014 for i in \
22015 ${srcdir}/../tcl \
22016 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22017 if test -f "$i/${configdir}/tclConfig.sh" ; then
22018 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22019 break
22020 fi
22021 done
22022 fi
22023
22024 fi
22025
22026 if test x"${ac_cv_c_tclconfig}" = x ; then
22027 TCLCONFIG="# no Tcl configs found"
22028 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22029 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22030 else
22031 no_tcl=
22032 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22033 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22034 echo "${ECHO_T}found $TCLCONFIG" >&6
22035 fi
22036 fi
22037
22038 if test -z "${no_tcl}"; then
22039
22040 . $TCLCONFIG
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068 #
22069 # Ok, lets find the tk configuration
22070 # First, look for one uninstalled.
22071 # the alternative search directory is invoked by --with-tkconfig
22072 #
22073
22074 if test x"${no_tk}" = x ; then
22075 # we reset no_tk in case something fails here
22076 no_tk=true
22077
22078 # Check whether --with-tkconfig or --without-tkconfig was given.
22079 if test "${with_tkconfig+set}" = set; then
22080 withval="$with_tkconfig"
22081 with_tkconfig=${withval}
22082 fi;
22083 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22084 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22085 if test "${ac_cv_c_tkconfig+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088
22089
22090 # First check to see if --with-tkconfig was specified.
22091 if test x"${with_tkconfig}" != x ; then
22092 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22093 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22094 else
22095 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22096 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22097 { (exit 1); exit 1; }; }
22098 fi
22099 fi
22100
22101 # then check for a private Tk library
22102 if test x"${ac_cv_c_tkconfig}" = x ; then
22103 for i in \
22104 ../tk \
22105 `ls -dr ../tk[4-9]* 2>/dev/null` \
22106 ../../tk \
22107 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22108 ../../../tk \
22109 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22110 if test -f "$i/${configdir}/tkConfig.sh" ; then
22111 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22112 break
22113 fi
22114 done
22115 fi
22116 # check in a few common install locations
22117 if test x"${ac_cv_c_tkconfig}" = x ; then
22118 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22119 if test -f "$i/tkConfig.sh" ; then
22120 ac_cv_c_tkconfig=`(cd $i; pwd)`
22121 break
22122 fi
22123 done
22124 fi
22125 # check in a few other private locations
22126 if test x"${ac_cv_c_tkconfig}" = x ; then
22127 for i in \
22128 ${srcdir}/../tk \
22129 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22130 if test -f "$i/${configdir}/tkConfig.sh" ; then
22131 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22132 break
22133 fi
22134 done
22135 fi
22136
22137 fi
22138
22139 if test x"${ac_cv_c_tkconfig}" = x ; then
22140 TKCONFIG="# no Tk configs found"
22141 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22142 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22143 else
22144 no_tk=
22145 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22146 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22147 echo "${ECHO_T}found $TKCONFIG" >&6
22148 fi
22149 fi
22150
22151
22152
22153 # now look for Tcl library stuff
22154
22155 tcldir="../tcl/${configdir}/"
22156
22157 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22158
22159 # If $no_tk is nonempty, then we can't do Tk, and there is no
22160 # point to doing Tcl.
22161 if test -z "${no_tk}"; then
22162
22163 if test -f "$TKCONFIG" ; then
22164 . $TKCONFIG
22165 fi
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180 #
22181 # Ok, lets find the tcl source trees so we can use the headers
22182 # Warning: transition of version 9 to 10 will break this algorithm
22183 # because 10 sorts before 9. We also look for just tcl. We have to
22184 # be careful that we don't match stuff like tclX by accident.
22185 # the alternative search directory is involked by --with-tclinclude
22186 #
22187
22188 no_tcl=true
22189 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22190 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22191
22192 # Check whether --with-tclinclude or --without-tclinclude was given.
22193 if test "${with_tclinclude+set}" = set; then
22194 withval="$with_tclinclude"
22195 with_tclinclude=${withval}
22196 fi;
22197 if test "${ac_cv_c_tclh+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 else
22200
22201 # first check to see if --with-tclinclude was specified
22202 if test x"${with_tclinclude}" != x ; then
22203 if test -f ${with_tclinclude}/tclInt.h ; then
22204 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22205 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22206 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22207 else
22208 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22209 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22210 { (exit 1); exit 1; }; }
22211 fi
22212 fi
22213
22214 # next check if it came with Tcl configuration file
22215 if test x"${ac_cv_c_tclconfig}" = x ; then
22216 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22217 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22218 fi
22219 fi
22220
22221 # next check in private source directory
22222 #
22223 # since ls returns lowest version numbers first, reverse its output
22224 if test x"${ac_cv_c_tclh}" = x ; then
22225 for i in \
22226 ${srcdir}/../tcl \
22227 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22228 ${srcdir}/../../tcl \
22229 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22230 ${srcdir}/../../../tcl \
22231 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22232 if test -f $i/generic/tclInt.h ; then
22233 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22234 break
22235 fi
22236 done
22237 fi
22238 # finally check in a few common install locations
22239 #
22240 # since ls returns lowest version numbers first, reverse its output
22241 if test x"${ac_cv_c_tclh}" = x ; then
22242 for i in \
22243 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22244 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22245 /usr/local/src/tcl \
22246 /usr/local/lib/tcl \
22247 ${prefix}/include ; do
22248 if test -f $i/generic/tclInt.h ; then
22249 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22250 break
22251 fi
22252 done
22253 fi
22254 # see if one is installed
22255 if test x"${ac_cv_c_tclh}" = x ; then
22256 if test "${ac_cv_header_tclInt_h+set}" = set; then
22257 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22258 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22259 if test "${ac_cv_header_tclInt_h+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 fi
22262 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22263 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22264 else
22265 # Is the header compilable?
22266 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22267 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h. */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 $ac_includes_default
22275 #include <tclInt.h>
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -z "$ac_c_werror_flag"
22287 || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_header_compiler=yes
22300 else
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 ac_header_compiler=no
22305 fi
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22307 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22308 echo "${ECHO_T}$ac_header_compiler" >&6
22309
22310 # Is the header present?
22311 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22312 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h. */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h. */
22319 #include <tclInt.h>
22320 _ACEOF
22321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev/null; then
22329 if test -s conftest.err; then
22330 ac_cpp_err=$ac_c_preproc_warn_flag
22331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22332 else
22333 ac_cpp_err=
22334 fi
22335 else
22336 ac_cpp_err=yes
22337 fi
22338 if test -z "$ac_cpp_err"; then
22339 ac_header_preproc=yes
22340 else
22341 echo "$as_me: failed program was:" >&5
22342 sed 's/^/| /' conftest.$ac_ext >&5
22343
22344 ac_header_preproc=no
22345 fi
22346 rm -f conftest.err conftest.$ac_ext
22347 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22348 echo "${ECHO_T}$ac_header_preproc" >&6
22349
22350 # So? What about this header?
22351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22352 yes:no: )
22353 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22354 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22356 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22357 ac_header_preproc=yes
22358 ;;
22359 no:yes:* )
22360 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22361 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22363 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22365 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22367 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22369 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22370 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22371 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
22372 (
22373 cat <<\_ASBOX
22374 ## ------------------------------------------ ##
22375 ## Report this to the AC_PACKAGE_NAME lists. ##
22376 ## ------------------------------------------ ##
22377 _ASBOX
22378 ) |
22379 sed "s/^/$as_me: WARNING: /" >&2
22380 ;;
22381 esac
22382 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22383 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22384 if test "${ac_cv_header_tclInt_h+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387 ac_cv_header_tclInt_h=$ac_header_preproc
22388 fi
22389 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22390 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22391
22392 fi
22393 if test $ac_cv_header_tclInt_h = yes; then
22394 ac_cv_c_tclh=installed
22395 else
22396 ac_cv_c_tclh=""
22397 fi
22398
22399
22400 fi
22401
22402 fi
22403
22404 if test x"${ac_cv_c_tclh}" = x ; then
22405 TCLHDIR="# no Tcl private headers found"
22406 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22407 echo "$as_me: error: Can't find Tcl private headers" >&2;}
22408 { (exit 1); exit 1; }; }
22409 fi
22410 if test x"${ac_cv_c_tclh}" != x ; then
22411 no_tcl=""
22412 if test x"${ac_cv_c_tclh}" = x"installed" ; then
22413 echo "$as_me:$LINENO: result: is installed" >&5
22414 echo "${ECHO_T}is installed" >&6
22415 TCLHDIR=""
22416 else
22417 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22418 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
22419 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22420 TCLHDIR="-I${ac_cv_c_tclh}"
22421 fi
22422 fi
22423
22424
22425
22426
22427 #
22428 # Ok, lets find the tk source trees so we can use the headers
22429 # If the directory (presumably symlink) named "tk" exists, use that one
22430 # in preference to any others. Same logic is used when choosing library
22431 # and again with Tcl. The search order is the best place to look first, then in
22432 # decreasing significance. The loop breaks if the trigger file is found.
22433 # Note the gross little conversion here of srcdir by cd'ing to the found
22434 # directory. This converts the path from a relative to an absolute, so
22435 # recursive cache variables for the path will work right. We check all
22436 # the possible paths in one loop rather than many seperate loops to speed
22437 # things up.
22438 # the alternative search directory is involked by --with-tkinclude
22439 #
22440 no_tk=true
22441 echo "$as_me:$LINENO: checking for Tk private headers" >&5
22442 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
22443
22444 # Check whether --with-tkinclude or --without-tkinclude was given.
22445 if test "${with_tkinclude+set}" = set; then
22446 withval="$with_tkinclude"
22447 with_tkinclude=${withval}
22448 fi;
22449 if test "${ac_cv_c_tkh+set}" = set; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
22451 else
22452
22453 # first check to see if --with-tkinclude was specified
22454 if test x"${with_tkinclude}" != x ; then
22455 if test -f ${with_tkinclude}/tk.h ; then
22456 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22457 elif test -f ${with_tkinclude}/generic/tk.h ; then
22458 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22459 else
22460 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22461 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22462 { (exit 1); exit 1; }; }
22463 fi
22464 fi
22465
22466 # next check if it came with Tk configuration file
22467 if test x"${ac_cv_c_tkconfig}" = x ; then
22468 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22469 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22470 fi
22471 fi
22472
22473 # next check in private source directory
22474 #
22475 # since ls returns lowest version numbers first, reverse its output
22476 if test x"${ac_cv_c_tkh}" = x ; then
22477 for i in \
22478 ${srcdir}/../tk \
22479 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22480 ${srcdir}/../../tk \
22481 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22482 ${srcdir}/../../../tk \
22483 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22484 if test -f $i/generic/tk.h ; then
22485 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22486 break
22487 fi
22488 done
22489 fi
22490 # finally check in a few common install locations
22491 #
22492 # since ls returns lowest version numbers first, reverse its output
22493 if test x"${ac_cv_c_tkh}" = x ; then
22494 for i in \
22495 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22496 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22497 /usr/local/src/tk \
22498 /usr/local/lib/tk \
22499 ${prefix}/include ; do
22500 if test -f $i/generic/tk.h ; then
22501 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22502 break
22503 fi
22504 done
22505 fi
22506 # see if one is installed
22507 if test x"${ac_cv_c_tkh}" = x ; then
22508 if test "${ac_cv_header_tk_h+set}" = set; then
22509 echo "$as_me:$LINENO: checking for tk.h" >&5
22510 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22511 if test "${ac_cv_header_tk_h+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 fi
22514 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22515 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22516 else
22517 # Is the header compilable?
22518 echo "$as_me:$LINENO: checking tk.h usability" >&5
22519 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
22520 cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h. */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h. */
22526 $ac_includes_default
22527 #include <tk.h>
22528 _ACEOF
22529 rm -f conftest.$ac_objext
22530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22531 (eval $ac_compile) 2>conftest.er1
22532 ac_status=$?
22533 grep -v '^ *+' conftest.er1 >conftest.err
22534 rm -f conftest.er1
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } &&
22538 { ac_try='test -z "$ac_c_werror_flag"
22539 || test ! -s conftest.err'
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; } &&
22545 { ac_try='test -s conftest.$ac_objext'
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; }; then
22551 ac_header_compiler=yes
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 ac_header_compiler=no
22557 fi
22558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22560 echo "${ECHO_T}$ac_header_compiler" >&6
22561
22562 # Is the header present?
22563 echo "$as_me:$LINENO: checking tk.h presence" >&5
22564 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h. */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22571 #include <tk.h>
22572 _ACEOF
22573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } >/dev/null; then
22581 if test -s conftest.err; then
22582 ac_cpp_err=$ac_c_preproc_warn_flag
22583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22584 else
22585 ac_cpp_err=
22586 fi
22587 else
22588 ac_cpp_err=yes
22589 fi
22590 if test -z "$ac_cpp_err"; then
22591 ac_header_preproc=yes
22592 else
22593 echo "$as_me: failed program was:" >&5
22594 sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 ac_header_preproc=no
22597 fi
22598 rm -f conftest.err conftest.$ac_ext
22599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22600 echo "${ECHO_T}$ac_header_preproc" >&6
22601
22602 # So? What about this header?
22603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22604 yes:no: )
22605 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22606 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22607 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22608 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22609 ac_header_preproc=yes
22610 ;;
22611 no:yes:* )
22612 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22613 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22615 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22617 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22619 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22621 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22622 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22623 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22624 (
22625 cat <<\_ASBOX
22626 ## ------------------------------------------ ##
22627 ## Report this to the AC_PACKAGE_NAME lists. ##
22628 ## ------------------------------------------ ##
22629 _ASBOX
22630 ) |
22631 sed "s/^/$as_me: WARNING: /" >&2
22632 ;;
22633 esac
22634 echo "$as_me:$LINENO: checking for tk.h" >&5
22635 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22636 if test "${ac_cv_header_tk_h+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22638 else
22639 ac_cv_header_tk_h=$ac_header_preproc
22640 fi
22641 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22642 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22643
22644 fi
22645 if test $ac_cv_header_tk_h = yes; then
22646 ac_cv_c_tkh=installed
22647 else
22648 ac_cv_c_tkh=""
22649 fi
22650
22651
22652 fi
22653
22654 fi
22655
22656 if test x"${ac_cv_c_tkh}" != x ; then
22657 no_tk=""
22658 if test x"${ac_cv_c_tkh}" = x"installed" ; then
22659 echo "$as_me:$LINENO: result: is installed" >&5
22660 echo "${ECHO_T}is installed" >&6
22661 TKHDIR=""
22662 else
22663 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22664 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22665 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22666 TKHDIR="-I${ac_cv_c_tkh}"
22667 fi
22668 else
22669 TKHDIR="# no Tk directory found"
22670 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22671 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22672 no_tk=true
22673 fi
22674
22675
22676
22677
22678 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22679 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22680 if test x"${ac_cv_c_itclh}" = x ; then
22681 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22682 if test -f $i/generic/itcl.h ; then
22683 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22684 break
22685 fi
22686 done
22687 fi
22688 if test x"${ac_cv_c_itclh}" = x ; then
22689 ITCLHDIR="# no Itcl private headers found"
22690 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22691 echo "$as_me: error: Can't find Itcl private headers" >&2;}
22692 { (exit 1); exit 1; }; }
22693 fi
22694 if test x"${ac_cv_c_itclh}" != x ; then
22695 ITCLHDIR="-I${ac_cv_c_itclh}"
22696 fi
22697 # should always be here
22698 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
22699
22700 #AC_SUBST(ITCLLIB)
22701
22702
22703 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22704 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22705 if test x"${ac_cv_c_itkh}" = x ; then
22706 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22707 if test -f $i/generic/itk.h ; then
22708 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22709 break
22710 fi
22711 done
22712 fi
22713 if test x"${ac_cv_c_itkh}" = x ; then
22714 ITKHDIR="# no Itk private headers found"
22715 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22716 echo "$as_me: error: Can't find Itk private headers" >&2;}
22717 { (exit 1); exit 1; }; }
22718 fi
22719 if test x"${ac_cv_c_itkh}" != x ; then
22720 ITKHDIR="-I${ac_cv_c_itkh}"
22721 fi
22722 # should always be here
22723 # ITKLIB="../itcl/itk/unix/libitk.a"
22724
22725 #AC_SUBST(ITKLIB)
22726
22727
22728
22729 # now look for Tk library stuff
22730
22731 tkdir="../tk/${configdir}/"
22732
22733 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22734
22735 # now look for Itcl library stuff
22736
22737
22738 #
22739 # Ok, lets find the itcl configuration
22740 # First, look for one uninstalled.
22741 # the alternative search directory is invoked by --with-itclconfig
22742 #
22743
22744 if test x"${no_itcl}" = x ; then
22745 # we reset no_itcl in case something fails here
22746 no_itcl=true
22747
22748 # Check whether --with-itclconfig or --without-itclconfig was given.
22749 if test "${with_itclconfig+set}" = set; then
22750 withval="$with_itclconfig"
22751 with_itclconfig=${withval}
22752 fi;
22753 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22754 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22755 if test "${ac_cv_c_itclconfig+set}" = set; then
22756 echo $ECHO_N "(cached) $ECHO_C" >&6
22757 else
22758
22759
22760 # First check to see if --with-itclconfig was specified.
22761 if test x"${with_itclconfig}" != x ; then
22762 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22763 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22764 else
22765 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22766 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22767 { (exit 1); exit 1; }; }
22768 fi
22769 fi
22770
22771 # then check for a private Itcl library
22772 if test x"${ac_cv_c_itclconfig}" = x ; then
22773 for i in \
22774 ../itcl/itcl \
22775 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22776 ../../itcl \
22777 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22778 ../../../itcl \
22779 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22780 if test -f "$i/itclConfig.sh" ; then
22781 ac_cv_c_itclconfig=`(cd $i; pwd)`
22782 break
22783 fi
22784 done
22785 fi
22786 # check in a few common install locations
22787 if test x"${ac_cv_c_itclconfig}" = x ; then
22788 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22789 if test -f "$i/itclConfig.sh" ; then
22790 ac_cv_c_itclconfig=`(cd $i; pwd)`
22791 break
22792 fi
22793 done
22794 fi
22795 # check in a few other private locations
22796 if test x"${ac_cv_c_itclconfig}" = x ; then
22797 for i in \
22798 ${srcdir}/../itcl/itcl \
22799 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22800 if test -f "$i/itclConfig.sh" ; then
22801 ac_cv_c_itclconfig=`(cd $i; pwd)`
22802 break
22803 fi
22804 done
22805 fi
22806
22807 fi
22808
22809 if test x"${ac_cv_c_itclconfig}" = x ; then
22810 ITCLCONFIG="# no Itcl configs found"
22811 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22812 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22813 else
22814 no_itcl=
22815 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22816 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22817 echo "${ECHO_T}found $ITCLCONFIG" >&6
22818 fi
22819 fi
22820
22821 if test -z "${no_itcl}"; then
22822
22823 if test -f "$ITCLCONFIG" ; then
22824 . $ITCLCONFIG
22825 fi
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22839 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22840 fi
22841
22842
22843 # now look for Itk library stuff
22844
22845 #
22846 # Ok, lets find the itk configuration
22847 # First, look for one uninstalled.
22848 # the alternative search directory is invoked by --with-itkconfig
22849 #
22850
22851 if test x"${no_itk}" = x ; then
22852 # we reset no_itk in case something fails here
22853 no_itk=true
22854
22855 # Check whether --with-itkconfig or --without-itkconfig was given.
22856 if test "${with_itkconfig+set}" = set; then
22857 withval="$with_itkconfig"
22858 with_itkconfig=${withval}
22859 fi;
22860 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22861 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22862 if test "${ac_cv_c_itkconfig+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865
22866
22867 # First check to see if --with-itkconfig was specified.
22868 if test x"${with_itkconfig}" != x ; then
22869 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22870 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22871 else
22872 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22873 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22874 { (exit 1); exit 1; }; }
22875 fi
22876 fi
22877
22878 # then check for a private Itk library
22879 if test x"${ac_cv_c_itkconfig}" = x ; then
22880 for i in \
22881 ../itcl/itk \
22882 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22883 ../../itk \
22884 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22885 ../../../itk \
22886 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22887 if test -f "$i/itkConfig.sh" ; then
22888 ac_cv_c_itkconfig=`(cd $i; pwd)`
22889 break
22890 fi
22891 done
22892 fi
22893 # check in a few common install locations
22894 if test x"${ac_cv_c_itkconfig}" = x ; then
22895 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22896 if test -f "$i/itkConfig.sh" ; then
22897 ac_cv_c_itkconfig=`(cd $i; pwd)`
22898 break
22899 fi
22900 done
22901 fi
22902 # check in a few other private locations
22903 if test x"${ac_cv_c_itkconfig}" = x ; then
22904 for i in \
22905 ${srcdir}/../itcl/itk \
22906 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22907 if test -f "$i/itkConfig.sh" ; then
22908 ac_cv_c_itkconfig=`(cd $i; pwd)`
22909 break
22910 fi
22911 done
22912 fi
22913
22914 fi
22915
22916 if test x"${ac_cv_c_itkconfig}" = x ; then
22917 ITKCONFIG="# no Itk configs found"
22918 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22919 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22920 else
22921 no_itk=
22922 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22923 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22924 echo "${ECHO_T}found $ITKCONFIG" >&6
22925 fi
22926 fi
22927
22928
22929 if test -z "${no_itcl}"; then
22930
22931 if test -f "$ITKCONFIG" ; then
22932 . $ITKCONFIG
22933 fi
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946 ITKLIB="${ITK_BUILD_LIB_SPEC}"
22947 ITK_DEPS="${ITK_LIB_FULL_PATH}"
22948 fi
22949
22950 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
22951
22952 # Include some libraries that Tcl and Tk want.
22953 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
22954 # Yes, the ordering seems wrong here. But it isn't.
22955 # TK_LIBS is the list of libraries that need to be linked
22956 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22957 # were in LIBS then any link tests after this point would
22958 # try to include things like `$(LIBGUI)', which wouldn't work.
22959 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
22960
22961 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22962 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22963 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
22964 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22965 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22966 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22967 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
22968
22969 if test x$gdb_cv_os_cygwin = xyes; then
22970 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22971 WIN32LDAPP="-Wl,--subsystem,console"
22972 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22973 fi
22974 fi
22975 fi
22976
22977
22978
22979 subdirs="$subdirs gdbtk"
22980
22981 fi
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996 echo "$as_me:$LINENO: checking for X" >&5
22997 echo $ECHO_N "checking for X... $ECHO_C" >&6
22998
22999
23000 # Check whether --with-x or --without-x was given.
23001 if test "${with_x+set}" = set; then
23002 withval="$with_x"
23003
23004 fi;
23005 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23006 if test "x$with_x" = xno; then
23007 # The user explicitly disabled X.
23008 have_x=disabled
23009 else
23010 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23011 # Both variables are already set.
23012 have_x=yes
23013 else
23014 if test "${ac_cv_have_x+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016 else
23017 # One or both of the vars are not set, and there is no cached value.
23018 ac_x_includes=no ac_x_libraries=no
23019 rm -fr conftest.dir
23020 if mkdir conftest.dir; then
23021 cd conftest.dir
23022 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23023 cat >Imakefile <<'_ACEOF'
23024 acfindx:
23025 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23026 _ACEOF
23027 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23028 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23029 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23030 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23031 for ac_extension in a so sl; do
23032 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23033 test -f $ac_im_libdir/libX11.$ac_extension; then
23034 ac_im_usrlibdir=$ac_im_libdir; break
23035 fi
23036 done
23037 # Screen out bogus values from the imake configuration. They are
23038 # bogus both because they are the default anyway, and because
23039 # using them would break gcc on systems where it needs fixed includes.
23040 case $ac_im_incroot in
23041 /usr/include) ;;
23042 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23043 esac
23044 case $ac_im_usrlibdir in
23045 /usr/lib | /lib) ;;
23046 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23047 esac
23048 fi
23049 cd ..
23050 rm -fr conftest.dir
23051 fi
23052
23053 # Standard set of common directories for X headers.
23054 # Check X11 before X11Rn because it is often a symlink to the current release.
23055 ac_x_header_dirs='
23056 /usr/X11/include
23057 /usr/X11R6/include
23058 /usr/X11R5/include
23059 /usr/X11R4/include
23060
23061 /usr/include/X11
23062 /usr/include/X11R6
23063 /usr/include/X11R5
23064 /usr/include/X11R4
23065
23066 /usr/local/X11/include
23067 /usr/local/X11R6/include
23068 /usr/local/X11R5/include
23069 /usr/local/X11R4/include
23070
23071 /usr/local/include/X11
23072 /usr/local/include/X11R6
23073 /usr/local/include/X11R5
23074 /usr/local/include/X11R4
23075
23076 /usr/X386/include
23077 /usr/x386/include
23078 /usr/XFree86/include/X11
23079
23080 /usr/include
23081 /usr/local/include
23082 /usr/unsupported/include
23083 /usr/athena/include
23084 /usr/local/x11r5/include
23085 /usr/lpp/Xamples/include
23086
23087 /usr/openwin/include
23088 /usr/openwin/share/include'
23089
23090 if test "$ac_x_includes" = no; then
23091 # Guess where to find include files, by looking for Intrinsic.h.
23092 # First, try using that file with no special directory specified.
23093 cat >conftest.$ac_ext <<_ACEOF
23094 /* confdefs.h. */
23095 _ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <X11/Intrinsic.h>
23100 _ACEOF
23101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } >/dev/null; then
23109 if test -s conftest.err; then
23110 ac_cpp_err=$ac_c_preproc_warn_flag
23111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23112 else
23113 ac_cpp_err=
23114 fi
23115 else
23116 ac_cpp_err=yes
23117 fi
23118 if test -z "$ac_cpp_err"; then
23119 # We can compile using X headers with no special include directory.
23120 ac_x_includes=
23121 else
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 for ac_dir in $ac_x_header_dirs; do
23126 if test -r "$ac_dir/X11/Intrinsic.h"; then
23127 ac_x_includes=$ac_dir
23128 break
23129 fi
23130 done
23131 fi
23132 rm -f conftest.err conftest.$ac_ext
23133 fi # $ac_x_includes = no
23134
23135 if test "$ac_x_libraries" = no; then
23136 # Check for the libraries.
23137 # See if we find them without any special options.
23138 # Don't add to $LIBS permanently.
23139 ac_save_LIBS=$LIBS
23140 LIBS="-lXt $LIBS"
23141 cat >conftest.$ac_ext <<_ACEOF
23142 /* confdefs.h. */
23143 _ACEOF
23144 cat confdefs.h >>conftest.$ac_ext
23145 cat >>conftest.$ac_ext <<_ACEOF
23146 /* end confdefs.h. */
23147 #include <X11/Intrinsic.h>
23148 int
23149 main ()
23150 {
23151 XtMalloc (0)
23152 ;
23153 return 0;
23154 }
23155 _ACEOF
23156 rm -f conftest.$ac_objext conftest$ac_exeext
23157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23158 (eval $ac_link) 2>conftest.er1
23159 ac_status=$?
23160 grep -v '^ *+' conftest.er1 >conftest.err
23161 rm -f conftest.er1
23162 cat conftest.err >&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); } &&
23165 { ac_try='test -z "$ac_c_werror_flag"
23166 || test ! -s conftest.err'
23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168 (eval $ac_try) 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; } &&
23172 { ac_try='test -s conftest$ac_exeext'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; }; then
23178 LIBS=$ac_save_LIBS
23179 # We can link X programs with no special library path.
23180 ac_x_libraries=
23181 else
23182 echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185 LIBS=$ac_save_LIBS
23186 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23187 do
23188 # Don't even attempt the hair of trying to link an X program!
23189 for ac_extension in a so sl; do
23190 if test -r $ac_dir/libXt.$ac_extension; then
23191 ac_x_libraries=$ac_dir
23192 break 2
23193 fi
23194 done
23195 done
23196 fi
23197 rm -f conftest.err conftest.$ac_objext \
23198 conftest$ac_exeext conftest.$ac_ext
23199 fi # $ac_x_libraries = no
23200
23201 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23202 # Didn't find X anywhere. Cache the known absence of X.
23203 ac_cv_have_x="have_x=no"
23204 else
23205 # Record where we found X for the cache.
23206 ac_cv_have_x="have_x=yes \
23207 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23208 fi
23209 fi
23210
23211 fi
23212 eval "$ac_cv_have_x"
23213 fi # $with_x != no
23214
23215 if test "$have_x" != yes; then
23216 echo "$as_me:$LINENO: result: $have_x" >&5
23217 echo "${ECHO_T}$have_x" >&6
23218 no_x=yes
23219 else
23220 # If each of the values was on the command line, it overrides each guess.
23221 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23222 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23223 # Update the cache value to reflect the command line values.
23224 ac_cv_have_x="have_x=yes \
23225 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23226 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23227 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23228 fi
23229
23230
23231 # Check whether we should enable the TUI, but only do so if we really
23232 # can.
23233 if test x"$enable_tui" = xyes; then
23234 if test -d $srcdir/tui; then
23235 if test "$ac_cv_search_waddstr" != no; then
23236 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23237 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23238 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23239 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23240 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23241 CONFIG_ALL="${CONFIG_ALL} all-tui"
23242 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23243 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23244 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23245 else
23246 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23247 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23248 fi
23249 fi
23250 fi
23251
23252 # Unlike the sim directory, whether a simulator is linked is controlled by
23253 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
23254 # This code just checks for a few cases where we'd like to ignore those
23255 # definitions, even when they're present in the '.mt' file. These cases
23256 # are when --disable-sim is specified, or if the simulator directory is
23257 # not part of the source tree.
23258 #
23259 # Check whether --enable-sim or --disable-sim was given.
23260 if test "${enable_sim+set}" = set; then
23261 enableval="$enable_sim"
23262 echo "enable_sim = $enable_sim";
23263 echo "enableval = ${enableval}";
23264 case "${enableval}" in
23265 yes) ignore_sim=false ;;
23266 no) ignore_sim=true ;;
23267 *) ignore_sim=false ;;
23268 esac
23269 else
23270 ignore_sim=false
23271 fi;
23272
23273 if test ! -d "${srcdir}/../sim"; then
23274 ignore_sim=true
23275 fi
23276
23277 if test "${ignore_sim}" = "true"; then
23278 IGNORE_SIM="SIM="
23279 IGNORE_SIM_OBS="SIM_OBS="
23280 else
23281 IGNORE_SIM=""
23282 IGNORE_SIM_OBS=""
23283
23284 cat >>confdefs.h <<\_ACEOF
23285 #define WITH_SIM 1
23286 _ACEOF
23287
23288 fi
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303 # List of host floatformats.
23304
23305 cat >>confdefs.h <<_ACEOF
23306 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
23307 _ACEOF
23308
23309
23310 cat >>confdefs.h <<_ACEOF
23311 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
23312 _ACEOF
23313
23314
23315 cat >>confdefs.h <<_ACEOF
23316 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
23317 _ACEOF
23318
23319
23320 # target_subdir is used by the testsuite to find the target libraries.
23321 target_subdir=
23322 if test "${host}" != "${target}"; then
23323 target_subdir="${target_alias}/"
23324 fi
23325
23326
23327 frags=
23328 if test "${gdb_native}" = "yes"; then
23329 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23330 if test ! -f ${host_makefile_frag}; then
23331 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23332 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23333 { (exit 1); exit 1; }; }
23334 fi
23335 frags="$frags $host_makefile_frag"
23336 else
23337 host_makefile_frag=/dev/null
23338 fi
23339
23340 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23341 if test ! -f ${target_makefile_frag}; then
23342 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23343 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23344 { (exit 1); exit 1; }; }
23345 fi
23346 frags="$frags $target_makefile_frag"
23347
23348
23349
23350
23351
23352 hostfile=`sed -n '
23353 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23354 ' ${host_makefile_frag}`
23355
23356 targetfile=`sed -n '
23357 s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23358 ' ${target_makefile_frag}`
23359
23360 if test "${gdb_native}" = "yes"; then
23361 # We pick this up from the host configuration file (.mh) because we
23362 # do not have a native configuration Makefile fragment.
23363 nativefile=`sed -n '
23364 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23365 ' ${host_makefile_frag}`
23366 fi
23367
23368
23369 if test x"${gdb_osabi}" != x ; then
23370
23371 cat >>confdefs.h <<_ACEOF
23372 #define GDB_OSABI_DEFAULT $gdb_osabi
23373 _ACEOF
23374
23375 fi
23376
23377 # Enable multi-ice-gdb-server.
23378 # Check whether --enable-multi-ice or --disable-multi-ice was given.
23379 if test "${enable_multi_ice+set}" = set; then
23380 enableval="$enable_multi_ice"
23381 case $enableval in
23382 yes | no)
23383 ;;
23384 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23385 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23386 { (exit 1); exit 1; }; } ;;
23387 esac
23388 fi;
23389 if test "x$enable_multi_ice" = xyes; then
23390
23391
23392 subdirs="$subdirs multi-ice"
23393
23394 fi
23395
23396 # We only build gdbserver automatically in a native configuration.
23397 if test "$gdb_native" = "yes"; then
23398 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23399 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
23400 if test "x$build_gdbserver" = xyes; then
23401 echo "$as_me:$LINENO: result: yes" >&5
23402 echo "${ECHO_T}yes" >&6
23403
23404
23405 subdirs="$subdirs gdbserver"
23406
23407 else
23408 echo "$as_me:$LINENO: result: no" >&5
23409 echo "${ECHO_T}no" >&6
23410 fi
23411 fi
23412
23413 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23414 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23415 # to an empty version.
23416
23417 files=
23418 links=
23419
23420 rm -f xm.h
23421 xm_h=""
23422 if test "${hostfile}" != ""; then
23423 xm_h=xm.h
23424 case "${hostfile}" in
23425 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23426 * ) GDB_XM_FILE="${hostfile}"
23427 esac
23428 files="${files} ${GDB_XM_FILE}"
23429 links="${links} xm.h"
23430
23431 cat >>confdefs.h <<_ACEOF
23432 #define GDB_XM_FILE "${GDB_XM_FILE}"
23433 _ACEOF
23434
23435 fi
23436
23437
23438 rm -f tm.h
23439 tm_h=""
23440 if test "${targetfile}" != ""; then
23441 tm_h=tm.h
23442 case "${targetfile}" in
23443 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
23444 * ) GDB_TM_FILE="${targetfile}"
23445 esac
23446 files="${files} ${GDB_TM_FILE}"
23447 links="${links} tm.h"
23448
23449 cat >>confdefs.h <<_ACEOF
23450 #define GDB_TM_FILE "${GDB_TM_FILE}"
23451 _ACEOF
23452
23453 fi
23454
23455
23456 rm -f nm.h
23457 nm_h=""
23458 if test "${nativefile}" != ""; then
23459 nm_h=nm.h
23460 case "${nativefile}" in
23461 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23462 * ) GDB_NM_FILE="${nativefile}"
23463 esac
23464 files="${files} ${GDB_NM_FILE}"
23465 links="${links} nm.h"
23466
23467 cat >>confdefs.h <<_ACEOF
23468 #define GDB_NM_FILE "${GDB_NM_FILE}"
23469 _ACEOF
23470
23471 fi
23472
23473
23474 ac_sources="$files"
23475 ac_dests="$links"
23476 while test -n "$ac_sources"; do
23477 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23478 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23479 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23480 done
23481 ac_config_links="$ac_config_links $ac_config_links_1"
23482
23483
23484
23485
23486
23487
23488 cat >>confdefs.h <<\_ACEOF
23489 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23490 _ACEOF
23491
23492
23493
23494
23495
23496 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
23497 if test "${with_libiconv_prefix+set}" = set; then
23498 withval="$with_libiconv_prefix"
23499
23500 for dir in `echo "$withval" | tr : ' '`; do
23501 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23502 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23503 done
23504
23505 fi;
23506
23507 echo "$as_me:$LINENO: checking for iconv" >&5
23508 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23509 if test "${am_cv_func_iconv+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
23511 else
23512
23513 am_cv_func_iconv="no, consider installing GNU libiconv"
23514 am_cv_lib_iconv=no
23515 cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h. */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 #include <stdlib.h>
23522 #include <iconv.h>
23523 int
23524 main ()
23525 {
23526 iconv_t cd = iconv_open("","");
23527 iconv(cd,NULL,NULL,NULL,NULL);
23528 iconv_close(cd);
23529 ;
23530 return 0;
23531 }
23532 _ACEOF
23533 rm -f conftest.$ac_objext conftest$ac_exeext
23534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23535 (eval $ac_link) 2>conftest.er1
23536 ac_status=$?
23537 grep -v '^ *+' conftest.er1 >conftest.err
23538 rm -f conftest.er1
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } &&
23542 { ac_try='test -z "$ac_c_werror_flag"
23543 || test ! -s conftest.err'
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest$ac_exeext'
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23552 ac_status=$?
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
23555 am_cv_func_iconv=yes
23556 else
23557 echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560 fi
23561 rm -f conftest.err conftest.$ac_objext \
23562 conftest$ac_exeext conftest.$ac_ext
23563 if test "$am_cv_func_iconv" != yes; then
23564 am_save_LIBS="$LIBS"
23565 LIBS="$LIBS -liconv"
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 #include <stdlib.h>
23573 #include <iconv.h>
23574 int
23575 main ()
23576 {
23577 iconv_t cd = iconv_open("","");
23578 iconv(cd,NULL,NULL,NULL,NULL);
23579 iconv_close(cd);
23580 ;
23581 return 0;
23582 }
23583 _ACEOF
23584 rm -f conftest.$ac_objext conftest$ac_exeext
23585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23586 (eval $ac_link) 2>conftest.er1
23587 ac_status=$?
23588 grep -v '^ *+' conftest.er1 >conftest.err
23589 rm -f conftest.er1
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } &&
23593 { ac_try='test -z "$ac_c_werror_flag"
23594 || test ! -s conftest.err'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; } &&
23600 { ac_try='test -s conftest$ac_exeext'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 am_cv_lib_iconv=yes
23607 am_cv_func_iconv=yes
23608 else
23609 echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612 fi
23613 rm -f conftest.err conftest.$ac_objext \
23614 conftest$ac_exeext conftest.$ac_ext
23615 LIBS="$am_save_LIBS"
23616 fi
23617
23618 fi
23619 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23620 echo "${ECHO_T}$am_cv_func_iconv" >&6
23621 if test "$am_cv_func_iconv" = yes; then
23622
23623 cat >>confdefs.h <<\_ACEOF
23624 #define HAVE_ICONV 1
23625 _ACEOF
23626
23627 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23628 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23629 if test "${am_cv_proto_iconv+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631 else
23632
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639
23640 #include <stdlib.h>
23641 #include <iconv.h>
23642 extern
23643 #ifdef __cplusplus
23644 "C"
23645 #endif
23646 #if defined(__STDC__) || defined(__cplusplus)
23647 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23648 #else
23649 size_t iconv();
23650 #endif
23651
23652 int
23653 main ()
23654 {
23655
23656 ;
23657 return 0;
23658 }
23659 _ACEOF
23660 rm -f conftest.$ac_objext
23661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23662 (eval $ac_compile) 2>conftest.er1
23663 ac_status=$?
23664 grep -v '^ *+' conftest.er1 >conftest.err
23665 rm -f conftest.er1
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
23669 { ac_try='test -z "$ac_c_werror_flag"
23670 || test ! -s conftest.err'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest.$ac_objext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 am_cv_proto_iconv_arg1=""
23683 else
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 am_cv_proto_iconv_arg1="const"
23688 fi
23689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23690 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);"
23691 fi
23692
23693 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23694 echo "$as_me:$LINENO: result: ${ac_t:-
23695 }$am_cv_proto_iconv" >&5
23696 echo "${ECHO_T}${ac_t:-
23697 }$am_cv_proto_iconv" >&6
23698
23699 cat >>confdefs.h <<_ACEOF
23700 #define ICONV_CONST $am_cv_proto_iconv_arg1
23701 _ACEOF
23702
23703 fi
23704 LIBICONV=
23705 if test "$am_cv_lib_iconv" = yes; then
23706 LIBICONV="-liconv"
23707 fi
23708
23709
23710
23711 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23712 ac_config_commands="$ac_config_commands default"
23713 cat >confcache <<\_ACEOF
23714 # This file is a shell script that caches the results of configure
23715 # tests run on this system so they can be shared between configure
23716 # scripts and configure runs, see configure's option --config-cache.
23717 # It is not useful on other systems. If it contains results you don't
23718 # want to keep, you may remove or edit it.
23719 #
23720 # config.status only pays attention to the cache file if you give it
23721 # the --recheck option to rerun configure.
23722 #
23723 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23724 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23725 # following values.
23726
23727 _ACEOF
23728
23729 # The following way of writing the cache mishandles newlines in values,
23730 # but we know of no workaround that is simple, portable, and efficient.
23731 # So, don't put newlines in cache variables' values.
23732 # Ultrix sh set writes to stderr and can't be redirected directly,
23733 # and sets the high bit in the cache file unless we assign to the vars.
23734 {
23735 (set) 2>&1 |
23736 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23737 *ac_space=\ *)
23738 # `set' does not quote correctly, so add quotes (double-quote
23739 # substitution turns \\\\ into \\, and sed turns \\ into \).
23740 sed -n \
23741 "s/'/'\\\\''/g;
23742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23743 ;;
23744 *)
23745 # `set' quotes correctly as required by POSIX, so do not add quotes.
23746 sed -n \
23747 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23748 ;;
23749 esac;
23750 } |
23751 sed '
23752 t clear
23753 : clear
23754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23755 t end
23756 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23757 : end' >>confcache
23758 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23759 if test -w $cache_file; then
23760 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23761 cat confcache >$cache_file
23762 else
23763 echo "not updating unwritable cache $cache_file"
23764 fi
23765 fi
23766 rm -f confcache
23767
23768 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23769 # Let make expand exec_prefix.
23770 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23771
23772 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23773 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23774 # trailing colons and then remove the whole line if VPATH becomes empty
23775 # (actually we leave an empty line to preserve line numbers).
23776 if test "x$srcdir" = x.; then
23777 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23778 s/:*\$(srcdir):*/:/;
23779 s/:*\${srcdir}:*/:/;
23780 s/:*@srcdir@:*/:/;
23781 s/^\([^=]*=[ ]*\):*/\1/;
23782 s/:*$//;
23783 s/^[^=]*=[ ]*$//;
23784 }'
23785 fi
23786
23787 DEFS=-DHAVE_CONFIG_H
23788
23789 ac_libobjs=
23790 ac_ltlibobjs=
23791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23792 # 1. Remove the extension, and $U if already installed.
23793 ac_i=`echo "$ac_i" |
23794 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23795 # 2. Add them.
23796 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23797 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23798 done
23799 LIBOBJS=$ac_libobjs
23800
23801 LTLIBOBJS=$ac_ltlibobjs
23802
23803
23804 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23805 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23806 Usually this means the macro was only invoked conditionally." >&5
23807 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23808 Usually this means the macro was only invoked conditionally." >&2;}
23809 { (exit 1); exit 1; }; }
23810 fi
23811
23812 : ${CONFIG_STATUS=./config.status}
23813 ac_clean_files_save=$ac_clean_files
23814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23815 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23816 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23817 cat >$CONFIG_STATUS <<_ACEOF
23818 #! $SHELL
23819 # Generated by $as_me.
23820 # Run this file to recreate the current configuration.
23821 # Compiler output produced by configure, useful for debugging
23822 # configure, is in config.log if it exists.
23823
23824 debug=false
23825 ac_cs_recheck=false
23826 ac_cs_silent=false
23827 SHELL=\${CONFIG_SHELL-$SHELL}
23828 _ACEOF
23829
23830 cat >>$CONFIG_STATUS <<\_ACEOF
23831 ## --------------------- ##
23832 ## M4sh Initialization. ##
23833 ## --------------------- ##
23834
23835 # Be Bourne compatible
23836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23837 emulate sh
23838 NULLCMD=:
23839 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23840 # is contrary to our usage. Disable this feature.
23841 alias -g '${1+"$@"}'='"$@"'
23842 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23843 set -o posix
23844 fi
23845 DUALCASE=1; export DUALCASE # for MKS sh
23846
23847 # Support unset when possible.
23848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23849 as_unset=unset
23850 else
23851 as_unset=false
23852 fi
23853
23854
23855 # Work around bugs in pre-3.0 UWIN ksh.
23856 $as_unset ENV MAIL MAILPATH
23857 PS1='$ '
23858 PS2='> '
23859 PS4='+ '
23860
23861 # NLS nuisances.
23862 for as_var in \
23863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23865 LC_TELEPHONE LC_TIME
23866 do
23867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23868 eval $as_var=C; export $as_var
23869 else
23870 $as_unset $as_var
23871 fi
23872 done
23873
23874 # Required to use basename.
23875 if expr a : '\(a\)' >/dev/null 2>&1; then
23876 as_expr=expr
23877 else
23878 as_expr=false
23879 fi
23880
23881 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23882 as_basename=basename
23883 else
23884 as_basename=false
23885 fi
23886
23887
23888 # Name of the executable.
23889 as_me=`$as_basename "$0" ||
23890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23891 X"$0" : 'X\(//\)$' \| \
23892 X"$0" : 'X\(/\)$' \| \
23893 . : '\(.\)' 2>/dev/null ||
23894 echo X/"$0" |
23895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23896 /^X\/\(\/\/\)$/{ s//\1/; q; }
23897 /^X\/\(\/\).*/{ s//\1/; q; }
23898 s/.*/./; q'`
23899
23900
23901 # PATH needs CR, and LINENO needs CR and PATH.
23902 # Avoid depending upon Character Ranges.
23903 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23906 as_cr_digits='0123456789'
23907 as_cr_alnum=$as_cr_Letters$as_cr_digits
23908
23909 # The user is always right.
23910 if test "${PATH_SEPARATOR+set}" != set; then
23911 echo "#! /bin/sh" >conf$$.sh
23912 echo "exit 0" >>conf$$.sh
23913 chmod +x conf$$.sh
23914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23915 PATH_SEPARATOR=';'
23916 else
23917 PATH_SEPARATOR=:
23918 fi
23919 rm -f conf$$.sh
23920 fi
23921
23922
23923 as_lineno_1=$LINENO
23924 as_lineno_2=$LINENO
23925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23926 test "x$as_lineno_1" != "x$as_lineno_2" &&
23927 test "x$as_lineno_3" = "x$as_lineno_2" || {
23928 # Find who we are. Look in the path if we contain no path at all
23929 # relative or not.
23930 case $0 in
23931 *[\\/]* ) as_myself=$0 ;;
23932 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23933 for as_dir in $PATH
23934 do
23935 IFS=$as_save_IFS
23936 test -z "$as_dir" && as_dir=.
23937 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23938 done
23939
23940 ;;
23941 esac
23942 # We did not find ourselves, most probably we were run as `sh COMMAND'
23943 # in which case we are not to be found in the path.
23944 if test "x$as_myself" = x; then
23945 as_myself=$0
23946 fi
23947 if test ! -f "$as_myself"; then
23948 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23949 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23950 { (exit 1); exit 1; }; }
23951 fi
23952 case $CONFIG_SHELL in
23953 '')
23954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23955 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23956 do
23957 IFS=$as_save_IFS
23958 test -z "$as_dir" && as_dir=.
23959 for as_base in sh bash ksh sh5; do
23960 case $as_dir in
23961 /*)
23962 if ("$as_dir/$as_base" -c '
23963 as_lineno_1=$LINENO
23964 as_lineno_2=$LINENO
23965 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23966 test "x$as_lineno_1" != "x$as_lineno_2" &&
23967 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23968 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23969 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23970 CONFIG_SHELL=$as_dir/$as_base
23971 export CONFIG_SHELL
23972 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23973 fi;;
23974 esac
23975 done
23976 done
23977 ;;
23978 esac
23979
23980 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23981 # uniformly replaced by the line number. The first 'sed' inserts a
23982 # line-number line before each line; the second 'sed' does the real
23983 # work. The second script uses 'N' to pair each line-number line
23984 # with the numbered line, and appends trailing '-' during
23985 # substitution so that $LINENO is not a special case at line end.
23986 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23987 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23988 sed '=' <$as_myself |
23989 sed '
23990 N
23991 s,$,-,
23992 : loop
23993 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23994 t loop
23995 s,-$,,
23996 s,^['$as_cr_digits']*\n,,
23997 ' >$as_me.lineno &&
23998 chmod +x $as_me.lineno ||
23999 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24000 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24001 { (exit 1); exit 1; }; }
24002
24003 # Don't try to exec as it changes $[0], causing all sort of problems
24004 # (the dirname of $[0] is not the place where we might find the
24005 # original and so on. Autoconf is especially sensible to this).
24006 . ./$as_me.lineno
24007 # Exit status is that of the last command.
24008 exit
24009 }
24010
24011
24012 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24013 *c*,-n*) ECHO_N= ECHO_C='
24014 ' ECHO_T=' ' ;;
24015 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24016 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24017 esac
24018
24019 if expr a : '\(a\)' >/dev/null 2>&1; then
24020 as_expr=expr
24021 else
24022 as_expr=false
24023 fi
24024
24025 rm -f conf$$ conf$$.exe conf$$.file
24026 echo >conf$$.file
24027 if ln -s conf$$.file conf$$ 2>/dev/null; then
24028 # We could just check for DJGPP; but this test a) works b) is more generic
24029 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24030 if test -f conf$$.exe; then
24031 # Don't use ln at all; we don't have any links
24032 as_ln_s='cp -p'
24033 else
24034 as_ln_s='ln -s'
24035 fi
24036 elif ln conf$$.file conf$$ 2>/dev/null; then
24037 as_ln_s=ln
24038 else
24039 as_ln_s='cp -p'
24040 fi
24041 rm -f conf$$ conf$$.exe conf$$.file
24042
24043 if mkdir -p . 2>/dev/null; then
24044 as_mkdir_p=:
24045 else
24046 test -d ./-p && rmdir ./-p
24047 as_mkdir_p=false
24048 fi
24049
24050 as_executable_p="test -f"
24051
24052 # Sed expression to map a string onto a valid CPP name.
24053 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24054
24055 # Sed expression to map a string onto a valid variable name.
24056 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24057
24058
24059 # IFS
24060 # We need space, tab and new line, in precisely that order.
24061 as_nl='
24062 '
24063 IFS=" $as_nl"
24064
24065 # CDPATH.
24066 $as_unset CDPATH
24067
24068 exec 6>&1
24069
24070 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24071 # report actual input values of CONFIG_FILES etc. instead of their
24072 # values after options handling. Logging --version etc. is OK.
24073 exec 5>>config.log
24074 {
24075 echo
24076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24077 ## Running $as_me. ##
24078 _ASBOX
24079 } >&5
24080 cat >&5 <<_CSEOF
24081
24082 This file was extended by $as_me, which was
24083 generated by GNU Autoconf 2.59. Invocation command line was
24084
24085 CONFIG_FILES = $CONFIG_FILES
24086 CONFIG_HEADERS = $CONFIG_HEADERS
24087 CONFIG_LINKS = $CONFIG_LINKS
24088 CONFIG_COMMANDS = $CONFIG_COMMANDS
24089 $ $0 $@
24090
24091 _CSEOF
24092 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24093 echo >&5
24094 _ACEOF
24095
24096 # Files that config.status was made for.
24097 if test -n "$ac_config_files"; then
24098 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24099 fi
24100
24101 if test -n "$ac_config_headers"; then
24102 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24103 fi
24104
24105 if test -n "$ac_config_links"; then
24106 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24107 fi
24108
24109 if test -n "$ac_config_commands"; then
24110 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24111 fi
24112
24113 cat >>$CONFIG_STATUS <<\_ACEOF
24114
24115 ac_cs_usage="\
24116 \`$as_me' instantiates files from templates according to the
24117 current configuration.
24118
24119 Usage: $0 [OPTIONS] [FILE]...
24120
24121 -h, --help print this help, then exit
24122 -V, --version print version number, then exit
24123 -q, --quiet do not print progress messages
24124 -d, --debug don't remove temporary files
24125 --recheck update $as_me by reconfiguring in the same conditions
24126 --file=FILE[:TEMPLATE]
24127 instantiate the configuration file FILE
24128 --header=FILE[:TEMPLATE]
24129 instantiate the configuration header FILE
24130
24131 Configuration files:
24132 $config_files
24133
24134 Configuration headers:
24135 $config_headers
24136
24137 Configuration links:
24138 $config_links
24139
24140 Configuration commands:
24141 $config_commands
24142
24143 Report bugs to <bug-autoconf@gnu.org>."
24144 _ACEOF
24145
24146 cat >>$CONFIG_STATUS <<_ACEOF
24147 ac_cs_version="\\
24148 config.status
24149 configured by $0, generated by GNU Autoconf 2.59,
24150 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24151
24152 Copyright (C) 2003 Free Software Foundation, Inc.
24153 This config.status script is free software; the Free Software Foundation
24154 gives unlimited permission to copy, distribute and modify it."
24155 srcdir=$srcdir
24156 INSTALL="$INSTALL"
24157 _ACEOF
24158
24159 cat >>$CONFIG_STATUS <<\_ACEOF
24160 # If no file are specified by the user, then we need to provide default
24161 # value. By we need to know if files were specified by the user.
24162 ac_need_defaults=:
24163 while test $# != 0
24164 do
24165 case $1 in
24166 --*=*)
24167 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24168 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24169 ac_shift=:
24170 ;;
24171 -*)
24172 ac_option=$1
24173 ac_optarg=$2
24174 ac_shift=shift
24175 ;;
24176 *) # This is not an option, so the user has probably given explicit
24177 # arguments.
24178 ac_option=$1
24179 ac_need_defaults=false;;
24180 esac
24181
24182 case $ac_option in
24183 # Handling of the options.
24184 _ACEOF
24185 cat >>$CONFIG_STATUS <<\_ACEOF
24186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24187 ac_cs_recheck=: ;;
24188 --version | --vers* | -V )
24189 echo "$ac_cs_version"; exit 0 ;;
24190 --he | --h)
24191 # Conflict between --help and --header
24192 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24193 Try \`$0 --help' for more information." >&5
24194 echo "$as_me: error: ambiguous option: $1
24195 Try \`$0 --help' for more information." >&2;}
24196 { (exit 1); exit 1; }; };;
24197 --help | --hel | -h )
24198 echo "$ac_cs_usage"; exit 0 ;;
24199 --debug | --d* | -d )
24200 debug=: ;;
24201 --file | --fil | --fi | --f )
24202 $ac_shift
24203 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24204 ac_need_defaults=false;;
24205 --header | --heade | --head | --hea )
24206 $ac_shift
24207 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24208 ac_need_defaults=false;;
24209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24210 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24211 ac_cs_silent=: ;;
24212
24213 # This is an error.
24214 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24215 Try \`$0 --help' for more information." >&5
24216 echo "$as_me: error: unrecognized option: $1
24217 Try \`$0 --help' for more information." >&2;}
24218 { (exit 1); exit 1; }; } ;;
24219
24220 *) ac_config_targets="$ac_config_targets $1" ;;
24221
24222 esac
24223 shift
24224 done
24225
24226 ac_configure_extra_args=
24227
24228 if $ac_cs_silent; then
24229 exec 6>/dev/null
24230 ac_configure_extra_args="$ac_configure_extra_args --silent"
24231 fi
24232
24233 _ACEOF
24234 cat >>$CONFIG_STATUS <<_ACEOF
24235 if \$ac_cs_recheck; then
24236 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24237 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24238 fi
24239
24240 _ACEOF
24241
24242 cat >>$CONFIG_STATUS <<_ACEOF
24243 #
24244 # INIT-COMMANDS section.
24245 #
24246
24247
24248 GCC="$GCC"
24249 CC="$CC"
24250 acx_cv_header_stdint="$acx_cv_header_stdint"
24251 acx_cv_type_int8_t="$acx_cv_type_int8_t"
24252 acx_cv_type_int16_t="$acx_cv_type_int16_t"
24253 acx_cv_type_int32_t="$acx_cv_type_int32_t"
24254 acx_cv_type_int64_t="$acx_cv_type_int64_t"
24255 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24256 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24257 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24258 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24259 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24260 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24261 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24262 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24263 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24264
24265
24266 gdb_host_cpu=$gdb_host_cpu
24267 gdb_target_cpu=$gdb_target_cpu
24268 nativefile=$nativefile
24269
24270
24271 _ACEOF
24272
24273
24274
24275 cat >>$CONFIG_STATUS <<\_ACEOF
24276 for ac_config_target in $ac_config_targets
24277 do
24278 case "$ac_config_target" in
24279 # Handling of arguments.
24280 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24281 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24282 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24283 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24284 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24285 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24286 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24287 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24288 { (exit 1); exit 1; }; };;
24289 esac
24290 done
24291
24292 # If the user did not use the arguments to specify the items to instantiate,
24293 # then the envvar interface is used. Set only those that are not.
24294 # We use the long form for the default assignment because of an extremely
24295 # bizarre bug on SunOS 4.1.3.
24296 if $ac_need_defaults; then
24297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24299 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24301 fi
24302
24303 # Have a temporary directory for convenience. Make it in the build tree
24304 # simply because there is no reason to put it here, and in addition,
24305 # creating and moving files from /tmp can sometimes cause problems.
24306 # Create a temporary directory, and hook for its removal unless debugging.
24307 $debug ||
24308 {
24309 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24310 trap '{ (exit 1); exit 1; }' 1 2 13 15
24311 }
24312
24313 # Create a (secure) tmp directory for tmp files.
24314
24315 {
24316 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24317 test -n "$tmp" && test -d "$tmp"
24318 } ||
24319 {
24320 tmp=./confstat$$-$RANDOM
24321 (umask 077 && mkdir $tmp)
24322 } ||
24323 {
24324 echo "$me: cannot create a temporary directory in ." >&2
24325 { (exit 1); exit 1; }
24326 }
24327
24328 _ACEOF
24329
24330 cat >>$CONFIG_STATUS <<_ACEOF
24331
24332 #
24333 # CONFIG_FILES section.
24334 #
24335
24336 # No need to generate the scripts if there are no CONFIG_FILES.
24337 # This happens for instance when ./config.status config.h
24338 if test -n "\$CONFIG_FILES"; then
24339 # Protect against being on the right side of a sed subst in config.status.
24340 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24341 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24342 s,@SHELL@,$SHELL,;t t
24343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24349 s,@exec_prefix@,$exec_prefix,;t t
24350 s,@prefix@,$prefix,;t t
24351 s,@program_transform_name@,$program_transform_name,;t t
24352 s,@bindir@,$bindir,;t t
24353 s,@sbindir@,$sbindir,;t t
24354 s,@libexecdir@,$libexecdir,;t t
24355 s,@datadir@,$datadir,;t t
24356 s,@sysconfdir@,$sysconfdir,;t t
24357 s,@sharedstatedir@,$sharedstatedir,;t t
24358 s,@localstatedir@,$localstatedir,;t t
24359 s,@libdir@,$libdir,;t t
24360 s,@includedir@,$includedir,;t t
24361 s,@oldincludedir@,$oldincludedir,;t t
24362 s,@infodir@,$infodir,;t t
24363 s,@mandir@,$mandir,;t t
24364 s,@build_alias@,$build_alias,;t t
24365 s,@host_alias@,$host_alias,;t t
24366 s,@target_alias@,$target_alias,;t t
24367 s,@DEFS@,$DEFS,;t t
24368 s,@ECHO_C@,$ECHO_C,;t t
24369 s,@ECHO_N@,$ECHO_N,;t t
24370 s,@ECHO_T@,$ECHO_T,;t t
24371 s,@LIBS@,$LIBS,;t t
24372 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24373 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24374 s,@MAINT@,$MAINT,;t t
24375 s,@CC@,$CC,;t t
24376 s,@CFLAGS@,$CFLAGS,;t t
24377 s,@LDFLAGS@,$LDFLAGS,;t t
24378 s,@CPPFLAGS@,$CPPFLAGS,;t t
24379 s,@ac_ct_CC@,$ac_ct_CC,;t t
24380 s,@EXEEXT@,$EXEEXT,;t t
24381 s,@OBJEXT@,$OBJEXT,;t t
24382 s,@CPP@,$CPP,;t t
24383 s,@EGREP@,$EGREP,;t t
24384 s,@build@,$build,;t t
24385 s,@build_cpu@,$build_cpu,;t t
24386 s,@build_vendor@,$build_vendor,;t t
24387 s,@build_os@,$build_os,;t t
24388 s,@host@,$host,;t t
24389 s,@host_cpu@,$host_cpu,;t t
24390 s,@host_vendor@,$host_vendor,;t t
24391 s,@host_os@,$host_os,;t t
24392 s,@target@,$target,;t t
24393 s,@target_cpu@,$target_cpu,;t t
24394 s,@target_vendor@,$target_vendor,;t t
24395 s,@target_os@,$target_os,;t t
24396 s,@USE_NLS@,$USE_NLS,;t t
24397 s,@LIBINTL@,$LIBINTL,;t t
24398 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24399 s,@INCINTL@,$INCINTL,;t t
24400 s,@XGETTEXT@,$XGETTEXT,;t t
24401 s,@GMSGFMT@,$GMSGFMT,;t t
24402 s,@POSUB@,$POSUB,;t t
24403 s,@CATALOGS@,$CATALOGS,;t t
24404 s,@DATADIRNAME@,$DATADIRNAME,;t t
24405 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24406 s,@GENCAT@,$GENCAT,;t t
24407 s,@CATOBJEXT@,$CATOBJEXT,;t t
24408 s,@localedir@,$localedir,;t t
24409 s,@PACKAGE@,$PACKAGE,;t t
24410 s,@subdirs@,$subdirs,;t t
24411 s,@AWK@,$AWK,;t t
24412 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24413 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24414 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24415 s,@LN_S@,$LN_S,;t t
24416 s,@RANLIB@,$RANLIB,;t t
24417 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24418 s,@YACC@,$YACC,;t t
24419 s,@AR@,$AR,;t t
24420 s,@ac_ct_AR@,$ac_ct_AR,;t t
24421 s,@DLLTOOL@,$DLLTOOL,;t t
24422 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24423 s,@WINDRES@,$WINDRES,;t t
24424 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24425 s,@MIG@,$MIG,;t t
24426 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
24427 s,@READLINE@,$READLINE,;t t
24428 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24429 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
24430 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24431 s,@LIBEXPAT@,$LIBEXPAT,;t t
24432 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
24433 s,@ALLOCA@,$ALLOCA,;t t
24434 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24435 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24436 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24437 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24438 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24439 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24440 s,@WIN32LIBS@,$WIN32LIBS,;t t
24441 s,@LIBGUI@,$LIBGUI,;t t
24442 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24443 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24444 s,@TCL_VERSION@,$TCL_VERSION,;t t
24445 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24446 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24447 s,@TCL_CC@,$TCL_CC,;t t
24448 s,@TCL_DEFS@,$TCL_DEFS,;t t
24449 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24450 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24451 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24452 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24453 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24454 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24455 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24456 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24457 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24458 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24459 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24460 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24461 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24462 s,@TK_VERSION@,$TK_VERSION,;t t
24463 s,@TK_DEFS@,$TK_DEFS,;t t
24464 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24465 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24466 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24467 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24468 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24469 s,@TCLHDIR@,$TCLHDIR,;t t
24470 s,@TKHDIR@,$TKHDIR,;t t
24471 s,@ITCLHDIR@,$ITCLHDIR,;t t
24472 s,@ITKHDIR@,$ITKHDIR,;t t
24473 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24474 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24475 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24476 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24477 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24478 s,@ITK_VERSION@,$ITK_VERSION,;t t
24479 s,@ITK_DEFS@,$ITK_DEFS,;t t
24480 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24481 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24482 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24483 s,@X_CFLAGS@,$X_CFLAGS,;t t
24484 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24485 s,@X_LIBS@,$X_LIBS,;t t
24486 s,@TCL_DEPS@,$TCL_DEPS,;t t
24487 s,@TK_DEPS@,$TK_DEPS,;t t
24488 s,@ITCLLIB@,$ITCLLIB,;t t
24489 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24490 s,@ITKLIB@,$ITKLIB,;t t
24491 s,@ITK_DEPS@,$ITK_DEPS,;t t
24492 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24493 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24494 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24495 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24496 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24497 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24498 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24499 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24500 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24501 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24502 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24503 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24504 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24505 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24506 s,@target_subdir@,$target_subdir,;t t
24507 s,@frags@,$frags,;t t
24508 s,@xm_h@,$xm_h,;t t
24509 s,@tm_h@,$tm_h,;t t
24510 s,@nm_h@,$nm_h,;t t
24511 s,@LIBICONV@,$LIBICONV,;t t
24512 s,@LIBOBJS@,$LIBOBJS,;t t
24513 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24514 /@host_makefile_frag@/r $host_makefile_frag
24515 s,@host_makefile_frag@,,;t t
24516 /@target_makefile_frag@/r $target_makefile_frag
24517 s,@target_makefile_frag@,,;t t
24518 CEOF
24519
24520 _ACEOF
24521
24522 cat >>$CONFIG_STATUS <<\_ACEOF
24523 # Split the substitutions into bite-sized pieces for seds with
24524 # small command number limits, like on Digital OSF/1 and HP-UX.
24525 ac_max_sed_lines=48
24526 ac_sed_frag=1 # Number of current file.
24527 ac_beg=1 # First line for current file.
24528 ac_end=$ac_max_sed_lines # Line after last line for current file.
24529 ac_more_lines=:
24530 ac_sed_cmds=
24531 while $ac_more_lines; do
24532 if test $ac_beg -gt 1; then
24533 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24534 else
24535 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24536 fi
24537 if test ! -s $tmp/subs.frag; then
24538 ac_more_lines=false
24539 else
24540 # The purpose of the label and of the branching condition is to
24541 # speed up the sed processing (if there are no `@' at all, there
24542 # is no need to browse any of the substitutions).
24543 # These are the two extra sed commands mentioned above.
24544 (echo ':t
24545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24546 if test -z "$ac_sed_cmds"; then
24547 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24548 else
24549 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24550 fi
24551 ac_sed_frag=`expr $ac_sed_frag + 1`
24552 ac_beg=$ac_end
24553 ac_end=`expr $ac_end + $ac_max_sed_lines`
24554 fi
24555 done
24556 if test -z "$ac_sed_cmds"; then
24557 ac_sed_cmds=cat
24558 fi
24559 fi # test -n "$CONFIG_FILES"
24560
24561 _ACEOF
24562 cat >>$CONFIG_STATUS <<\_ACEOF
24563 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24565 case $ac_file in
24566 - | *:- | *:-:* ) # input from stdin
24567 cat >$tmp/stdin
24568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24572 * ) ac_file_in=$ac_file.in ;;
24573 esac
24574
24575 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24578 X"$ac_file" : 'X\(//\)[^/]' \| \
24579 X"$ac_file" : 'X\(//\)$' \| \
24580 X"$ac_file" : 'X\(/\)' \| \
24581 . : '\(.\)' 2>/dev/null ||
24582 echo X"$ac_file" |
24583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24585 /^X\(\/\/\)$/{ s//\1/; q; }
24586 /^X\(\/\).*/{ s//\1/; q; }
24587 s/.*/./; q'`
24588 { if $as_mkdir_p; then
24589 mkdir -p "$ac_dir"
24590 else
24591 as_dir="$ac_dir"
24592 as_dirs=
24593 while test ! -d "$as_dir"; do
24594 as_dirs="$as_dir $as_dirs"
24595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24596 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24597 X"$as_dir" : 'X\(//\)[^/]' \| \
24598 X"$as_dir" : 'X\(//\)$' \| \
24599 X"$as_dir" : 'X\(/\)' \| \
24600 . : '\(.\)' 2>/dev/null ||
24601 echo X"$as_dir" |
24602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24604 /^X\(\/\/\)$/{ s//\1/; q; }
24605 /^X\(\/\).*/{ s//\1/; q; }
24606 s/.*/./; q'`
24607 done
24608 test ! -n "$as_dirs" || mkdir $as_dirs
24609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24610 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24611 { (exit 1); exit 1; }; }; }
24612
24613 ac_builddir=.
24614
24615 if test "$ac_dir" != .; then
24616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24617 # A "../" for each directory in $ac_dir_suffix.
24618 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24619 else
24620 ac_dir_suffix= ac_top_builddir=
24621 fi
24622
24623 case $srcdir in
24624 .) # No --srcdir option. We are building in place.
24625 ac_srcdir=.
24626 if test -z "$ac_top_builddir"; then
24627 ac_top_srcdir=.
24628 else
24629 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24630 fi ;;
24631 [\\/]* | ?:[\\/]* ) # Absolute path.
24632 ac_srcdir=$srcdir$ac_dir_suffix;
24633 ac_top_srcdir=$srcdir ;;
24634 *) # Relative path.
24635 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24636 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24637 esac
24638
24639 # Do not use `cd foo && pwd` to compute absolute paths, because
24640 # the directories may not exist.
24641 case `pwd` in
24642 .) ac_abs_builddir="$ac_dir";;
24643 *)
24644 case "$ac_dir" in
24645 .) ac_abs_builddir=`pwd`;;
24646 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24647 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24648 esac;;
24649 esac
24650 case $ac_abs_builddir in
24651 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24652 *)
24653 case ${ac_top_builddir}. in
24654 .) ac_abs_top_builddir=$ac_abs_builddir;;
24655 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24656 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24657 esac;;
24658 esac
24659 case $ac_abs_builddir in
24660 .) ac_abs_srcdir=$ac_srcdir;;
24661 *)
24662 case $ac_srcdir in
24663 .) ac_abs_srcdir=$ac_abs_builddir;;
24664 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24665 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24666 esac;;
24667 esac
24668 case $ac_abs_builddir in
24669 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24670 *)
24671 case $ac_top_srcdir in
24672 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24673 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24674 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24675 esac;;
24676 esac
24677
24678
24679 case $INSTALL in
24680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24681 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24682 esac
24683
24684 if test x"$ac_file" != x-; then
24685 { echo "$as_me:$LINENO: creating $ac_file" >&5
24686 echo "$as_me: creating $ac_file" >&6;}
24687 rm -f "$ac_file"
24688 fi
24689 # Let's still pretend it is `configure' which instantiates (i.e., don't
24690 # use $as_me), people would be surprised to read:
24691 # /* config.h. Generated by config.status. */
24692 if test x"$ac_file" = x-; then
24693 configure_input=
24694 else
24695 configure_input="$ac_file. "
24696 fi
24697 configure_input=$configure_input"Generated from `echo $ac_file_in |
24698 sed 's,.*/,,'` by configure."
24699
24700 # First look for the input files in the build tree, otherwise in the
24701 # src tree.
24702 ac_file_inputs=`IFS=:
24703 for f in $ac_file_in; do
24704 case $f in
24705 -) echo $tmp/stdin ;;
24706 [\\/$]*)
24707 # Absolute (can't be DOS-style, as IFS=:)
24708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24709 echo "$as_me: error: cannot find input file: $f" >&2;}
24710 { (exit 1); exit 1; }; }
24711 echo "$f";;
24712 *) # Relative
24713 if test -f "$f"; then
24714 # Build tree
24715 echo "$f"
24716 elif test -f "$srcdir/$f"; then
24717 # Source tree
24718 echo "$srcdir/$f"
24719 else
24720 # /dev/null tree
24721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24722 echo "$as_me: error: cannot find input file: $f" >&2;}
24723 { (exit 1); exit 1; }; }
24724 fi;;
24725 esac
24726 done` || { (exit 1); exit 1; }
24727 _ACEOF
24728 cat >>$CONFIG_STATUS <<_ACEOF
24729 sed "$ac_vpsub
24730 $extrasub
24731 _ACEOF
24732 cat >>$CONFIG_STATUS <<\_ACEOF
24733 :t
24734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24735 s,@configure_input@,$configure_input,;t t
24736 s,@srcdir@,$ac_srcdir,;t t
24737 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24738 s,@top_srcdir@,$ac_top_srcdir,;t t
24739 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24740 s,@builddir@,$ac_builddir,;t t
24741 s,@abs_builddir@,$ac_abs_builddir,;t t
24742 s,@top_builddir@,$ac_top_builddir,;t t
24743 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24744 s,@INSTALL@,$ac_INSTALL,;t t
24745 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24746 rm -f $tmp/stdin
24747 if test x"$ac_file" != x-; then
24748 mv $tmp/out $ac_file
24749 else
24750 cat $tmp/out
24751 rm -f $tmp/out
24752 fi
24753
24754 done
24755 _ACEOF
24756 cat >>$CONFIG_STATUS <<\_ACEOF
24757
24758 #
24759 # CONFIG_HEADER section.
24760 #
24761
24762 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24763 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24764 #
24765 # ac_d sets the value in "#define NAME VALUE" lines.
24766 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24767 ac_dB='[ ].*$,\1#\2'
24768 ac_dC=' '
24769 ac_dD=',;t'
24770 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24771 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24772 ac_uB='$,\1#\2define\3'
24773 ac_uC=' '
24774 ac_uD=',;t'
24775
24776 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24778 case $ac_file in
24779 - | *:- | *:-:* ) # input from stdin
24780 cat >$tmp/stdin
24781 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24782 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24783 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24785 * ) ac_file_in=$ac_file.in ;;
24786 esac
24787
24788 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24789 echo "$as_me: creating $ac_file" >&6;}
24790
24791 # First look for the input files in the build tree, otherwise in the
24792 # src tree.
24793 ac_file_inputs=`IFS=:
24794 for f in $ac_file_in; do
24795 case $f in
24796 -) echo $tmp/stdin ;;
24797 [\\/$]*)
24798 # Absolute (can't be DOS-style, as IFS=:)
24799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24800 echo "$as_me: error: cannot find input file: $f" >&2;}
24801 { (exit 1); exit 1; }; }
24802 # Do quote $f, to prevent DOS paths from being IFS'd.
24803 echo "$f";;
24804 *) # Relative
24805 if test -f "$f"; then
24806 # Build tree
24807 echo "$f"
24808 elif test -f "$srcdir/$f"; then
24809 # Source tree
24810 echo "$srcdir/$f"
24811 else
24812 # /dev/null tree
24813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24814 echo "$as_me: error: cannot find input file: $f" >&2;}
24815 { (exit 1); exit 1; }; }
24816 fi;;
24817 esac
24818 done` || { (exit 1); exit 1; }
24819 # Remove the trailing spaces.
24820 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24821
24822 _ACEOF
24823
24824 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24825 # `conftest.undefs', that substitutes the proper values into
24826 # config.h.in to produce config.h. The first handles `#define'
24827 # templates, and the second `#undef' templates.
24828 # And first: Protect against being on the right side of a sed subst in
24829 # config.status. Protect against being in an unquoted here document
24830 # in config.status.
24831 rm -f conftest.defines conftest.undefs
24832 # Using a here document instead of a string reduces the quoting nightmare.
24833 # Putting comments in sed scripts is not portable.
24834 #
24835 # `end' is used to avoid that the second main sed command (meant for
24836 # 0-ary CPP macros) applies to n-ary macro definitions.
24837 # See the Autoconf documentation for `clear'.
24838 cat >confdef2sed.sed <<\_ACEOF
24839 s/[\\&,]/\\&/g
24840 s,[\\$`],\\&,g
24841 t clear
24842 : clear
24843 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24844 t end
24845 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24846 : end
24847 _ACEOF
24848 # If some macros were called several times there might be several times
24849 # the same #defines, which is useless. Nevertheless, we may not want to
24850 # sort them, since we want the *last* AC-DEFINE to be honored.
24851 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24852 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24853 rm -f confdef2sed.sed
24854
24855 # This sed command replaces #undef with comments. This is necessary, for
24856 # example, in the case of _POSIX_SOURCE, which is predefined and required
24857 # on some systems where configure will not decide to define it.
24858 cat >>conftest.undefs <<\_ACEOF
24859 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24860 _ACEOF
24861
24862 # Break up conftest.defines because some shells have a limit on the size
24863 # of here documents, and old seds have small limits too (100 cmds).
24864 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24865 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24866 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24867 echo ' :' >>$CONFIG_STATUS
24868 rm -f conftest.tail
24869 while grep . conftest.defines >/dev/null
24870 do
24871 # Write a limited-size here document to $tmp/defines.sed.
24872 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24873 # Speed up: don't consider the non `#define' lines.
24874 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24875 # Work around the forget-to-reset-the-flag bug.
24876 echo 't clr' >>$CONFIG_STATUS
24877 echo ': clr' >>$CONFIG_STATUS
24878 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24879 echo 'CEOF
24880 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24881 rm -f $tmp/in
24882 mv $tmp/out $tmp/in
24883 ' >>$CONFIG_STATUS
24884 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24885 rm -f conftest.defines
24886 mv conftest.tail conftest.defines
24887 done
24888 rm -f conftest.defines
24889 echo ' fi # grep' >>$CONFIG_STATUS
24890 echo >>$CONFIG_STATUS
24891
24892 # Break up conftest.undefs because some shells have a limit on the size
24893 # of here documents, and old seds have small limits too (100 cmds).
24894 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24895 rm -f conftest.tail
24896 while grep . conftest.undefs >/dev/null
24897 do
24898 # Write a limited-size here document to $tmp/undefs.sed.
24899 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24900 # Speed up: don't consider the non `#undef'
24901 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24902 # Work around the forget-to-reset-the-flag bug.
24903 echo 't clr' >>$CONFIG_STATUS
24904 echo ': clr' >>$CONFIG_STATUS
24905 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24906 echo 'CEOF
24907 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24908 rm -f $tmp/in
24909 mv $tmp/out $tmp/in
24910 ' >>$CONFIG_STATUS
24911 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24912 rm -f conftest.undefs
24913 mv conftest.tail conftest.undefs
24914 done
24915 rm -f conftest.undefs
24916
24917 cat >>$CONFIG_STATUS <<\_ACEOF
24918 # Let's still pretend it is `configure' which instantiates (i.e., don't
24919 # use $as_me), people would be surprised to read:
24920 # /* config.h. Generated by config.status. */
24921 if test x"$ac_file" = x-; then
24922 echo "/* Generated by configure. */" >$tmp/config.h
24923 else
24924 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24925 fi
24926 cat $tmp/in >>$tmp/config.h
24927 rm -f $tmp/in
24928 if test x"$ac_file" != x-; then
24929 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24931 echo "$as_me: $ac_file is unchanged" >&6;}
24932 else
24933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24934 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24935 X"$ac_file" : 'X\(//\)[^/]' \| \
24936 X"$ac_file" : 'X\(//\)$' \| \
24937 X"$ac_file" : 'X\(/\)' \| \
24938 . : '\(.\)' 2>/dev/null ||
24939 echo X"$ac_file" |
24940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24942 /^X\(\/\/\)$/{ s//\1/; q; }
24943 /^X\(\/\).*/{ s//\1/; q; }
24944 s/.*/./; q'`
24945 { if $as_mkdir_p; then
24946 mkdir -p "$ac_dir"
24947 else
24948 as_dir="$ac_dir"
24949 as_dirs=
24950 while test ! -d "$as_dir"; do
24951 as_dirs="$as_dir $as_dirs"
24952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24954 X"$as_dir" : 'X\(//\)[^/]' \| \
24955 X"$as_dir" : 'X\(//\)$' \| \
24956 X"$as_dir" : 'X\(/\)' \| \
24957 . : '\(.\)' 2>/dev/null ||
24958 echo X"$as_dir" |
24959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24961 /^X\(\/\/\)$/{ s//\1/; q; }
24962 /^X\(\/\).*/{ s//\1/; q; }
24963 s/.*/./; q'`
24964 done
24965 test ! -n "$as_dirs" || mkdir $as_dirs
24966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24968 { (exit 1); exit 1; }; }; }
24969
24970 rm -f $ac_file
24971 mv $tmp/config.h $ac_file
24972 fi
24973 else
24974 cat $tmp/config.h
24975 rm -f $tmp/config.h
24976 fi
24977 done
24978 _ACEOF
24979 cat >>$CONFIG_STATUS <<\_ACEOF
24980
24981 #
24982 # CONFIG_LINKS section.
24983 #
24984
24985 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24986 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24987 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24988
24989 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24990 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24991
24992 if test ! -r $srcdir/$ac_source; then
24993 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24994 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24995 { (exit 1); exit 1; }; }
24996 fi
24997 rm -f $ac_dest
24998
24999 # Make relative symlinks.
25000 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25001 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25002 X"$ac_dest" : 'X\(//\)[^/]' \| \
25003 X"$ac_dest" : 'X\(//\)$' \| \
25004 X"$ac_dest" : 'X\(/\)' \| \
25005 . : '\(.\)' 2>/dev/null ||
25006 echo X"$ac_dest" |
25007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25009 /^X\(\/\/\)$/{ s//\1/; q; }
25010 /^X\(\/\).*/{ s//\1/; q; }
25011 s/.*/./; q'`
25012 { if $as_mkdir_p; then
25013 mkdir -p "$ac_dest_dir"
25014 else
25015 as_dir="$ac_dest_dir"
25016 as_dirs=
25017 while test ! -d "$as_dir"; do
25018 as_dirs="$as_dir $as_dirs"
25019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25021 X"$as_dir" : 'X\(//\)[^/]' \| \
25022 X"$as_dir" : 'X\(//\)$' \| \
25023 X"$as_dir" : 'X\(/\)' \| \
25024 . : '\(.\)' 2>/dev/null ||
25025 echo X"$as_dir" |
25026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25028 /^X\(\/\/\)$/{ s//\1/; q; }
25029 /^X\(\/\).*/{ s//\1/; q; }
25030 s/.*/./; q'`
25031 done
25032 test ! -n "$as_dirs" || mkdir $as_dirs
25033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25034 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25035 { (exit 1); exit 1; }; }; }
25036
25037 ac_builddir=.
25038
25039 if test "$ac_dest_dir" != .; then
25040 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25041 # A "../" for each directory in $ac_dir_suffix.
25042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25043 else
25044 ac_dir_suffix= ac_top_builddir=
25045 fi
25046
25047 case $srcdir in
25048 .) # No --srcdir option. We are building in place.
25049 ac_srcdir=.
25050 if test -z "$ac_top_builddir"; then
25051 ac_top_srcdir=.
25052 else
25053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25054 fi ;;
25055 [\\/]* | ?:[\\/]* ) # Absolute path.
25056 ac_srcdir=$srcdir$ac_dir_suffix;
25057 ac_top_srcdir=$srcdir ;;
25058 *) # Relative path.
25059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25061 esac
25062
25063 # Do not use `cd foo && pwd` to compute absolute paths, because
25064 # the directories may not exist.
25065 case `pwd` in
25066 .) ac_abs_builddir="$ac_dest_dir";;
25067 *)
25068 case "$ac_dest_dir" in
25069 .) ac_abs_builddir=`pwd`;;
25070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25071 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25072 esac;;
25073 esac
25074 case $ac_abs_builddir in
25075 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25076 *)
25077 case ${ac_top_builddir}. in
25078 .) ac_abs_top_builddir=$ac_abs_builddir;;
25079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25081 esac;;
25082 esac
25083 case $ac_abs_builddir in
25084 .) ac_abs_srcdir=$ac_srcdir;;
25085 *)
25086 case $ac_srcdir in
25087 .) ac_abs_srcdir=$ac_abs_builddir;;
25088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25090 esac;;
25091 esac
25092 case $ac_abs_builddir in
25093 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25094 *)
25095 case $ac_top_srcdir in
25096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25099 esac;;
25100 esac
25101
25102
25103 case $srcdir in
25104 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25105 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25106 esac
25107
25108 # Try a symlink, then a hard link, then a copy.
25109 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25110 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25111 cp -p $srcdir/$ac_source $ac_dest ||
25112 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25113 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25114 { (exit 1); exit 1; }; }
25115 done
25116 _ACEOF
25117 cat >>$CONFIG_STATUS <<\_ACEOF
25118
25119 #
25120 # CONFIG_COMMANDS section.
25121 #
25122 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25123 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25124 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25125 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25126 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25127 X"$ac_dest" : 'X\(//\)[^/]' \| \
25128 X"$ac_dest" : 'X\(//\)$' \| \
25129 X"$ac_dest" : 'X\(/\)' \| \
25130 . : '\(.\)' 2>/dev/null ||
25131 echo X"$ac_dest" |
25132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25134 /^X\(\/\/\)$/{ s//\1/; q; }
25135 /^X\(\/\).*/{ s//\1/; q; }
25136 s/.*/./; q'`
25137 { if $as_mkdir_p; then
25138 mkdir -p "$ac_dir"
25139 else
25140 as_dir="$ac_dir"
25141 as_dirs=
25142 while test ! -d "$as_dir"; do
25143 as_dirs="$as_dir $as_dirs"
25144 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25146 X"$as_dir" : 'X\(//\)[^/]' \| \
25147 X"$as_dir" : 'X\(//\)$' \| \
25148 X"$as_dir" : 'X\(/\)' \| \
25149 . : '\(.\)' 2>/dev/null ||
25150 echo X"$as_dir" |
25151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25153 /^X\(\/\/\)$/{ s//\1/; q; }
25154 /^X\(\/\).*/{ s//\1/; q; }
25155 s/.*/./; q'`
25156 done
25157 test ! -n "$as_dirs" || mkdir $as_dirs
25158 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25159 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25160 { (exit 1); exit 1; }; }; }
25161
25162 ac_builddir=.
25163
25164 if test "$ac_dir" != .; then
25165 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25166 # A "../" for each directory in $ac_dir_suffix.
25167 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25168 else
25169 ac_dir_suffix= ac_top_builddir=
25170 fi
25171
25172 case $srcdir in
25173 .) # No --srcdir option. We are building in place.
25174 ac_srcdir=.
25175 if test -z "$ac_top_builddir"; then
25176 ac_top_srcdir=.
25177 else
25178 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25179 fi ;;
25180 [\\/]* | ?:[\\/]* ) # Absolute path.
25181 ac_srcdir=$srcdir$ac_dir_suffix;
25182 ac_top_srcdir=$srcdir ;;
25183 *) # Relative path.
25184 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25185 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25186 esac
25187
25188 # Do not use `cd foo && pwd` to compute absolute paths, because
25189 # the directories may not exist.
25190 case `pwd` in
25191 .) ac_abs_builddir="$ac_dir";;
25192 *)
25193 case "$ac_dir" in
25194 .) ac_abs_builddir=`pwd`;;
25195 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25196 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25197 esac;;
25198 esac
25199 case $ac_abs_builddir in
25200 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25201 *)
25202 case ${ac_top_builddir}. in
25203 .) ac_abs_top_builddir=$ac_abs_builddir;;
25204 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25205 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25206 esac;;
25207 esac
25208 case $ac_abs_builddir in
25209 .) ac_abs_srcdir=$ac_srcdir;;
25210 *)
25211 case $ac_srcdir in
25212 .) ac_abs_srcdir=$ac_abs_builddir;;
25213 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25214 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25215 esac;;
25216 esac
25217 case $ac_abs_builddir in
25218 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25219 *)
25220 case $ac_top_srcdir in
25221 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25222 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25223 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25224 esac;;
25225 esac
25226
25227
25228 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25229 echo "$as_me: executing $ac_dest commands" >&6;}
25230 case $ac_dest in
25231 gdb_stdint.h )
25232 if test "$GCC" = yes; then
25233 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25234 else
25235 echo "/* generated for $CC */" > tmp-stdint.h
25236 fi
25237
25238 sed 's/^ *//' >> tmp-stdint.h <<EOF
25239
25240 #ifndef GCC_GENERATED_STDINT_H
25241 #define GCC_GENERATED_STDINT_H 1
25242
25243 #include <sys/types.h>
25244 EOF
25245
25246 if test "$acx_cv_header_stdint" != stdint.h; then
25247 echo "#include <stddef.h>" >> tmp-stdint.h
25248 fi
25249 if test "$acx_cv_header_stdint" != stddef.h; then
25250 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25251 fi
25252
25253 sed 's/^ *//' >> tmp-stdint.h <<EOF
25254 /* glibc uses these symbols as guards to prevent redefinitions. */
25255 #ifdef __int8_t_defined
25256 #define _INT8_T
25257 #define _INT16_T
25258 #define _INT32_T
25259 #endif
25260 #ifdef __uint32_t_defined
25261 #define _UINT32_T
25262 #endif
25263
25264 EOF
25265
25266 # ----------------- done header, emit basic int types -------------
25267 if test "$acx_cv_header_stdint" = stddef.h; then
25268 sed 's/^ *//' >> tmp-stdint.h <<EOF
25269
25270 #ifndef _UINT8_T
25271 #define _UINT8_T
25272 #ifndef __uint8_t_defined
25273 #define __uint8_t_defined
25274 typedef unsigned $acx_cv_type_int8_t uint8_t;
25275 #endif
25276 #endif
25277
25278 #ifndef _UINT16_T
25279 #define _UINT16_T
25280 #ifndef __uint16_t_defined
25281 #define __uint16_t_defined
25282 typedef unsigned $acx_cv_type_int16_t uint16_t;
25283 #endif
25284 #endif
25285
25286 #ifndef _UINT32_T
25287 #define _UINT32_T
25288 #ifndef __uint32_t_defined
25289 #define __uint32_t_defined
25290 typedef unsigned $acx_cv_type_int32_t uint32_t;
25291 #endif
25292 #endif
25293
25294 #ifndef _INT8_T
25295 #define _INT8_T
25296 #ifndef __int8_t_defined
25297 #define __int8_t_defined
25298 typedef $acx_cv_type_int8_t int8_t;
25299 #endif
25300 #endif
25301
25302 #ifndef _INT16_T
25303 #define _INT16_T
25304 #ifndef __int16_t_defined
25305 #define __int16_t_defined
25306 typedef $acx_cv_type_int16_t int16_t;
25307 #endif
25308 #endif
25309
25310 #ifndef _INT32_T
25311 #define _INT32_T
25312 #ifndef __int32_t_defined
25313 #define __int32_t_defined
25314 typedef $acx_cv_type_int32_t int32_t;
25315 #endif
25316 #endif
25317 EOF
25318 elif test "$ac_cv_type_u_int32_t" = yes; then
25319 sed 's/^ *//' >> tmp-stdint.h <<EOF
25320
25321 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25322 #ifndef _INT8_T
25323 #define _INT8_T
25324 #endif
25325 #ifndef _INT16_T
25326 #define _INT16_T
25327 #endif
25328 #ifndef _INT32_T
25329 #define _INT32_T
25330 #endif
25331
25332 #ifndef _UINT8_T
25333 #define _UINT8_T
25334 #ifndef __uint8_t_defined
25335 #define __uint8_t_defined
25336 typedef u_int8_t uint8_t;
25337 #endif
25338 #endif
25339
25340 #ifndef _UINT16_T
25341 #define _UINT16_T
25342 #ifndef __uint16_t_defined
25343 #define __uint16_t_defined
25344 typedef u_int16_t uint16_t;
25345 #endif
25346 #endif
25347
25348 #ifndef _UINT32_T
25349 #define _UINT32_T
25350 #ifndef __uint32_t_defined
25351 #define __uint32_t_defined
25352 typedef u_int32_t uint32_t;
25353 #endif
25354 #endif
25355 EOF
25356 else
25357 sed 's/^ *//' >> tmp-stdint.h <<EOF
25358
25359 /* Some systems have guard macros to prevent redefinitions, define them. */
25360 #ifndef _INT8_T
25361 #define _INT8_T
25362 #endif
25363 #ifndef _INT16_T
25364 #define _INT16_T
25365 #endif
25366 #ifndef _INT32_T
25367 #define _INT32_T
25368 #endif
25369 #ifndef _UINT8_T
25370 #define _UINT8_T
25371 #endif
25372 #ifndef _UINT16_T
25373 #define _UINT16_T
25374 #endif
25375 #ifndef _UINT32_T
25376 #define _UINT32_T
25377 #endif
25378 EOF
25379 fi
25380
25381 # ------------- done basic int types, emit int64_t types ------------
25382 if test "$ac_cv_type_uint64_t" = yes; then
25383 sed 's/^ *//' >> tmp-stdint.h <<EOF
25384
25385 /* system headers have good uint64_t and int64_t */
25386 #ifndef _INT64_T
25387 #define _INT64_T
25388 #endif
25389 #ifndef _UINT64_T
25390 #define _UINT64_T
25391 #endif
25392 EOF
25393 elif test "$ac_cv_type_u_int64_t" = yes; then
25394 sed 's/^ *//' >> tmp-stdint.h <<EOF
25395
25396 /* system headers have an u_int64_t (and int64_t) */
25397 #ifndef _INT64_T
25398 #define _INT64_T
25399 #endif
25400 #ifndef _UINT64_T
25401 #define _UINT64_T
25402 #ifndef __uint64_t_defined
25403 #define __uint64_t_defined
25404 typedef u_int64_t uint64_t;
25405 #endif
25406 #endif
25407 EOF
25408 elif test -n "$acx_cv_type_int64_t"; then
25409 sed 's/^ *//' >> tmp-stdint.h <<EOF
25410
25411 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25412 #ifndef _INT64_T
25413 #define _INT64_T
25414 typedef $acx_cv_type_int64_t int64_t;
25415 #endif
25416 #ifndef _UINT64_T
25417 #define _UINT64_T
25418 #ifndef __uint64_t_defined
25419 #define __uint64_t_defined
25420 typedef unsigned $acx_cv_type_int64_t uint64_t;
25421 #endif
25422 #endif
25423 EOF
25424 else
25425 sed 's/^ *//' >> tmp-stdint.h <<EOF
25426
25427 /* some common heuristics for int64_t, using compiler-specific tests */
25428 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25429 #ifndef _INT64_T
25430 #define _INT64_T
25431 #ifndef __int64_t_defined
25432 typedef long long int64_t;
25433 #endif
25434 #endif
25435 #ifndef _UINT64_T
25436 #define _UINT64_T
25437 typedef unsigned long long uint64_t;
25438 #endif
25439
25440 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25441 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25442 does not implement __extension__. But that compiler doesn't define
25443 __GNUC_MINOR__. */
25444 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25445 # define __extension__
25446 # endif
25447
25448 # ifndef _INT64_T
25449 # define _INT64_T
25450 __extension__ typedef long long int64_t;
25451 # endif
25452 # ifndef _UINT64_T
25453 # define _UINT64_T
25454 __extension__ typedef unsigned long long uint64_t;
25455 # endif
25456
25457 #elif !defined __STRICT_ANSI__
25458 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25459
25460 # ifndef _INT64_T
25461 # define _INT64_T
25462 typedef __int64 int64_t;
25463 # endif
25464 # ifndef _UINT64_T
25465 # define _UINT64_T
25466 typedef unsigned __int64 uint64_t;
25467 # endif
25468 # endif /* compiler */
25469
25470 #endif /* ANSI version */
25471 EOF
25472 fi
25473
25474 # ------------- done int64_t types, emit intptr types ------------
25475 if test "$ac_cv_type_uintptr_t" != yes; then
25476 sed 's/^ *//' >> tmp-stdint.h <<EOF
25477
25478 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25479 #ifndef __uintptr_t_defined
25480 typedef u$acx_cv_type_intptr_t uintptr_t;
25481 #endif
25482 #ifndef __intptr_t_defined
25483 typedef $acx_cv_type_intptr_t intptr_t;
25484 #endif
25485 EOF
25486 fi
25487
25488 # ------------- done intptr types, emit int_least types ------------
25489 if test "$ac_cv_type_int_least32_t" != yes; then
25490 sed 's/^ *//' >> tmp-stdint.h <<EOF
25491
25492 /* Define int_least types */
25493 typedef int8_t int_least8_t;
25494 typedef int16_t int_least16_t;
25495 typedef int32_t int_least32_t;
25496 #ifdef _INT64_T
25497 typedef int64_t int_least64_t;
25498 #endif
25499
25500 typedef uint8_t uint_least8_t;
25501 typedef uint16_t uint_least16_t;
25502 typedef uint32_t uint_least32_t;
25503 #ifdef _UINT64_T
25504 typedef uint64_t uint_least64_t;
25505 #endif
25506 EOF
25507 fi
25508
25509 # ------------- done intptr types, emit int_fast types ------------
25510 if test "$ac_cv_type_int_fast32_t" != yes; then
25511 sed 's/^ *//' >> tmp-stdint.h <<EOF
25512
25513 /* Define int_fast types. short is often slow */
25514 typedef int8_t int_fast8_t;
25515 typedef int int_fast16_t;
25516 typedef int32_t int_fast32_t;
25517 #ifdef _INT64_T
25518 typedef int64_t int_fast64_t;
25519 #endif
25520
25521 typedef uint8_t uint_fast8_t;
25522 typedef unsigned int uint_fast16_t;
25523 typedef uint32_t uint_fast32_t;
25524 #ifdef _UINT64_T
25525 typedef uint64_t uint_fast64_t;
25526 #endif
25527 EOF
25528 fi
25529
25530 if test "$ac_cv_type_uintmax_t" != yes; then
25531 sed 's/^ *//' >> tmp-stdint.h <<EOF
25532
25533 /* Define intmax based on what we found */
25534 #ifdef _INT64_T
25535 typedef int64_t intmax_t;
25536 #else
25537 typedef long intmax_t;
25538 #endif
25539 #ifdef _UINT64_T
25540 typedef uint64_t uintmax_t;
25541 #else
25542 typedef unsigned long uintmax_t;
25543 #endif
25544 EOF
25545 fi
25546
25547 sed 's/^ *//' >> tmp-stdint.h <<EOF
25548
25549 #endif /* GCC_GENERATED_STDINT_H */
25550 EOF
25551
25552 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25553 rm -f tmp-stdint.h
25554 else
25555 mv -f tmp-stdint.h gdb_stdint.h
25556 fi
25557
25558 ;;
25559 default )
25560
25561 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
25562 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25563 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25564 mv -f Makefile.tmp Makefile
25565
25566
25567 case x$CONFIG_HEADERS in
25568 xconfig.h:config.in)
25569 echo > stamp-h ;;
25570 esac
25571 ;;
25572 esac
25573 done
25574 _ACEOF
25575
25576 cat >>$CONFIG_STATUS <<\_ACEOF
25577
25578 { (exit 0); exit 0; }
25579 _ACEOF
25580 chmod +x $CONFIG_STATUS
25581 ac_clean_files=$ac_clean_files_save
25582
25583
25584 # configure is writing to config.log, and then calls config.status.
25585 # config.status does its own redirection, appending to config.log.
25586 # Unfortunately, on DOS this fails, as config.log is still kept open
25587 # by configure, so config.status won't be able to write to it; its
25588 # output is simply discarded. So we exec the FD to /dev/null,
25589 # effectively closing config.log, so it can be properly (re)opened and
25590 # appended to by config.status. When coming back to configure, we
25591 # need to make the FD available again.
25592 if test "$no_create" != yes; then
25593 ac_cs_success=:
25594 ac_config_status_args=
25595 test "$silent" = yes &&
25596 ac_config_status_args="$ac_config_status_args --quiet"
25597 exec 5>/dev/null
25598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25599 exec 5>>config.log
25600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25601 # would make configure fail if this is the last instruction.
25602 $ac_cs_success || { (exit 1); exit 1; }
25603 fi
25604
25605 #
25606 # CONFIG_SUBDIRS section.
25607 #
25608 if test "$no_recursion" != yes; then
25609
25610 # Remove --cache-file and --srcdir arguments so they do not pile up.
25611 ac_sub_configure_args=
25612 ac_prev=
25613 for ac_arg in $ac_configure_args; do
25614 if test -n "$ac_prev"; then
25615 ac_prev=
25616 continue
25617 fi
25618 case $ac_arg in
25619 -cache-file | --cache-file | --cache-fil | --cache-fi \
25620 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25621 ac_prev=cache_file ;;
25622 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25623 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25624 | --c=*)
25625 ;;
25626 --config-cache | -C)
25627 ;;
25628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25629 ac_prev=srcdir ;;
25630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25631 ;;
25632 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25633 ac_prev=prefix ;;
25634 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25635 ;;
25636 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25637 esac
25638 done
25639
25640 # Always prepend --prefix to ensure using the same prefix
25641 # in subdir configurations.
25642 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25643
25644 ac_popdir=`pwd`
25645 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25646
25647 # Do not complain, so a configure script can configure whichever
25648 # parts of a large source tree are present.
25649 test -d $srcdir/$ac_dir || continue
25650
25651 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25652 echo "$as_me: configuring in $ac_dir" >&6;}
25653 { if $as_mkdir_p; then
25654 mkdir -p "$ac_dir"
25655 else
25656 as_dir="$ac_dir"
25657 as_dirs=
25658 while test ! -d "$as_dir"; do
25659 as_dirs="$as_dir $as_dirs"
25660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25662 X"$as_dir" : 'X\(//\)[^/]' \| \
25663 X"$as_dir" : 'X\(//\)$' \| \
25664 X"$as_dir" : 'X\(/\)' \| \
25665 . : '\(.\)' 2>/dev/null ||
25666 echo X"$as_dir" |
25667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25669 /^X\(\/\/\)$/{ s//\1/; q; }
25670 /^X\(\/\).*/{ s//\1/; q; }
25671 s/.*/./; q'`
25672 done
25673 test ! -n "$as_dirs" || mkdir $as_dirs
25674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25675 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25676 { (exit 1); exit 1; }; }; }
25677
25678 ac_builddir=.
25679
25680 if test "$ac_dir" != .; then
25681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25682 # A "../" for each directory in $ac_dir_suffix.
25683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25684 else
25685 ac_dir_suffix= ac_top_builddir=
25686 fi
25687
25688 case $srcdir in
25689 .) # No --srcdir option. We are building in place.
25690 ac_srcdir=.
25691 if test -z "$ac_top_builddir"; then
25692 ac_top_srcdir=.
25693 else
25694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25695 fi ;;
25696 [\\/]* | ?:[\\/]* ) # Absolute path.
25697 ac_srcdir=$srcdir$ac_dir_suffix;
25698 ac_top_srcdir=$srcdir ;;
25699 *) # Relative path.
25700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25702 esac
25703
25704 # Do not use `cd foo && pwd` to compute absolute paths, because
25705 # the directories may not exist.
25706 case `pwd` in
25707 .) ac_abs_builddir="$ac_dir";;
25708 *)
25709 case "$ac_dir" in
25710 .) ac_abs_builddir=`pwd`;;
25711 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25712 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25713 esac;;
25714 esac
25715 case $ac_abs_builddir in
25716 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25717 *)
25718 case ${ac_top_builddir}. in
25719 .) ac_abs_top_builddir=$ac_abs_builddir;;
25720 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25721 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25722 esac;;
25723 esac
25724 case $ac_abs_builddir in
25725 .) ac_abs_srcdir=$ac_srcdir;;
25726 *)
25727 case $ac_srcdir in
25728 .) ac_abs_srcdir=$ac_abs_builddir;;
25729 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25730 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25731 esac;;
25732 esac
25733 case $ac_abs_builddir in
25734 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25735 *)
25736 case $ac_top_srcdir in
25737 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25738 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25739 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25740 esac;;
25741 esac
25742
25743
25744 cd $ac_dir
25745
25746 # Check for guested configure; otherwise get Cygnus style configure.
25747 if test -f $ac_srcdir/configure.gnu; then
25748 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25749 elif test -f $ac_srcdir/configure; then
25750 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25751 elif test -f $ac_srcdir/configure.in; then
25752 ac_sub_configure=$ac_configure
25753 else
25754 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25755 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25756 ac_sub_configure=
25757 fi
25758
25759 # The recursion is here.
25760 if test -n "$ac_sub_configure"; then
25761 # Make the cache file name correct relative to the subdirectory.
25762 case $cache_file in
25763 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25764 *) # Relative path.
25765 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25766 esac
25767
25768 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25769 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25770 # The eval makes quoting arguments work.
25771 eval $ac_sub_configure $ac_sub_configure_args \
25772 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25773 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25774 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25775 { (exit 1); exit 1; }; }
25776 fi
25777
25778 cd $ac_popdir
25779 done
25780 fi
25781
25782
25783 exit 0
This page took 0.625995 seconds and 4 git commands to generate.