* target.c (update_current_target): Call setup_target_debug.
[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 echo "$as_me:$LINENO: checking for etext" >&5
4282 echo $ECHO_N "checking for etext... $ECHO_C" >&6
4283 if test "${ac_cv_var_etext+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 else
4286 cat >conftest.$ac_ext <<_ACEOF
4287 /* confdefs.h. */
4288 _ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4292 #include <stdlib.h>
4293 extern char etext;
4294
4295 int
4296 main ()
4297 {
4298 free (&etext);
4299 ;
4300 return 0;
4301 }
4302 _ACEOF
4303 rm -f conftest.$ac_objext conftest$ac_exeext
4304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_var_etext=yes
4326 else
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 ac_cv_var_etext=no
4331 fi
4332 rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334 fi
4335 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4336 echo "${ECHO_T}$ac_cv_var_etext" >&6
4337 if test $ac_cv_var_etext = yes; then
4338
4339 cat >>confdefs.h <<\_ACEOF
4340 #define HAVE_ETEXT 1
4341 _ACEOF
4342
4343 fi
4344 if test "$enable_profiling" = yes ; then
4345 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4347 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350 PROFILE_CFLAGS=-pg
4351 OLD_CFLAGS="$CFLAGS"
4352 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4353
4354 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4355 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4356 if test "${ac_cv_cc_supports_pg+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 else
4359 cat >conftest.$ac_ext <<_ACEOF
4360 /* confdefs.h. */
4361 _ACEOF
4362 cat confdefs.h >>conftest.$ac_ext
4363 cat >>conftest.$ac_ext <<_ACEOF
4364 /* end confdefs.h. */
4365
4366 int
4367 main ()
4368 {
4369 int x;
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 rm -f conftest.$ac_objext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_cc_supports_pg=yes
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 ac_cv_cc_supports_pg=no
4402 fi
4403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404 fi
4405 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4406 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4407
4408 if test $ac_cv_cc_supports_pg = no; then
4409 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4410 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4411 { (exit 1); exit 1; }; }
4412 fi
4413
4414 CFLAGS="$OLD_CFLAGS"
4415 fi
4416
4417 # --------------------- #
4418 # Checks for programs. #
4419 # --------------------- #
4420
4421 for ac_prog in gawk mawk nawk awk
4422 do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424 set dummy $ac_prog; ac_word=$2
4425 echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427 if test "${ac_cv_prog_AWK+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 else
4430 if test -n "$AWK"; then
4431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_AWK="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446
4447 fi
4448 fi
4449 AWK=$ac_cv_prog_AWK
4450 if test -n "$AWK"; then
4451 echo "$as_me:$LINENO: result: $AWK" >&5
4452 echo "${ECHO_T}$AWK" >&6
4453 else
4454 echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6
4456 fi
4457
4458 test -n "$AWK" && break
4459 done
4460
4461 # Find a good install program. We prefer a C program (faster),
4462 # so one script is as good as another. But avoid the broken or
4463 # incompatible versions:
4464 # SysV /etc/install, /usr/sbin/install
4465 # SunOS /usr/etc/install
4466 # IRIX /sbin/install
4467 # AIX /bin/install
4468 # AmigaOS /C/install, which installs bootblocks on floppy discs
4469 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4470 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4471 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4472 # OS/2's system install, which has a completely different semantic
4473 # ./install, which can be erroneously created by make from ./install.sh.
4474 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4475 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4476 if test -z "$INSTALL"; then
4477 if test "${ac_cv_path_install+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 for as_dir in $PATH
4482 do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 # Account for people who put trailing slashes in PATH elements.
4486 case $as_dir/ in
4487 ./ | .// | /cC/* | \
4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4490 /usr/ucb/* ) ;;
4491 *)
4492 # OSF1 and SCO ODT 3.0 have their own names for install.
4493 # Don't use installbsd from OSF since it installs stuff as root
4494 # by default.
4495 for ac_prog in ginstall scoinst install; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4498 if test $ac_prog = install &&
4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4500 # AIX install. It has an incompatible calling convention.
4501 :
4502 elif test $ac_prog = install &&
4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4504 # program-specific install script used by HP pwplus--don't use.
4505 :
4506 else
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4509 fi
4510 fi
4511 done
4512 done
4513 ;;
4514 esac
4515 done
4516
4517
4518 fi
4519 if test "${ac_cv_path_install+set}" = set; then
4520 INSTALL=$ac_cv_path_install
4521 else
4522 # As a last resort, use the slow shell script. We don't cache a
4523 # path for INSTALL within a source directory, because that will
4524 # break other packages using the cache if that directory is
4525 # removed, or if the path is relative.
4526 INSTALL=$ac_install_sh
4527 fi
4528 fi
4529 echo "$as_me:$LINENO: result: $INSTALL" >&5
4530 echo "${ECHO_T}$INSTALL" >&6
4531
4532 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4533 # It thinks the first close brace ends the variable substitution.
4534 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4535
4536 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4537
4538 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4539
4540 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4542 LN_S=$as_ln_s
4543 if test "$LN_S" = "ln -s"; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545 echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548 echo "${ECHO_T}no, using $LN_S" >&6
4549 fi
4550
4551 if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4554 echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4556 if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573 done
4574 done
4575
4576 fi
4577 fi
4578 RANLIB=$ac_cv_prog_RANLIB
4579 if test -n "$RANLIB"; then
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581 echo "${ECHO_T}$RANLIB" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585 fi
4586
4587 fi
4588 if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591 set dummy ranlib; ac_word=$2
4592 echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599 else
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4607 ac_cv_prog_ac_ct_RANLIB="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611 done
4612 done
4613
4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4615 fi
4616 fi
4617 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4618 if test -n "$ac_ct_RANLIB"; then
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6
4624 fi
4625
4626 RANLIB=$ac_ct_RANLIB
4627 else
4628 RANLIB="$ac_cv_prog_RANLIB"
4629 fi
4630
4631 for ac_prog in 'bison -y' byacc
4632 do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637 if test "${ac_cv_prog_YACC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640 if test -n "$YACC"; then
4641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_YACC="$ac_prog"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656
4657 fi
4658 fi
4659 YACC=$ac_cv_prog_YACC
4660 if test -n "$YACC"; then
4661 echo "$as_me:$LINENO: result: $YACC" >&5
4662 echo "${ECHO_T}$YACC" >&6
4663 else
4664 echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6
4666 fi
4667
4668 test -n "$YACC" && break
4669 done
4670 test -n "$YACC" || YACC="yacc"
4671
4672
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4675 set dummy ${ac_tool_prefix}ar; ac_word=$2
4676 echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678 if test "${ac_cv_prog_AR+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681 if test -n "$AR"; then
4682 ac_cv_prog_AR="$AR" # Let the user override the test.
4683 else
4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 for as_dir in $PATH
4686 do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4691 ac_cv_prog_AR="${ac_tool_prefix}ar"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695 done
4696 done
4697
4698 fi
4699 fi
4700 AR=$ac_cv_prog_AR
4701 if test -n "$AR"; then
4702 echo "$as_me:$LINENO: result: $AR" >&5
4703 echo "${ECHO_T}$AR" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6
4707 fi
4708
4709 fi
4710 if test -z "$ac_cv_prog_AR"; then
4711 ac_ct_AR=$AR
4712 # Extract the first word of "ar", so it can be a program name with args.
4713 set dummy ar; ac_word=$2
4714 echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4716 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719 if test -n "$ac_ct_AR"; then
4720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4721 else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 for as_dir in $PATH
4724 do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733 done
4734 done
4735
4736 fi
4737 fi
4738 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4739 if test -n "$ac_ct_AR"; then
4740 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4741 echo "${ECHO_T}$ac_ct_AR" >&6
4742 else
4743 echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6
4745 fi
4746
4747 AR=$ac_ct_AR
4748 else
4749 AR="$ac_cv_prog_AR"
4750 fi
4751
4752 if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4754 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4755 echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4757 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 if test -n "$DLLTOOL"; then
4761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4765 do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774 done
4775 done
4776
4777 fi
4778 fi
4779 DLLTOOL=$ac_cv_prog_DLLTOOL
4780 if test -n "$DLLTOOL"; then
4781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4782 echo "${ECHO_T}$DLLTOOL" >&6
4783 else
4784 echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6
4786 fi
4787
4788 fi
4789 if test -z "$ac_cv_prog_DLLTOOL"; then
4790 ac_ct_DLLTOOL=$DLLTOOL
4791 # Extract the first word of "dlltool", so it can be a program name with args.
4792 set dummy dlltool; ac_word=$2
4793 echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4795 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814
4815 fi
4816 fi
4817 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818 if test -n "$ac_ct_DLLTOOL"; then
4819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4821 else
4822 echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6
4824 fi
4825
4826 DLLTOOL=$ac_ct_DLLTOOL
4827 else
4828 DLLTOOL="$ac_cv_prog_DLLTOOL"
4829 fi
4830
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4833 set dummy ${ac_tool_prefix}windres; ac_word=$2
4834 echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836 if test "${ac_cv_prog_WINDRES+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 if test -n "$WINDRES"; then
4840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855
4856 fi
4857 fi
4858 WINDRES=$ac_cv_prog_WINDRES
4859 if test -n "$WINDRES"; then
4860 echo "$as_me:$LINENO: result: $WINDRES" >&5
4861 echo "${ECHO_T}$WINDRES" >&6
4862 else
4863 echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6
4865 fi
4866
4867 fi
4868 if test -z "$ac_cv_prog_WINDRES"; then
4869 ac_ct_WINDRES=$WINDRES
4870 # Extract the first word of "windres", so it can be a program name with args.
4871 set dummy windres; ac_word=$2
4872 echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 else
4877 if test -n "$ac_ct_WINDRES"; then
4878 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_ac_ct_WINDRES="windres"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891 done
4892 done
4893
4894 fi
4895 fi
4896 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4897 if test -n "$ac_ct_WINDRES"; then
4898 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4899 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4900 else
4901 echo "$as_me:$LINENO: result: no" >&5
4902 echo "${ECHO_T}no" >&6
4903 fi
4904
4905 WINDRES=$ac_ct_WINDRES
4906 else
4907 WINDRES="$ac_cv_prog_WINDRES"
4908 fi
4909
4910
4911 # Needed for GNU/Hurd.
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}mig; ac_word=$2
4915 echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 if test "${ac_cv_prog_MIG+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920 if test -n "$MIG"; then
4921 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934 done
4935 done
4936
4937 fi
4938 fi
4939 MIG=$ac_cv_prog_MIG
4940 if test -n "$MIG"; then
4941 echo "$as_me:$LINENO: result: $MIG" >&5
4942 echo "${ECHO_T}$MIG" >&6
4943 else
4944 echo "$as_me:$LINENO: result: no" >&5
4945 echo "${ECHO_T}no" >&6
4946 fi
4947
4948 fi
4949 if test -z "$ac_cv_prog_MIG"; then
4950 ac_ct_MIG=$MIG
4951 # Extract the first word of "mig", so it can be a program name with args.
4952 set dummy mig; ac_word=$2
4953 echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4955 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958 if test -n "$ac_ct_MIG"; then
4959 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968 ac_cv_prog_ac_ct_MIG="mig"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972 done
4973 done
4974
4975 fi
4976 fi
4977 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4978 if test -n "$ac_ct_MIG"; then
4979 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4980 echo "${ECHO_T}$ac_ct_MIG" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4984 fi
4985
4986 MIG=$ac_ct_MIG
4987 else
4988 MIG="$ac_cv_prog_MIG"
4989 fi
4990
4991
4992 # ---------------------- #
4993 # Checks for libraries. #
4994 # ---------------------- #
4995
4996 # We might need to link with -lm; most simulators need it.
4997
4998 echo "$as_me:$LINENO: checking for main in -lm" >&5
4999 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5000 if test "${ac_cv_lib_m_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003 ac_check_lib_save_LIBS=$LIBS
5004 LIBS="-lm $LIBS"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011
5012
5013 int
5014 main ()
5015 {
5016 main ();
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest.$ac_objext conftest$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_m_main=yes
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ac_cv_lib_m_main=no
5049 fi
5050 rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5055 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5056 if test $ac_cv_lib_m_main = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058 #define HAVE_LIBM 1
5059 _ACEOF
5060
5061 LIBS="-lm $LIBS"
5062
5063 fi
5064
5065
5066 # We need to link with -lw to get `wctype' on Solaris before Solaris
5067 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5068 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5069 # is known to have this problem). Therefore we avoid libw if we can.
5070 echo "$as_me:$LINENO: checking for wctype" >&5
5071 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
5072 if test "${ac_cv_func_wctype+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 else
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083 #define wctype innocuous_wctype
5084
5085 /* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char wctype (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5089
5090 #ifdef __STDC__
5091 # include <limits.h>
5092 #else
5093 # include <assert.h>
5094 #endif
5095
5096 #undef wctype
5097
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 #ifdef __cplusplus
5100 extern "C"
5101 {
5102 #endif
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5105 char wctype ();
5106 /* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
5109 #if defined (__stub_wctype) || defined (__stub___wctype)
5110 choke me
5111 #else
5112 char (*f) () = wctype;
5113 #endif
5114 #ifdef __cplusplus
5115 }
5116 #endif
5117
5118 int
5119 main ()
5120 {
5121 return f != wctype;
5122 ;
5123 return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_func_wctype=yes
5149 else
5150 echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153 ac_cv_func_wctype=no
5154 fi
5155 rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157 fi
5158 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5159 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5160 if test $ac_cv_func_wctype = yes; then
5161 :
5162 else
5163
5164 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5165 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5166 if test "${ac_cv_lib_w_wctype+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 ac_check_lib_save_LIBS=$LIBS
5170 LIBS="-lw $LIBS"
5171 cat >conftest.$ac_ext <<_ACEOF
5172 /* confdefs.h. */
5173 _ACEOF
5174 cat confdefs.h >>conftest.$ac_ext
5175 cat >>conftest.$ac_ext <<_ACEOF
5176 /* end confdefs.h. */
5177
5178 /* Override any gcc2 internal prototype to avoid an error. */
5179 #ifdef __cplusplus
5180 extern "C"
5181 #endif
5182 /* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
5184 char wctype ();
5185 int
5186 main ()
5187 {
5188 wctype ();
5189 ;
5190 return 0;
5191 }
5192 _ACEOF
5193 rm -f conftest.$ac_objext conftest$ac_exeext
5194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_w_wctype=yes
5216 else
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5219
5220 ac_cv_lib_w_wctype=no
5221 fi
5222 rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224 LIBS=$ac_check_lib_save_LIBS
5225 fi
5226 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5227 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5228 if test $ac_cv_lib_w_wctype = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_LIBW 1
5231 _ACEOF
5232
5233 LIBS="-lw $LIBS"
5234
5235 fi
5236
5237 fi
5238
5239
5240 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5241 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5242 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5243 if test "${ac_cv_search_gethostbyname+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246 ac_func_search_save_LIBS=$LIBS
5247 ac_cv_search_gethostbyname=no
5248 cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h. */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h. */
5254
5255 /* Override any gcc2 internal prototype to avoid an error. */
5256 #ifdef __cplusplus
5257 extern "C"
5258 #endif
5259 /* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
5261 char gethostbyname ();
5262 int
5263 main ()
5264 {
5265 gethostbyname ();
5266 ;
5267 return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
5279 { ac_try='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_search_gethostbyname="none required"
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 fi
5298 rm -f conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300 if test "$ac_cv_search_gethostbyname" = no; then
5301 for ac_lib in nsl; do
5302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309
5310 /* Override any gcc2 internal prototype to avoid an error. */
5311 #ifdef __cplusplus
5312 extern "C"
5313 #endif
5314 /* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316 char gethostbyname ();
5317 int
5318 main ()
5319 {
5320 gethostbyname ();
5321 ;
5322 return 0;
5323 }
5324 _ACEOF
5325 rm -f conftest.$ac_objext conftest$ac_exeext
5326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_cv_search_gethostbyname="-l$ac_lib"
5348 break
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 fi
5354 rm -f conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 done
5357 fi
5358 LIBS=$ac_func_search_save_LIBS
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5361 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5362 if test "$ac_cv_search_gethostbyname" != no; then
5363 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5364
5365 fi
5366
5367
5368 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5369 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5370 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5371 if test "${ac_cv_search_socketpair+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 else
5374 ac_func_search_save_LIBS=$LIBS
5375 ac_cv_search_socketpair=no
5376 cat >conftest.$ac_ext <<_ACEOF
5377 /* confdefs.h. */
5378 _ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382
5383 /* Override any gcc2 internal prototype to avoid an error. */
5384 #ifdef __cplusplus
5385 extern "C"
5386 #endif
5387 /* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5389 char socketpair ();
5390 int
5391 main ()
5392 {
5393 socketpair ();
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 rm -f conftest.$ac_objext conftest$ac_exeext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_socketpair="none required"
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5424
5425 fi
5426 rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428 if test "$ac_cv_search_socketpair" = no; then
5429 for ac_lib in socket; do
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 /* confdefs.h. */
5433 _ACEOF
5434 cat confdefs.h >>conftest.$ac_ext
5435 cat >>conftest.$ac_ext <<_ACEOF
5436 /* end confdefs.h. */
5437
5438 /* Override any gcc2 internal prototype to avoid an error. */
5439 #ifdef __cplusplus
5440 extern "C"
5441 #endif
5442 /* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444 char socketpair ();
5445 int
5446 main ()
5447 {
5448 socketpair ();
5449 ;
5450 return 0;
5451 }
5452 _ACEOF
5453 rm -f conftest.$ac_objext conftest$ac_exeext
5454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_search_socketpair="-l$ac_lib"
5476 break
5477 else
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 fi
5482 rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 done
5485 fi
5486 LIBS=$ac_func_search_save_LIBS
5487 fi
5488 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5489 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5490 if test "$ac_cv_search_socketpair" != no; then
5491 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5492
5493 fi
5494
5495
5496 # For the TUI, we need enhanced curses functionality.
5497 #
5498 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5499 # curses library because the latter might not provide all the
5500 # functionality we need. However, this leads to problems on systems
5501 # where the linker searches /usr/local/lib, but the compiler doesn't
5502 # search /usr/local/include, if ncurses is installed in /usr/local. A
5503 # default installation of ncurses on alpha*-dec-osf* will lead to such
5504 # a situation.
5505 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5506 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5507 if test "${ac_cv_search_waddstr+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 ac_func_search_save_LIBS=$LIBS
5511 ac_cv_search_waddstr=no
5512 cat >conftest.$ac_ext <<_ACEOF
5513 /* confdefs.h. */
5514 _ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518
5519 /* Override any gcc2 internal prototype to avoid an error. */
5520 #ifdef __cplusplus
5521 extern "C"
5522 #endif
5523 /* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
5525 char waddstr ();
5526 int
5527 main ()
5528 {
5529 waddstr ();
5530 ;
5531 return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 ac_cv_search_waddstr="none required"
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 fi
5562 rm -f conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 if test "$ac_cv_search_waddstr" = no; then
5565 for ac_lib in ncurses cursesX curses; do
5566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5568 /* confdefs.h. */
5569 _ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5573
5574 /* Override any gcc2 internal prototype to avoid an error. */
5575 #ifdef __cplusplus
5576 extern "C"
5577 #endif
5578 /* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580 char waddstr ();
5581 int
5582 main ()
5583 {
5584 waddstr ();
5585 ;
5586 return 0;
5587 }
5588 _ACEOF
5589 rm -f conftest.$ac_objext conftest$ac_exeext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_search_waddstr="-l$ac_lib"
5612 break
5613 else
5614 echo "$as_me: failed program was:" >&5
5615 sed 's/^/| /' conftest.$ac_ext >&5
5616
5617 fi
5618 rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 done
5621 fi
5622 LIBS=$ac_func_search_save_LIBS
5623 fi
5624 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5625 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5626 if test "$ac_cv_search_waddstr" != no; then
5627 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5628
5629 fi
5630
5631
5632 # Since GDB uses Readline, we need termcap functionality. In many
5633 # cases this will be provided by the curses library, but some systems
5634 # have a seperate termcap library, or no curses library at all.
5635
5636 case $host_os in
5637 cygwin*)
5638 if test -d $srcdir/libtermcap; then
5639 LIBS="../libtermcap/libtermcap.a $LIBS"
5640 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5641 fi ;;
5642 go32* | *djgpp*)
5643 ac_cv_search_tgetent="none required"
5644 ;;
5645 *mingw32*)
5646 ac_cv_search_tgetent="none required"
5647 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5648 ;;
5649 esac
5650
5651 # These are the libraries checked by Readline.
5652 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5653 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5654 if test "${ac_cv_search_tgetent+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 else
5657 ac_func_search_save_LIBS=$LIBS
5658 ac_cv_search_tgetent=no
5659 cat >conftest.$ac_ext <<_ACEOF
5660 /* confdefs.h. */
5661 _ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665
5666 /* Override any gcc2 internal prototype to avoid an error. */
5667 #ifdef __cplusplus
5668 extern "C"
5669 #endif
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5672 char tgetent ();
5673 int
5674 main ()
5675 {
5676 tgetent ();
5677 ;
5678 return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
5703 ac_cv_search_tgetent="none required"
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708 fi
5709 rm -f conftest.err conftest.$ac_objext \
5710 conftest$ac_exeext conftest.$ac_ext
5711 if test "$ac_cv_search_tgetent" = no; then
5712 for ac_lib in termcap tinfo curses ncurses; do
5713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5714 cat >conftest.$ac_ext <<_ACEOF
5715 /* confdefs.h. */
5716 _ACEOF
5717 cat confdefs.h >>conftest.$ac_ext
5718 cat >>conftest.$ac_ext <<_ACEOF
5719 /* end confdefs.h. */
5720
5721 /* Override any gcc2 internal prototype to avoid an error. */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 /* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5727 char tgetent ();
5728 int
5729 main ()
5730 {
5731 tgetent ();
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest$ac_exeext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_search_tgetent="-l$ac_lib"
5759 break
5760 else
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 fi
5765 rm -f conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 done
5768 fi
5769 LIBS=$ac_func_search_save_LIBS
5770 fi
5771 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5772 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5773 if test "$ac_cv_search_tgetent" != no; then
5774 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5775
5776 fi
5777
5778
5779 if test "$ac_cv_search_tgetent" = no; then
5780 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5781 echo "$as_me: error: no termcap library found" >&2;}
5782 { (exit 1); exit 1; }; }
5783 fi
5784
5785
5786 # Check whether --with-system-readline or --without-system-readline was given.
5787 if test "${with_system_readline+set}" = set; then
5788 withval="$with_system_readline"
5789
5790 fi;
5791
5792 if test "$with_system_readline" = yes; then
5793 READLINE=-lreadline
5794 READLINE_DEPS=
5795 READLINE_CFLAGS=
5796 else
5797 READLINE='$(READLINE_DIR)/libreadline.a'
5798 READLINE_DEPS='$(READLINE)'
5799 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5800 fi
5801
5802
5803
5804
5805
5806 # Check whether --with-expat or --without-expat was given.
5807 if test "${with_expat+set}" = set; then
5808 withval="$with_expat"
5809
5810 else
5811 with_expat=auto
5812 fi;
5813 echo "$as_me:$LINENO: checking whether to use expat" >&5
5814 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5815 echo "$as_me:$LINENO: result: $with_expat" >&5
5816 echo "${ECHO_T}$with_expat" >&6
5817
5818 if test "${with_expat}" = no; then
5819 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5820 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5821 HAVE_LIBEXPAT=no
5822 else
5823
5824 if test "X$prefix" = "XNONE"; then
5825 acl_final_prefix="$ac_default_prefix"
5826 else
5827 acl_final_prefix="$prefix"
5828 fi
5829 if test "X$exec_prefix" = "XNONE"; then
5830 acl_final_exec_prefix='${prefix}'
5831 else
5832 acl_final_exec_prefix="$exec_prefix"
5833 fi
5834 acl_save_prefix="$prefix"
5835 prefix="$acl_final_prefix"
5836 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5837 prefix="$acl_save_prefix"
5838
5839
5840 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5841 if test "${with_gnu_ld+set}" = set; then
5842 withval="$with_gnu_ld"
5843 test "$withval" = no || with_gnu_ld=yes
5844 else
5845 with_gnu_ld=no
5846 fi;
5847 # Prepare PATH_SEPARATOR.
5848 # The user is always right.
5849 if test "${PATH_SEPARATOR+set}" != set; then
5850 echo "#! /bin/sh" >conf$$.sh
5851 echo "exit 0" >>conf$$.sh
5852 chmod +x conf$$.sh
5853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5854 PATH_SEPARATOR=';'
5855 else
5856 PATH_SEPARATOR=:
5857 fi
5858 rm -f conf$$.sh
5859 fi
5860 ac_prog=ld
5861 if test "$GCC" = yes; then
5862 # Check if gcc -print-prog-name=ld gives a path.
5863 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5864 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5865 case $host in
5866 *-*-mingw*)
5867 # gcc leaves a trailing carriage return which upsets mingw
5868 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5869 *)
5870 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5871 esac
5872 case $ac_prog in
5873 # Accept absolute paths.
5874 [\\/]* | [A-Za-z]:[\\/]*)
5875 re_direlt='/[^/][^/]*/\.\./'
5876 # Canonicalize the path of ld
5877 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5878 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5879 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5880 done
5881 test -z "$LD" && LD="$ac_prog"
5882 ;;
5883 "")
5884 # If it fails, then pretend we aren't using GCC.
5885 ac_prog=ld
5886 ;;
5887 *)
5888 # If it is relative, then search for the first ld in PATH.
5889 with_gnu_ld=unknown
5890 ;;
5891 esac
5892 elif test "$with_gnu_ld" = yes; then
5893 echo "$as_me:$LINENO: checking for GNU ld" >&5
5894 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5895 else
5896 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5897 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5898 fi
5899 if test "${acl_cv_path_LD+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902 if test -z "$LD"; then
5903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5904 for ac_dir in $PATH; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5907 acl_cv_path_LD="$ac_dir/$ac_prog"
5908 # Check to see if the program is GNU ld. I'd rather use --version,
5909 # but apparently some GNU ld's only accept -v.
5910 # Break only if it was the GNU/non-GNU ld that we prefer.
5911 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5912 test "$with_gnu_ld" != no && break
5913 else
5914 test "$with_gnu_ld" != yes && break
5915 fi
5916 fi
5917 done
5918 IFS="$ac_save_ifs"
5919 else
5920 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5921 fi
5922 fi
5923
5924 LD="$acl_cv_path_LD"
5925 if test -n "$LD"; then
5926 echo "$as_me:$LINENO: result: $LD" >&5
5927 echo "${ECHO_T}$LD" >&6
5928 else
5929 echo "$as_me:$LINENO: result: no" >&5
5930 echo "${ECHO_T}no" >&6
5931 fi
5932 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5933 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5934 { (exit 1); exit 1; }; }
5935 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5936 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5937 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 else
5940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5941 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5942 acl_cv_prog_gnu_ld=yes
5943 else
5944 acl_cv_prog_gnu_ld=no
5945 fi
5946 fi
5947 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5948 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5949 with_gnu_ld=$acl_cv_prog_gnu_ld
5950
5951
5952
5953 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5954 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5955 if test "${acl_cv_rpath+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 else
5958
5959 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5960 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5961 . ./conftest.sh
5962 rm -f ./conftest.sh
5963 acl_cv_rpath=done
5964
5965 fi
5966 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5967 echo "${ECHO_T}$acl_cv_rpath" >&6
5968 wl="$acl_cv_wl"
5969 libext="$acl_cv_libext"
5970 shlibext="$acl_cv_shlibext"
5971 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5972 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5973 hardcode_direct="$acl_cv_hardcode_direct"
5974 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5975 # Check whether --enable-rpath or --disable-rpath was given.
5976 if test "${enable_rpath+set}" = set; then
5977 enableval="$enable_rpath"
5978 :
5979 else
5980 enable_rpath=yes
5981 fi;
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 use_additional=yes
5992
5993 acl_save_prefix="$prefix"
5994 prefix="$acl_final_prefix"
5995 acl_save_exec_prefix="$exec_prefix"
5996 exec_prefix="$acl_final_exec_prefix"
5997
5998 eval additional_includedir=\"$includedir\"
5999 eval additional_libdir=\"$libdir\"
6000
6001 exec_prefix="$acl_save_exec_prefix"
6002 prefix="$acl_save_prefix"
6003
6004
6005 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6006 if test "${with_libexpat_prefix+set}" = set; then
6007 withval="$with_libexpat_prefix"
6008
6009 if test "X$withval" = "Xno"; then
6010 use_additional=no
6011 else
6012 if test "X$withval" = "X"; then
6013
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6018
6019 eval additional_includedir=\"$includedir\"
6020 eval additional_libdir=\"$libdir\"
6021
6022 exec_prefix="$acl_save_exec_prefix"
6023 prefix="$acl_save_prefix"
6024
6025 else
6026 additional_includedir="$withval/include"
6027 additional_libdir="$withval/lib"
6028 fi
6029 fi
6030
6031 fi;
6032 LIBEXPAT=
6033 LTLIBEXPAT=
6034 INCEXPAT=
6035 rpathdirs=
6036 ltrpathdirs=
6037 names_already_handled=
6038 names_next_round='expat '
6039 while test -n "$names_next_round"; do
6040 names_this_round="$names_next_round"
6041 names_next_round=
6042 for name in $names_this_round; do
6043 already_handled=
6044 for n in $names_already_handled; do
6045 if test "$n" = "$name"; then
6046 already_handled=yes
6047 break
6048 fi
6049 done
6050 if test -z "$already_handled"; then
6051 names_already_handled="$names_already_handled $name"
6052 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6053 eval value=\"\$HAVE_LIB$uppername\"
6054 if test -n "$value"; then
6055 if test "$value" = yes; then
6056 eval value=\"\$LIB$uppername\"
6057 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6058 eval value=\"\$LTLIB$uppername\"
6059 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6060 else
6061 :
6062 fi
6063 else
6064 found_dir=
6065 found_la=
6066 found_so=
6067 found_a=
6068 if test $use_additional = yes; then
6069 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6070 found_dir="$additional_libdir"
6071 found_so="$additional_libdir/lib$name.$shlibext"
6072 if test -f "$additional_libdir/lib$name.la"; then
6073 found_la="$additional_libdir/lib$name.la"
6074 fi
6075 else
6076 if test -f "$additional_libdir/lib$name.$libext"; then
6077 found_dir="$additional_libdir"
6078 found_a="$additional_libdir/lib$name.$libext"
6079 if test -f "$additional_libdir/lib$name.la"; then
6080 found_la="$additional_libdir/lib$name.la"
6081 fi
6082 fi
6083 fi
6084 fi
6085 if test "X$found_dir" = "X"; then
6086 for x in $LDFLAGS $LTLIBEXPAT; do
6087
6088 acl_save_prefix="$prefix"
6089 prefix="$acl_final_prefix"
6090 acl_save_exec_prefix="$exec_prefix"
6091 exec_prefix="$acl_final_exec_prefix"
6092 eval x=\"$x\"
6093 exec_prefix="$acl_save_exec_prefix"
6094 prefix="$acl_save_prefix"
6095
6096 case "$x" in
6097 -L*)
6098 dir=`echo "X$x" | sed -e 's/^X-L//'`
6099 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6100 found_dir="$dir"
6101 found_so="$dir/lib$name.$shlibext"
6102 if test -f "$dir/lib$name.la"; then
6103 found_la="$dir/lib$name.la"
6104 fi
6105 else
6106 if test -f "$dir/lib$name.$libext"; then
6107 found_dir="$dir"
6108 found_a="$dir/lib$name.$libext"
6109 if test -f "$dir/lib$name.la"; then
6110 found_la="$dir/lib$name.la"
6111 fi
6112 fi
6113 fi
6114 ;;
6115 esac
6116 if test "X$found_dir" != "X"; then
6117 break
6118 fi
6119 done
6120 fi
6121 if test "X$found_dir" != "X"; then
6122 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6123 if test "X$found_so" != "X"; then
6124 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6125 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6126 else
6127 haveit=
6128 for x in $ltrpathdirs; do
6129 if test "X$x" = "X$found_dir"; then
6130 haveit=yes
6131 break
6132 fi
6133 done
6134 if test -z "$haveit"; then
6135 ltrpathdirs="$ltrpathdirs $found_dir"
6136 fi
6137 if test "$hardcode_direct" = yes; then
6138 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6139 else
6140 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6141 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6142 haveit=
6143 for x in $rpathdirs; do
6144 if test "X$x" = "X$found_dir"; then
6145 haveit=yes
6146 break
6147 fi
6148 done
6149 if test -z "$haveit"; then
6150 rpathdirs="$rpathdirs $found_dir"
6151 fi
6152 else
6153 haveit=
6154 for x in $LDFLAGS $LIBEXPAT; do
6155
6156 acl_save_prefix="$prefix"
6157 prefix="$acl_final_prefix"
6158 acl_save_exec_prefix="$exec_prefix"
6159 exec_prefix="$acl_final_exec_prefix"
6160 eval x=\"$x\"
6161 exec_prefix="$acl_save_exec_prefix"
6162 prefix="$acl_save_prefix"
6163
6164 if test "X$x" = "X-L$found_dir"; then
6165 haveit=yes
6166 break
6167 fi
6168 done
6169 if test -z "$haveit"; then
6170 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6171 fi
6172 if test "$hardcode_minus_L" != no; then
6173 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6174 else
6175 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6176 fi
6177 fi
6178 fi
6179 fi
6180 else
6181 if test "X$found_a" != "X"; then
6182 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6183 else
6184 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6185 fi
6186 fi
6187 additional_includedir=
6188 case "$found_dir" in
6189 */lib | */lib/)
6190 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6191 additional_includedir="$basedir/include"
6192 ;;
6193 esac
6194 if test "X$additional_includedir" != "X"; then
6195 if test "X$additional_includedir" != "X/usr/include"; then
6196 haveit=
6197 if test "X$additional_includedir" = "X/usr/local/include"; then
6198 if test -n "$GCC"; then
6199 case $host_os in
6200 linux*) haveit=yes;;
6201 esac
6202 fi
6203 fi
6204 if test -z "$haveit"; then
6205 for x in $CPPFLAGS $INCEXPAT; do
6206
6207 acl_save_prefix="$prefix"
6208 prefix="$acl_final_prefix"
6209 acl_save_exec_prefix="$exec_prefix"
6210 exec_prefix="$acl_final_exec_prefix"
6211 eval x=\"$x\"
6212 exec_prefix="$acl_save_exec_prefix"
6213 prefix="$acl_save_prefix"
6214
6215 if test "X$x" = "X-I$additional_includedir"; then
6216 haveit=yes
6217 break
6218 fi
6219 done
6220 if test -z "$haveit"; then
6221 if test -d "$additional_includedir"; then
6222 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6223 fi
6224 fi
6225 fi
6226 fi
6227 fi
6228 if test -n "$found_la"; then
6229 save_libdir="$libdir"
6230 case "$found_la" in
6231 */* | *\\*) . "$found_la" ;;
6232 *) . "./$found_la" ;;
6233 esac
6234 libdir="$save_libdir"
6235 for dep in $dependency_libs; do
6236 case "$dep" in
6237 -L*)
6238 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6239 if test "X$additional_libdir" != "X/usr/lib"; then
6240 haveit=
6241 if test "X$additional_libdir" = "X/usr/local/lib"; then
6242 if test -n "$GCC"; then
6243 case $host_os in
6244 linux*) haveit=yes;;
6245 esac
6246 fi
6247 fi
6248 if test -z "$haveit"; then
6249 haveit=
6250 for x in $LDFLAGS $LIBEXPAT; do
6251
6252 acl_save_prefix="$prefix"
6253 prefix="$acl_final_prefix"
6254 acl_save_exec_prefix="$exec_prefix"
6255 exec_prefix="$acl_final_exec_prefix"
6256 eval x=\"$x\"
6257 exec_prefix="$acl_save_exec_prefix"
6258 prefix="$acl_save_prefix"
6259
6260 if test "X$x" = "X-L$additional_libdir"; then
6261 haveit=yes
6262 break
6263 fi
6264 done
6265 if test -z "$haveit"; then
6266 if test -d "$additional_libdir"; then
6267 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6268 fi
6269 fi
6270 haveit=
6271 for x in $LDFLAGS $LTLIBEXPAT; do
6272
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6277 eval x=\"$x\"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6280
6281 if test "X$x" = "X-L$additional_libdir"; then
6282 haveit=yes
6283 break
6284 fi
6285 done
6286 if test -z "$haveit"; then
6287 if test -d "$additional_libdir"; then
6288 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6289 fi
6290 fi
6291 fi
6292 fi
6293 ;;
6294 -R*)
6295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6296 if test "$enable_rpath" != no; then
6297 haveit=
6298 for x in $rpathdirs; do
6299 if test "X$x" = "X$dir"; then
6300 haveit=yes
6301 break
6302 fi
6303 done
6304 if test -z "$haveit"; then
6305 rpathdirs="$rpathdirs $dir"
6306 fi
6307 haveit=
6308 for x in $ltrpathdirs; do
6309 if test "X$x" = "X$dir"; then
6310 haveit=yes
6311 break
6312 fi
6313 done
6314 if test -z "$haveit"; then
6315 ltrpathdirs="$ltrpathdirs $dir"
6316 fi
6317 fi
6318 ;;
6319 -l*)
6320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6321 ;;
6322 *.la)
6323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6324 ;;
6325 *)
6326 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6327 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6328 ;;
6329 esac
6330 done
6331 fi
6332 else
6333 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6334 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6335 fi
6336 fi
6337 fi
6338 done
6339 done
6340 if test "X$rpathdirs" != "X"; then
6341 if test -n "$hardcode_libdir_separator"; then
6342 alldirs=
6343 for found_dir in $rpathdirs; do
6344 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6345 done
6346 acl_save_libdir="$libdir"
6347 libdir="$alldirs"
6348 eval flag=\"$hardcode_libdir_flag_spec\"
6349 libdir="$acl_save_libdir"
6350 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6351 else
6352 for found_dir in $rpathdirs; do
6353 acl_save_libdir="$libdir"
6354 libdir="$found_dir"
6355 eval flag=\"$hardcode_libdir_flag_spec\"
6356 libdir="$acl_save_libdir"
6357 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6358 done
6359 fi
6360 fi
6361 if test "X$ltrpathdirs" != "X"; then
6362 for found_dir in $ltrpathdirs; do
6363 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6364 done
6365 fi
6366
6367
6368 ac_save_CPPFLAGS="$CPPFLAGS"
6369
6370 for element in $INCEXPAT; do
6371 haveit=
6372 for x in $CPPFLAGS; do
6373
6374 acl_save_prefix="$prefix"
6375 prefix="$acl_final_prefix"
6376 acl_save_exec_prefix="$exec_prefix"
6377 exec_prefix="$acl_final_exec_prefix"
6378 eval x=\"$x\"
6379 exec_prefix="$acl_save_exec_prefix"
6380 prefix="$acl_save_prefix"
6381
6382 if test "X$x" = "X$element"; then
6383 haveit=yes
6384 break
6385 fi
6386 done
6387 if test -z "$haveit"; then
6388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6389 fi
6390 done
6391
6392
6393 echo "$as_me:$LINENO: checking for libexpat" >&5
6394 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6395 if test "${ac_cv_libexpat+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398
6399 ac_save_LIBS="$LIBS"
6400 LIBS="$LIBS $LIBEXPAT"
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include "expat.h"
6408 int
6409 main ()
6410 {
6411 XML_Parser p = XML_ParserCreate (0);
6412 ;
6413 return 0;
6414 }
6415 _ACEOF
6416 rm -f conftest.$ac_objext conftest$ac_exeext
6417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_libexpat=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6442
6443 ac_cv_libexpat=no
6444 fi
6445 rm -f conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 LIBS="$ac_save_LIBS"
6448
6449 fi
6450 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6451 echo "${ECHO_T}$ac_cv_libexpat" >&6
6452 if test "$ac_cv_libexpat" = yes; then
6453 HAVE_LIBEXPAT=yes
6454
6455 cat >>confdefs.h <<\_ACEOF
6456 #define HAVE_LIBEXPAT 1
6457 _ACEOF
6458
6459 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6460 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6461 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6462 echo "${ECHO_T}$LIBEXPAT" >&6
6463 else
6464 HAVE_LIBEXPAT=no
6465 CPPFLAGS="$ac_save_CPPFLAGS"
6466 LIBEXPAT=
6467 LTLIBEXPAT=
6468 fi
6469
6470
6471
6472
6473
6474
6475 if test "$HAVE_LIBEXPAT" != yes; then
6476 if test "$with_expat" = yes; then
6477 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6478 echo "$as_me: error: expat is missing or unusable" >&2;}
6479 { (exit 1); exit 1; }; }
6480 else
6481 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6482 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6483 fi
6484 else
6485 save_LIBS=$LIBS
6486 LIBS="$LIBS $LIBEXPAT"
6487
6488 for ac_func in XML_StopParser
6489 do
6490 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6491 echo "$as_me:$LINENO: checking for $ac_func" >&5
6492 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6493 if eval "test \"\${$as_ac_var+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6504 #define $ac_func innocuous_$ac_func
6505
6506 /* System header to define __stub macros and hopefully few prototypes,
6507 which can conflict with char $ac_func (); below.
6508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6509 <limits.h> exists even on freestanding compilers. */
6510
6511 #ifdef __STDC__
6512 # include <limits.h>
6513 #else
6514 # include <assert.h>
6515 #endif
6516
6517 #undef $ac_func
6518
6519 /* Override any gcc2 internal prototype to avoid an error. */
6520 #ifdef __cplusplus
6521 extern "C"
6522 {
6523 #endif
6524 /* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526 char $ac_func ();
6527 /* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531 choke me
6532 #else
6533 char (*f) () = $ac_func;
6534 #endif
6535 #ifdef __cplusplus
6536 }
6537 #endif
6538
6539 int
6540 main ()
6541 {
6542 return f != $ac_func;
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 eval "$as_ac_var=yes"
6570 else
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6573
6574 eval "$as_ac_var=no"
6575 fi
6576 rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 fi
6579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6581 if test `eval echo '${'$as_ac_var'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6584 _ACEOF
6585
6586 fi
6587 done
6588
6589 LIBS=$save_LIBS
6590 fi
6591 fi
6592
6593 # ------------------------- #
6594 # Checks for header files. #
6595 # ------------------------- #
6596
6597
6598
6599
6600
6601
6602 ac_header_dirent=no
6603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6605 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6606 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 else
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 #include <sys/types.h>
6617 #include <$ac_hdr>
6618
6619 int
6620 main ()
6621 {
6622 if ((DIR *) 0)
6623 return 0;
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
6637 { ac_try='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 eval "$as_ac_Header=yes"
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6654
6655 eval "$as_ac_Header=no"
6656 fi
6657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6664 _ACEOF
6665
6666 ac_header_dirent=$ac_hdr; break
6667 fi
6668
6669 done
6670 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6671 if test $ac_header_dirent = dirent.h; then
6672 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6673 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6674 if test "${ac_cv_search_opendir+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677 ac_func_search_save_LIBS=$LIBS
6678 ac_cv_search_opendir=no
6679 cat >conftest.$ac_ext <<_ACEOF
6680 /* confdefs.h. */
6681 _ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6685
6686 /* Override any gcc2 internal prototype to avoid an error. */
6687 #ifdef __cplusplus
6688 extern "C"
6689 #endif
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6692 char opendir ();
6693 int
6694 main ()
6695 {
6696 opendir ();
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_search_opendir="none required"
6724 else
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6727
6728 fi
6729 rm -f conftest.err conftest.$ac_objext \
6730 conftest$ac_exeext conftest.$ac_ext
6731 if test "$ac_cv_search_opendir" = no; then
6732 for ac_lib in dir; do
6733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740
6741 /* Override any gcc2 internal prototype to avoid an error. */
6742 #ifdef __cplusplus
6743 extern "C"
6744 #endif
6745 /* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747 char opendir ();
6748 int
6749 main ()
6750 {
6751 opendir ();
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext conftest$ac_exeext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_search_opendir="-l$ac_lib"
6779 break
6780 else
6781 echo "$as_me: failed program was:" >&5
6782 sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 fi
6785 rm -f conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 done
6788 fi
6789 LIBS=$ac_func_search_save_LIBS
6790 fi
6791 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6792 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6793 if test "$ac_cv_search_opendir" != no; then
6794 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6795
6796 fi
6797
6798 else
6799 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6800 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6801 if test "${ac_cv_search_opendir+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803 else
6804 ac_func_search_save_LIBS=$LIBS
6805 ac_cv_search_opendir=no
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 #ifdef __cplusplus
6815 extern "C"
6816 #endif
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6819 char opendir ();
6820 int
6821 main ()
6822 {
6823 opendir ();
6824 ;
6825 return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_search_opendir="none required"
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6854
6855 fi
6856 rm -f conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 if test "$ac_cv_search_opendir" = no; then
6859 for ac_lib in x; do
6860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6862 /* confdefs.h. */
6863 _ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6867
6868 /* Override any gcc2 internal prototype to avoid an error. */
6869 #ifdef __cplusplus
6870 extern "C"
6871 #endif
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874 char opendir ();
6875 int
6876 main ()
6877 {
6878 opendir ();
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_search_opendir="-l$ac_lib"
6906 break
6907 else
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 fi
6912 rm -f conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 done
6915 fi
6916 LIBS=$ac_func_search_save_LIBS
6917 fi
6918 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6919 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6920 if test "$ac_cv_search_opendir" != no; then
6921 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6922
6923 fi
6924
6925 fi
6926
6927 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6928 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6929 if test "${ac_cv_header_stat_broken+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #include <sys/types.h>
6939 #include <sys/stat.h>
6940
6941 #if defined(S_ISBLK) && defined(S_IFDIR)
6942 # if S_ISBLK (S_IFDIR)
6943 You lose.
6944 # endif
6945 #endif
6946
6947 #if defined(S_ISBLK) && defined(S_IFCHR)
6948 # if S_ISBLK (S_IFCHR)
6949 You lose.
6950 # endif
6951 #endif
6952
6953 #if defined(S_ISLNK) && defined(S_IFREG)
6954 # if S_ISLNK (S_IFREG)
6955 You lose.
6956 # endif
6957 #endif
6958
6959 #if defined(S_ISSOCK) && defined(S_IFREG)
6960 # if S_ISSOCK (S_IFREG)
6961 You lose.
6962 # endif
6963 #endif
6964
6965 _ACEOF
6966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "You lose" >/dev/null 2>&1; then
6968 ac_cv_header_stat_broken=yes
6969 else
6970 ac_cv_header_stat_broken=no
6971 fi
6972 rm -f conftest*
6973
6974 fi
6975 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6976 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6977 if test $ac_cv_header_stat_broken = yes; then
6978
6979 cat >>confdefs.h <<\_ACEOF
6980 #define STAT_MACROS_BROKEN 1
6981 _ACEOF
6982
6983 fi
6984
6985 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6986 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6987 if test "${ac_cv_header_stdc+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 else
6990 cat >conftest.$ac_ext <<_ACEOF
6991 /* confdefs.h. */
6992 _ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6996 #include <stdlib.h>
6997 #include <stdarg.h>
6998 #include <string.h>
6999 #include <float.h>
7000
7001 int
7002 main ()
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 rm -f conftest.$ac_objext
7010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_header_stdc=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_header_stdc=no
7037 fi
7038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7039
7040 if test $ac_cv_header_stdc = yes; then
7041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042 cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h. */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 #include <string.h>
7049
7050 _ACEOF
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then
7053 :
7054 else
7055 ac_cv_header_stdc=no
7056 fi
7057 rm -f conftest*
7058
7059 fi
7060
7061 if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063 cat >conftest.$ac_ext <<_ACEOF
7064 /* confdefs.h. */
7065 _ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <stdlib.h>
7070
7071 _ACEOF
7072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then
7074 :
7075 else
7076 ac_cv_header_stdc=no
7077 fi
7078 rm -f conftest*
7079
7080 fi
7081
7082 if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then
7085 :
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <ctype.h>
7094 #if ((' ' & 0x0FF) == 0x020)
7095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097 #else
7098 # define ISLOWER(c) \
7099 (('a' <= (c) && (c) <= 'i') \
7100 || ('j' <= (c) && (c) <= 'r') \
7101 || ('s' <= (c) && (c) <= 'z'))
7102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7103 #endif
7104
7105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106 int
7107 main ()
7108 {
7109 int i;
7110 for (i = 0; i < 256; i++)
7111 if (XOR (islower (i), ISLOWER (i))
7112 || toupper (i) != TOUPPER (i))
7113 exit(2);
7114 exit (0);
7115 }
7116 _ACEOF
7117 rm -f conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 :
7129 else
7130 echo "$as_me: program exited with status $ac_status" >&5
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ( exit $ac_status )
7135 ac_cv_header_stdc=no
7136 fi
7137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7138 fi
7139 fi
7140 fi
7141 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7142 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7143 if test $ac_cv_header_stdc = yes; then
7144
7145 cat >>confdefs.h <<\_ACEOF
7146 #define STDC_HEADERS 1
7147 _ACEOF
7148
7149 fi
7150
7151
7152 for ac_header in nlist.h
7153 do
7154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7156 echo "$as_me:$LINENO: checking for $ac_header" >&5
7157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 fi
7161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7163 else
7164 # Is the header compilable?
7165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7167 cat >conftest.$ac_ext <<_ACEOF
7168 /* confdefs.h. */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7173 $ac_includes_default
7174 #include <$ac_header>
7175 _ACEOF
7176 rm -f conftest.$ac_objext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_header_compiler=yes
7199 else
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ac_header_compiler=no
7204 fi
7205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207 echo "${ECHO_T}$ac_header_compiler" >&6
7208
7209 # Is the header present?
7210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7212 cat >conftest.$ac_ext <<_ACEOF
7213 /* confdefs.h. */
7214 _ACEOF
7215 cat confdefs.h >>conftest.$ac_ext
7216 cat >>conftest.$ac_ext <<_ACEOF
7217 /* end confdefs.h. */
7218 #include <$ac_header>
7219 _ACEOF
7220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 else
7232 ac_cpp_err=
7233 fi
7234 else
7235 ac_cpp_err=yes
7236 fi
7237 if test -z "$ac_cpp_err"; then
7238 ac_header_preproc=yes
7239 else
7240 echo "$as_me: failed program was:" >&5
7241 sed 's/^/| /' conftest.$ac_ext >&5
7242
7243 ac_header_preproc=no
7244 fi
7245 rm -f conftest.err conftest.$ac_ext
7246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247 echo "${ECHO_T}$ac_header_preproc" >&6
7248
7249 # So? What about this header?
7250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251 yes:no: )
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7257 ;;
7258 no:yes:* )
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7271 (
7272 cat <<\_ASBOX
7273 ## ------------------------------------------ ##
7274 ## Report this to the AC_PACKAGE_NAME lists. ##
7275 ## ------------------------------------------ ##
7276 _ASBOX
7277 ) |
7278 sed "s/^/$as_me: WARNING: /" >&2
7279 ;;
7280 esac
7281 echo "$as_me:$LINENO: checking for $ac_header" >&5
7282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7284 echo $ECHO_N "(cached) $ECHO_C" >&6
7285 else
7286 eval "$as_ac_Header=\$ac_header_preproc"
7287 fi
7288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7290
7291 fi
7292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 _ACEOF
7296
7297 fi
7298
7299 done
7300
7301
7302 for ac_header in link.h
7303 do
7304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7305 echo "$as_me:$LINENO: checking for $ac_header" >&5
7306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 #if HAVE_SYS_TYPES_H
7317 # include <sys/types.h>
7318 #endif
7319 #if HAVE_NLIST_H
7320 # include <nlist.h>
7321 #endif
7322
7323
7324 #include <$ac_header>
7325 _ACEOF
7326 rm -f conftest.$ac_objext
7327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 eval "$as_ac_Header=yes"
7349 else
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.$ac_ext >&5
7352
7353 eval "$as_ac_Header=no"
7354 fi
7355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7356 fi
7357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7360 cat >>confdefs.h <<_ACEOF
7361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7362 _ACEOF
7363
7364 fi
7365
7366 done
7367
7368
7369 for ac_header in machine/reg.h
7370 do
7371 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 fi
7378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7379 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7380 else
7381 # Is the header compilable?
7382 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7383 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 $ac_includes_default
7391 #include <$ac_header>
7392 _ACEOF
7393 rm -f conftest.$ac_objext
7394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest.$ac_objext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_header_compiler=yes
7416 else
7417 echo "$as_me: failed program was:" >&5
7418 sed 's/^/| /' conftest.$ac_ext >&5
7419
7420 ac_header_compiler=no
7421 fi
7422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7424 echo "${ECHO_T}$ac_header_compiler" >&6
7425
7426 # Is the header present?
7427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7429 cat >conftest.$ac_ext <<_ACEOF
7430 /* confdefs.h. */
7431 _ACEOF
7432 cat confdefs.h >>conftest.$ac_ext
7433 cat >>conftest.$ac_ext <<_ACEOF
7434 /* end confdefs.h. */
7435 #include <$ac_header>
7436 _ACEOF
7437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null; then
7445 if test -s conftest.err; then
7446 ac_cpp_err=$ac_c_preproc_warn_flag
7447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7448 else
7449 ac_cpp_err=
7450 fi
7451 else
7452 ac_cpp_err=yes
7453 fi
7454 if test -z "$ac_cpp_err"; then
7455 ac_header_preproc=yes
7456 else
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7459
7460 ac_header_preproc=no
7461 fi
7462 rm -f conftest.err conftest.$ac_ext
7463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7464 echo "${ECHO_T}$ac_header_preproc" >&6
7465
7466 # So? What about this header?
7467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7468 yes:no: )
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7473 ac_header_preproc=yes
7474 ;;
7475 no:yes:* )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7488 (
7489 cat <<\_ASBOX
7490 ## ------------------------------------------ ##
7491 ## Report this to the AC_PACKAGE_NAME lists. ##
7492 ## ------------------------------------------ ##
7493 _ASBOX
7494 ) |
7495 sed "s/^/$as_me: WARNING: /" >&2
7496 ;;
7497 esac
7498 echo "$as_me:$LINENO: checking for $ac_header" >&5
7499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 eval "$as_ac_Header=\$ac_header_preproc"
7504 fi
7505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7507
7508 fi
7509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF
7511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512 _ACEOF
7513
7514 fi
7515
7516 done
7517
7518
7519
7520 for ac_header in poll.h sys/poll.h
7521 do
7522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo "$as_me:$LINENO: checking for $ac_header" >&5
7525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 fi
7529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7531 else
7532 # Is the header compilable?
7533 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7535 cat >conftest.$ac_ext <<_ACEOF
7536 /* confdefs.h. */
7537 _ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 $ac_includes_default
7542 #include <$ac_header>
7543 _ACEOF
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
7553 { ac_try='test -z "$ac_c_werror_flag"
7554 || test ! -s conftest.err'
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7567 else
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_header_compiler=no
7572 fi
7573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7574 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7575 echo "${ECHO_T}$ac_header_compiler" >&6
7576
7577 # Is the header present?
7578 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h. */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 #include <$ac_header>
7587 _ACEOF
7588 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } >/dev/null; then
7596 if test -s conftest.err; then
7597 ac_cpp_err=$ac_c_preproc_warn_flag
7598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7599 else
7600 ac_cpp_err=
7601 fi
7602 else
7603 ac_cpp_err=yes
7604 fi
7605 if test -z "$ac_cpp_err"; then
7606 ac_header_preproc=yes
7607 else
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ac_header_preproc=no
7612 fi
7613 rm -f conftest.err conftest.$ac_ext
7614 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7615 echo "${ECHO_T}$ac_header_preproc" >&6
7616
7617 # So? What about this header?
7618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7619 yes:no: )
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7624 ac_header_preproc=yes
7625 ;;
7626 no:yes:* )
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7639 (
7640 cat <<\_ASBOX
7641 ## ------------------------------------------ ##
7642 ## Report this to the AC_PACKAGE_NAME lists. ##
7643 ## ------------------------------------------ ##
7644 _ASBOX
7645 ) |
7646 sed "s/^/$as_me: WARNING: /" >&2
7647 ;;
7648 esac
7649 echo "$as_me:$LINENO: checking for $ac_header" >&5
7650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 eval "$as_ac_Header=\$ac_header_preproc"
7655 fi
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658
7659 fi
7660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h <<_ACEOF
7662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663 _ACEOF
7664
7665 fi
7666
7667 done
7668
7669
7670
7671
7672 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7673 do
7674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676 echo "$as_me:$LINENO: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 fi
7681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7683 else
7684 # Is the header compilable?
7685 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7686 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7687 cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h. */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 $ac_includes_default
7694 #include <$ac_header>
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_header_compiler=yes
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_header_compiler=no
7724 fi
7725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7727 echo "${ECHO_T}$ac_header_compiler" >&6
7728
7729 # Is the header present?
7730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7732 cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h. */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 #include <$ac_header>
7739 _ACEOF
7740 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } >/dev/null; then
7748 if test -s conftest.err; then
7749 ac_cpp_err=$ac_c_preproc_warn_flag
7750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7751 else
7752 ac_cpp_err=
7753 fi
7754 else
7755 ac_cpp_err=yes
7756 fi
7757 if test -z "$ac_cpp_err"; then
7758 ac_header_preproc=yes
7759 else
7760 echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_header_preproc=no
7764 fi
7765 rm -f conftest.err conftest.$ac_ext
7766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767 echo "${ECHO_T}$ac_header_preproc" >&6
7768
7769 # So? What about this header?
7770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7771 yes:no: )
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7776 ac_header_preproc=yes
7777 ;;
7778 no:yes:* )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7791 (
7792 cat <<\_ASBOX
7793 ## ------------------------------------------ ##
7794 ## Report this to the AC_PACKAGE_NAME lists. ##
7795 ## ------------------------------------------ ##
7796 _ASBOX
7797 ) |
7798 sed "s/^/$as_me: WARNING: /" >&2
7799 ;;
7800 esac
7801 echo "$as_me:$LINENO: checking for $ac_header" >&5
7802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 else
7806 eval "$as_ac_Header=\$ac_header_preproc"
7807 fi
7808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7809 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810
7811 fi
7812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7813 cat >>confdefs.h <<_ACEOF
7814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7815 _ACEOF
7816
7817 fi
7818
7819 done
7820
7821
7822 for ac_header in signal.h
7823 do
7824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7826 echo "$as_me:$LINENO: checking for $ac_header" >&5
7827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830 fi
7831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7833 else
7834 # Is the header compilable?
7835 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7837 cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h. */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h. */
7843 $ac_includes_default
7844 #include <$ac_header>
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_header_compiler=yes
7869 else
7870 echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_header_compiler=no
7874 fi
7875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7876 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7877 echo "${ECHO_T}$ac_header_compiler" >&6
7878
7879 # Is the header present?
7880 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 /* confdefs.h. */
7884 _ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7888 #include <$ac_header>
7889 _ACEOF
7890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } >/dev/null; then
7898 if test -s conftest.err; then
7899 ac_cpp_err=$ac_c_preproc_warn_flag
7900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7901 else
7902 ac_cpp_err=
7903 fi
7904 else
7905 ac_cpp_err=yes
7906 fi
7907 if test -z "$ac_cpp_err"; then
7908 ac_header_preproc=yes
7909 else
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_header_preproc=no
7914 fi
7915 rm -f conftest.err conftest.$ac_ext
7916 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7917 echo "${ECHO_T}$ac_header_preproc" >&6
7918
7919 # So? What about this header?
7920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7921 yes:no: )
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7926 ac_header_preproc=yes
7927 ;;
7928 no:yes:* )
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7941 (
7942 cat <<\_ASBOX
7943 ## ------------------------------------------ ##
7944 ## Report this to the AC_PACKAGE_NAME lists. ##
7945 ## ------------------------------------------ ##
7946 _ASBOX
7947 ) |
7948 sed "s/^/$as_me: WARNING: /" >&2
7949 ;;
7950 esac
7951 echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 eval "$as_ac_Header=\$ac_header_preproc"
7957 fi
7958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7960
7961 fi
7962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965 _ACEOF
7966
7967 fi
7968
7969 done
7970
7971
7972 for ac_header in stddef.h
7973 do
7974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976 echo "$as_me:$LINENO: checking for $ac_header" >&5
7977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 fi
7981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7983 else
7984 # Is the header compilable?
7985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7987 cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h. */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h. */
7993 $ac_includes_default
7994 #include <$ac_header>
7995 _ACEOF
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_header_compiler=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_header_compiler=no
8024 fi
8025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8027 echo "${ECHO_T}$ac_header_compiler" >&6
8028
8029 # Is the header present?
8030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8032 cat >conftest.$ac_ext <<_ACEOF
8033 /* confdefs.h. */
8034 _ACEOF
8035 cat confdefs.h >>conftest.$ac_ext
8036 cat >>conftest.$ac_ext <<_ACEOF
8037 /* end confdefs.h. */
8038 #include <$ac_header>
8039 _ACEOF
8040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } >/dev/null; then
8048 if test -s conftest.err; then
8049 ac_cpp_err=$ac_c_preproc_warn_flag
8050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8051 else
8052 ac_cpp_err=
8053 fi
8054 else
8055 ac_cpp_err=yes
8056 fi
8057 if test -z "$ac_cpp_err"; then
8058 ac_header_preproc=yes
8059 else
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_preproc=no
8064 fi
8065 rm -f conftest.err conftest.$ac_ext
8066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067 echo "${ECHO_T}$ac_header_preproc" >&6
8068
8069 # So? What about this header?
8070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8071 yes:no: )
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8076 ac_header_preproc=yes
8077 ;;
8078 no:yes:* )
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8091 (
8092 cat <<\_ASBOX
8093 ## ------------------------------------------ ##
8094 ## Report this to the AC_PACKAGE_NAME lists. ##
8095 ## ------------------------------------------ ##
8096 _ASBOX
8097 ) |
8098 sed "s/^/$as_me: WARNING: /" >&2
8099 ;;
8100 esac
8101 echo "$as_me:$LINENO: checking for $ac_header" >&5
8102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 eval "$as_ac_Header=\$ac_header_preproc"
8107 fi
8108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8110
8111 fi
8112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8113 cat >>confdefs.h <<_ACEOF
8114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115 _ACEOF
8116
8117 fi
8118
8119 done
8120
8121
8122 for ac_header in stdlib.h
8123 do
8124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8126 echo "$as_me:$LINENO: checking for $ac_header" >&5
8127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 fi
8131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8133 else
8134 # Is the header compilable?
8135 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8137 cat >conftest.$ac_ext <<_ACEOF
8138 /* confdefs.h. */
8139 _ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8144 #include <$ac_header>
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_header_compiler=yes
8169 else
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8172
8173 ac_header_compiler=no
8174 fi
8175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177 echo "${ECHO_T}$ac_header_compiler" >&6
8178
8179 # Is the header present?
8180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8183 /* confdefs.h. */
8184 _ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 #include <$ac_header>
8189 _ACEOF
8190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201 else
8202 ac_cpp_err=
8203 fi
8204 else
8205 ac_cpp_err=yes
8206 fi
8207 if test -z "$ac_cpp_err"; then
8208 ac_header_preproc=yes
8209 else
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_header_preproc=no
8214 fi
8215 rm -f conftest.err conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217 echo "${ECHO_T}$ac_header_preproc" >&6
8218
8219 # So? What about this header?
8220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 yes:no: )
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8226 ac_header_preproc=yes
8227 ;;
8228 no:yes:* )
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8241 (
8242 cat <<\_ASBOX
8243 ## ------------------------------------------ ##
8244 ## Report this to the AC_PACKAGE_NAME lists. ##
8245 ## ------------------------------------------ ##
8246 _ASBOX
8247 ) |
8248 sed "s/^/$as_me: WARNING: /" >&2
8249 ;;
8250 esac
8251 echo "$as_me:$LINENO: checking for $ac_header" >&5
8252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256 eval "$as_ac_Header=\$ac_header_preproc"
8257 fi
8258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8260
8261 fi
8262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263 cat >>confdefs.h <<_ACEOF
8264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265 _ACEOF
8266
8267 fi
8268
8269 done
8270
8271
8272 for ac_header in stdint.h
8273 do
8274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276 echo "$as_me:$LINENO: checking for $ac_header" >&5
8277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 fi
8281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8282 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8283 else
8284 # Is the header compilable?
8285 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8287 cat >conftest.$ac_ext <<_ACEOF
8288 /* confdefs.h. */
8289 _ACEOF
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8293 $ac_includes_default
8294 #include <$ac_header>
8295 _ACEOF
8296 rm -f conftest.$ac_objext
8297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_header_compiler=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 ac_header_compiler=no
8324 fi
8325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8326 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8327 echo "${ECHO_T}$ac_header_compiler" >&6
8328
8329 # Is the header present?
8330 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8331 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 #include <$ac_header>
8339 _ACEOF
8340 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } >/dev/null; then
8348 if test -s conftest.err; then
8349 ac_cpp_err=$ac_c_preproc_warn_flag
8350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8351 else
8352 ac_cpp_err=
8353 fi
8354 else
8355 ac_cpp_err=yes
8356 fi
8357 if test -z "$ac_cpp_err"; then
8358 ac_header_preproc=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_header_preproc=no
8364 fi
8365 rm -f conftest.err conftest.$ac_ext
8366 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367 echo "${ECHO_T}$ac_header_preproc" >&6
8368
8369 # So? What about this header?
8370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8371 yes:no: )
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8373 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8375 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8376 ac_header_preproc=yes
8377 ;;
8378 no:yes:* )
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8380 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8382 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8384 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8386 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8390 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8391 (
8392 cat <<\_ASBOX
8393 ## ------------------------------------------ ##
8394 ## Report this to the AC_PACKAGE_NAME lists. ##
8395 ## ------------------------------------------ ##
8396 _ASBOX
8397 ) |
8398 sed "s/^/$as_me: WARNING: /" >&2
8399 ;;
8400 esac
8401 echo "$as_me:$LINENO: checking for $ac_header" >&5
8402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406 eval "$as_ac_Header=\$ac_header_preproc"
8407 fi
8408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8410
8411 fi
8412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415 _ACEOF
8416
8417 fi
8418
8419 done
8420
8421
8422
8423
8424 for ac_header in string.h memory.h strings.h
8425 do
8426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo "$as_me:$LINENO: checking for $ac_header" >&5
8429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432 fi
8433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8435 else
8436 # Is the header compilable?
8437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #include <$ac_header>
8447 _ACEOF
8448 rm -f conftest.$ac_objext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_header_compiler=yes
8471 else
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8474
8475 ac_header_compiler=no
8476 fi
8477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8479 echo "${ECHO_T}$ac_header_compiler" >&6
8480
8481 # Is the header present?
8482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 #include <$ac_header>
8491 _ACEOF
8492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } >/dev/null; then
8500 if test -s conftest.err; then
8501 ac_cpp_err=$ac_c_preproc_warn_flag
8502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8503 else
8504 ac_cpp_err=
8505 fi
8506 else
8507 ac_cpp_err=yes
8508 fi
8509 if test -z "$ac_cpp_err"; then
8510 ac_header_preproc=yes
8511 else
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_header_preproc=no
8516 fi
8517 rm -f conftest.err conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8519 echo "${ECHO_T}$ac_header_preproc" >&6
8520
8521 # So? What about this header?
8522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8523 yes:no: )
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8528 ac_header_preproc=yes
8529 ;;
8530 no:yes:* )
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8543 (
8544 cat <<\_ASBOX
8545 ## ------------------------------------------ ##
8546 ## Report this to the AC_PACKAGE_NAME lists. ##
8547 ## ------------------------------------------ ##
8548 _ASBOX
8549 ) |
8550 sed "s/^/$as_me: WARNING: /" >&2
8551 ;;
8552 esac
8553 echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 eval "$as_ac_Header=\$ac_header_preproc"
8559 fi
8560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8562
8563 fi
8564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8565 cat >>confdefs.h <<_ACEOF
8566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567 _ACEOF
8568
8569 fi
8570
8571 done
8572
8573
8574 for ac_header in sys/fault.h
8575 do
8576 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578 echo "$as_me:$LINENO: checking for $ac_header" >&5
8579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582 fi
8583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8584 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8585 else
8586 # Is the header compilable?
8587 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8589 cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h. */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8595 $ac_includes_default
8596 #include <$ac_header>
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_header_compiler=yes
8621 else
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625 ac_header_compiler=no
8626 fi
8627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8629 echo "${ECHO_T}$ac_header_compiler" >&6
8630
8631 # Is the header present?
8632 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h. */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <$ac_header>
8641 _ACEOF
8642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } >/dev/null; then
8650 if test -s conftest.err; then
8651 ac_cpp_err=$ac_c_preproc_warn_flag
8652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653 else
8654 ac_cpp_err=
8655 fi
8656 else
8657 ac_cpp_err=yes
8658 fi
8659 if test -z "$ac_cpp_err"; then
8660 ac_header_preproc=yes
8661 else
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665 ac_header_preproc=no
8666 fi
8667 rm -f conftest.err conftest.$ac_ext
8668 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8669 echo "${ECHO_T}$ac_header_preproc" >&6
8670
8671 # So? What about this header?
8672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8673 yes:no: )
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8678 ac_header_preproc=yes
8679 ;;
8680 no:yes:* )
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8693 (
8694 cat <<\_ASBOX
8695 ## ------------------------------------------ ##
8696 ## Report this to the AC_PACKAGE_NAME lists. ##
8697 ## ------------------------------------------ ##
8698 _ASBOX
8699 ) |
8700 sed "s/^/$as_me: WARNING: /" >&2
8701 ;;
8702 esac
8703 echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 else
8708 eval "$as_ac_Header=\$ac_header_preproc"
8709 fi
8710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8712
8713 fi
8714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715 cat >>confdefs.h <<_ACEOF
8716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717 _ACEOF
8718
8719 fi
8720
8721 done
8722
8723
8724 for ac_header in sys/file.h
8725 do
8726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo "$as_me:$LINENO: checking for $ac_header" >&5
8729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 fi
8733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8735 else
8736 # Is the header compilable?
8737 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8739 cat >conftest.$ac_ext <<_ACEOF
8740 /* confdefs.h. */
8741 _ACEOF
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8745 $ac_includes_default
8746 #include <$ac_header>
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_header_compiler=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 ac_header_compiler=no
8776 fi
8777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8779 echo "${ECHO_T}$ac_header_compiler" >&6
8780
8781 # Is the header present?
8782 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8784 cat >conftest.$ac_ext <<_ACEOF
8785 /* confdefs.h. */
8786 _ACEOF
8787 cat confdefs.h >>conftest.$ac_ext
8788 cat >>conftest.$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 #include <$ac_header>
8791 _ACEOF
8792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } >/dev/null; then
8800 if test -s conftest.err; then
8801 ac_cpp_err=$ac_c_preproc_warn_flag
8802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8803 else
8804 ac_cpp_err=
8805 fi
8806 else
8807 ac_cpp_err=yes
8808 fi
8809 if test -z "$ac_cpp_err"; then
8810 ac_header_preproc=yes
8811 else
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_header_preproc=no
8816 fi
8817 rm -f conftest.err conftest.$ac_ext
8818 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8819 echo "${ECHO_T}$ac_header_preproc" >&6
8820
8821 # So? What about this header?
8822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8823 yes:no: )
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8828 ac_header_preproc=yes
8829 ;;
8830 no:yes:* )
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8843 (
8844 cat <<\_ASBOX
8845 ## ------------------------------------------ ##
8846 ## Report this to the AC_PACKAGE_NAME lists. ##
8847 ## ------------------------------------------ ##
8848 _ASBOX
8849 ) |
8850 sed "s/^/$as_me: WARNING: /" >&2
8851 ;;
8852 esac
8853 echo "$as_me:$LINENO: checking for $ac_header" >&5
8854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 eval "$as_ac_Header=\$ac_header_preproc"
8859 fi
8860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8861 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8862
8863 fi
8864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8867 _ACEOF
8868
8869 fi
8870
8871 done
8872
8873
8874 for ac_header in sys/filio.h
8875 do
8876 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878 echo "$as_me:$LINENO: checking for $ac_header" >&5
8879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 fi
8883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8885 else
8886 # Is the header compilable?
8887 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8888 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 $ac_includes_default
8896 #include <$ac_header>
8897 _ACEOF
8898 rm -f conftest.$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
8907 { ac_try='test -z "$ac_c_werror_flag"
8908 || test ! -s conftest.err'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest.$ac_objext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 ac_header_compiler=yes
8921 else
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8924
8925 ac_header_compiler=no
8926 fi
8927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8929 echo "${ECHO_T}$ac_header_compiler" >&6
8930
8931 # Is the header present?
8932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 #include <$ac_header>
8941 _ACEOF
8942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } >/dev/null; then
8950 if test -s conftest.err; then
8951 ac_cpp_err=$ac_c_preproc_warn_flag
8952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8953 else
8954 ac_cpp_err=
8955 fi
8956 else
8957 ac_cpp_err=yes
8958 fi
8959 if test -z "$ac_cpp_err"; then
8960 ac_header_preproc=yes
8961 else
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8964
8965 ac_header_preproc=no
8966 fi
8967 rm -f conftest.err conftest.$ac_ext
8968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8969 echo "${ECHO_T}$ac_header_preproc" >&6
8970
8971 # So? What about this header?
8972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8973 yes:no: )
8974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8978 ac_header_preproc=yes
8979 ;;
8980 no:yes:* )
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8984 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8988 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8993 (
8994 cat <<\_ASBOX
8995 ## ------------------------------------------ ##
8996 ## Report this to the AC_PACKAGE_NAME lists. ##
8997 ## ------------------------------------------ ##
8998 _ASBOX
8999 ) |
9000 sed "s/^/$as_me: WARNING: /" >&2
9001 ;;
9002 esac
9003 echo "$as_me:$LINENO: checking for $ac_header" >&5
9004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 else
9008 eval "$as_ac_Header=\$ac_header_preproc"
9009 fi
9010 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9011 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9012
9013 fi
9014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9015 cat >>confdefs.h <<_ACEOF
9016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9017 _ACEOF
9018
9019 fi
9020
9021 done
9022
9023
9024 for ac_header in sys/ioctl.h
9025 do
9026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028 echo "$as_me:$LINENO: checking for $ac_header" >&5
9029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 fi
9033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9035 else
9036 # Is the header compilable?
9037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9039 cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */
9045 $ac_includes_default
9046 #include <$ac_header>
9047 _ACEOF
9048 rm -f conftest.$ac_objext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -z "$ac_c_werror_flag"
9058 || test ! -s conftest.err'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest.$ac_objext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_header_compiler=yes
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_header_compiler=no
9076 fi
9077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9079 echo "${ECHO_T}$ac_header_compiler" >&6
9080
9081 # Is the header present?
9082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9084 cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h. */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9090 #include <$ac_header>
9091 _ACEOF
9092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } >/dev/null; then
9100 if test -s conftest.err; then
9101 ac_cpp_err=$ac_c_preproc_warn_flag
9102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9103 else
9104 ac_cpp_err=
9105 fi
9106 else
9107 ac_cpp_err=yes
9108 fi
9109 if test -z "$ac_cpp_err"; then
9110 ac_header_preproc=yes
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_header_preproc=no
9116 fi
9117 rm -f conftest.err conftest.$ac_ext
9118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9119 echo "${ECHO_T}$ac_header_preproc" >&6
9120
9121 # So? What about this header?
9122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9123 yes:no: )
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9128 ac_header_preproc=yes
9129 ;;
9130 no:yes:* )
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9143 (
9144 cat <<\_ASBOX
9145 ## ------------------------------------------ ##
9146 ## Report this to the AC_PACKAGE_NAME lists. ##
9147 ## ------------------------------------------ ##
9148 _ASBOX
9149 ) |
9150 sed "s/^/$as_me: WARNING: /" >&2
9151 ;;
9152 esac
9153 echo "$as_me:$LINENO: checking for $ac_header" >&5
9154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157 else
9158 eval "$as_ac_Header=\$ac_header_preproc"
9159 fi
9160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9162
9163 fi
9164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9167 _ACEOF
9168
9169 fi
9170
9171 done
9172
9173
9174 for ac_header in sys/param.h
9175 do
9176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo "$as_me:$LINENO: checking for $ac_header" >&5
9179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 fi
9183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9185 else
9186 # Is the header compilable?
9187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 $ac_includes_default
9196 #include <$ac_header>
9197 _ACEOF
9198 rm -f conftest.$ac_objext
9199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_header_compiler=yes
9221 else
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9224
9225 ac_header_compiler=no
9226 fi
9227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229 echo "${ECHO_T}$ac_header_compiler" >&6
9230
9231 # Is the header present?
9232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 /* confdefs.h. */
9236 _ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <$ac_header>
9241 _ACEOF
9242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } >/dev/null; then
9250 if test -s conftest.err; then
9251 ac_cpp_err=$ac_c_preproc_warn_flag
9252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9253 else
9254 ac_cpp_err=
9255 fi
9256 else
9257 ac_cpp_err=yes
9258 fi
9259 if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265 ac_header_preproc=no
9266 fi
9267 rm -f conftest.err conftest.$ac_ext
9268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9269 echo "${ECHO_T}$ac_header_preproc" >&6
9270
9271 # So? What about this header?
9272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9273 yes:no: )
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9278 ac_header_preproc=yes
9279 ;;
9280 no:yes:* )
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9293 (
9294 cat <<\_ASBOX
9295 ## ------------------------------------------ ##
9296 ## Report this to the AC_PACKAGE_NAME lists. ##
9297 ## ------------------------------------------ ##
9298 _ASBOX
9299 ) |
9300 sed "s/^/$as_me: WARNING: /" >&2
9301 ;;
9302 esac
9303 echo "$as_me:$LINENO: checking for $ac_header" >&5
9304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 eval "$as_ac_Header=\$ac_header_preproc"
9309 fi
9310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9312
9313 fi
9314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317 _ACEOF
9318
9319 fi
9320
9321 done
9322
9323
9324 for ac_header in sys/resource.h
9325 do
9326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9328 echo "$as_me:$LINENO: checking for $ac_header" >&5
9329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 fi
9333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9335 else
9336 # Is the header compilable?
9337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9339 cat >conftest.$ac_ext <<_ACEOF
9340 /* confdefs.h. */
9341 _ACEOF
9342 cat confdefs.h >>conftest.$ac_ext
9343 cat >>conftest.$ac_ext <<_ACEOF
9344 /* end confdefs.h. */
9345 $ac_includes_default
9346 #include <$ac_header>
9347 _ACEOF
9348 rm -f conftest.$ac_objext
9349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350 (eval $ac_compile) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag"
9358 || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_header_compiler=yes
9371 else
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.$ac_ext >&5
9374
9375 ac_header_compiler=no
9376 fi
9377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9379 echo "${ECHO_T}$ac_header_compiler" >&6
9380
9381 # Is the header present?
9382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9384 cat >conftest.$ac_ext <<_ACEOF
9385 /* confdefs.h. */
9386 _ACEOF
9387 cat confdefs.h >>conftest.$ac_ext
9388 cat >>conftest.$ac_ext <<_ACEOF
9389 /* end confdefs.h. */
9390 #include <$ac_header>
9391 _ACEOF
9392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } >/dev/null; then
9400 if test -s conftest.err; then
9401 ac_cpp_err=$ac_c_preproc_warn_flag
9402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9403 else
9404 ac_cpp_err=
9405 fi
9406 else
9407 ac_cpp_err=yes
9408 fi
9409 if test -z "$ac_cpp_err"; then
9410 ac_header_preproc=yes
9411 else
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 ac_header_preproc=no
9416 fi
9417 rm -f conftest.err conftest.$ac_ext
9418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419 echo "${ECHO_T}$ac_header_preproc" >&6
9420
9421 # So? What about this header?
9422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9423 yes:no: )
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428 ac_header_preproc=yes
9429 ;;
9430 no:yes:* )
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9443 (
9444 cat <<\_ASBOX
9445 ## ------------------------------------------ ##
9446 ## Report this to the AC_PACKAGE_NAME lists. ##
9447 ## ------------------------------------------ ##
9448 _ASBOX
9449 ) |
9450 sed "s/^/$as_me: WARNING: /" >&2
9451 ;;
9452 esac
9453 echo "$as_me:$LINENO: checking for $ac_header" >&5
9454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458 eval "$as_ac_Header=\$ac_header_preproc"
9459 fi
9460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462
9463 fi
9464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9465 cat >>confdefs.h <<_ACEOF
9466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9467 _ACEOF
9468
9469 fi
9470
9471 done
9472
9473
9474 for ac_header in sys/proc.h
9475 do
9476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9477 echo "$as_me:$LINENO: checking for $ac_header" >&5
9478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9488 #if HAVE_SYS_PARAM_H
9489 # include <sys/param.h>
9490 #endif
9491
9492
9493 #include <$ac_header>
9494 _ACEOF
9495 rm -f conftest.$ac_objext
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
9517 eval "$as_ac_Header=yes"
9518 else
9519 echo "$as_me: failed program was:" >&5
9520 sed 's/^/| /' conftest.$ac_ext >&5
9521
9522 eval "$as_ac_Header=no"
9523 fi
9524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9525 fi
9526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531 _ACEOF
9532
9533 fi
9534
9535 done
9536
9537
9538 for ac_header in sys/procfs.h
9539 do
9540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542 echo "$as_me:$LINENO: checking for $ac_header" >&5
9543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9544 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 fi
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9549 else
9550 # Is the header compilable?
9551 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9554 /* confdefs.h. */
9555 _ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 $ac_includes_default
9560 #include <$ac_header>
9561 _ACEOF
9562 rm -f conftest.$ac_objext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9585 else
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_header_compiler=no
9590 fi
9591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593 echo "${ECHO_T}$ac_header_compiler" >&6
9594
9595 # Is the header present?
9596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9599 /* confdefs.h. */
9600 _ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 #include <$ac_header>
9605 _ACEOF
9606 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } >/dev/null; then
9614 if test -s conftest.err; then
9615 ac_cpp_err=$ac_c_preproc_warn_flag
9616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9617 else
9618 ac_cpp_err=
9619 fi
9620 else
9621 ac_cpp_err=yes
9622 fi
9623 if test -z "$ac_cpp_err"; then
9624 ac_header_preproc=yes
9625 else
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_header_preproc=no
9630 fi
9631 rm -f conftest.err conftest.$ac_ext
9632 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633 echo "${ECHO_T}$ac_header_preproc" >&6
9634
9635 # So? What about this header?
9636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9637 yes:no: )
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9642 ac_header_preproc=yes
9643 ;;
9644 no:yes:* )
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9657 (
9658 cat <<\_ASBOX
9659 ## ------------------------------------------ ##
9660 ## Report this to the AC_PACKAGE_NAME lists. ##
9661 ## ------------------------------------------ ##
9662 _ASBOX
9663 ) |
9664 sed "s/^/$as_me: WARNING: /" >&2
9665 ;;
9666 esac
9667 echo "$as_me:$LINENO: checking for $ac_header" >&5
9668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 eval "$as_ac_Header=\$ac_header_preproc"
9673 fi
9674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9676
9677 fi
9678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9679 cat >>confdefs.h <<_ACEOF
9680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9681 _ACEOF
9682
9683 fi
9684
9685 done
9686
9687
9688
9689 for ac_header in sys/ptrace.h ptrace.h
9690 do
9691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693 echo "$as_me:$LINENO: checking for $ac_header" >&5
9694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 fi
9698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9700 else
9701 # Is the header compilable?
9702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9704 cat >conftest.$ac_ext <<_ACEOF
9705 /* confdefs.h. */
9706 _ACEOF
9707 cat confdefs.h >>conftest.$ac_ext
9708 cat >>conftest.$ac_ext <<_ACEOF
9709 /* end confdefs.h. */
9710 $ac_includes_default
9711 #include <$ac_header>
9712 _ACEOF
9713 rm -f conftest.$ac_objext
9714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715 (eval $ac_compile) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_header_compiler=yes
9736 else
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ac_header_compiler=no
9741 fi
9742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744 echo "${ECHO_T}$ac_header_compiler" >&6
9745
9746 # Is the header present?
9747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h. */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 #include <$ac_header>
9756 _ACEOF
9757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } >/dev/null; then
9765 if test -s conftest.err; then
9766 ac_cpp_err=$ac_c_preproc_warn_flag
9767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9768 else
9769 ac_cpp_err=
9770 fi
9771 else
9772 ac_cpp_err=yes
9773 fi
9774 if test -z "$ac_cpp_err"; then
9775 ac_header_preproc=yes
9776 else
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 ac_header_preproc=no
9781 fi
9782 rm -f conftest.err conftest.$ac_ext
9783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9784 echo "${ECHO_T}$ac_header_preproc" >&6
9785
9786 # So? What about this header?
9787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9788 yes:no: )
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9793 ac_header_preproc=yes
9794 ;;
9795 no:yes:* )
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9808 (
9809 cat <<\_ASBOX
9810 ## ------------------------------------------ ##
9811 ## Report this to the AC_PACKAGE_NAME lists. ##
9812 ## ------------------------------------------ ##
9813 _ASBOX
9814 ) |
9815 sed "s/^/$as_me: WARNING: /" >&2
9816 ;;
9817 esac
9818 echo "$as_me:$LINENO: checking for $ac_header" >&5
9819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 eval "$as_ac_Header=\$ac_header_preproc"
9824 fi
9825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9827
9828 fi
9829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832 _ACEOF
9833
9834 fi
9835
9836 done
9837
9838
9839
9840 for ac_header in sys/reg.h sys/debugreg.h
9841 do
9842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo "$as_me:$LINENO: checking for $ac_header" >&5
9845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848 fi
9849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9851 else
9852 # Is the header compilable?
9853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9855 cat >conftest.$ac_ext <<_ACEOF
9856 /* confdefs.h. */
9857 _ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 $ac_includes_default
9862 #include <$ac_header>
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_header_compiler=yes
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_header_compiler=no
9892 fi
9893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9895 echo "${ECHO_T}$ac_header_compiler" >&6
9896
9897 # Is the header present?
9898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9900 cat >conftest.$ac_ext <<_ACEOF
9901 /* confdefs.h. */
9902 _ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 #include <$ac_header>
9907 _ACEOF
9908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } >/dev/null; then
9916 if test -s conftest.err; then
9917 ac_cpp_err=$ac_c_preproc_warn_flag
9918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9919 else
9920 ac_cpp_err=
9921 fi
9922 else
9923 ac_cpp_err=yes
9924 fi
9925 if test -z "$ac_cpp_err"; then
9926 ac_header_preproc=yes
9927 else
9928 echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_header_preproc=no
9932 fi
9933 rm -f conftest.err conftest.$ac_ext
9934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9935 echo "${ECHO_T}$ac_header_preproc" >&6
9936
9937 # So? What about this header?
9938 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9939 yes:no: )
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9943 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9944 ac_header_preproc=yes
9945 ;;
9946 no:yes:* )
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9948 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9950 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9952 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9954 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9958 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9959 (
9960 cat <<\_ASBOX
9961 ## ------------------------------------------ ##
9962 ## Report this to the AC_PACKAGE_NAME lists. ##
9963 ## ------------------------------------------ ##
9964 _ASBOX
9965 ) |
9966 sed "s/^/$as_me: WARNING: /" >&2
9967 ;;
9968 esac
9969 echo "$as_me:$LINENO: checking for $ac_header" >&5
9970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 eval "$as_ac_Header=\$ac_header_preproc"
9975 fi
9976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9978
9979 fi
9980 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983 _ACEOF
9984
9985 fi
9986
9987 done
9988
9989
9990 for ac_header in sys/select.h
9991 do
9992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9994 echo "$as_me:$LINENO: checking for $ac_header" >&5
9995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 fi
9999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10001 else
10002 # Is the header compilable?
10003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10006 /* confdefs.h. */
10007 _ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10012 #include <$ac_header>
10013 _ACEOF
10014 rm -f conftest.$ac_objext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_header_compiler=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 sed 's/^/| /' conftest.$ac_ext >&5
10040
10041 ac_header_compiler=no
10042 fi
10043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10045 echo "${ECHO_T}$ac_header_compiler" >&6
10046
10047 # Is the header present?
10048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 #include <$ac_header>
10057 _ACEOF
10058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } >/dev/null; then
10066 if test -s conftest.err; then
10067 ac_cpp_err=$ac_c_preproc_warn_flag
10068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10069 else
10070 ac_cpp_err=
10071 fi
10072 else
10073 ac_cpp_err=yes
10074 fi
10075 if test -z "$ac_cpp_err"; then
10076 ac_header_preproc=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_header_preproc=no
10082 fi
10083 rm -f conftest.err conftest.$ac_ext
10084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10085 echo "${ECHO_T}$ac_header_preproc" >&6
10086
10087 # So? What about this header?
10088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10089 yes:no: )
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10094 ac_header_preproc=yes
10095 ;;
10096 no:yes:* )
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10109 (
10110 cat <<\_ASBOX
10111 ## ------------------------------------------ ##
10112 ## Report this to the AC_PACKAGE_NAME lists. ##
10113 ## ------------------------------------------ ##
10114 _ASBOX
10115 ) |
10116 sed "s/^/$as_me: WARNING: /" >&2
10117 ;;
10118 esac
10119 echo "$as_me:$LINENO: checking for $ac_header" >&5
10120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 eval "$as_ac_Header=\$ac_header_preproc"
10125 fi
10126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10128
10129 fi
10130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10131 cat >>confdefs.h <<_ACEOF
10132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10133 _ACEOF
10134
10135 fi
10136
10137 done
10138
10139
10140 for ac_header in sys/syscall.h
10141 do
10142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10144 echo "$as_me:$LINENO: checking for $ac_header" >&5
10145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 fi
10149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10151 else
10152 # Is the header compilable?
10153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h. */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h. */
10161 $ac_includes_default
10162 #include <$ac_header>
10163 _ACEOF
10164 rm -f conftest.$ac_objext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest.$ac_objext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_header_compiler=yes
10187 else
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191 ac_header_compiler=no
10192 fi
10193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195 echo "${ECHO_T}$ac_header_compiler" >&6
10196
10197 # Is the header present?
10198 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h. */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h. */
10206 #include <$ac_header>
10207 _ACEOF
10208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } >/dev/null; then
10216 if test -s conftest.err; then
10217 ac_cpp_err=$ac_c_preproc_warn_flag
10218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10219 else
10220 ac_cpp_err=
10221 fi
10222 else
10223 ac_cpp_err=yes
10224 fi
10225 if test -z "$ac_cpp_err"; then
10226 ac_header_preproc=yes
10227 else
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_preproc=no
10232 fi
10233 rm -f conftest.err conftest.$ac_ext
10234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10235 echo "${ECHO_T}$ac_header_preproc" >&6
10236
10237 # So? What about this header?
10238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10239 yes:no: )
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10244 ac_header_preproc=yes
10245 ;;
10246 no:yes:* )
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10259 (
10260 cat <<\_ASBOX
10261 ## ------------------------------------------ ##
10262 ## Report this to the AC_PACKAGE_NAME lists. ##
10263 ## ------------------------------------------ ##
10264 _ASBOX
10265 ) |
10266 sed "s/^/$as_me: WARNING: /" >&2
10267 ;;
10268 esac
10269 echo "$as_me:$LINENO: checking for $ac_header" >&5
10270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274 eval "$as_ac_Header=\$ac_header_preproc"
10275 fi
10276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10278
10279 fi
10280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10281 cat >>confdefs.h <<_ACEOF
10282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10283 _ACEOF
10284
10285 fi
10286
10287 done
10288
10289
10290 for ac_header in sys/types.h
10291 do
10292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo "$as_me:$LINENO: checking for $ac_header" >&5
10295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 fi
10299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10301 else
10302 # Is the header compilable?
10303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10305 cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h. */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h. */
10311 $ac_includes_default
10312 #include <$ac_header>
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag"
10324 || test ! -s conftest.err'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_header_compiler=yes
10337 else
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10340
10341 ac_header_compiler=no
10342 fi
10343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10345 echo "${ECHO_T}$ac_header_compiler" >&6
10346
10347 # Is the header present?
10348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h. */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #include <$ac_header>
10357 _ACEOF
10358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } >/dev/null; then
10366 if test -s conftest.err; then
10367 ac_cpp_err=$ac_c_preproc_warn_flag
10368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10369 else
10370 ac_cpp_err=
10371 fi
10372 else
10373 ac_cpp_err=yes
10374 fi
10375 if test -z "$ac_cpp_err"; then
10376 ac_header_preproc=yes
10377 else
10378 echo "$as_me: failed program was:" >&5
10379 sed 's/^/| /' conftest.$ac_ext >&5
10380
10381 ac_header_preproc=no
10382 fi
10383 rm -f conftest.err conftest.$ac_ext
10384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10385 echo "${ECHO_T}$ac_header_preproc" >&6
10386
10387 # So? What about this header?
10388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10389 yes:no: )
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10394 ac_header_preproc=yes
10395 ;;
10396 no:yes:* )
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10409 (
10410 cat <<\_ASBOX
10411 ## ------------------------------------------ ##
10412 ## Report this to the AC_PACKAGE_NAME lists. ##
10413 ## ------------------------------------------ ##
10414 _ASBOX
10415 ) |
10416 sed "s/^/$as_me: WARNING: /" >&2
10417 ;;
10418 esac
10419 echo "$as_me:$LINENO: checking for $ac_header" >&5
10420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424 eval "$as_ac_Header=\$ac_header_preproc"
10425 fi
10426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10428
10429 fi
10430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10431 cat >>confdefs.h <<_ACEOF
10432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433 _ACEOF
10434
10435 fi
10436
10437 done
10438
10439
10440 for ac_header in sys/user.h
10441 do
10442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10443 echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454 #if HAVE_SYS_PARAM_H
10455 # include <sys/param.h>
10456 #endif
10457
10458
10459 #include <$ac_header>
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 eval "$as_ac_Header=yes"
10484 else
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488 eval "$as_ac_Header=no"
10489 fi
10490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10491 fi
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497 _ACEOF
10498
10499 fi
10500
10501 done
10502
10503
10504
10505 for ac_header in sys/wait.h wait.h
10506 do
10507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo "$as_me:$LINENO: checking for $ac_header" >&5
10510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 fi
10514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10516 else
10517 # Is the header compilable?
10518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 $ac_includes_default
10527 #include <$ac_header>
10528 _ACEOF
10529 rm -f conftest.$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10552 else
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 ac_header_compiler=no
10557 fi
10558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560 echo "${ECHO_T}$ac_header_compiler" >&6
10561
10562 # Is the header present?
10563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h. */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 #include <$ac_header>
10572 _ACEOF
10573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_c_preproc_warn_flag
10583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10584 else
10585 ac_cpp_err=
10586 fi
10587 else
10588 ac_cpp_err=yes
10589 fi
10590 if test -z "$ac_cpp_err"; then
10591 ac_header_preproc=yes
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_header_preproc=no
10597 fi
10598 rm -f conftest.err conftest.$ac_ext
10599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10600 echo "${ECHO_T}$ac_header_preproc" >&6
10601
10602 # So? What about this header?
10603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10604 yes:no: )
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10609 ac_header_preproc=yes
10610 ;;
10611 no:yes:* )
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10624 (
10625 cat <<\_ASBOX
10626 ## ------------------------------------------ ##
10627 ## Report this to the AC_PACKAGE_NAME lists. ##
10628 ## ------------------------------------------ ##
10629 _ASBOX
10630 ) |
10631 sed "s/^/$as_me: WARNING: /" >&2
10632 ;;
10633 esac
10634 echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 else
10639 eval "$as_ac_Header=\$ac_header_preproc"
10640 fi
10641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10643
10644 fi
10645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10648 _ACEOF
10649
10650 fi
10651
10652 done
10653
10654
10655
10656
10657 for ac_header in termios.h termio.h sgtty.h
10658 do
10659 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10660 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10661 echo "$as_me:$LINENO: checking for $ac_header" >&5
10662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 fi
10666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10668 else
10669 # Is the header compilable?
10670 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h. */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h. */
10678 $ac_includes_default
10679 #include <$ac_header>
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_header_compiler=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 ac_header_compiler=no
10709 fi
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10712 echo "${ECHO_T}$ac_header_compiler" >&6
10713
10714 # Is the header present?
10715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10717 cat >conftest.$ac_ext <<_ACEOF
10718 /* confdefs.h. */
10719 _ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10723 #include <$ac_header>
10724 _ACEOF
10725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } >/dev/null; then
10733 if test -s conftest.err; then
10734 ac_cpp_err=$ac_c_preproc_warn_flag
10735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10736 else
10737 ac_cpp_err=
10738 fi
10739 else
10740 ac_cpp_err=yes
10741 fi
10742 if test -z "$ac_cpp_err"; then
10743 ac_header_preproc=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_header_preproc=no
10749 fi
10750 rm -f conftest.err conftest.$ac_ext
10751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10752 echo "${ECHO_T}$ac_header_preproc" >&6
10753
10754 # So? What about this header?
10755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10756 yes:no: )
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10761 ac_header_preproc=yes
10762 ;;
10763 no:yes:* )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10776 (
10777 cat <<\_ASBOX
10778 ## ------------------------------------------ ##
10779 ## Report this to the AC_PACKAGE_NAME lists. ##
10780 ## ------------------------------------------ ##
10781 _ASBOX
10782 ) |
10783 sed "s/^/$as_me: WARNING: /" >&2
10784 ;;
10785 esac
10786 echo "$as_me:$LINENO: checking for $ac_header" >&5
10787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 else
10791 eval "$as_ac_Header=\$ac_header_preproc"
10792 fi
10793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10795
10796 fi
10797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10800 _ACEOF
10801
10802 fi
10803
10804 done
10805
10806
10807 for ac_header in unistd.h
10808 do
10809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 fi
10816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10818 else
10819 # Is the header compilable?
10820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10828 $ac_includes_default
10829 #include <$ac_header>
10830 _ACEOF
10831 rm -f conftest.$ac_objext
10832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10833 (eval $ac_compile) 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -z "$ac_c_werror_flag"
10841 || test ! -s conftest.err'
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_header_compiler=yes
10854 else
10855 echo "$as_me: failed program was:" >&5
10856 sed 's/^/| /' conftest.$ac_ext >&5
10857
10858 ac_header_compiler=no
10859 fi
10860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10862 echo "${ECHO_T}$ac_header_compiler" >&6
10863
10864 # Is the header present?
10865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h. */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 #include <$ac_header>
10874 _ACEOF
10875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } >/dev/null; then
10883 if test -s conftest.err; then
10884 ac_cpp_err=$ac_c_preproc_warn_flag
10885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10886 else
10887 ac_cpp_err=
10888 fi
10889 else
10890 ac_cpp_err=yes
10891 fi
10892 if test -z "$ac_cpp_err"; then
10893 ac_header_preproc=yes
10894 else
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 ac_header_preproc=no
10899 fi
10900 rm -f conftest.err conftest.$ac_ext
10901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10902 echo "${ECHO_T}$ac_header_preproc" >&6
10903
10904 # So? What about this header?
10905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10906 yes:no: )
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10911 ac_header_preproc=yes
10912 ;;
10913 no:yes:* )
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10926 (
10927 cat <<\_ASBOX
10928 ## ------------------------------------------ ##
10929 ## Report this to the AC_PACKAGE_NAME lists. ##
10930 ## ------------------------------------------ ##
10931 _ASBOX
10932 ) |
10933 sed "s/^/$as_me: WARNING: /" >&2
10934 ;;
10935 esac
10936 echo "$as_me:$LINENO: checking for $ac_header" >&5
10937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941 eval "$as_ac_Header=\$ac_header_preproc"
10942 fi
10943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10945
10946 fi
10947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10948 cat >>confdefs.h <<_ACEOF
10949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10950 _ACEOF
10951
10952 fi
10953
10954 done
10955
10956
10957 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10958 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10959 # think that we don't have <curses.h> if we're using GCC.
10960 case $host_os in
10961 solaris2.[789])
10962 if test "$GCC" = yes; then
10963
10964 cat >>confdefs.h <<\_ACEOF
10965 #define _MSE_INT_H 1
10966 _ACEOF
10967
10968 fi ;;
10969 esac
10970
10971
10972
10973
10974 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10975 do
10976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10978 echo "$as_me:$LINENO: checking for $ac_header" >&5
10979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 fi
10983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 else
10986 # Is the header compilable?
10987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 $ac_includes_default
10996 #include <$ac_header>
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_header_compiler=yes
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_header_compiler=no
11026 fi
11027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 echo "${ECHO_T}$ac_header_compiler" >&6
11030
11031 # Is the header present?
11032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <$ac_header>
11041 _ACEOF
11042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } >/dev/null; then
11050 if test -s conftest.err; then
11051 ac_cpp_err=$ac_c_preproc_warn_flag
11052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11053 else
11054 ac_cpp_err=
11055 fi
11056 else
11057 ac_cpp_err=yes
11058 fi
11059 if test -z "$ac_cpp_err"; then
11060 ac_header_preproc=yes
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 ac_header_preproc=no
11066 fi
11067 rm -f conftest.err conftest.$ac_ext
11068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069 echo "${ECHO_T}$ac_header_preproc" >&6
11070
11071 # So? What about this header?
11072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11073 yes:no: )
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078 ac_header_preproc=yes
11079 ;;
11080 no:yes:* )
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11093 (
11094 cat <<\_ASBOX
11095 ## ------------------------------------------ ##
11096 ## Report this to the AC_PACKAGE_NAME lists. ##
11097 ## ------------------------------------------ ##
11098 _ASBOX
11099 ) |
11100 sed "s/^/$as_me: WARNING: /" >&2
11101 ;;
11102 esac
11103 echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 eval "$as_ac_Header=\$ac_header_preproc"
11109 fi
11110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11112
11113 fi
11114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11117 _ACEOF
11118
11119 fi
11120
11121 done
11122
11123
11124 for ac_header in ncurses/term.h
11125 do
11126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11128 echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 fi
11133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11135 else
11136 # Is the header compilable?
11137 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h. */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 $ac_includes_default
11146 #include <$ac_header>
11147 _ACEOF
11148 rm -f conftest.$ac_objext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_header_compiler=yes
11171 else
11172 echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_header_compiler=no
11176 fi
11177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11179 echo "${ECHO_T}$ac_header_compiler" >&6
11180
11181 # Is the header present?
11182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11184 cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h. */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #include <$ac_header>
11191 _ACEOF
11192 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev/null; then
11200 if test -s conftest.err; then
11201 ac_cpp_err=$ac_c_preproc_warn_flag
11202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11203 else
11204 ac_cpp_err=
11205 fi
11206 else
11207 ac_cpp_err=yes
11208 fi
11209 if test -z "$ac_cpp_err"; then
11210 ac_header_preproc=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_preproc=no
11216 fi
11217 rm -f conftest.err conftest.$ac_ext
11218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11219 echo "${ECHO_T}$ac_header_preproc" >&6
11220
11221 # So? What about this header?
11222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11223 yes:no: )
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11228 ac_header_preproc=yes
11229 ;;
11230 no:yes:* )
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11243 (
11244 cat <<\_ASBOX
11245 ## ------------------------------------------ ##
11246 ## Report this to the AC_PACKAGE_NAME lists. ##
11247 ## ------------------------------------------ ##
11248 _ASBOX
11249 ) |
11250 sed "s/^/$as_me: WARNING: /" >&2
11251 ;;
11252 esac
11253 echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 eval "$as_ac_Header=\$ac_header_preproc"
11259 fi
11260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11261 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11262
11263 fi
11264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267 _ACEOF
11268
11269 fi
11270
11271 done
11272
11273
11274 for ac_header in term.h
11275 do
11276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11277 echo "$as_me:$LINENO: checking for $ac_header" >&5
11278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 #if HAVE_CURSES_H
11289 # include <curses.h>
11290 #endif
11291
11292
11293 #include <$ac_header>
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_Header=yes"
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 eval "$as_ac_Header=no"
11323 fi
11324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325 fi
11326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11329 cat >>confdefs.h <<_ACEOF
11330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331 _ACEOF
11332
11333 fi
11334
11335 done
11336
11337
11338 # FIXME: kettenis/20030102: In most cases we include these
11339 # unconditionally, so what's the point in checking these?
11340
11341
11342 for ac_header in ctype.h time.h
11343 do
11344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346 echo "$as_me:$LINENO: checking for $ac_header" >&5
11347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350 fi
11351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11353 else
11354 # Is the header compilable?
11355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11357 cat >conftest.$ac_ext <<_ACEOF
11358 /* confdefs.h. */
11359 _ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 $ac_includes_default
11364 #include <$ac_header>
11365 _ACEOF
11366 rm -f conftest.$ac_objext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag"
11376 || test ! -s conftest.err'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11389 else
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11392
11393 ac_header_compiler=no
11394 fi
11395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 echo "${ECHO_T}$ac_header_compiler" >&6
11398
11399 # Is the header present?
11400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #include <$ac_header>
11409 _ACEOF
11410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } >/dev/null; then
11418 if test -s conftest.err; then
11419 ac_cpp_err=$ac_c_preproc_warn_flag
11420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421 else
11422 ac_cpp_err=
11423 fi
11424 else
11425 ac_cpp_err=yes
11426 fi
11427 if test -z "$ac_cpp_err"; then
11428 ac_header_preproc=yes
11429 else
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_header_preproc=no
11434 fi
11435 rm -f conftest.err conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6
11438
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 yes:no: )
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11447 ;;
11448 no:yes:* )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11461 (
11462 cat <<\_ASBOX
11463 ## ------------------------------------------ ##
11464 ## Report this to the AC_PACKAGE_NAME lists. ##
11465 ## ------------------------------------------ ##
11466 _ASBOX
11467 ) |
11468 sed "s/^/$as_me: WARNING: /" >&2
11469 ;;
11470 esac
11471 echo "$as_me:$LINENO: checking for $ac_header" >&5
11472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 else
11476 eval "$as_ac_Header=\$ac_header_preproc"
11477 fi
11478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11480
11481 fi
11482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11485 _ACEOF
11486
11487 fi
11488
11489 done
11490
11491
11492 # Create a header we can use portably to get the standard integer types.
11493
11494
11495 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11496
11497 acx_cv_header_stdint=stddef.h
11498 acx_cv_header_stdint_kind="(already complete)"
11499 for i in stdint.h $inttype_headers; do
11500 unset ac_cv_type_uintptr_t
11501 unset ac_cv_type_uintmax_t
11502 unset ac_cv_type_int_least32_t
11503 unset ac_cv_type_int_fast32_t
11504 unset ac_cv_type_uint64_t
11505 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
11506 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11507 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
11508 if test "${ac_cv_type_uintmax_t+set}" = set; then
11509 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 else
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h. */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 #include <sys/types.h>
11518 #include <$i>
11519
11520 int
11521 main ()
11522 {
11523 if ((uintmax_t *) 0)
11524 return 0;
11525 if (sizeof (uintmax_t))
11526 return 0;
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 rm -f conftest.$ac_objext
11532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
11553 ac_cv_type_uintmax_t=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_cv_type_uintmax_t=no
11559 fi
11560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11561 fi
11562 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11563 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11564 if test $ac_cv_type_uintmax_t = yes; then
11565 acx_cv_header_stdint=$i
11566 else
11567 continue
11568 fi
11569
11570 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11571 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11572 if test "${ac_cv_type_uintptr_t+set}" = set; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 else
11575 cat >conftest.$ac_ext <<_ACEOF
11576 /* confdefs.h. */
11577 _ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 #include <sys/types.h>
11582 #include <$i>
11583
11584 int
11585 main ()
11586 {
11587 if ((uintptr_t *) 0)
11588 return 0;
11589 if (sizeof (uintptr_t))
11590 return 0;
11591 ;
11592 return 0;
11593 }
11594 _ACEOF
11595 rm -f conftest.$ac_objext
11596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
11604 { ac_try='test -z "$ac_c_werror_flag"
11605 || test ! -s conftest.err'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest.$ac_objext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_type_uintptr_t=yes
11618 else
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622 ac_cv_type_uintptr_t=no
11623 fi
11624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625 fi
11626 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11627 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11628 if test $ac_cv_type_uintptr_t = yes; then
11629 :
11630 else
11631 acx_cv_header_stdint_kind="(mostly complete)"
11632 fi
11633
11634 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11635 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11636 if test "${ac_cv_type_int_least32_t+set}" = set; then
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 else
11639 cat >conftest.$ac_ext <<_ACEOF
11640 /* confdefs.h. */
11641 _ACEOF
11642 cat confdefs.h >>conftest.$ac_ext
11643 cat >>conftest.$ac_ext <<_ACEOF
11644 /* end confdefs.h. */
11645 #include <sys/types.h>
11646 #include <$i>
11647
11648 int
11649 main ()
11650 {
11651 if ((int_least32_t *) 0)
11652 return 0;
11653 if (sizeof (int_least32_t))
11654 return 0;
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
11681 ac_cv_type_int_least32_t=yes
11682 else
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 ac_cv_type_int_least32_t=no
11687 fi
11688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11689 fi
11690 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11691 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11692 if test $ac_cv_type_int_least32_t = yes; then
11693 :
11694 else
11695 acx_cv_header_stdint_kind="(mostly complete)"
11696 fi
11697
11698 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11699 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11700 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702 else
11703 cat >conftest.$ac_ext <<_ACEOF
11704 /* confdefs.h. */
11705 _ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 #include <sys/types.h>
11710 #include <$i>
11711
11712 int
11713 main ()
11714 {
11715 if ((int_fast32_t *) 0)
11716 return 0;
11717 if (sizeof (int_fast32_t))
11718 return 0;
11719 ;
11720 return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
11732 { ac_try='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 ac_cv_type_int_fast32_t=yes
11746 else
11747 echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750 ac_cv_type_int_fast32_t=no
11751 fi
11752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11755 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11756 if test $ac_cv_type_int_fast32_t = yes; then
11757 :
11758 else
11759 acx_cv_header_stdint_kind="(mostly complete)"
11760 fi
11761
11762 echo "$as_me:$LINENO: checking for uint64_t" >&5
11763 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11764 if test "${ac_cv_type_uint64_t+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h. */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h. */
11773 #include <sys/types.h>
11774 #include <$i>
11775
11776 int
11777 main ()
11778 {
11779 if ((uint64_t *) 0)
11780 return 0;
11781 if (sizeof (uint64_t))
11782 return 0;
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 rm -f conftest.$ac_objext
11788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_type_uint64_t=yes
11810 else
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11813
11814 ac_cv_type_uint64_t=no
11815 fi
11816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11817 fi
11818 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11819 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11820 if test $ac_cv_type_uint64_t = yes; then
11821 :
11822 else
11823 acx_cv_header_stdint_kind="(lacks uint64_t)"
11824 fi
11825
11826 break
11827 done
11828 if test "$acx_cv_header_stdint" = stddef.h; then
11829 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11830 for i in stdint.h $inttype_headers; do
11831 unset ac_cv_type_uintptr_t
11832 unset ac_cv_type_uint32_t
11833 unset ac_cv_type_uint64_t
11834 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11835 echo "$as_me:$LINENO: checking for uint32_t" >&5
11836 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11837 if test "${ac_cv_type_uint32_t+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11839 else
11840 cat >conftest.$ac_ext <<_ACEOF
11841 /* confdefs.h. */
11842 _ACEOF
11843 cat confdefs.h >>conftest.$ac_ext
11844 cat >>conftest.$ac_ext <<_ACEOF
11845 /* end confdefs.h. */
11846 #include <sys/types.h>
11847 #include <$i>
11848
11849 int
11850 main ()
11851 {
11852 if ((uint32_t *) 0)
11853 return 0;
11854 if (sizeof (uint32_t))
11855 return 0;
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 ac_cv_type_uint32_t=yes
11883 else
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 ac_cv_type_uint32_t=no
11888 fi
11889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890 fi
11891 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11892 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11893 if test $ac_cv_type_uint32_t = yes; then
11894 acx_cv_header_stdint=$i
11895 else
11896 continue
11897 fi
11898
11899 echo "$as_me:$LINENO: checking for uint64_t" >&5
11900 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11901 if test "${ac_cv_type_uint64_t+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 cat >conftest.$ac_ext <<_ACEOF
11905 /* confdefs.h. */
11906 _ACEOF
11907 cat confdefs.h >>conftest.$ac_ext
11908 cat >>conftest.$ac_ext <<_ACEOF
11909 /* end confdefs.h. */
11910 #include <sys/types.h>
11911 #include <$i>
11912
11913 int
11914 main ()
11915 {
11916 if ((uint64_t *) 0)
11917 return 0;
11918 if (sizeof (uint64_t))
11919 return 0;
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag"
11934 || test ! -s conftest.err'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
11946 ac_cv_type_uint64_t=yes
11947 else
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 ac_cv_type_uint64_t=no
11952 fi
11953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11954 fi
11955 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11956 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11957
11958 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11959 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11960 if test "${ac_cv_type_uintptr_t+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h. */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11969 #include <sys/types.h>
11970 #include <$i>
11971
11972 int
11973 main ()
11974 {
11975 if ((uintptr_t *) 0)
11976 return 0;
11977 if (sizeof (uintptr_t))
11978 return 0;
11979 ;
11980 return 0;
11981 }
11982 _ACEOF
11983 rm -f conftest.$ac_objext
11984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_type_uintptr_t=yes
12006 else
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010 ac_cv_type_uintptr_t=no
12011 fi
12012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12013 fi
12014 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12015 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
12016
12017 break
12018 done
12019 fi
12020 if test "$acx_cv_header_stdint" = stddef.h; then
12021 acx_cv_header_stdint_kind="(u_intXX_t style)"
12022 for i in sys/types.h $inttype_headers; do
12023 unset ac_cv_type_u_int32_t
12024 unset ac_cv_type_u_int64_t
12025 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
12026 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12027 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
12028 if test "${ac_cv_type_u_int32_t+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031 cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h. */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12037 #include <sys/types.h>
12038 #include <$i>
12039
12040 int
12041 main ()
12042 {
12043 if ((u_int32_t *) 0)
12044 return 0;
12045 if (sizeof (u_int32_t))
12046 return 0;
12047 ;
12048 return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
12073 ac_cv_type_u_int32_t=yes
12074 else
12075 echo "$as_me: failed program was:" >&5
12076 sed 's/^/| /' conftest.$ac_ext >&5
12077
12078 ac_cv_type_u_int32_t=no
12079 fi
12080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081 fi
12082 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12083 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
12084 if test $ac_cv_type_u_int32_t = yes; then
12085 acx_cv_header_stdint=$i
12086 else
12087 continue
12088 fi
12089
12090 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12091 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12092 if test "${ac_cv_type_u_int64_t+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12101 #include <sys/types.h>
12102 #include <$i>
12103
12104 int
12105 main ()
12106 {
12107 if ((u_int64_t *) 0)
12108 return 0;
12109 if (sizeof (u_int64_t))
12110 return 0;
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 ac_cv_type_u_int64_t=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 ac_cv_type_u_int64_t=no
12143 fi
12144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 fi
12146 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12147 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12148
12149 break
12150 done
12151 fi
12152 if test "$acx_cv_header_stdint" = stddef.h; then
12153 acx_cv_header_stdint_kind="(using manual detection)"
12154 fi
12155
12156 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12157 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12158 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12159 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12160 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12161
12162 # ----------------- Summarize what we found so far
12163
12164 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12165 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
12166
12167 case `$as_basename gdb_stdint.h ||
12168 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12169 Xgdb_stdint.h : 'X\(//\)$' \| \
12170 Xgdb_stdint.h : 'X\(/\)$' \| \
12171 . : '\(.\)' 2>/dev/null ||
12172 echo X/gdb_stdint.h |
12173 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12174 /^X\/\(\/\/\)$/{ s//\1/; q; }
12175 /^X\/\(\/\).*/{ s//\1/; q; }
12176 s/.*/./; q'` in
12177 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12178 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12179 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12180 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12181 *) ;;
12182 esac
12183
12184 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12185 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
12186
12187 # ----------------- done included file, check C basic types --------
12188
12189 # Lacking an uintptr_t? Test size of void *
12190 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12191 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12192 echo $ECHO_N "checking for void *... $ECHO_C" >&6
12193 if test "${ac_cv_type_void_p+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 cat >conftest.$ac_ext <<_ACEOF
12197 /* confdefs.h. */
12198 _ACEOF
12199 cat confdefs.h >>conftest.$ac_ext
12200 cat >>conftest.$ac_ext <<_ACEOF
12201 /* end confdefs.h. */
12202 $ac_includes_default
12203 int
12204 main ()
12205 {
12206 if ((void * *) 0)
12207 return 0;
12208 if (sizeof (void *))
12209 return 0;
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_cv_type_void_p=yes
12237 else
12238 echo "$as_me: failed program was:" >&5
12239 sed 's/^/| /' conftest.$ac_ext >&5
12240
12241 ac_cv_type_void_p=no
12242 fi
12243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12244 fi
12245 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12246 echo "${ECHO_T}$ac_cv_type_void_p" >&6
12247
12248 echo "$as_me:$LINENO: checking size of void *" >&5
12249 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12250 if test "${ac_cv_sizeof_void_p+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 else
12253 if test "$ac_cv_type_void_p" = yes; then
12254 # The cast to unsigned long works around a bug in the HP C Compiler
12255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12257 # This bug is HP SR number 8606223364.
12258 if test "$cross_compiling" = yes; then
12259 # Depending upon the size, compute the lo and hi bounds.
12260 cat >conftest.$ac_ext <<_ACEOF
12261 /* confdefs.h. */
12262 _ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12266 $ac_includes_default
12267 int
12268 main ()
12269 {
12270 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
12271 test_array [0] = 0
12272
12273 ;
12274 return 0;
12275 }
12276 _ACEOF
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_lo=0 ac_mid=0
12300 while :; do
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 $ac_includes_default
12308 int
12309 main ()
12310 {
12311 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12312 test_array [0] = 0
12313
12314 ;
12315 return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
12327 { ac_try='test -z "$ac_c_werror_flag"
12328 || test ! -s conftest.err'
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); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
12340 ac_hi=$ac_mid; break
12341 else
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12344
12345 ac_lo=`expr $ac_mid + 1`
12346 if test $ac_lo -le $ac_mid; then
12347 ac_lo= ac_hi=
12348 break
12349 fi
12350 ac_mid=`expr 2 '*' $ac_mid + 1`
12351 fi
12352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 done
12354 else
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12357
12358 cat >conftest.$ac_ext <<_ACEOF
12359 /* confdefs.h. */
12360 _ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12364 $ac_includes_default
12365 int
12366 main ()
12367 {
12368 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
12369 test_array [0] = 0
12370
12371 ;
12372 return 0;
12373 }
12374 _ACEOF
12375 rm -f conftest.$ac_objext
12376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
12384 { ac_try='test -z "$ac_c_werror_flag"
12385 || test ! -s conftest.err'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest.$ac_objext'
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_hi=-1 ac_mid=-1
12398 while :; do
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h. */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 $ac_includes_default
12406 int
12407 main ()
12408 {
12409 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
12410 test_array [0] = 0
12411
12412 ;
12413 return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_lo=$ac_mid; break
12439 else
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12442
12443 ac_hi=`expr '(' $ac_mid ')' - 1`
12444 if test $ac_mid -le $ac_hi; then
12445 ac_lo= ac_hi=
12446 break
12447 fi
12448 ac_mid=`expr 2 '*' $ac_mid`
12449 fi
12450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 done
12452 else
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12455
12456 ac_lo= ac_hi=
12457 fi
12458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 fi
12460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12461 # Binary search between lo and hi bounds.
12462 while test "x$ac_lo" != "x$ac_hi"; do
12463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 $ac_includes_default
12471 int
12472 main ()
12473 {
12474 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
12475 test_array [0] = 0
12476
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 rm -f conftest.$ac_objext
12482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
12503 ac_hi=$ac_mid
12504 else
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12507
12508 ac_lo=`expr '(' $ac_mid ')' + 1`
12509 fi
12510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12511 done
12512 case $ac_lo in
12513 ?*) ac_cv_sizeof_void_p=$ac_lo;;
12514 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12515 See \`config.log' for more details." >&5
12516 echo "$as_me: error: cannot compute sizeof (void *), 77
12517 See \`config.log' for more details." >&2;}
12518 { (exit 1); exit 1; }; } ;;
12519 esac
12520 else
12521 if test "$cross_compiling" = yes; then
12522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12523 See \`config.log' for more details." >&5
12524 echo "$as_me: error: cannot run test program while cross compiling
12525 See \`config.log' for more details." >&2;}
12526 { (exit 1); exit 1; }; }
12527 else
12528 cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h. */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 $ac_includes_default
12535 long longval () { return (long) (sizeof (void *)); }
12536 unsigned long ulongval () { return (long) (sizeof (void *)); }
12537 #include <stdio.h>
12538 #include <stdlib.h>
12539 int
12540 main ()
12541 {
12542
12543 FILE *f = fopen ("conftest.val", "w");
12544 if (! f)
12545 exit (1);
12546 if (((long) (sizeof (void *))) < 0)
12547 {
12548 long i = longval ();
12549 if (i != ((long) (sizeof (void *))))
12550 exit (1);
12551 fprintf (f, "%ld\n", i);
12552 }
12553 else
12554 {
12555 unsigned long i = ulongval ();
12556 if (i != ((long) (sizeof (void *))))
12557 exit (1);
12558 fprintf (f, "%lu\n", i);
12559 }
12560 exit (ferror (f) || fclose (f) != 0);
12561
12562 ;
12563 return 0;
12564 }
12565 _ACEOF
12566 rm -f conftest$ac_exeext
12567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_sizeof_void_p=`cat conftest.val`
12578 else
12579 echo "$as_me: program exited with status $ac_status" >&5
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12582
12583 ( exit $ac_status )
12584 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12585 See \`config.log' for more details." >&5
12586 echo "$as_me: error: cannot compute sizeof (void *), 77
12587 See \`config.log' for more details." >&2;}
12588 { (exit 1); exit 1; }; }
12589 fi
12590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12591 fi
12592 fi
12593 rm -f conftest.val
12594 else
12595 ac_cv_sizeof_void_p=0
12596 fi
12597 fi
12598 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12599 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12600 cat >>confdefs.h <<_ACEOF
12601 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12602 _ACEOF
12603
12604 ;;
12605 esac
12606
12607 # Lacking an uint64_t? Test size of long
12608 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12609 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12610 echo $ECHO_N "checking for long... $ECHO_C" >&6
12611 if test "${ac_cv_type_long+set}" = set; then
12612 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614 cat >conftest.$ac_ext <<_ACEOF
12615 /* confdefs.h. */
12616 _ACEOF
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12621 int
12622 main ()
12623 {
12624 if ((long *) 0)
12625 return 0;
12626 if (sizeof (long))
12627 return 0;
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_cv_type_long=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659 ac_cv_type_long=no
12660 fi
12661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12662 fi
12663 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12664 echo "${ECHO_T}$ac_cv_type_long" >&6
12665
12666 echo "$as_me:$LINENO: checking size of long" >&5
12667 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12668 if test "${ac_cv_sizeof_long+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 else
12671 if test "$ac_cv_type_long" = yes; then
12672 # The cast to unsigned long works around a bug in the HP C Compiler
12673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675 # This bug is HP SR number 8606223364.
12676 if test "$cross_compiling" = yes; then
12677 # Depending upon the size, compute the lo and hi bounds.
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h. */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12684 $ac_includes_default
12685 int
12686 main ()
12687 {
12688 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12689 test_array [0] = 0
12690
12691 ;
12692 return 0;
12693 }
12694 _ACEOF
12695 rm -f conftest.$ac_objext
12696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_lo=0 ac_mid=0
12718 while :; do
12719 cat >conftest.$ac_ext <<_ACEOF
12720 /* confdefs.h. */
12721 _ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12726 int
12727 main ()
12728 {
12729 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12730 test_array [0] = 0
12731
12732 ;
12733 return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
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); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_hi=$ac_mid; break
12759 else
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_lo=`expr $ac_mid + 1`
12764 if test $ac_lo -le $ac_mid; then
12765 ac_lo= ac_hi=
12766 break
12767 fi
12768 ac_mid=`expr 2 '*' $ac_mid + 1`
12769 fi
12770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771 done
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776 cat >conftest.$ac_ext <<_ACEOF
12777 /* confdefs.h. */
12778 _ACEOF
12779 cat confdefs.h >>conftest.$ac_ext
12780 cat >>conftest.$ac_ext <<_ACEOF
12781 /* end confdefs.h. */
12782 $ac_includes_default
12783 int
12784 main ()
12785 {
12786 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12787 test_array [0] = 0
12788
12789 ;
12790 return 0;
12791 }
12792 _ACEOF
12793 rm -f conftest.$ac_objext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_hi=-1 ac_mid=-1
12816 while :; do
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h. */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h. */
12823 $ac_includes_default
12824 int
12825 main ()
12826 {
12827 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12828 test_array [0] = 0
12829
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 rm -f conftest.$ac_objext
12835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
12843 { ac_try='test -z "$ac_c_werror_flag"
12844 || test ! -s conftest.err'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_lo=$ac_mid; break
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861 ac_hi=`expr '(' $ac_mid ')' - 1`
12862 if test $ac_mid -le $ac_hi; then
12863 ac_lo= ac_hi=
12864 break
12865 fi
12866 ac_mid=`expr 2 '*' $ac_mid`
12867 fi
12868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 done
12870 else
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 ac_lo= ac_hi=
12875 fi
12876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 fi
12878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879 # Binary search between lo and hi bounds.
12880 while test "x$ac_lo" != "x$ac_hi"; do
12881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h. */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 $ac_includes_default
12889 int
12890 main ()
12891 {
12892 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12893 test_array [0] = 0
12894
12895 ;
12896 return 0;
12897 }
12898 _ACEOF
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_hi=$ac_mid
12922 else
12923 echo "$as_me: failed program was:" >&5
12924 sed 's/^/| /' conftest.$ac_ext >&5
12925
12926 ac_lo=`expr '(' $ac_mid ')' + 1`
12927 fi
12928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929 done
12930 case $ac_lo in
12931 ?*) ac_cv_sizeof_long=$ac_lo;;
12932 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12933 See \`config.log' for more details." >&5
12934 echo "$as_me: error: cannot compute sizeof (long), 77
12935 See \`config.log' for more details." >&2;}
12936 { (exit 1); exit 1; }; } ;;
12937 esac
12938 else
12939 if test "$cross_compiling" = yes; then
12940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12941 See \`config.log' for more details." >&5
12942 echo "$as_me: error: cannot run test program while cross compiling
12943 See \`config.log' for more details." >&2;}
12944 { (exit 1); exit 1; }; }
12945 else
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 $ac_includes_default
12953 long longval () { return (long) (sizeof (long)); }
12954 unsigned long ulongval () { return (long) (sizeof (long)); }
12955 #include <stdio.h>
12956 #include <stdlib.h>
12957 int
12958 main ()
12959 {
12960
12961 FILE *f = fopen ("conftest.val", "w");
12962 if (! f)
12963 exit (1);
12964 if (((long) (sizeof (long))) < 0)
12965 {
12966 long i = longval ();
12967 if (i != ((long) (sizeof (long))))
12968 exit (1);
12969 fprintf (f, "%ld\n", i);
12970 }
12971 else
12972 {
12973 unsigned long i = ulongval ();
12974 if (i != ((long) (sizeof (long))))
12975 exit (1);
12976 fprintf (f, "%lu\n", i);
12977 }
12978 exit (ferror (f) || fclose (f) != 0);
12979
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 rm -f conftest$ac_exeext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_sizeof_long=`cat conftest.val`
12996 else
12997 echo "$as_me: program exited with status $ac_status" >&5
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13000
13001 ( exit $ac_status )
13002 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13003 See \`config.log' for more details." >&5
13004 echo "$as_me: error: cannot compute sizeof (long), 77
13005 See \`config.log' for more details." >&2;}
13006 { (exit 1); exit 1; }; }
13007 fi
13008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13009 fi
13010 fi
13011 rm -f conftest.val
13012 else
13013 ac_cv_sizeof_long=0
13014 fi
13015 fi
13016 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13017 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13018 cat >>confdefs.h <<_ACEOF
13019 #define SIZEOF_LONG $ac_cv_sizeof_long
13020 _ACEOF
13021
13022 ;;
13023 esac
13024
13025 if test $acx_cv_header_stdint = stddef.h; then
13026 # Lacking a good header? Test size of everything and deduce all types.
13027 echo "$as_me:$LINENO: checking for int" >&5
13028 echo $ECHO_N "checking for int... $ECHO_C" >&6
13029 if test "${ac_cv_type_int+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 else
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h. */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h. */
13038 $ac_includes_default
13039 int
13040 main ()
13041 {
13042 if ((int *) 0)
13043 return 0;
13044 if (sizeof (int))
13045 return 0;
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_cv_type_int=yes
13073 else
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.$ac_ext >&5
13076
13077 ac_cv_type_int=no
13078 fi
13079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080 fi
13081 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13082 echo "${ECHO_T}$ac_cv_type_int" >&6
13083
13084 echo "$as_me:$LINENO: checking size of int" >&5
13085 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13086 if test "${ac_cv_sizeof_int+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 if test "$ac_cv_type_int" = yes; then
13090 # The cast to unsigned long works around a bug in the HP C Compiler
13091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093 # This bug is HP SR number 8606223364.
13094 if test "$cross_compiling" = yes; then
13095 # Depending upon the size, compute the lo and hi bounds.
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 $ac_includes_default
13103 int
13104 main ()
13105 {
13106 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13107 test_array [0] = 0
13108
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_lo=0 ac_mid=0
13136 while :; do
13137 cat >conftest.$ac_ext <<_ACEOF
13138 /* confdefs.h. */
13139 _ACEOF
13140 cat confdefs.h >>conftest.$ac_ext
13141 cat >>conftest.$ac_ext <<_ACEOF
13142 /* end confdefs.h. */
13143 $ac_includes_default
13144 int
13145 main ()
13146 {
13147 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13148 test_array [0] = 0
13149
13150 ;
13151 return 0;
13152 }
13153 _ACEOF
13154 rm -f conftest.$ac_objext
13155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
13163 { ac_try='test -z "$ac_c_werror_flag"
13164 || test ! -s conftest.err'
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); }; } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_hi=$ac_mid; break
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_lo=`expr $ac_mid + 1`
13182 if test $ac_lo -le $ac_mid; then
13183 ac_lo= ac_hi=
13184 break
13185 fi
13186 ac_mid=`expr 2 '*' $ac_mid + 1`
13187 fi
13188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189 done
13190 else
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 cat >conftest.$ac_ext <<_ACEOF
13195 /* confdefs.h. */
13196 _ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 $ac_includes_default
13201 int
13202 main ()
13203 {
13204 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13205 test_array [0] = 0
13206
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_c_werror_flag"
13221 || test ! -s conftest.err'
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 ac_hi=-1 ac_mid=-1
13234 while :; do
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 int
13243 main ()
13244 {
13245 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13246 test_array [0] = 0
13247
13248 ;
13249 return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest.$ac_objext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_lo=$ac_mid; break
13275 else
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279 ac_hi=`expr '(' $ac_mid ')' - 1`
13280 if test $ac_mid -le $ac_hi; then
13281 ac_lo= ac_hi=
13282 break
13283 fi
13284 ac_mid=`expr 2 '*' $ac_mid`
13285 fi
13286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 done
13288 else
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13291
13292 ac_lo= ac_hi=
13293 fi
13294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13295 fi
13296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13297 # Binary search between lo and hi bounds.
13298 while test "x$ac_lo" != "x$ac_hi"; do
13299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h. */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13306 $ac_includes_default
13307 int
13308 main ()
13309 {
13310 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13311 test_array [0] = 0
13312
13313 ;
13314 return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13319 (eval $ac_compile) 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
13326 { ac_try='test -z "$ac_c_werror_flag"
13327 || test ! -s conftest.err'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_hi=$ac_mid
13340 else
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 ac_lo=`expr '(' $ac_mid ')' + 1`
13345 fi
13346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13347 done
13348 case $ac_lo in
13349 ?*) ac_cv_sizeof_int=$ac_lo;;
13350 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13351 See \`config.log' for more details." >&5
13352 echo "$as_me: error: cannot compute sizeof (int), 77
13353 See \`config.log' for more details." >&2;}
13354 { (exit 1); exit 1; }; } ;;
13355 esac
13356 else
13357 if test "$cross_compiling" = yes; then
13358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13359 See \`config.log' for more details." >&5
13360 echo "$as_me: error: cannot run test program while cross compiling
13361 See \`config.log' for more details." >&2;}
13362 { (exit 1); exit 1; }; }
13363 else
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h. */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h. */
13370 $ac_includes_default
13371 long longval () { return (long) (sizeof (int)); }
13372 unsigned long ulongval () { return (long) (sizeof (int)); }
13373 #include <stdio.h>
13374 #include <stdlib.h>
13375 int
13376 main ()
13377 {
13378
13379 FILE *f = fopen ("conftest.val", "w");
13380 if (! f)
13381 exit (1);
13382 if (((long) (sizeof (int))) < 0)
13383 {
13384 long i = longval ();
13385 if (i != ((long) (sizeof (int))))
13386 exit (1);
13387 fprintf (f, "%ld\n", i);
13388 }
13389 else
13390 {
13391 unsigned long i = ulongval ();
13392 if (i != ((long) (sizeof (int))))
13393 exit (1);
13394 fprintf (f, "%lu\n", i);
13395 }
13396 exit (ferror (f) || fclose (f) != 0);
13397
13398 ;
13399 return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest$ac_exeext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13404 (eval $ac_link) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_sizeof_int=`cat conftest.val`
13414 else
13415 echo "$as_me: program exited with status $ac_status" >&5
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13418
13419 ( exit $ac_status )
13420 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13421 See \`config.log' for more details." >&5
13422 echo "$as_me: error: cannot compute sizeof (int), 77
13423 See \`config.log' for more details." >&2;}
13424 { (exit 1); exit 1; }; }
13425 fi
13426 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13427 fi
13428 fi
13429 rm -f conftest.val
13430 else
13431 ac_cv_sizeof_int=0
13432 fi
13433 fi
13434 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13435 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13436 cat >>confdefs.h <<_ACEOF
13437 #define SIZEOF_INT $ac_cv_sizeof_int
13438 _ACEOF
13439
13440
13441 echo "$as_me:$LINENO: checking for short" >&5
13442 echo $ECHO_N "checking for short... $ECHO_C" >&6
13443 if test "${ac_cv_type_short+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 else
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13453 int
13454 main ()
13455 {
13456 if ((short *) 0)
13457 return 0;
13458 if (sizeof (short))
13459 return 0;
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_cv_type_short=yes
13487 else
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13490
13491 ac_cv_type_short=no
13492 fi
13493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13494 fi
13495 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13496 echo "${ECHO_T}$ac_cv_type_short" >&6
13497
13498 echo "$as_me:$LINENO: checking size of short" >&5
13499 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13500 if test "${ac_cv_sizeof_short+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 else
13503 if test "$ac_cv_type_short" = yes; then
13504 # The cast to unsigned long works around a bug in the HP C Compiler
13505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13507 # This bug is HP SR number 8606223364.
13508 if test "$cross_compiling" = yes; then
13509 # Depending upon the size, compute the lo and hi bounds.
13510 cat >conftest.$ac_ext <<_ACEOF
13511 /* confdefs.h. */
13512 _ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 $ac_includes_default
13517 int
13518 main ()
13519 {
13520 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13521 test_array [0] = 0
13522
13523 ;
13524 return 0;
13525 }
13526 _ACEOF
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_lo=0 ac_mid=0
13550 while :; do
13551 cat >conftest.$ac_ext <<_ACEOF
13552 /* confdefs.h. */
13553 _ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13557 $ac_includes_default
13558 int
13559 main ()
13560 {
13561 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13562 test_array [0] = 0
13563
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
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); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_hi=$ac_mid; break
13591 else
13592 echo "$as_me: failed program was:" >&5
13593 sed 's/^/| /' conftest.$ac_ext >&5
13594
13595 ac_lo=`expr $ac_mid + 1`
13596 if test $ac_lo -le $ac_mid; then
13597 ac_lo= ac_hi=
13598 break
13599 fi
13600 ac_mid=`expr 2 '*' $ac_mid + 1`
13601 fi
13602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 done
13604 else
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h. */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13614 $ac_includes_default
13615 int
13616 main ()
13617 {
13618 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13619 test_array [0] = 0
13620
13621 ;
13622 return 0;
13623 }
13624 _ACEOF
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_hi=-1 ac_mid=-1
13648 while :; do
13649 cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h. */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13656 int
13657 main ()
13658 {
13659 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13660 test_array [0] = 0
13661
13662 ;
13663 return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_lo=$ac_mid; break
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_hi=`expr '(' $ac_mid ')' - 1`
13694 if test $ac_mid -le $ac_hi; then
13695 ac_lo= ac_hi=
13696 break
13697 fi
13698 ac_mid=`expr 2 '*' $ac_mid`
13699 fi
13700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13701 done
13702 else
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 ac_lo= ac_hi=
13707 fi
13708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709 fi
13710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711 # Binary search between lo and hi bounds.
13712 while test "x$ac_lo" != "x$ac_hi"; do
13713 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h. */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 $ac_includes_default
13721 int
13722 main ()
13723 {
13724 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13725 test_array [0] = 0
13726
13727 ;
13728 return 0;
13729 }
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=$ac_mid
13754 else
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 ac_lo=`expr '(' $ac_mid ')' + 1`
13759 fi
13760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761 done
13762 case $ac_lo in
13763 ?*) ac_cv_sizeof_short=$ac_lo;;
13764 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13765 See \`config.log' for more details." >&5
13766 echo "$as_me: error: cannot compute sizeof (short), 77
13767 See \`config.log' for more details." >&2;}
13768 { (exit 1); exit 1; }; } ;;
13769 esac
13770 else
13771 if test "$cross_compiling" = yes; then
13772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13773 See \`config.log' for more details." >&5
13774 echo "$as_me: error: cannot run test program while cross compiling
13775 See \`config.log' for more details." >&2;}
13776 { (exit 1); exit 1; }; }
13777 else
13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13785 long longval () { return (long) (sizeof (short)); }
13786 unsigned long ulongval () { return (long) (sizeof (short)); }
13787 #include <stdio.h>
13788 #include <stdlib.h>
13789 int
13790 main ()
13791 {
13792
13793 FILE *f = fopen ("conftest.val", "w");
13794 if (! f)
13795 exit (1);
13796 if (((long) (sizeof (short))) < 0)
13797 {
13798 long i = longval ();
13799 if (i != ((long) (sizeof (short))))
13800 exit (1);
13801 fprintf (f, "%ld\n", i);
13802 }
13803 else
13804 {
13805 unsigned long i = ulongval ();
13806 if (i != ((long) (sizeof (short))))
13807 exit (1);
13808 fprintf (f, "%lu\n", i);
13809 }
13810 exit (ferror (f) || fclose (f) != 0);
13811
13812 ;
13813 return 0;
13814 }
13815 _ACEOF
13816 rm -f conftest$ac_exeext
13817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13818 (eval $ac_link) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_sizeof_short=`cat conftest.val`
13828 else
13829 echo "$as_me: program exited with status $ac_status" >&5
13830 echo "$as_me: failed program was:" >&5
13831 sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ( exit $ac_status )
13834 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13835 See \`config.log' for more details." >&5
13836 echo "$as_me: error: cannot compute sizeof (short), 77
13837 See \`config.log' for more details." >&2;}
13838 { (exit 1); exit 1; }; }
13839 fi
13840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13841 fi
13842 fi
13843 rm -f conftest.val
13844 else
13845 ac_cv_sizeof_short=0
13846 fi
13847 fi
13848 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13849 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13850 cat >>confdefs.h <<_ACEOF
13851 #define SIZEOF_SHORT $ac_cv_sizeof_short
13852 _ACEOF
13853
13854
13855 echo "$as_me:$LINENO: checking for char" >&5
13856 echo $ECHO_N "checking for char... $ECHO_C" >&6
13857 if test "${ac_cv_type_char+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 $ac_includes_default
13867 int
13868 main ()
13869 {
13870 if ((char *) 0)
13871 return 0;
13872 if (sizeof (char))
13873 return 0;
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_cv_type_char=yes
13901 else
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13904
13905 ac_cv_type_char=no
13906 fi
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 fi
13909 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13910 echo "${ECHO_T}$ac_cv_type_char" >&6
13911
13912 echo "$as_me:$LINENO: checking size of char" >&5
13913 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13914 if test "${ac_cv_sizeof_char+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 else
13917 if test "$ac_cv_type_char" = yes; then
13918 # The cast to unsigned long works around a bug in the HP C Compiler
13919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13921 # This bug is HP SR number 8606223364.
13922 if test "$cross_compiling" = yes; then
13923 # Depending upon the size, compute the lo and hi bounds.
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 int
13932 main ()
13933 {
13934 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13935 test_array [0] = 0
13936
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_lo=0 ac_mid=0
13964 while :; do
13965 cat >conftest.$ac_ext <<_ACEOF
13966 /* confdefs.h. */
13967 _ACEOF
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 $ac_includes_default
13972 int
13973 main ()
13974 {
13975 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13976 test_array [0] = 0
13977
13978 ;
13979 return 0;
13980 }
13981 _ACEOF
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
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); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_hi=$ac_mid; break
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_lo=`expr $ac_mid + 1`
14010 if test $ac_lo -le $ac_mid; then
14011 ac_lo= ac_hi=
14012 break
14013 fi
14014 ac_mid=`expr 2 '*' $ac_mid + 1`
14015 fi
14016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017 done
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022 cat >conftest.$ac_ext <<_ACEOF
14023 /* confdefs.h. */
14024 _ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14029 int
14030 main ()
14031 {
14032 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14033 test_array [0] = 0
14034
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_hi=-1 ac_mid=-1
14062 while :; do
14063 cat >conftest.$ac_ext <<_ACEOF
14064 /* confdefs.h. */
14065 _ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 $ac_includes_default
14070 int
14071 main ()
14072 {
14073 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14074 test_array [0] = 0
14075
14076 ;
14077 return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -z "$ac_c_werror_flag"
14090 || test ! -s conftest.err'
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest.$ac_objext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_lo=$ac_mid; break
14103 else
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14106
14107 ac_hi=`expr '(' $ac_mid ')' - 1`
14108 if test $ac_mid -le $ac_hi; then
14109 ac_lo= ac_hi=
14110 break
14111 fi
14112 ac_mid=`expr 2 '*' $ac_mid`
14113 fi
14114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14115 done
14116 else
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14119
14120 ac_lo= ac_hi=
14121 fi
14122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14123 fi
14124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125 # Binary search between lo and hi bounds.
14126 while test "x$ac_lo" != "x$ac_hi"; do
14127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h. */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h. */
14134 $ac_includes_default
14135 int
14136 main ()
14137 {
14138 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14139 test_array [0] = 0
14140
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 rm -f conftest.$ac_objext
14146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147 (eval $ac_compile) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_hi=$ac_mid
14168 else
14169 echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172 ac_lo=`expr '(' $ac_mid ')' + 1`
14173 fi
14174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14175 done
14176 case $ac_lo in
14177 ?*) ac_cv_sizeof_char=$ac_lo;;
14178 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14179 See \`config.log' for more details." >&5
14180 echo "$as_me: error: cannot compute sizeof (char), 77
14181 See \`config.log' for more details." >&2;}
14182 { (exit 1); exit 1; }; } ;;
14183 esac
14184 else
14185 if test "$cross_compiling" = yes; then
14186 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14187 See \`config.log' for more details." >&5
14188 echo "$as_me: error: cannot run test program while cross compiling
14189 See \`config.log' for more details." >&2;}
14190 { (exit 1); exit 1; }; }
14191 else
14192 cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h. */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h. */
14198 $ac_includes_default
14199 long longval () { return (long) (sizeof (char)); }
14200 unsigned long ulongval () { return (long) (sizeof (char)); }
14201 #include <stdio.h>
14202 #include <stdlib.h>
14203 int
14204 main ()
14205 {
14206
14207 FILE *f = fopen ("conftest.val", "w");
14208 if (! f)
14209 exit (1);
14210 if (((long) (sizeof (char))) < 0)
14211 {
14212 long i = longval ();
14213 if (i != ((long) (sizeof (char))))
14214 exit (1);
14215 fprintf (f, "%ld\n", i);
14216 }
14217 else
14218 {
14219 unsigned long i = ulongval ();
14220 if (i != ((long) (sizeof (char))))
14221 exit (1);
14222 fprintf (f, "%lu\n", i);
14223 }
14224 exit (ferror (f) || fclose (f) != 0);
14225
14226 ;
14227 return 0;
14228 }
14229 _ACEOF
14230 rm -f conftest$ac_exeext
14231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_sizeof_char=`cat conftest.val`
14242 else
14243 echo "$as_me: program exited with status $ac_status" >&5
14244 echo "$as_me: failed program was:" >&5
14245 sed 's/^/| /' conftest.$ac_ext >&5
14246
14247 ( exit $ac_status )
14248 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14249 See \`config.log' for more details." >&5
14250 echo "$as_me: error: cannot compute sizeof (char), 77
14251 See \`config.log' for more details." >&2;}
14252 { (exit 1); exit 1; }; }
14253 fi
14254 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14255 fi
14256 fi
14257 rm -f conftest.val
14258 else
14259 ac_cv_sizeof_char=0
14260 fi
14261 fi
14262 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14263 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14264 cat >>confdefs.h <<_ACEOF
14265 #define SIZEOF_CHAR $ac_cv_sizeof_char
14266 _ACEOF
14267
14268
14269
14270 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14271 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
14272 case "$ac_cv_sizeof_char" in
14273 1) acx_cv_type_int8_t=char ;;
14274 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14275 echo "$as_me: error: no 8-bit type" >&2;}
14276 { (exit please report a bug); exit please report a bug; }; }
14277 esac
14278 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14279 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
14280
14281 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14282 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
14283 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14284 2:*) acx_cv_type_int16_t=int ;;
14285 *:2) acx_cv_type_int16_t=short ;;
14286 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14287 echo "$as_me: error: no 16-bit type" >&2;}
14288 { (exit please report a bug); exit please report a bug; }; }
14289 esac
14290 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14291 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
14292
14293 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14294 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
14295 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14296 4:*) acx_cv_type_int32_t=int ;;
14297 *:4) acx_cv_type_int32_t=long ;;
14298 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14299 echo "$as_me: error: no 32-bit type" >&2;}
14300 { (exit please report a bug); exit please report a bug; }; }
14301 esac
14302 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14303 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
14304 fi
14305
14306 # These tests are here to make the output prettier
14307
14308 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14309 case "$ac_cv_sizeof_long" in
14310 8) acx_cv_type_int64_t=long ;;
14311 esac
14312 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14313 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14314 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14315 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
14316 fi
14317
14318 # Now we can use the above types
14319
14320 if test "$ac_cv_type_uintptr_t" != yes; then
14321 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14322 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
14323 case $ac_cv_sizeof_void_p in
14324 2) acx_cv_type_intptr_t=int16_t ;;
14325 4) acx_cv_type_intptr_t=int32_t ;;
14326 8) acx_cv_type_intptr_t=int64_t ;;
14327 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14328 echo "$as_me: error: no equivalent for intptr_t" >&2;}
14329 { (exit please report a bug); exit please report a bug; }; }
14330 esac
14331 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14332 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
14333 fi
14334
14335 # ----------------- done all checks, emit header -------------
14336 ac_config_commands="$ac_config_commands gdb_stdint.h"
14337
14338
14339
14340
14341 # ------------------------- #
14342 # Checks for declarations. #
14343 # ------------------------- #
14344
14345 echo "$as_me:$LINENO: checking whether free is declared" >&5
14346 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
14347 if test "${ac_cv_have_decl_free+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 else
14350 cat >conftest.$ac_ext <<_ACEOF
14351 /* confdefs.h. */
14352 _ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 $ac_includes_default
14357 int
14358 main ()
14359 {
14360 #ifndef free
14361 char *p = (char *) free;
14362 #endif
14363
14364 ;
14365 return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext
14369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
14377 { ac_try='test -z "$ac_c_werror_flag"
14378 || test ! -s conftest.err'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_have_decl_free=yes
14391 else
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14394
14395 ac_cv_have_decl_free=no
14396 fi
14397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14400 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
14401 if test $ac_cv_have_decl_free = yes; then
14402
14403 cat >>confdefs.h <<_ACEOF
14404 #define HAVE_DECL_FREE 1
14405 _ACEOF
14406
14407
14408 else
14409 cat >>confdefs.h <<_ACEOF
14410 #define HAVE_DECL_FREE 0
14411 _ACEOF
14412
14413
14414 fi
14415 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14416 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
14417 if test "${ac_cv_have_decl_malloc+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420 cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h. */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 int
14428 main ()
14429 {
14430 #ifndef malloc
14431 char *p = (char *) malloc;
14432 #endif
14433
14434 ;
14435 return 0;
14436 }
14437 _ACEOF
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_have_decl_malloc=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 ac_cv_have_decl_malloc=no
14466 fi
14467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468 fi
14469 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14470 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
14471 if test $ac_cv_have_decl_malloc = yes; then
14472
14473 cat >>confdefs.h <<_ACEOF
14474 #define HAVE_DECL_MALLOC 1
14475 _ACEOF
14476
14477
14478 else
14479 cat >>confdefs.h <<_ACEOF
14480 #define HAVE_DECL_MALLOC 0
14481 _ACEOF
14482
14483
14484 fi
14485 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14486 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
14487 if test "${ac_cv_have_decl_realloc+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 $ac_includes_default
14497 int
14498 main ()
14499 {
14500 #ifndef realloc
14501 char *p = (char *) realloc;
14502 #endif
14503
14504 ;
14505 return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_have_decl_realloc=yes
14531 else
14532 echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535 ac_cv_have_decl_realloc=no
14536 fi
14537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538 fi
14539 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14540 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
14541 if test $ac_cv_have_decl_realloc = yes; then
14542
14543 cat >>confdefs.h <<_ACEOF
14544 #define HAVE_DECL_REALLOC 1
14545 _ACEOF
14546
14547
14548 else
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_DECL_REALLOC 0
14551 _ACEOF
14552
14553
14554 fi
14555
14556
14557 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14558 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14559 if test "${ac_cv_have_decl_strerror+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 cat >conftest.$ac_ext <<_ACEOF
14563 /* confdefs.h. */
14564 _ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 $ac_includes_default
14569 int
14570 main ()
14571 {
14572 #ifndef strerror
14573 char *p = (char *) strerror;
14574 #endif
14575
14576 ;
14577 return 0;
14578 }
14579 _ACEOF
14580 rm -f conftest.$ac_objext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
14589 { ac_try='test -z "$ac_c_werror_flag"
14590 || test ! -s conftest.err'
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_have_decl_strerror=yes
14603 else
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14606
14607 ac_cv_have_decl_strerror=no
14608 fi
14609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610 fi
14611 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14612 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14613 if test $ac_cv_have_decl_strerror = yes; then
14614
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_DECL_STRERROR 1
14617 _ACEOF
14618
14619
14620 else
14621 cat >>confdefs.h <<_ACEOF
14622 #define HAVE_DECL_STRERROR 0
14623 _ACEOF
14624
14625
14626 fi
14627 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14628 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14629 if test "${ac_cv_have_decl_strstr+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 else
14632 cat >conftest.$ac_ext <<_ACEOF
14633 /* confdefs.h. */
14634 _ACEOF
14635 cat confdefs.h >>conftest.$ac_ext
14636 cat >>conftest.$ac_ext <<_ACEOF
14637 /* end confdefs.h. */
14638 $ac_includes_default
14639 int
14640 main ()
14641 {
14642 #ifndef strstr
14643 char *p = (char *) strstr;
14644 #endif
14645
14646 ;
14647 return 0;
14648 }
14649 _ACEOF
14650 rm -f conftest.$ac_objext
14651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -z "$ac_c_werror_flag"
14660 || test ! -s conftest.err'
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_have_decl_strstr=yes
14673 else
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677 ac_cv_have_decl_strstr=no
14678 fi
14679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14680 fi
14681 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14682 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14683 if test $ac_cv_have_decl_strstr = yes; then
14684
14685 cat >>confdefs.h <<_ACEOF
14686 #define HAVE_DECL_STRSTR 1
14687 _ACEOF
14688
14689
14690 else
14691 cat >>confdefs.h <<_ACEOF
14692 #define HAVE_DECL_STRSTR 0
14693 _ACEOF
14694
14695
14696 fi
14697
14698
14699 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14700 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14701 if test "${ac_cv_have_decl_getopt+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h. */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 $ac_includes_default
14711 int
14712 main ()
14713 {
14714 #ifndef getopt
14715 char *p = (char *) getopt;
14716 #endif
14717
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext
14723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
14731 { ac_try='test -z "$ac_c_werror_flag"
14732 || test ! -s conftest.err'
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_have_decl_getopt=yes
14745 else
14746 echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 ac_cv_have_decl_getopt=no
14750 fi
14751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14754 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14755 if test $ac_cv_have_decl_getopt = yes; then
14756
14757 cat >>confdefs.h <<_ACEOF
14758 #define HAVE_DECL_GETOPT 1
14759 _ACEOF
14760
14761
14762 else
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_DECL_GETOPT 0
14765 _ACEOF
14766
14767
14768 fi
14769 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14770 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14771 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 else
14774 cat >conftest.$ac_ext <<_ACEOF
14775 /* confdefs.h. */
14776 _ACEOF
14777 cat confdefs.h >>conftest.$ac_ext
14778 cat >>conftest.$ac_ext <<_ACEOF
14779 /* end confdefs.h. */
14780 $ac_includes_default
14781 int
14782 main ()
14783 {
14784 #ifndef snprintf
14785 char *p = (char *) snprintf;
14786 #endif
14787
14788 ;
14789 return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag"
14802 || test ! -s conftest.err'
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_cv_have_decl_snprintf=yes
14815 else
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_cv_have_decl_snprintf=no
14820 fi
14821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822 fi
14823 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14824 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14825 if test $ac_cv_have_decl_snprintf = yes; then
14826
14827 cat >>confdefs.h <<_ACEOF
14828 #define HAVE_DECL_SNPRINTF 1
14829 _ACEOF
14830
14831
14832 else
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_DECL_SNPRINTF 0
14835 _ACEOF
14836
14837
14838 fi
14839 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14840 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14841 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843 else
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 $ac_includes_default
14851 int
14852 main ()
14853 {
14854 #ifndef vsnprintf
14855 char *p = (char *) vsnprintf;
14856 #endif
14857
14858 ;
14859 return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -z "$ac_c_werror_flag"
14872 || test ! -s conftest.err'
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_have_decl_vsnprintf=yes
14885 else
14886 echo "$as_me: failed program was:" >&5
14887 sed 's/^/| /' conftest.$ac_ext >&5
14888
14889 ac_cv_have_decl_vsnprintf=no
14890 fi
14891 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14894 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14895 if test $ac_cv_have_decl_vsnprintf = yes; then
14896
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_DECL_VSNPRINTF 1
14899 _ACEOF
14900
14901
14902 else
14903 cat >>confdefs.h <<_ACEOF
14904 #define HAVE_DECL_VSNPRINTF 0
14905 _ACEOF
14906
14907
14908 fi
14909
14910
14911
14912 # ----------------------- #
14913 # Checks for structures. #
14914 # ----------------------- #
14915
14916 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14917 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14918 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h. */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14928 int
14929 main ()
14930 {
14931 static struct stat ac_aggr;
14932 if (ac_aggr.st_blocks)
14933 return 0;
14934 ;
14935 return 0;
14936 }
14937 _ACEOF
14938 rm -f conftest.$ac_objext
14939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_member_struct_stat_st_blocks=yes
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14964
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 $ac_includes_default
14972 int
14973 main ()
14974 {
14975 static struct stat ac_aggr;
14976 if (sizeof ac_aggr.st_blocks)
14977 return 0;
14978 ;
14979 return 0;
14980 }
14981 _ACEOF
14982 rm -f conftest.$ac_objext
14983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try='test -z "$ac_c_werror_flag"
14992 || test ! -s conftest.err'
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_member_struct_stat_st_blocks=yes
15005 else
15006 echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15008
15009 ac_cv_member_struct_stat_st_blocks=no
15010 fi
15011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15012 fi
15013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
15017 if test $ac_cv_member_struct_stat_st_blocks = yes; then
15018
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
15021 _ACEOF
15022
15023
15024 fi
15025
15026 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15027 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
15028 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031 cat >conftest.$ac_ext <<_ACEOF
15032 /* confdefs.h. */
15033 _ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15037 $ac_includes_default
15038 int
15039 main ()
15040 {
15041 static struct stat ac_aggr;
15042 if (ac_aggr.st_blksize)
15043 return 0;
15044 ;
15045 return 0;
15046 }
15047 _ACEOF
15048 rm -f conftest.$ac_objext
15049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_member_struct_stat_st_blksize=yes
15071 else
15072 echo "$as_me: failed program was:" >&5
15073 sed 's/^/| /' conftest.$ac_ext >&5
15074
15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 $ac_includes_default
15082 int
15083 main ()
15084 {
15085 static struct stat ac_aggr;
15086 if (sizeof ac_aggr.st_blksize)
15087 return 0;
15088 ;
15089 return 0;
15090 }
15091 _ACEOF
15092 rm -f conftest.$ac_objext
15093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_member_struct_stat_st_blksize=yes
15115 else
15116 echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.$ac_ext >&5
15118
15119 ac_cv_member_struct_stat_st_blksize=no
15120 fi
15121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122 fi
15123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15124 fi
15125 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15126 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
15127 if test $ac_cv_member_struct_stat_st_blksize = yes; then
15128
15129 cat >>confdefs.h <<_ACEOF
15130 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15131 _ACEOF
15132
15133
15134 fi
15135
15136
15137 # ------------------ #
15138 # Checks for types. #
15139 # ------------------ #
15140
15141 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15142 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15143 if test "${ac_cv_type_signal+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145 else
15146 cat >conftest.$ac_ext <<_ACEOF
15147 /* confdefs.h. */
15148 _ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 #include <sys/types.h>
15153 #include <signal.h>
15154 #ifdef signal
15155 # undef signal
15156 #endif
15157 #ifdef __cplusplus
15158 extern "C" void (*signal (int, void (*)(int)))(int);
15159 #else
15160 void (*signal ()) ();
15161 #endif
15162
15163 int
15164 main ()
15165 {
15166 int i;
15167 ;
15168 return 0;
15169 }
15170 _ACEOF
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_type_signal=void
15194 else
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198 ac_cv_type_signal=int
15199 fi
15200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201 fi
15202 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15203 echo "${ECHO_T}$ac_cv_type_signal" >&6
15204
15205 cat >>confdefs.h <<_ACEOF
15206 #define RETSIGTYPE $ac_cv_type_signal
15207 _ACEOF
15208
15209
15210 echo "$as_me:$LINENO: checking for socklen_t" >&5
15211 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
15212 if test "${ac_cv_type_socklen_t+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215 cat >conftest.$ac_ext <<_ACEOF
15216 /* confdefs.h. */
15217 _ACEOF
15218 cat confdefs.h >>conftest.$ac_ext
15219 cat >>conftest.$ac_ext <<_ACEOF
15220 /* end confdefs.h. */
15221 #include <sys/types.h>
15222 #include <sys/socket.h>
15223
15224
15225 int
15226 main ()
15227 {
15228 if ((socklen_t *) 0)
15229 return 0;
15230 if (sizeof (socklen_t))
15231 return 0;
15232 ;
15233 return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_type_socklen_t=yes
15259 else
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ac_cv_type_socklen_t=no
15264 fi
15265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266 fi
15267 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15268 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
15269 if test $ac_cv_type_socklen_t = yes; then
15270
15271 cat >>confdefs.h <<_ACEOF
15272 #define HAVE_SOCKLEN_T 1
15273 _ACEOF
15274
15275
15276 fi
15277
15278 echo "$as_me:$LINENO: checking for uintptr_t" >&5
15279 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
15280 if test "${ac_cv_type_uintptr_t+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283 cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h. */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 #include <stdint.h>
15290
15291 int
15292 main ()
15293 {
15294 if ((uintptr_t *) 0)
15295 return 0;
15296 if (sizeof (uintptr_t))
15297 return 0;
15298 ;
15299 return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304 (eval $ac_compile) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_type_uintptr_t=yes
15325 else
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15328
15329 ac_cv_type_uintptr_t=no
15330 fi
15331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332 fi
15333 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15334 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
15335 if test $ac_cv_type_uintptr_t = yes; then
15336
15337 cat >>confdefs.h <<_ACEOF
15338 #define HAVE_UINTPTR_T 1
15339 _ACEOF
15340
15341
15342 fi
15343
15344
15345 # ------------------------------------- #
15346 # Checks for compiler characteristics. #
15347 # ------------------------------------- #
15348
15349 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15350 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15351 if test "${ac_cv_c_const+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 else
15354 cat >conftest.$ac_ext <<_ACEOF
15355 /* confdefs.h. */
15356 _ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360
15361 int
15362 main ()
15363 {
15364 /* FIXME: Include the comments suggested by Paul. */
15365 #ifndef __cplusplus
15366 /* Ultrix mips cc rejects this. */
15367 typedef int charset[2];
15368 const charset x;
15369 /* SunOS 4.1.1 cc rejects this. */
15370 char const *const *ccp;
15371 char **p;
15372 /* NEC SVR4.0.2 mips cc rejects this. */
15373 struct point {int x, y;};
15374 static struct point const zero = {0,0};
15375 /* AIX XL C 1.02.0.0 rejects this.
15376 It does not let you subtract one const X* pointer from another in
15377 an arm of an if-expression whose if-part is not a constant
15378 expression */
15379 const char *g = "string";
15380 ccp = &g + (g ? g-g : 0);
15381 /* HPUX 7.0 cc rejects these. */
15382 ++ccp;
15383 p = (char**) ccp;
15384 ccp = (char const *const *) p;
15385 { /* SCO 3.2v4 cc rejects this. */
15386 char *t;
15387 char const *s = 0 ? (char *) 0 : (char const *) 0;
15388
15389 *t++ = 0;
15390 }
15391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15392 int x[] = {25, 17};
15393 const int *foo = &x[0];
15394 ++foo;
15395 }
15396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15397 typedef const int *iptr;
15398 iptr p = 0;
15399 ++p;
15400 }
15401 { /* AIX XL C 1.02.0.0 rejects this saying
15402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15403 struct s { int j; const int *ap[3]; };
15404 struct s *b; b->j = 5;
15405 }
15406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15407 const int foo = 10;
15408 }
15409 #endif
15410
15411 ;
15412 return 0;
15413 }
15414 _ACEOF
15415 rm -f conftest.$ac_objext
15416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_c_const=yes
15438 else
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_cv_c_const=no
15443 fi
15444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445 fi
15446 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15447 echo "${ECHO_T}$ac_cv_c_const" >&6
15448 if test $ac_cv_c_const = no; then
15449
15450 cat >>confdefs.h <<\_ACEOF
15451 #define const
15452 _ACEOF
15453
15454 fi
15455
15456 echo "$as_me:$LINENO: checking for inline" >&5
15457 echo $ECHO_N "checking for inline... $ECHO_C" >&6
15458 if test "${ac_cv_c_inline+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 else
15461 ac_cv_c_inline=no
15462 for ac_kw in inline __inline__ __inline; do
15463 cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h. */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #ifndef __cplusplus
15470 typedef int foo_t;
15471 static $ac_kw foo_t static_foo () {return 0; }
15472 $ac_kw foo_t foo () {return 0; }
15473 #endif
15474
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478 (eval $ac_compile) 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag"
15486 || test ! -s conftest.err'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_cv_c_inline=$ac_kw; break
15499 else
15500 echo "$as_me: failed program was:" >&5
15501 sed 's/^/| /' conftest.$ac_ext >&5
15502
15503 fi
15504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15505 done
15506
15507 fi
15508 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15509 echo "${ECHO_T}$ac_cv_c_inline" >&6
15510
15511
15512 case $ac_cv_c_inline in
15513 inline | yes) ;;
15514 *)
15515 case $ac_cv_c_inline in
15516 no) ac_val=;;
15517 *) ac_val=$ac_cv_c_inline;;
15518 esac
15519 cat >>confdefs.h <<_ACEOF
15520 #ifndef __cplusplus
15521 #define inline $ac_val
15522 #endif
15523 _ACEOF
15524 ;;
15525 esac
15526
15527
15528 # ------------------------------ #
15529 # Checks for library functions. #
15530 # ------------------------------ #
15531
15532 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15533 # for constant arguments. Useless!
15534 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15535 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15536 if test "${ac_cv_working_alloca_h+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538 else
15539 cat >conftest.$ac_ext <<_ACEOF
15540 /* confdefs.h. */
15541 _ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 #include <alloca.h>
15546 int
15547 main ()
15548 {
15549 char *p = (char *) alloca (2 * sizeof (int));
15550 ;
15551 return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
15563 { ac_try='test -z "$ac_c_werror_flag"
15564 || test ! -s conftest.err'
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest$ac_exeext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15576 ac_cv_working_alloca_h=yes
15577 else
15578 echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581 ac_cv_working_alloca_h=no
15582 fi
15583 rm -f conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585 fi
15586 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15587 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15588 if test $ac_cv_working_alloca_h = yes; then
15589
15590 cat >>confdefs.h <<\_ACEOF
15591 #define HAVE_ALLOCA_H 1
15592 _ACEOF
15593
15594 fi
15595
15596 echo "$as_me:$LINENO: checking for alloca" >&5
15597 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15598 if test "${ac_cv_func_alloca_works+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 else
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h. */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15607 #ifdef __GNUC__
15608 # define alloca __builtin_alloca
15609 #else
15610 # ifdef _MSC_VER
15611 # include <malloc.h>
15612 # define alloca _alloca
15613 # else
15614 # if HAVE_ALLOCA_H
15615 # include <alloca.h>
15616 # else
15617 # ifdef _AIX
15618 #pragma alloca
15619 # else
15620 # ifndef alloca /* predefined by HP cc +Olibcalls */
15621 char *alloca ();
15622 # endif
15623 # endif
15624 # endif
15625 # endif
15626 #endif
15627
15628 int
15629 main ()
15630 {
15631 char *p = (char *) alloca (1);
15632 ;
15633 return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>conftest.er1
15639 ac_status=$?
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
15652 { ac_try='test -s conftest$ac_exeext'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
15658 ac_cv_func_alloca_works=yes
15659 else
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 ac_cv_func_alloca_works=no
15664 fi
15665 rm -f conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
15667 fi
15668 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15669 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15670
15671 if test $ac_cv_func_alloca_works = yes; then
15672
15673 cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_ALLOCA 1
15675 _ACEOF
15676
15677 else
15678 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15679 # that cause trouble. Some versions do not even contain alloca or
15680 # contain a buggy version. If you still want to use their alloca,
15681 # use ar to extract alloca.o from them instead of compiling alloca.c.
15682
15683 ALLOCA=alloca.$ac_objext
15684
15685 cat >>confdefs.h <<\_ACEOF
15686 #define C_ALLOCA 1
15687 _ACEOF
15688
15689
15690 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15691 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15692 if test "${ac_cv_os_cray+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h. */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h. */
15701 #if defined(CRAY) && ! defined(CRAY2)
15702 webecray
15703 #else
15704 wenotbecray
15705 #endif
15706
15707 _ACEOF
15708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15709 $EGREP "webecray" >/dev/null 2>&1; then
15710 ac_cv_os_cray=yes
15711 else
15712 ac_cv_os_cray=no
15713 fi
15714 rm -f conftest*
15715
15716 fi
15717 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15718 echo "${ECHO_T}$ac_cv_os_cray" >&6
15719 if test $ac_cv_os_cray = yes; then
15720 for ac_func in _getb67 GETB67 getb67; do
15721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15722 echo "$as_me:$LINENO: checking for $ac_func" >&5
15723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15724 if eval "test \"\${$as_ac_var+set}\" = set"; then
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h. */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15735 #define $ac_func innocuous_$ac_func
15736
15737 /* System header to define __stub macros and hopefully few prototypes,
15738 which can conflict with char $ac_func (); below.
15739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15740 <limits.h> exists even on freestanding compilers. */
15741
15742 #ifdef __STDC__
15743 # include <limits.h>
15744 #else
15745 # include <assert.h>
15746 #endif
15747
15748 #undef $ac_func
15749
15750 /* Override any gcc2 internal prototype to avoid an error. */
15751 #ifdef __cplusplus
15752 extern "C"
15753 {
15754 #endif
15755 /* We use char because int might match the return type of a gcc2
15756 builtin and then its argument prototype would still apply. */
15757 char $ac_func ();
15758 /* The GNU C library defines this for functions which it implements
15759 to always fail with ENOSYS. Some functions are actually named
15760 something starting with __ and the normal name is an alias. */
15761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15762 choke me
15763 #else
15764 char (*f) () = $ac_func;
15765 #endif
15766 #ifdef __cplusplus
15767 }
15768 #endif
15769
15770 int
15771 main ()
15772 {
15773 return f != $ac_func;
15774 ;
15775 return 0;
15776 }
15777 _ACEOF
15778 rm -f conftest.$ac_objext conftest$ac_exeext
15779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780 (eval $ac_link) 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag"
15788 || test ! -s conftest.err'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 eval "$as_ac_var=yes"
15801 else
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805 eval "$as_ac_var=no"
15806 fi
15807 rm -f conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15809 fi
15810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15811 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15812 if test `eval echo '${'$as_ac_var'}'` = yes; then
15813
15814 cat >>confdefs.h <<_ACEOF
15815 #define CRAY_STACKSEG_END $ac_func
15816 _ACEOF
15817
15818 break
15819 fi
15820
15821 done
15822 fi
15823
15824 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15825 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15826 if test "${ac_cv_c_stack_direction+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 else
15829 if test "$cross_compiling" = yes; then
15830 ac_cv_c_stack_direction=0
15831 else
15832 cat >conftest.$ac_ext <<_ACEOF
15833 /* confdefs.h. */
15834 _ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 int
15839 find_stack_direction ()
15840 {
15841 static char *addr = 0;
15842 auto char dummy;
15843 if (addr == 0)
15844 {
15845 addr = &dummy;
15846 return find_stack_direction ();
15847 }
15848 else
15849 return (&dummy > addr) ? 1 : -1;
15850 }
15851
15852 int
15853 main ()
15854 {
15855 exit (find_stack_direction () < 0);
15856 }
15857 _ACEOF
15858 rm -f conftest$ac_exeext
15859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15860 (eval $ac_link) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_cv_c_stack_direction=1
15870 else
15871 echo "$as_me: program exited with status $ac_status" >&5
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15874
15875 ( exit $ac_status )
15876 ac_cv_c_stack_direction=-1
15877 fi
15878 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15879 fi
15880 fi
15881 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15882 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15883
15884 cat >>confdefs.h <<_ACEOF
15885 #define STACK_DIRECTION $ac_cv_c_stack_direction
15886 _ACEOF
15887
15888
15889 fi
15890
15891
15892
15893 for ac_header in stdlib.h unistd.h
15894 do
15895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15897 echo "$as_me:$LINENO: checking for $ac_header" >&5
15898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 fi
15902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15904 else
15905 # Is the header compilable?
15906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15908 cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h. */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h. */
15914 $ac_includes_default
15915 #include <$ac_header>
15916 _ACEOF
15917 rm -f conftest.$ac_objext
15918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15919 (eval $ac_compile) 2>conftest.er1
15920 ac_status=$?
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -z "$ac_c_werror_flag"
15927 || test ! -s conftest.err'
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_header_compiler=yes
15940 else
15941 echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 ac_header_compiler=no
15945 fi
15946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15947 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948 echo "${ECHO_T}$ac_header_compiler" >&6
15949
15950 # Is the header present?
15951 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15953 cat >conftest.$ac_ext <<_ACEOF
15954 /* confdefs.h. */
15955 _ACEOF
15956 cat confdefs.h >>conftest.$ac_ext
15957 cat >>conftest.$ac_ext <<_ACEOF
15958 /* end confdefs.h. */
15959 #include <$ac_header>
15960 _ACEOF
15961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } >/dev/null; then
15969 if test -s conftest.err; then
15970 ac_cpp_err=$ac_c_preproc_warn_flag
15971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15972 else
15973 ac_cpp_err=
15974 fi
15975 else
15976 ac_cpp_err=yes
15977 fi
15978 if test -z "$ac_cpp_err"; then
15979 ac_header_preproc=yes
15980 else
15981 echo "$as_me: failed program was:" >&5
15982 sed 's/^/| /' conftest.$ac_ext >&5
15983
15984 ac_header_preproc=no
15985 fi
15986 rm -f conftest.err conftest.$ac_ext
15987 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15988 echo "${ECHO_T}$ac_header_preproc" >&6
15989
15990 # So? What about this header?
15991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15992 yes:no: )
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15997 ac_header_preproc=yes
15998 ;;
15999 no:yes:* )
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16012 (
16013 cat <<\_ASBOX
16014 ## ------------------------------------------ ##
16015 ## Report this to the AC_PACKAGE_NAME lists. ##
16016 ## ------------------------------------------ ##
16017 _ASBOX
16018 ) |
16019 sed "s/^/$as_me: WARNING: /" >&2
16020 ;;
16021 esac
16022 echo "$as_me:$LINENO: checking for $ac_header" >&5
16023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16025 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 else
16027 eval "$as_ac_Header=\$ac_header_preproc"
16028 fi
16029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16031
16032 fi
16033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16034 cat >>confdefs.h <<_ACEOF
16035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16036 _ACEOF
16037
16038 fi
16039
16040 done
16041
16042
16043 for ac_func in getpagesize
16044 do
16045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16046 echo "$as_me:$LINENO: checking for $ac_func" >&5
16047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16048 if eval "test \"\${$as_ac_var+set}\" = set"; then
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 else
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h. */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16059 #define $ac_func innocuous_$ac_func
16060
16061 /* System header to define __stub macros and hopefully few prototypes,
16062 which can conflict with char $ac_func (); below.
16063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16064 <limits.h> exists even on freestanding compilers. */
16065
16066 #ifdef __STDC__
16067 # include <limits.h>
16068 #else
16069 # include <assert.h>
16070 #endif
16071
16072 #undef $ac_func
16073
16074 /* Override any gcc2 internal prototype to avoid an error. */
16075 #ifdef __cplusplus
16076 extern "C"
16077 {
16078 #endif
16079 /* We use char because int might match the return type of a gcc2
16080 builtin and then its argument prototype would still apply. */
16081 char $ac_func ();
16082 /* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
16085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086 choke me
16087 #else
16088 char (*f) () = $ac_func;
16089 #endif
16090 #ifdef __cplusplus
16091 }
16092 #endif
16093
16094 int
16095 main ()
16096 {
16097 return f != $ac_func;
16098 ;
16099 return 0;
16100 }
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest$ac_exeext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 eval "$as_ac_var=yes"
16125 else
16126 echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 eval "$as_ac_var=no"
16130 fi
16131 rm -f conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133 fi
16134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16136 if test `eval echo '${'$as_ac_var'}'` = yes; then
16137 cat >>confdefs.h <<_ACEOF
16138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16139 _ACEOF
16140
16141 fi
16142 done
16143
16144 echo "$as_me:$LINENO: checking for working mmap" >&5
16145 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16146 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149 if test "$cross_compiling" = yes; then
16150 ac_cv_func_mmap_fixed_mapped=no
16151 else
16152 cat >conftest.$ac_ext <<_ACEOF
16153 /* confdefs.h. */
16154 _ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 $ac_includes_default
16159 /* malloc might have been renamed as rpl_malloc. */
16160 #undef malloc
16161
16162 /* Thanks to Mike Haertel and Jim Avera for this test.
16163 Here is a matrix of mmap possibilities:
16164 mmap private not fixed
16165 mmap private fixed at somewhere currently unmapped
16166 mmap private fixed at somewhere already mapped
16167 mmap shared not fixed
16168 mmap shared fixed at somewhere currently unmapped
16169 mmap shared fixed at somewhere already mapped
16170 For private mappings, we should verify that changes cannot be read()
16171 back from the file, nor mmap's back from the file at a different
16172 address. (There have been systems where private was not correctly
16173 implemented like the infamous i386 svr4.0, and systems where the
16174 VM page cache was not coherent with the file system buffer cache
16175 like early versions of FreeBSD and possibly contemporary NetBSD.)
16176 For shared mappings, we should conversely verify that changes get
16177 propagated back to all the places they're supposed to be.
16178
16179 Grep wants private fixed already mapped.
16180 The main things grep needs to know about mmap are:
16181 * does it exist and is it safe to write into the mmap'd area
16182 * how to use it (BSD variants) */
16183
16184 #include <fcntl.h>
16185 #include <sys/mman.h>
16186
16187 #if !STDC_HEADERS && !HAVE_STDLIB_H
16188 char *malloc ();
16189 #endif
16190
16191 /* This mess was copied from the GNU getpagesize.h. */
16192 #if !HAVE_GETPAGESIZE
16193 /* Assume that all systems that can run configure have sys/param.h. */
16194 # if !HAVE_SYS_PARAM_H
16195 # define HAVE_SYS_PARAM_H 1
16196 # endif
16197
16198 # ifdef _SC_PAGESIZE
16199 # define getpagesize() sysconf(_SC_PAGESIZE)
16200 # else /* no _SC_PAGESIZE */
16201 # if HAVE_SYS_PARAM_H
16202 # include <sys/param.h>
16203 # ifdef EXEC_PAGESIZE
16204 # define getpagesize() EXEC_PAGESIZE
16205 # else /* no EXEC_PAGESIZE */
16206 # ifdef NBPG
16207 # define getpagesize() NBPG * CLSIZE
16208 # ifndef CLSIZE
16209 # define CLSIZE 1
16210 # endif /* no CLSIZE */
16211 # else /* no NBPG */
16212 # ifdef NBPC
16213 # define getpagesize() NBPC
16214 # else /* no NBPC */
16215 # ifdef PAGESIZE
16216 # define getpagesize() PAGESIZE
16217 # endif /* PAGESIZE */
16218 # endif /* no NBPC */
16219 # endif /* no NBPG */
16220 # endif /* no EXEC_PAGESIZE */
16221 # else /* no HAVE_SYS_PARAM_H */
16222 # define getpagesize() 8192 /* punt totally */
16223 # endif /* no HAVE_SYS_PARAM_H */
16224 # endif /* no _SC_PAGESIZE */
16225
16226 #endif /* no HAVE_GETPAGESIZE */
16227
16228 int
16229 main ()
16230 {
16231 char *data, *data2, *data3;
16232 int i, pagesize;
16233 int fd;
16234
16235 pagesize = getpagesize ();
16236
16237 /* First, make a file with some known garbage in it. */
16238 data = (char *) malloc (pagesize);
16239 if (!data)
16240 exit (1);
16241 for (i = 0; i < pagesize; ++i)
16242 *(data + i) = rand ();
16243 umask (0);
16244 fd = creat ("conftest.mmap", 0600);
16245 if (fd < 0)
16246 exit (1);
16247 if (write (fd, data, pagesize) != pagesize)
16248 exit (1);
16249 close (fd);
16250
16251 /* Next, try to mmap the file at a fixed address which already has
16252 something else allocated at it. If we can, also make sure that
16253 we see the same garbage. */
16254 fd = open ("conftest.mmap", O_RDWR);
16255 if (fd < 0)
16256 exit (1);
16257 data2 = (char *) malloc (2 * pagesize);
16258 if (!data2)
16259 exit (1);
16260 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16263 exit (1);
16264 for (i = 0; i < pagesize; ++i)
16265 if (*(data + i) != *(data2 + i))
16266 exit (1);
16267
16268 /* Finally, make sure that changes to the mapped area do not
16269 percolate back to the file as seen by read(). (This is a bug on
16270 some variants of i386 svr4.0.) */
16271 for (i = 0; i < pagesize; ++i)
16272 *(data2 + i) = *(data2 + i) + 1;
16273 data3 = (char *) malloc (pagesize);
16274 if (!data3)
16275 exit (1);
16276 if (read (fd, data3, pagesize) != pagesize)
16277 exit (1);
16278 for (i = 0; i < pagesize; ++i)
16279 if (*(data + i) != *(data3 + i))
16280 exit (1);
16281 close (fd);
16282 exit (0);
16283 }
16284 _ACEOF
16285 rm -f conftest$ac_exeext
16286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
16296 ac_cv_func_mmap_fixed_mapped=yes
16297 else
16298 echo "$as_me: program exited with status $ac_status" >&5
16299 echo "$as_me: failed program was:" >&5
16300 sed 's/^/| /' conftest.$ac_ext >&5
16301
16302 ( exit $ac_status )
16303 ac_cv_func_mmap_fixed_mapped=no
16304 fi
16305 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16306 fi
16307 fi
16308 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16309 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16310 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16311
16312 cat >>confdefs.h <<\_ACEOF
16313 #define HAVE_MMAP 1
16314 _ACEOF
16315
16316 fi
16317 rm -f conftest.mmap
16318
16319 echo "$as_me:$LINENO: checking for pid_t" >&5
16320 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
16321 if test "${ac_cv_type_pid_t+set}" = set; then
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 else
16324 cat >conftest.$ac_ext <<_ACEOF
16325 /* confdefs.h. */
16326 _ACEOF
16327 cat confdefs.h >>conftest.$ac_ext
16328 cat >>conftest.$ac_ext <<_ACEOF
16329 /* end confdefs.h. */
16330 $ac_includes_default
16331 int
16332 main ()
16333 {
16334 if ((pid_t *) 0)
16335 return 0;
16336 if (sizeof (pid_t))
16337 return 0;
16338 ;
16339 return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext
16343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>conftest.er1
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16364 ac_cv_type_pid_t=yes
16365 else
16366 echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369 ac_cv_type_pid_t=no
16370 fi
16371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16374 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
16375 if test $ac_cv_type_pid_t = yes; then
16376 :
16377 else
16378
16379 cat >>confdefs.h <<_ACEOF
16380 #define pid_t int
16381 _ACEOF
16382
16383 fi
16384
16385
16386
16387 for ac_header in unistd.h vfork.h
16388 do
16389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16391 echo "$as_me:$LINENO: checking for $ac_header" >&5
16392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16395 fi
16396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16398 else
16399 # Is the header compilable?
16400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h. */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16408 $ac_includes_default
16409 #include <$ac_header>
16410 _ACEOF
16411 rm -f conftest.$ac_objext
16412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16413 (eval $ac_compile) 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
16420 { ac_try='test -z "$ac_c_werror_flag"
16421 || test ! -s conftest.err'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
16433 ac_header_compiler=yes
16434 else
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16437
16438 ac_header_compiler=no
16439 fi
16440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16442 echo "${ECHO_T}$ac_header_compiler" >&6
16443
16444 # Is the header present?
16445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 #include <$ac_header>
16454 _ACEOF
16455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } >/dev/null; then
16463 if test -s conftest.err; then
16464 ac_cpp_err=$ac_c_preproc_warn_flag
16465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16466 else
16467 ac_cpp_err=
16468 fi
16469 else
16470 ac_cpp_err=yes
16471 fi
16472 if test -z "$ac_cpp_err"; then
16473 ac_header_preproc=yes
16474 else
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ac_header_preproc=no
16479 fi
16480 rm -f conftest.err conftest.$ac_ext
16481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16482 echo "${ECHO_T}$ac_header_preproc" >&6
16483
16484 # So? What about this header?
16485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16486 yes:no: )
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16491 ac_header_preproc=yes
16492 ;;
16493 no:yes:* )
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16506 (
16507 cat <<\_ASBOX
16508 ## ------------------------------------------ ##
16509 ## Report this to the AC_PACKAGE_NAME lists. ##
16510 ## ------------------------------------------ ##
16511 _ASBOX
16512 ) |
16513 sed "s/^/$as_me: WARNING: /" >&2
16514 ;;
16515 esac
16516 echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520 else
16521 eval "$as_ac_Header=\$ac_header_preproc"
16522 fi
16523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16525
16526 fi
16527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16528 cat >>confdefs.h <<_ACEOF
16529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16530 _ACEOF
16531
16532 fi
16533
16534 done
16535
16536
16537
16538 for ac_func in fork vfork
16539 do
16540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16541 echo "$as_me:$LINENO: checking for $ac_func" >&5
16542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16543 if eval "test \"\${$as_ac_var+set}\" = set"; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 else
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16554 #define $ac_func innocuous_$ac_func
16555
16556 /* System header to define __stub macros and hopefully few prototypes,
16557 which can conflict with char $ac_func (); below.
16558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16559 <limits.h> exists even on freestanding compilers. */
16560
16561 #ifdef __STDC__
16562 # include <limits.h>
16563 #else
16564 # include <assert.h>
16565 #endif
16566
16567 #undef $ac_func
16568
16569 /* Override any gcc2 internal prototype to avoid an error. */
16570 #ifdef __cplusplus
16571 extern "C"
16572 {
16573 #endif
16574 /* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
16576 char $ac_func ();
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16581 choke me
16582 #else
16583 char (*f) () = $ac_func;
16584 #endif
16585 #ifdef __cplusplus
16586 }
16587 #endif
16588
16589 int
16590 main ()
16591 {
16592 return f != $ac_func;
16593 ;
16594 return 0;
16595 }
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
16606 { ac_try='test -z "$ac_c_werror_flag"
16607 || test ! -s conftest.err'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest$ac_exeext'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 eval "$as_ac_var=yes"
16620 else
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624 eval "$as_ac_var=no"
16625 fi
16626 rm -f conftest.err conftest.$ac_objext \
16627 conftest$ac_exeext conftest.$ac_ext
16628 fi
16629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16631 if test `eval echo '${'$as_ac_var'}'` = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16634 _ACEOF
16635
16636 fi
16637 done
16638
16639 if test "x$ac_cv_func_fork" = xyes; then
16640 echo "$as_me:$LINENO: checking for working fork" >&5
16641 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16642 if test "${ac_cv_func_fork_works+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 if test "$cross_compiling" = yes; then
16646 ac_cv_func_fork_works=cross
16647 else
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* By Ruediger Kuhlmann. */
16650 #include <sys/types.h>
16651 #if HAVE_UNISTD_H
16652 # include <unistd.h>
16653 #endif
16654 /* Some systems only have a dummy stub for fork() */
16655 int main ()
16656 {
16657 if (fork() < 0)
16658 exit (1);
16659 exit (0);
16660 }
16661 _ACEOF
16662 rm -f conftest$ac_exeext
16663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_func_fork_works=yes
16674 else
16675 echo "$as_me: program exited with status $ac_status" >&5
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 ( exit $ac_status )
16680 ac_cv_func_fork_works=no
16681 fi
16682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16683 fi
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16686 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16687
16688 else
16689 ac_cv_func_fork_works=$ac_cv_func_fork
16690 fi
16691 if test "x$ac_cv_func_fork_works" = xcross; then
16692 case $host in
16693 *-*-amigaos* | *-*-msdosdjgpp*)
16694 # Override, as these systems have only a dummy fork() stub
16695 ac_cv_func_fork_works=no
16696 ;;
16697 *)
16698 ac_cv_func_fork_works=yes
16699 ;;
16700 esac
16701 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16702 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16703 fi
16704 ac_cv_func_vfork_works=$ac_cv_func_vfork
16705 if test "x$ac_cv_func_vfork" = xyes; then
16706 echo "$as_me:$LINENO: checking for working vfork" >&5
16707 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16708 if test "${ac_cv_func_vfork_works+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 else
16711 if test "$cross_compiling" = yes; then
16712 ac_cv_func_vfork_works=cross
16713 else
16714 cat >conftest.$ac_ext <<_ACEOF
16715 /* confdefs.h. */
16716 _ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 /* Thanks to Paul Eggert for this test. */
16721 #include <stdio.h>
16722 #include <stdlib.h>
16723 #include <sys/types.h>
16724 #include <sys/stat.h>
16725 #include <sys/wait.h>
16726 #if HAVE_UNISTD_H
16727 # include <unistd.h>
16728 #endif
16729 #if HAVE_VFORK_H
16730 # include <vfork.h>
16731 #endif
16732 /* On some sparc systems, changes by the child to local and incoming
16733 argument registers are propagated back to the parent. The compiler
16734 is told about this with #include <vfork.h>, but some compilers
16735 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16736 static variable whose address is put into a register that is
16737 clobbered by the vfork. */
16738 static void
16739 #ifdef __cplusplus
16740 sparc_address_test (int arg)
16741 # else
16742 sparc_address_test (arg) int arg;
16743 #endif
16744 {
16745 static pid_t child;
16746 if (!child) {
16747 child = vfork ();
16748 if (child < 0) {
16749 perror ("vfork");
16750 _exit(2);
16751 }
16752 if (!child) {
16753 arg = getpid();
16754 write(-1, "", 0);
16755 _exit (arg);
16756 }
16757 }
16758 }
16759
16760 int
16761 main ()
16762 {
16763 pid_t parent = getpid ();
16764 pid_t child;
16765
16766 sparc_address_test (0);
16767
16768 child = vfork ();
16769
16770 if (child == 0) {
16771 /* Here is another test for sparc vfork register problems. This
16772 test uses lots of local variables, at least as many local
16773 variables as main has allocated so far including compiler
16774 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16775 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16776 reuse the register of parent for one of the local variables,
16777 since it will think that parent can't possibly be used any more
16778 in this routine. Assigning to the local variable will thus
16779 munge parent in the parent process. */
16780 pid_t
16781 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16782 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16783 /* Convince the compiler that p..p7 are live; otherwise, it might
16784 use the same hardware register for all 8 local variables. */
16785 if (p != p1 || p != p2 || p != p3 || p != p4
16786 || p != p5 || p != p6 || p != p7)
16787 _exit(1);
16788
16789 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16790 from child file descriptors. If the child closes a descriptor
16791 before it execs or exits, this munges the parent's descriptor
16792 as well. Test for this by closing stdout in the child. */
16793 _exit(close(fileno(stdout)) != 0);
16794 } else {
16795 int status;
16796 struct stat st;
16797
16798 while (wait(&status) != child)
16799 ;
16800 exit(
16801 /* Was there some problem with vforking? */
16802 child < 0
16803
16804 /* Did the child fail? (This shouldn't happen.) */
16805 || status
16806
16807 /* Did the vfork/compiler bug occur? */
16808 || parent != getpid()
16809
16810 /* Did the file descriptor bug occur? */
16811 || fstat(fileno(stdout), &st) != 0
16812 );
16813 }
16814 }
16815 _ACEOF
16816 rm -f conftest$ac_exeext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818 (eval $ac_link) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_cv_func_vfork_works=yes
16828 else
16829 echo "$as_me: program exited with status $ac_status" >&5
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833 ( exit $ac_status )
16834 ac_cv_func_vfork_works=no
16835 fi
16836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837 fi
16838 fi
16839 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16840 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16841
16842 fi;
16843 if test "x$ac_cv_func_fork_works" = xcross; then
16844 ac_cv_func_vfork_works=$ac_cv_func_vfork
16845 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16846 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16847 fi
16848
16849 if test "x$ac_cv_func_vfork_works" = xyes; then
16850
16851 cat >>confdefs.h <<\_ACEOF
16852 #define HAVE_WORKING_VFORK 1
16853 _ACEOF
16854
16855 else
16856
16857 cat >>confdefs.h <<\_ACEOF
16858 #define vfork fork
16859 _ACEOF
16860
16861 fi
16862 if test "x$ac_cv_func_fork_works" = xyes; then
16863
16864 cat >>confdefs.h <<\_ACEOF
16865 #define HAVE_WORKING_FORK 1
16866 _ACEOF
16867
16868 fi
16869
16870
16871
16872 for ac_func in canonicalize_file_name realpath
16873 do
16874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16875 echo "$as_me:$LINENO: checking for $ac_func" >&5
16876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16877 if eval "test \"\${$as_ac_var+set}\" = set"; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879 else
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16888 #define $ac_func innocuous_$ac_func
16889
16890 /* System header to define __stub macros and hopefully few prototypes,
16891 which can conflict with char $ac_func (); below.
16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893 <limits.h> exists even on freestanding compilers. */
16894
16895 #ifdef __STDC__
16896 # include <limits.h>
16897 #else
16898 # include <assert.h>
16899 #endif
16900
16901 #undef $ac_func
16902
16903 /* Override any gcc2 internal prototype to avoid an error. */
16904 #ifdef __cplusplus
16905 extern "C"
16906 {
16907 #endif
16908 /* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16910 char $ac_func ();
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16915 choke me
16916 #else
16917 char (*f) () = $ac_func;
16918 #endif
16919 #ifdef __cplusplus
16920 }
16921 #endif
16922
16923 int
16924 main ()
16925 {
16926 return f != $ac_func;
16927 ;
16928 return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 eval "$as_ac_var=yes"
16954 else
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16957
16958 eval "$as_ac_var=no"
16959 fi
16960 rm -f conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962 fi
16963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16965 if test `eval echo '${'$as_ac_var'}'` = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968 _ACEOF
16969
16970 fi
16971 done
16972
16973
16974 for ac_func in getrusage
16975 do
16976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977 echo "$as_me:$LINENO: checking for $ac_func" >&5
16978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16979 if eval "test \"\${$as_ac_var+set}\" = set"; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16990 #define $ac_func innocuous_$ac_func
16991
16992 /* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func (); below.
16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 <limits.h> exists even on freestanding compilers. */
16996
16997 #ifdef __STDC__
16998 # include <limits.h>
16999 #else
17000 # include <assert.h>
17001 #endif
17002
17003 #undef $ac_func
17004
17005 /* Override any gcc2 internal prototype to avoid an error. */
17006 #ifdef __cplusplus
17007 extern "C"
17008 {
17009 #endif
17010 /* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
17012 char $ac_func ();
17013 /* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17017 choke me
17018 #else
17019 char (*f) () = $ac_func;
17020 #endif
17021 #ifdef __cplusplus
17022 }
17023 #endif
17024
17025 int
17026 main ()
17027 {
17028 return f != $ac_func;
17029 ;
17030 return 0;
17031 }
17032 _ACEOF
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 eval "$as_ac_var=no"
17061 fi
17062 rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064 fi
17065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17067 if test `eval echo '${'$as_ac_var'}'` = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17070 _ACEOF
17071
17072 fi
17073 done
17074
17075
17076
17077 for ac_func in getuid getgid
17078 do
17079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17080 echo "$as_me:$LINENO: checking for $ac_func" >&5
17081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17082 if eval "test \"\${$as_ac_var+set}\" = set"; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 else
17085 cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h. */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17093 #define $ac_func innocuous_$ac_func
17094
17095 /* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17099
17100 #ifdef __STDC__
17101 # include <limits.h>
17102 #else
17103 # include <assert.h>
17104 #endif
17105
17106 #undef $ac_func
17107
17108 /* Override any gcc2 internal prototype to avoid an error. */
17109 #ifdef __cplusplus
17110 extern "C"
17111 {
17112 #endif
17113 /* We use char because int might match the return type of a gcc2
17114 builtin and then its argument prototype would still apply. */
17115 char $ac_func ();
17116 /* The GNU C library defines this for functions which it implements
17117 to always fail with ENOSYS. Some functions are actually named
17118 something starting with __ and the normal name is an alias. */
17119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17120 choke me
17121 #else
17122 char (*f) () = $ac_func;
17123 #endif
17124 #ifdef __cplusplus
17125 }
17126 #endif
17127
17128 int
17129 main ()
17130 {
17131 return f != $ac_func;
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 eval "$as_ac_var=yes"
17159 else
17160 echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163 eval "$as_ac_var=no"
17164 fi
17165 rm -f conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167 fi
17168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17170 if test `eval echo '${'$as_ac_var'}'` = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173 _ACEOF
17174
17175 fi
17176 done
17177
17178
17179 for ac_func in poll
17180 do
17181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182 echo "$as_me:$LINENO: checking for $ac_func" >&5
17183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17184 if eval "test \"\${$as_ac_var+set}\" = set"; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17195 #define $ac_func innocuous_$ac_func
17196
17197 /* System header to define __stub macros and hopefully few prototypes,
17198 which can conflict with char $ac_func (); below.
17199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200 <limits.h> exists even on freestanding compilers. */
17201
17202 #ifdef __STDC__
17203 # include <limits.h>
17204 #else
17205 # include <assert.h>
17206 #endif
17207
17208 #undef $ac_func
17209
17210 /* Override any gcc2 internal prototype to avoid an error. */
17211 #ifdef __cplusplus
17212 extern "C"
17213 {
17214 #endif
17215 /* We use char because int might match the return type of a gcc2
17216 builtin and then its argument prototype would still apply. */
17217 char $ac_func ();
17218 /* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
17221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17222 choke me
17223 #else
17224 char (*f) () = $ac_func;
17225 #endif
17226 #ifdef __cplusplus
17227 }
17228 #endif
17229
17230 int
17231 main ()
17232 {
17233 return f != $ac_func;
17234 ;
17235 return 0;
17236 }
17237 _ACEOF
17238 rm -f conftest.$ac_objext conftest$ac_exeext
17239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 eval "$as_ac_var=yes"
17261 else
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 eval "$as_ac_var=no"
17266 fi
17267 rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269 fi
17270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17271 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17272 if test `eval echo '${'$as_ac_var'}'` = yes; then
17273 cat >>confdefs.h <<_ACEOF
17274 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17275 _ACEOF
17276
17277 fi
17278 done
17279
17280
17281 for ac_func in pread64
17282 do
17283 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17284 echo "$as_me:$LINENO: checking for $ac_func" >&5
17285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17286 if eval "test \"\${$as_ac_var+set}\" = set"; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297 #define $ac_func innocuous_$ac_func
17298
17299 /* System header to define __stub macros and hopefully few prototypes,
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17303
17304 #ifdef __STDC__
17305 # include <limits.h>
17306 #else
17307 # include <assert.h>
17308 #endif
17309
17310 #undef $ac_func
17311
17312 /* Override any gcc2 internal prototype to avoid an error. */
17313 #ifdef __cplusplus
17314 extern "C"
17315 {
17316 #endif
17317 /* We use char because int might match the return type of a gcc2
17318 builtin and then its argument prototype would still apply. */
17319 char $ac_func ();
17320 /* The GNU C library defines this for functions which it implements
17321 to always fail with ENOSYS. Some functions are actually named
17322 something starting with __ and the normal name is an alias. */
17323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17324 choke me
17325 #else
17326 char (*f) () = $ac_func;
17327 #endif
17328 #ifdef __cplusplus
17329 }
17330 #endif
17331
17332 int
17333 main ()
17334 {
17335 return f != $ac_func;
17336 ;
17337 return 0;
17338 }
17339 _ACEOF
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17342 (eval $ac_link) 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
17349 { ac_try='test -z "$ac_c_werror_flag"
17350 || test ! -s conftest.err'
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 eval "$as_ac_var=yes"
17363 else
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 eval "$as_ac_var=no"
17368 fi
17369 rm -f conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
17371 fi
17372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17373 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17374 if test `eval echo '${'$as_ac_var'}'` = yes; then
17375 cat >>confdefs.h <<_ACEOF
17376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377 _ACEOF
17378
17379 fi
17380 done
17381
17382
17383 for ac_func in sbrk
17384 do
17385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17386 echo "$as_me:$LINENO: checking for $ac_func" >&5
17387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17388 if eval "test \"\${$as_ac_var+set}\" = set"; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399 #define $ac_func innocuous_$ac_func
17400
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17405
17406 #ifdef __STDC__
17407 # include <limits.h>
17408 #else
17409 # include <assert.h>
17410 #endif
17411
17412 #undef $ac_func
17413
17414 /* Override any gcc2 internal prototype to avoid an error. */
17415 #ifdef __cplusplus
17416 extern "C"
17417 {
17418 #endif
17419 /* We use char because int might match the return type of a gcc2
17420 builtin and then its argument prototype would still apply. */
17421 char $ac_func ();
17422 /* The GNU C library defines this for functions which it implements
17423 to always fail with ENOSYS. Some functions are actually named
17424 something starting with __ and the normal name is an alias. */
17425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17426 choke me
17427 #else
17428 char (*f) () = $ac_func;
17429 #endif
17430 #ifdef __cplusplus
17431 }
17432 #endif
17433
17434 int
17435 main ()
17436 {
17437 return f != $ac_func;
17438 ;
17439 return 0;
17440 }
17441 _ACEOF
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17444 (eval $ac_link) 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17465 else
17466 echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 eval "$as_ac_var=no"
17470 fi
17471 rm -f conftest.err conftest.$ac_objext \
17472 conftest$ac_exeext conftest.$ac_ext
17473 fi
17474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17476 if test `eval echo '${'$as_ac_var'}'` = yes; then
17477 cat >>confdefs.h <<_ACEOF
17478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17479 _ACEOF
17480
17481 fi
17482 done
17483
17484
17485
17486 for ac_func in setpgid setpgrp
17487 do
17488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17489 echo "$as_me:$LINENO: checking for $ac_func" >&5
17490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17491 if eval "test \"\${$as_ac_var+set}\" = set"; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 else
17494 cat >conftest.$ac_ext <<_ACEOF
17495 /* confdefs.h. */
17496 _ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17502 #define $ac_func innocuous_$ac_func
17503
17504 /* System header to define __stub macros and hopefully few prototypes,
17505 which can conflict with char $ac_func (); below.
17506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17507 <limits.h> exists even on freestanding compilers. */
17508
17509 #ifdef __STDC__
17510 # include <limits.h>
17511 #else
17512 # include <assert.h>
17513 #endif
17514
17515 #undef $ac_func
17516
17517 /* Override any gcc2 internal prototype to avoid an error. */
17518 #ifdef __cplusplus
17519 extern "C"
17520 {
17521 #endif
17522 /* We use char because int might match the return type of a gcc2
17523 builtin and then its argument prototype would still apply. */
17524 char $ac_func ();
17525 /* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
17528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17529 choke me
17530 #else
17531 char (*f) () = $ac_func;
17532 #endif
17533 #ifdef __cplusplus
17534 }
17535 #endif
17536
17537 int
17538 main ()
17539 {
17540 return f != $ac_func;
17541 ;
17542 return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 eval "$as_ac_var=yes"
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 eval "$as_ac_var=no"
17573 fi
17574 rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576 fi
17577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17579 if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582 _ACEOF
17583
17584 fi
17585 done
17586
17587
17588
17589
17590 for ac_func in sigaction sigprocmask sigsetmask
17591 do
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17595 if eval "test \"\${$as_ac_var+set}\" = set"; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597 else
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606 #define $ac_func innocuous_$ac_func
17607
17608 /* System header to define __stub macros and hopefully few prototypes,
17609 which can conflict with char $ac_func (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
17612
17613 #ifdef __STDC__
17614 # include <limits.h>
17615 #else
17616 # include <assert.h>
17617 #endif
17618
17619 #undef $ac_func
17620
17621 /* Override any gcc2 internal prototype to avoid an error. */
17622 #ifdef __cplusplus
17623 extern "C"
17624 {
17625 #endif
17626 /* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17628 char $ac_func ();
17629 /* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17633 choke me
17634 #else
17635 char (*f) () = $ac_func;
17636 #endif
17637 #ifdef __cplusplus
17638 }
17639 #endif
17640
17641 int
17642 main ()
17643 {
17644 return f != $ac_func;
17645 ;
17646 return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest$ac_exeext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 eval "$as_ac_var=yes"
17672 else
17673 echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 eval "$as_ac_var=no"
17677 fi
17678 rm -f conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17680 fi
17681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17683 if test `eval echo '${'$as_ac_var'}'` = yes; then
17684 cat >>confdefs.h <<_ACEOF
17685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686 _ACEOF
17687
17688 fi
17689 done
17690
17691
17692 for ac_func in socketpair
17693 do
17694 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17695 echo "$as_me:$LINENO: checking for $ac_func" >&5
17696 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17697 if eval "test \"\${$as_ac_var+set}\" = set"; then
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700 cat >conftest.$ac_ext <<_ACEOF
17701 /* confdefs.h. */
17702 _ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708 #define $ac_func innocuous_$ac_func
17709
17710 /* System header to define __stub macros and hopefully few prototypes,
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17714
17715 #ifdef __STDC__
17716 # include <limits.h>
17717 #else
17718 # include <assert.h>
17719 #endif
17720
17721 #undef $ac_func
17722
17723 /* Override any gcc2 internal prototype to avoid an error. */
17724 #ifdef __cplusplus
17725 extern "C"
17726 {
17727 #endif
17728 /* We use char because int might match the return type of a gcc2
17729 builtin and then its argument prototype would still apply. */
17730 char $ac_func ();
17731 /* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
17734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17735 choke me
17736 #else
17737 char (*f) () = $ac_func;
17738 #endif
17739 #ifdef __cplusplus
17740 }
17741 #endif
17742
17743 int
17744 main ()
17745 {
17746 return f != $ac_func;
17747 ;
17748 return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext conftest$ac_exeext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 eval "$as_ac_var=yes"
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 eval "$as_ac_var=no"
17779 fi
17780 rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 fi
17783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17785 if test `eval echo '${'$as_ac_var'}'` = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17788 _ACEOF
17789
17790 fi
17791 done
17792
17793
17794 for ac_func in syscall
17795 do
17796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17797 echo "$as_me:$LINENO: checking for $ac_func" >&5
17798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17799 if eval "test \"\${$as_ac_var+set}\" = set"; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802 cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h. */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17810 #define $ac_func innocuous_$ac_func
17811
17812 /* System header to define __stub macros and hopefully few prototypes,
17813 which can conflict with char $ac_func (); below.
17814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815 <limits.h> exists even on freestanding compilers. */
17816
17817 #ifdef __STDC__
17818 # include <limits.h>
17819 #else
17820 # include <assert.h>
17821 #endif
17822
17823 #undef $ac_func
17824
17825 /* Override any gcc2 internal prototype to avoid an error. */
17826 #ifdef __cplusplus
17827 extern "C"
17828 {
17829 #endif
17830 /* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
17832 char $ac_func ();
17833 /* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
17836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17837 choke me
17838 #else
17839 char (*f) () = $ac_func;
17840 #endif
17841 #ifdef __cplusplus
17842 }
17843 #endif
17844
17845 int
17846 main ()
17847 {
17848 return f != $ac_func;
17849 ;
17850 return 0;
17851 }
17852 _ACEOF
17853 rm -f conftest.$ac_objext conftest$ac_exeext
17854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855 (eval $ac_link) 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 eval "$as_ac_var=yes"
17876 else
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 eval "$as_ac_var=no"
17881 fi
17882 rm -f conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17884 fi
17885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17887 if test `eval echo '${'$as_ac_var'}'` = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17890 _ACEOF
17891
17892 fi
17893 done
17894
17895
17896 for ac_func in ttrace
17897 do
17898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17899 echo "$as_me:$LINENO: checking for $ac_func" >&5
17900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17901 if eval "test \"\${$as_ac_var+set}\" = set"; then
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904 cat >conftest.$ac_ext <<_ACEOF
17905 /* confdefs.h. */
17906 _ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912 #define $ac_func innocuous_$ac_func
17913
17914 /* System header to define __stub macros and hopefully few prototypes,
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17918
17919 #ifdef __STDC__
17920 # include <limits.h>
17921 #else
17922 # include <assert.h>
17923 #endif
17924
17925 #undef $ac_func
17926
17927 /* Override any gcc2 internal prototype to avoid an error. */
17928 #ifdef __cplusplus
17929 extern "C"
17930 {
17931 #endif
17932 /* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
17934 char $ac_func ();
17935 /* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
17938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17939 choke me
17940 #else
17941 char (*f) () = $ac_func;
17942 #endif
17943 #ifdef __cplusplus
17944 }
17945 #endif
17946
17947 int
17948 main ()
17949 {
17950 return f != $ac_func;
17951 ;
17952 return 0;
17953 }
17954 _ACEOF
17955 rm -f conftest.$ac_objext conftest$ac_exeext
17956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957 (eval $ac_link) 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -z "$ac_c_werror_flag"
17965 || test ! -s conftest.err'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest$ac_exeext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 eval "$as_ac_var=yes"
17978 else
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982 eval "$as_ac_var=no"
17983 fi
17984 rm -f conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
17986 fi
17987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17989 if test `eval echo '${'$as_ac_var'}'` = yes; then
17990 cat >>confdefs.h <<_ACEOF
17991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992 _ACEOF
17993
17994 fi
17995 done
17996
17997
17998 for ac_func in wborder
17999 do
18000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18001 echo "$as_me:$LINENO: checking for $ac_func" >&5
18002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18003 if eval "test \"\${$as_ac_var+set}\" = set"; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 else
18006 cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h. */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014 #define $ac_func innocuous_$ac_func
18015
18016 /* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18020
18021 #ifdef __STDC__
18022 # include <limits.h>
18023 #else
18024 # include <assert.h>
18025 #endif
18026
18027 #undef $ac_func
18028
18029 /* Override any gcc2 internal prototype to avoid an error. */
18030 #ifdef __cplusplus
18031 extern "C"
18032 {
18033 #endif
18034 /* We use char because int might match the return type of a gcc2
18035 builtin and then its argument prototype would still apply. */
18036 char $ac_func ();
18037 /* The GNU C library defines this for functions which it implements
18038 to always fail with ENOSYS. Some functions are actually named
18039 something starting with __ and the normal name is an alias. */
18040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18041 choke me
18042 #else
18043 char (*f) () = $ac_func;
18044 #endif
18045 #ifdef __cplusplus
18046 }
18047 #endif
18048
18049 int
18050 main ()
18051 {
18052 return f != $ac_func;
18053 ;
18054 return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest.$ac_objext conftest$ac_exeext
18058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059 (eval $ac_link) 2>conftest.er1
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
18066 { ac_try='test -z "$ac_c_werror_flag"
18067 || test ! -s conftest.err'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest$ac_exeext'
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 eval "$as_ac_var=yes"
18080 else
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 eval "$as_ac_var=no"
18085 fi
18086 rm -f conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
18088 fi
18089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18090 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18091 if test `eval echo '${'$as_ac_var'}'` = yes; then
18092 cat >>confdefs.h <<_ACEOF
18093 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18094 _ACEOF
18095
18096 fi
18097 done
18098
18099
18100 # Check the return and argument types of ptrace. No canned test for
18101 # this, so roll our own.
18102 gdb_ptrace_headers='
18103 #if HAVE_SYS_TYPES_H
18104 # include <sys/types.h>
18105 #endif
18106 #if HAVE_SYS_PTRACE_H
18107 # include <sys/ptrace.h>
18108 #endif
18109 #if HAVE_UNISTD_H
18110 # include <unistd.h>
18111 #endif
18112 '
18113 # There is no point in checking if we don't have a prototype.
18114 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18115 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
18116 if test "${ac_cv_have_decl_ptrace+set}" = set; then
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18118 else
18119 cat >conftest.$ac_ext <<_ACEOF
18120 /* confdefs.h. */
18121 _ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 $gdb_ptrace_headers
18126
18127 int
18128 main ()
18129 {
18130 #ifndef ptrace
18131 char *p = (char *) ptrace;
18132 #endif
18133
18134 ;
18135 return 0;
18136 }
18137 _ACEOF
18138 rm -f conftest.$ac_objext
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
18147 { ac_try='test -z "$ac_c_werror_flag"
18148 || test ! -s conftest.err'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
18160 ac_cv_have_decl_ptrace=yes
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_cv_have_decl_ptrace=no
18166 fi
18167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18168 fi
18169 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18170 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
18171 if test $ac_cv_have_decl_ptrace = yes; then
18172
18173 cat >>confdefs.h <<_ACEOF
18174 #define HAVE_DECL_PTRACE 1
18175 _ACEOF
18176
18177
18178 else
18179 cat >>confdefs.h <<_ACEOF
18180 #define HAVE_DECL_PTRACE 0
18181 _ACEOF
18182
18183
18184 : ${gdb_cv_func_ptrace_ret='int'}
18185 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18186
18187 fi
18188
18189
18190 # Check return type.
18191 echo "$as_me:$LINENO: checking return type of ptrace" >&5
18192 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
18193 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195 else
18196 cat >conftest.$ac_ext <<_ACEOF
18197 /* confdefs.h. */
18198 _ACEOF
18199 cat confdefs.h >>conftest.$ac_ext
18200 cat >>conftest.$ac_ext <<_ACEOF
18201 /* end confdefs.h. */
18202 $gdb_ptrace_headers
18203 int
18204 main ()
18205 {
18206 extern int ptrace ();
18207 ;
18208 return 0;
18209 }
18210 _ACEOF
18211 rm -f conftest.$ac_objext
18212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
18220 { ac_try='test -z "$ac_c_werror_flag"
18221 || test ! -s conftest.err'
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
18233 gdb_cv_func_ptrace_ret='int'
18234 else
18235 echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 gdb_cv_func_ptrace_ret='long'
18239 fi
18240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18241 fi
18242 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18243 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
18244
18245 cat >>confdefs.h <<_ACEOF
18246 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
18247 _ACEOF
18248
18249 # Check argument types.
18250 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18251 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
18252 if test "${gdb_cv_func_ptrace_args+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254 else
18255
18256 for gdb_arg1 in 'int' 'long'; do
18257 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18258 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18259 for gdb_arg4 in 'int' 'long'; do
18260 cat >conftest.$ac_ext <<_ACEOF
18261 /* confdefs.h. */
18262 _ACEOF
18263 cat confdefs.h >>conftest.$ac_ext
18264 cat >>conftest.$ac_ext <<_ACEOF
18265 /* end confdefs.h. */
18266 $gdb_ptrace_headers
18267 int
18268 main ()
18269 {
18270
18271 extern $gdb_cv_func_ptrace_ret
18272 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18273
18274 ;
18275 return 0;
18276 }
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
18287 { ac_try='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18301 break 4;
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 fi
18307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18308 for gdb_arg5 in 'int *' 'int' 'long'; do
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 $gdb_ptrace_headers
18316 int
18317 main ()
18318 {
18319
18320 extern $gdb_cv_func_ptrace_ret
18321 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18322
18323 ;
18324 return 0;
18325 }
18326 _ACEOF
18327 rm -f conftest.$ac_objext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest.$ac_objext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349
18350 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18351 break 5;
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356 fi
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18358 done
18359 done
18360 done
18361 done
18362 done
18363 # Provide a safe default value.
18364 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18365
18366 fi
18367 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18368 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
18369 ac_save_IFS=$IFS; IFS=','
18370 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18371 IFS=$ac_save_IFS
18372 shift
18373
18374 cat >>confdefs.h <<_ACEOF
18375 #define PTRACE_TYPE_ARG3 $3
18376 _ACEOF
18377
18378 if test -n "$5"; then
18379
18380 cat >>confdefs.h <<_ACEOF
18381 #define PTRACE_TYPE_ARG5 $5
18382 _ACEOF
18383
18384 fi
18385
18386 if test "$cross_compiling" = no; then
18387 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18388 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18389 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392 if test "$cross_compiling" = yes; then
18393 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18394 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18395 { (exit 1); exit 1; }; }
18396 else
18397 cat >conftest.$ac_ext <<_ACEOF
18398 /* confdefs.h. */
18399 _ACEOF
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18403 #if HAVE_UNISTD_H
18404 # include <unistd.h>
18405 #endif
18406
18407 int
18408 main ()
18409 {
18410 /* If this system has a BSD-style setpgrp which takes arguments,
18411 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18412 exit successfully. */
18413 exit (setpgrp (1,1) == -1 ? 0 : 1);
18414 ;
18415 return 0;
18416 }
18417 _ACEOF
18418 rm -f conftest$ac_exeext
18419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_func_setpgrp_void=no
18430 else
18431 echo "$as_me: program exited with status $ac_status" >&5
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18434
18435 ( exit $ac_status )
18436 ac_cv_func_setpgrp_void=yes
18437 fi
18438 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18439 fi
18440 fi
18441 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18442 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18443 if test $ac_cv_func_setpgrp_void = yes; then
18444
18445 cat >>confdefs.h <<\_ACEOF
18446 #define SETPGRP_VOID 1
18447 _ACEOF
18448
18449 fi
18450
18451 else
18452 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18453 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18454 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18455 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 else
18457 cat >conftest.$ac_ext <<_ACEOF
18458 /* confdefs.h. */
18459 _ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18463
18464 #include <unistd.h>
18465
18466 int
18467 main ()
18468 {
18469
18470 if (setpgrp(1,1) == -1)
18471 exit (0);
18472 else
18473 exit (1);
18474
18475 ;
18476 return 0;
18477 }
18478 _ACEOF
18479 rm -f conftest.$ac_objext
18480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481 (eval $ac_compile) 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
18501 ac_cv_func_setpgrp_void=no
18502 else
18503 echo "$as_me: failed program was:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18505
18506 ac_cv_func_setpgrp_void=yes
18507 fi
18508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18509 fi
18510 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18511 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18512 if test $ac_cv_func_setpgrp_void = yes; then
18513 cat >>confdefs.h <<\_ACEOF
18514 #define SETPGRP_VOID 1
18515 _ACEOF
18516
18517 fi
18518 fi
18519
18520 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18521 # since sigsetjmp might only be defined as a macro.
18522 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18523 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
18524 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527 cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h. */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h. */
18533
18534 #include <setjmp.h>
18535
18536 int
18537 main ()
18538 {
18539 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
18540 ;
18541 return 0;
18542 }
18543 _ACEOF
18544 rm -f conftest.$ac_objext
18545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546 (eval $ac_compile) 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_c_werror_flag"
18554 || test ! -s conftest.err'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18566 gdb_cv_func_sigsetjmp=yes
18567 else
18568 echo "$as_me: failed program was:" >&5
18569 sed 's/^/| /' conftest.$ac_ext >&5
18570
18571 gdb_cv_func_sigsetjmp=no
18572 fi
18573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18574 fi
18575 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18576 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
18577 if test $gdb_cv_func_sigsetjmp = yes; then
18578
18579 cat >>confdefs.h <<\_ACEOF
18580 #define HAVE_SIGSETJMP 1
18581 _ACEOF
18582
18583 fi
18584
18585 # Assume we'll default to using the included libiberty regex.
18586 gdb_use_included_regex=yes
18587
18588 # However, if the system regex is GNU regex, then default to *not*
18589 # using the included regex.
18590 echo "$as_me:$LINENO: checking for GNU regex" >&5
18591 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
18592 if test "${gdb_cv_have_gnu_regex+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <gnu-versions.h>
18602 int
18603 main ()
18604 {
18605 #define REGEX_INTERFACE_VERSION 1
18606 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18607 # error "Version mismatch"
18608 #endif
18609 ;
18610 return 0;
18611 }
18612 _ACEOF
18613 rm -f conftest.$ac_objext
18614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 gdb_cv_have_gnu_regex=yes
18636 else
18637 echo "$as_me: failed program was:" >&5
18638 sed 's/^/| /' conftest.$ac_ext >&5
18639
18640 gdb_cv_have_gnu_regex=no
18641 fi
18642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18643 fi
18644 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18645 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18646 if test $gdb_cv_have_gnu_regex = yes; then
18647 gdb_use_included_regex=no
18648 fi
18649
18650
18651 # Check whether --with-included-regex or --without-included-regex was given.
18652 if test "${with_included_regex+set}" = set; then
18653 withval="$with_included_regex"
18654 gdb_with_regex=$withval
18655 else
18656 gdb_with_regex=$gdb_use_included_regex
18657 fi;
18658 if test "$gdb_with_regex" = yes; then
18659
18660 cat >>confdefs.h <<\_ACEOF
18661 #define USE_INCLUDED_REGEX 1
18662 _ACEOF
18663
18664 fi
18665
18666 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18667 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18668 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18669 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 cat >conftest.$ac_ext <<_ACEOF
18673 /* confdefs.h. */
18674 _ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 #include <sys/param.h>
18679 #include <sys/proc.h>
18680
18681
18682 int
18683 main ()
18684 {
18685 static struct thread ac_aggr;
18686 if (ac_aggr.td_pcb)
18687 return 0;
18688 ;
18689 return 0;
18690 }
18691 _ACEOF
18692 rm -f conftest.$ac_objext
18693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694 (eval $ac_compile) 2>conftest.er1
18695 ac_status=$?
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
18701 { ac_try='test -z "$ac_c_werror_flag"
18702 || test ! -s conftest.err'
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest.$ac_objext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_member_struct_thread_td_pcb=yes
18715 else
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719 cat >conftest.$ac_ext <<_ACEOF
18720 /* confdefs.h. */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #include <sys/param.h>
18726 #include <sys/proc.h>
18727
18728
18729 int
18730 main ()
18731 {
18732 static struct thread ac_aggr;
18733 if (sizeof ac_aggr.td_pcb)
18734 return 0;
18735 ;
18736 return 0;
18737 }
18738 _ACEOF
18739 rm -f conftest.$ac_objext
18740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18741 (eval $ac_compile) 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
18748 { ac_try='test -z "$ac_c_werror_flag"
18749 || test ! -s conftest.err'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest.$ac_objext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_member_struct_thread_td_pcb=yes
18762 else
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766 ac_cv_member_struct_thread_td_pcb=no
18767 fi
18768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18769 fi
18770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18771 fi
18772 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18773 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18774 if test $ac_cv_member_struct_thread_td_pcb = yes; then
18775
18776 cat >>confdefs.h <<_ACEOF
18777 #define HAVE_STRUCT_THREAD_TD_PCB 1
18778 _ACEOF
18779
18780
18781 fi
18782
18783
18784 # See if <sys/lwp.h> defines `struct lwp`.
18785 echo "$as_me:$LINENO: checking for struct lwp" >&5
18786 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18787 if test "${gdb_cv_struct_lwp+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/param.h>
18797 #include <sys/lwp.h>
18798 int
18799 main ()
18800 {
18801 struct lwp l;
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_lwp=yes
18829 else
18830 echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833 gdb_cv_struct_lwp=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_lwp" >&5
18838 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18839 if test $gdb_cv_struct_lwp = yes; then
18840
18841 cat >>confdefs.h <<\_ACEOF
18842 #define HAVE_STRUCT_LWP 1
18843 _ACEOF
18844
18845 fi
18846
18847 # See if <machine/reg.h> degines `struct reg'.
18848 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18849 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18850 if test "${gdb_cv_struct_reg+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853 cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h. */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include <sys/types.h>
18860 #include <machine/reg.h>
18861 int
18862 main ()
18863 {
18864 struct reg r;
18865 ;
18866 return 0;
18867 }
18868 _ACEOF
18869 rm -f conftest.$ac_objext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 gdb_cv_struct_reg=yes
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 gdb_cv_struct_reg=no
18897 fi
18898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18899 fi
18900 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18901 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18902 if test $gdb_cv_struct_reg = yes; then
18903
18904 cat >>confdefs.h <<\_ACEOF
18905 #define HAVE_STRUCT_REG 1
18906 _ACEOF
18907
18908 fi
18909
18910 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18911 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18912 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18913 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18914 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917 cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h. */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h. */
18923 #include <machine/reg.h>
18924
18925 int
18926 main ()
18927 {
18928 static struct reg ac_aggr;
18929 if (ac_aggr.r_fs)
18930 return 0;
18931 ;
18932 return 0;
18933 }
18934 _ACEOF
18935 rm -f conftest.$ac_objext
18936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937 (eval $ac_compile) 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_member_struct_reg_r_fs=yes
18958 else
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h. */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h. */
18968 #include <machine/reg.h>
18969
18970 int
18971 main ()
18972 {
18973 static struct reg ac_aggr;
18974 if (sizeof ac_aggr.r_fs)
18975 return 0;
18976 ;
18977 return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
18989 { ac_try='test -z "$ac_c_werror_flag"
18990 || test ! -s conftest.err'
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
19002 ac_cv_member_struct_reg_r_fs=yes
19003 else
19004 echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 ac_cv_member_struct_reg_r_fs=no
19008 fi
19009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19010 fi
19011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19012 fi
19013 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19014 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
19015 if test $ac_cv_member_struct_reg_r_fs = yes; then
19016
19017 cat >>confdefs.h <<_ACEOF
19018 #define HAVE_STRUCT_REG_R_FS 1
19019 _ACEOF
19020
19021
19022 fi
19023 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19024 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
19025 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 #include <machine/reg.h>
19035
19036 int
19037 main ()
19038 {
19039 static struct reg ac_aggr;
19040 if (ac_aggr.r_gs)
19041 return 0;
19042 ;
19043 return 0;
19044 }
19045 _ACEOF
19046 rm -f conftest.$ac_objext
19047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
19068 ac_cv_member_struct_reg_r_gs=yes
19069 else
19070 echo "$as_me: failed program was:" >&5
19071 sed 's/^/| /' conftest.$ac_ext >&5
19072
19073 cat >conftest.$ac_ext <<_ACEOF
19074 /* confdefs.h. */
19075 _ACEOF
19076 cat confdefs.h >>conftest.$ac_ext
19077 cat >>conftest.$ac_ext <<_ACEOF
19078 /* end confdefs.h. */
19079 #include <machine/reg.h>
19080
19081 int
19082 main ()
19083 {
19084 static struct reg ac_aggr;
19085 if (sizeof ac_aggr.r_gs)
19086 return 0;
19087 ;
19088 return 0;
19089 }
19090 _ACEOF
19091 rm -f conftest.$ac_objext
19092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_member_struct_reg_r_gs=yes
19114 else
19115 echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19117
19118 ac_cv_member_struct_reg_r_gs=no
19119 fi
19120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19121 fi
19122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19123 fi
19124 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19125 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
19126 if test $ac_cv_member_struct_reg_r_gs = yes; then
19127
19128 cat >>confdefs.h <<_ACEOF
19129 #define HAVE_STRUCT_REG_R_GS 1
19130 _ACEOF
19131
19132
19133 fi
19134
19135
19136 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
19137 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19138 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
19139 if test "${gdb_cv_have_ptrace_getregs+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_GETREGS;
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_getregs=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 gdb_cv_have_ptrace_getregs=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_getregs" >&5
19190 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
19191 if test $gdb_cv_have_ptrace_getregs = yes; then
19192
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_PTRACE_GETREGS 1
19195 _ACEOF
19196
19197 fi
19198
19199 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
19200 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19201 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
19202 if test "${gdb_cv_have_ptrace_getfpxregs+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/ptrace.h>
19212 int
19213 main ()
19214 {
19215 PTRACE_GETFPXREGS;
19216 ;
19217 return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 gdb_cv_have_ptrace_getfpxregs=yes
19243 else
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 gdb_cv_have_ptrace_getfpxregs=no
19248 fi
19249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250 fi
19251
19252 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19253 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
19254 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
19255
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_PTRACE_GETFPXREGS 1
19258 _ACEOF
19259
19260 fi
19261
19262 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
19263 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19264 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
19265 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
19266 echo $ECHO_N "(cached) $ECHO_C" >&6
19267 else
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h. */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h. */
19274 #include <sys/types.h>
19275 #include <sys/ptrace.h>
19276 int
19277 main ()
19278 {
19279 PT_GETDBREGS;
19280 ;
19281 return 0;
19282 }
19283 _ACEOF
19284 rm -f conftest.$ac_objext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286 (eval $ac_compile) 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 gdb_cv_have_pt_getdbregs=yes
19307 else
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19310
19311 gdb_cv_have_pt_getdbregs=no
19312 fi
19313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19314 fi
19315
19316 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19317 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
19318 if test $gdb_cv_have_pt_getdbregs = yes; then
19319
19320 cat >>confdefs.h <<\_ACEOF
19321 #define HAVE_PT_GETDBREGS 1
19322 _ACEOF
19323
19324 fi
19325
19326 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
19327 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19328 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
19329 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
19330 echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 #include <sys/types.h>
19339 #include <sys/ptrace.h>
19340 int
19341 main ()
19342 {
19343 PT_GETXMMREGS;
19344 ;
19345 return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 gdb_cv_have_pt_getxmmregs=yes
19371 else
19372 echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 gdb_cv_have_pt_getxmmregs=no
19376 fi
19377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19378 fi
19379
19380 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19381 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
19382 if test $gdb_cv_have_pt_getxmmregs = yes; then
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_PT_GETXMMREGS 1
19386 _ACEOF
19387
19388 fi
19389
19390 # Detect which type of /proc is in use, such as for Unixware or Solaris.
19391
19392 if test "${target}" = "${host}"; then
19393 case "${host}" in
19394 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
19395
19396 cat >>confdefs.h <<\_ACEOF
19397 #define NEW_PROC_API 1
19398 _ACEOF
19399
19400 ;;
19401 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
19402
19403 cat >>confdefs.h <<\_ACEOF
19404 #define NEW_PROC_API 1
19405 _ACEOF
19406
19407 ;;
19408 mips-sgi-irix5*)
19409 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
19410
19411 cat >>confdefs.h <<\_ACEOF
19412 #define _KMEMUSER 1
19413 _ACEOF
19414
19415 ;;
19416 esac
19417 fi
19418
19419 if test "$ac_cv_header_sys_procfs_h" = yes; then
19420 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19421 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
19422 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 else
19425 cat >conftest.$ac_ext <<_ACEOF
19426 /* confdefs.h. */
19427 _ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19431
19432 #define _SYSCALL32
19433 #include <sys/procfs.h>
19434 int
19435 main ()
19436 {
19437 pstatus_t avar
19438 ;
19439 return 0;
19440 }
19441 _ACEOF
19442 rm -f conftest.$ac_objext
19443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
19451 { ac_try='test -z "$ac_c_werror_flag"
19452 || test ! -s conftest.err'
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 bfd_cv_have_sys_procfs_type_pstatus_t=yes
19465 else
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469 bfd_cv_have_sys_procfs_type_pstatus_t=no
19470
19471 fi
19472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19473 fi
19474
19475 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
19476
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_PSTATUS_T 1
19479 _ACEOF
19480
19481 fi
19482 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19483 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
19484
19485 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19486 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
19487 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490 cat >conftest.$ac_ext <<_ACEOF
19491 /* confdefs.h. */
19492 _ACEOF
19493 cat confdefs.h >>conftest.$ac_ext
19494 cat >>conftest.$ac_ext <<_ACEOF
19495 /* end confdefs.h. */
19496
19497 #define _SYSCALL32
19498 #include <sys/procfs.h>
19499 int
19500 main ()
19501 {
19502 prrun_t avar
19503 ;
19504 return 0;
19505 }
19506 _ACEOF
19507 rm -f conftest.$ac_objext
19508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag"
19517 || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 bfd_cv_have_sys_procfs_type_prrun_t=yes
19530 else
19531 echo "$as_me: failed program was:" >&5
19532 sed 's/^/| /' conftest.$ac_ext >&5
19533
19534 bfd_cv_have_sys_procfs_type_prrun_t=no
19535
19536 fi
19537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19538 fi
19539
19540 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
19541
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE_PRRUN_T 1
19544 _ACEOF
19545
19546 fi
19547 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19548 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
19549
19550 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19551 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
19552 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555 cat >conftest.$ac_ext <<_ACEOF
19556 /* confdefs.h. */
19557 _ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561
19562 #define _SYSCALL32
19563 #include <sys/procfs.h>
19564 int
19565 main ()
19566 {
19567 gregset_t avar
19568 ;
19569 return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext
19573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19574 (eval $ac_compile) 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
19581 { ac_try='test -z "$ac_c_werror_flag"
19582 || test ! -s conftest.err'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 bfd_cv_have_sys_procfs_type_gregset_t=yes
19595 else
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19598
19599 bfd_cv_have_sys_procfs_type_gregset_t=no
19600
19601 fi
19602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19603 fi
19604
19605 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
19606
19607 cat >>confdefs.h <<\_ACEOF
19608 #define HAVE_GREGSET_T 1
19609 _ACEOF
19610
19611 fi
19612 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19613 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
19614
19615 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19616 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
19617 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619 else
19620 cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h. */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h. */
19626
19627 #define _SYSCALL32
19628 #include <sys/procfs.h>
19629 int
19630 main ()
19631 {
19632 fpregset_t avar
19633 ;
19634 return 0;
19635 }
19636 _ACEOF
19637 rm -f conftest.$ac_objext
19638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19639 (eval $ac_compile) 2>conftest.er1
19640 ac_status=$?
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
19646 { ac_try='test -z "$ac_c_werror_flag"
19647 || test ! -s conftest.err'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19660 else
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 bfd_cv_have_sys_procfs_type_fpregset_t=no
19665
19666 fi
19667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19668 fi
19669
19670 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19671
19672 cat >>confdefs.h <<\_ACEOF
19673 #define HAVE_FPREGSET_T 1
19674 _ACEOF
19675
19676 fi
19677 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19678 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19679
19680 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19681 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19682 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19684 else
19685 cat >conftest.$ac_ext <<_ACEOF
19686 /* confdefs.h. */
19687 _ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691
19692 #define _SYSCALL32
19693 #include <sys/procfs.h>
19694 int
19695 main ()
19696 {
19697 prgregset_t avar
19698 ;
19699 return 0;
19700 }
19701 _ACEOF
19702 rm -f conftest.$ac_objext
19703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
19711 { ac_try='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
19724 bfd_cv_have_sys_procfs_type_prgregset_t=yes
19725 else
19726 echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19728
19729 bfd_cv_have_sys_procfs_type_prgregset_t=no
19730
19731 fi
19732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19733 fi
19734
19735 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19736
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_PRGREGSET_T 1
19739 _ACEOF
19740
19741 fi
19742 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19743 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19744
19745 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19746 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19747 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750 cat >conftest.$ac_ext <<_ACEOF
19751 /* confdefs.h. */
19752 _ACEOF
19753 cat confdefs.h >>conftest.$ac_ext
19754 cat >>conftest.$ac_ext <<_ACEOF
19755 /* end confdefs.h. */
19756
19757 #define _SYSCALL32
19758 #include <sys/procfs.h>
19759 int
19760 main ()
19761 {
19762 prfpregset_t avar
19763 ;
19764 return 0;
19765 }
19766 _ACEOF
19767 rm -f conftest.$ac_objext
19768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_c_werror_flag"
19777 || test ! -s conftest.err'
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19790 else
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 bfd_cv_have_sys_procfs_type_prfpregset_t=no
19795
19796 fi
19797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19798 fi
19799
19800 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_PRFPREGSET_T 1
19804 _ACEOF
19805
19806 fi
19807 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19808 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19809
19810 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19811 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19812 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815 cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h. */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821
19822 #define _SYSCALL32
19823 #include <sys/procfs.h>
19824 int
19825 main ()
19826 {
19827 prgregset32_t avar
19828 ;
19829 return 0;
19830 }
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19855 else
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19858
19859 bfd_cv_have_sys_procfs_type_prgregset32_t=no
19860
19861 fi
19862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19863 fi
19864
19865 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19866
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_PRGREGSET32_T 1
19869 _ACEOF
19870
19871 fi
19872 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19873 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19874
19875 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19876 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19877 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19879 else
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886
19887 #define _SYSCALL32
19888 #include <sys/procfs.h>
19889 int
19890 main ()
19891 {
19892 prfpregset32_t avar
19893 ;
19894 return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
19906 { ac_try='test -z "$ac_c_werror_flag"
19907 || test ! -s conftest.err'
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
19919 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19920 else
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19925
19926 fi
19927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19928 fi
19929
19930 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19931
19932 cat >>confdefs.h <<\_ACEOF
19933 #define HAVE_PRFPREGSET32_T 1
19934 _ACEOF
19935
19936 fi
19937 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19938 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19939
19940 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19941 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19942 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h. */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951
19952 #define _SYSCALL32
19953 #include <sys/procfs.h>
19954 int
19955 main ()
19956 {
19957 lwpid_t avar
19958 ;
19959 return 0;
19960 }
19961 _ACEOF
19962 rm -f conftest.$ac_objext
19963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19964 (eval $ac_compile) 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
19971 { ac_try='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest.$ac_objext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
19984 bfd_cv_have_sys_procfs_type_lwpid_t=yes
19985 else
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989 bfd_cv_have_sys_procfs_type_lwpid_t=no
19990
19991 fi
19992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19993 fi
19994
19995 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19996
19997 cat >>confdefs.h <<\_ACEOF
19998 #define HAVE_LWPID_T 1
19999 _ACEOF
20000
20001 fi
20002 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20003 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
20004
20005 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20006 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
20007 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20009 else
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016
20017 #define _SYSCALL32
20018 #include <sys/procfs.h>
20019 int
20020 main ()
20021 {
20022 psaddr_t avar
20023 ;
20024 return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029 (eval $ac_compile) 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag"
20037 || test ! -s conftest.err'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 bfd_cv_have_sys_procfs_type_psaddr_t=yes
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 bfd_cv_have_sys_procfs_type_psaddr_t=no
20055
20056 fi
20057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20058 fi
20059
20060 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
20061
20062 cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_PSADDR_T 1
20064 _ACEOF
20065
20066 fi
20067 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20068 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
20069
20070 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20071 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
20072 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075 cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h. */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h. */
20081
20082 #define _SYSCALL32
20083 #include <sys/procfs.h>
20084 int
20085 main ()
20086 {
20087 prsysent_t avar
20088 ;
20089 return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094 (eval $ac_compile) 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag"
20102 || test ! -s conftest.err'
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest.$ac_objext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
20114 bfd_cv_have_sys_procfs_type_prsysent_t=yes
20115 else
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 bfd_cv_have_sys_procfs_type_prsysent_t=no
20120
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 fi
20124
20125 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
20126
20127 cat >>confdefs.h <<\_ACEOF
20128 #define HAVE_PRSYSENT_T 1
20129 _ACEOF
20130
20131 fi
20132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20133 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
20134
20135 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20136 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
20137 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 else
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h. */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146
20147 #define _SYSCALL32
20148 #include <sys/procfs.h>
20149 int
20150 main ()
20151 {
20152 pr_sigset_t avar
20153 ;
20154 return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
20180 else
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
20185
20186 fi
20187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20188 fi
20189
20190 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
20191
20192 cat >>confdefs.h <<\_ACEOF
20193 #define HAVE_PR_SIGSET_T 1
20194 _ACEOF
20195
20196 fi
20197 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20198 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
20199
20200 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20201 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
20202 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205 cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h. */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h. */
20211
20212 #define _SYSCALL32
20213 #include <sys/procfs.h>
20214 int
20215 main ()
20216 {
20217 pr_sigaction64_t avar
20218 ;
20219 return 0;
20220 }
20221 _ACEOF
20222 rm -f conftest.$ac_objext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
20245 else
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
20250
20251 fi
20252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20253 fi
20254
20255 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
20256
20257 cat >>confdefs.h <<\_ACEOF
20258 #define HAVE_PR_SIGACTION64_T 1
20259 _ACEOF
20260
20261 fi
20262 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20263 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
20264
20265 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20266 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
20267 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276
20277 #define _SYSCALL32
20278 #include <sys/procfs.h>
20279 int
20280 main ()
20281 {
20282 pr_siginfo64_t avar
20283 ;
20284 return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
20315
20316 fi
20317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20318 fi
20319
20320 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
20321
20322 cat >>confdefs.h <<\_ACEOF
20323 #define HAVE_PR_SIGINFO64_T 1
20324 _ACEOF
20325
20326 fi
20327 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20328 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
20329
20330
20331
20332
20333
20334 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
20335 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20336 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
20337 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
20339 else
20340 if test "$cross_compiling" = yes; then
20341 gdb_cv_prfpregset_t_broken=yes
20342 else
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 #include <sys/procfs.h>
20350 int main ()
20351 {
20352 if (sizeof (prfpregset_t) == sizeof (void *))
20353 return 1;
20354 return 0;
20355 }
20356 _ACEOF
20357 rm -f conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 gdb_cv_prfpregset_t_broken=no
20369 else
20370 echo "$as_me: program exited with status $ac_status" >&5
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374 ( exit $ac_status )
20375 gdb_cv_prfpregset_t_broken=yes
20376 fi
20377 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20378 fi
20379 fi
20380
20381 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20382 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
20383 if test $gdb_cv_prfpregset_t_broken = yes; then
20384
20385 cat >>confdefs.h <<\_ACEOF
20386 #define PRFPREGSET_T_BROKEN 1
20387 _ACEOF
20388
20389 fi
20390 fi
20391
20392
20393 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20394 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
20395 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h. */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 #include <unistd.h>
20405 #include <sys/types.h>
20406 #include <sys/procfs.h>
20407
20408 int
20409 main ()
20410 {
20411
20412 int dummy;;
20413 dummy = ioctl(0, PIOCSET, &dummy);
20414
20415 ;
20416 return 0;
20417 }
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
20441 gdb_cv_have_procfs_piocset=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 gdb_cv_have_procfs_piocset=no
20447 fi
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449 fi
20450
20451 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20452 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
20453 if test $gdb_cv_have_procfs_piocset = yes; then
20454
20455 cat >>confdefs.h <<\_ACEOF
20456 #define HAVE_PROCFS_PIOCSET 1
20457 _ACEOF
20458
20459 fi
20460 fi
20461
20462 if test ${host} = ${target} ; then
20463
20464 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20465 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
20466 if test "${gdb_cv_have_struct_link_map_with_l_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 <link.h>
20476 int
20477 main ()
20478 {
20479 struct link_map lm; (void) lm.l_addr;
20480 ;
20481 return 0;
20482 }
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 gdb_cv_have_struct_link_map_with_l_members=yes
20507 else
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 gdb_cv_have_struct_link_map_with_l_members=no
20512 fi
20513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20514 fi
20515
20516 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20517 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
20518 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
20519
20520 cat >>confdefs.h <<\_ACEOF
20521 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
20522 _ACEOF
20523
20524 fi
20525
20526
20527 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20528 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
20529 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 else
20532 cat >conftest.$ac_ext <<_ACEOF
20533 /* confdefs.h. */
20534 _ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20538 #include <sys/types.h>
20539 #include <link.h>
20540 int
20541 main ()
20542 {
20543 struct link_map lm; (void) lm.lm_addr;
20544 ;
20545 return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext
20549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550 (eval $ac_compile) 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
20557 { ac_try='test -z "$ac_c_werror_flag"
20558 || test ! -s conftest.err'
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest.$ac_objext'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
20570 gdb_cv_have_struct_link_map_with_lm_members=yes
20571 else
20572 echo "$as_me: failed program was:" >&5
20573 sed 's/^/| /' conftest.$ac_ext >&5
20574
20575 gdb_cv_have_struct_link_map_with_lm_members=no
20576 fi
20577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20578 fi
20579
20580 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20581 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
20582 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
20583
20584 cat >>confdefs.h <<\_ACEOF
20585 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
20586 _ACEOF
20587
20588 fi
20589
20590
20591 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20592 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
20593 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595 else
20596 cat >conftest.$ac_ext <<_ACEOF
20597 /* confdefs.h. */
20598 _ACEOF
20599 cat confdefs.h >>conftest.$ac_ext
20600 cat >>conftest.$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 #include <sys/types.h>
20603 #ifdef HAVE_NLIST_H
20604 #include <nlist.h>
20605 #endif
20606 #include <link.h>
20607 int
20608 main ()
20609 {
20610 struct so_map lm; (void) lm.som_addr;
20611 ;
20612 return 0;
20613 }
20614 _ACEOF
20615 rm -f conftest.$ac_objext
20616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
20624 { ac_try='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest.$ac_objext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
20637 gdb_cv_have_struct_so_map_with_som_members=yes
20638 else
20639 echo "$as_me: failed program was:" >&5
20640 sed 's/^/| /' conftest.$ac_ext >&5
20641
20642 gdb_cv_have_struct_so_map_with_som_members=no
20643 fi
20644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645 fi
20646
20647 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20648 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20649 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20650
20651 cat >>confdefs.h <<\_ACEOF
20652 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20653 _ACEOF
20654
20655 fi
20656
20657
20658 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20659 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20660 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 else
20663 cat >conftest.$ac_ext <<_ACEOF
20664 /* confdefs.h. */
20665 _ACEOF
20666 cat confdefs.h >>conftest.$ac_ext
20667 cat >>conftest.$ac_ext <<_ACEOF
20668 /* end confdefs.h. */
20669 #define _SYSCALL32
20670 #include <sys/link.h>
20671 int
20672 main ()
20673 {
20674 struct link_map32 l;
20675 ;
20676 return 0;
20677 }
20678 _ACEOF
20679 rm -f conftest.$ac_objext
20680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
20701 gdb_cv_have_struct_link_map32=yes
20702 else
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20705
20706 gdb_cv_have_struct_link_map32=no
20707 fi
20708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20709 fi
20710
20711 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20712 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20713 if test $gdb_cv_have_struct_link_map32 = yes; then
20714
20715 cat >>confdefs.h <<\_ACEOF
20716 #define HAVE_STRUCT_LINK_MAP32 1
20717 _ACEOF
20718
20719
20720 cat >>confdefs.h <<\_ACEOF
20721 #define _SYSCALL32 1
20722 _ACEOF
20723
20724 fi
20725 fi
20726
20727 # Check if the compiler supports the `long long' type.
20728
20729 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20730 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20731 if test "${gdb_cv_c_long_long+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 else
20734 cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h. */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h. */
20740 extern long long foo;
20741 int
20742 main ()
20743 {
20744 switch (foo & 2) { case 0: return 1; }
20745 ;
20746 return 0;
20747 }
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest.$ac_objext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 gdb_cv_c_long_long=yes
20772 else
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20775
20776 gdb_cv_c_long_long=no
20777 fi
20778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20779 fi
20780 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20781 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20782 if test $gdb_cv_c_long_long = yes; then
20783
20784 cat >>confdefs.h <<\_ACEOF
20785 #define CC_HAS_LONG_LONG 1
20786 _ACEOF
20787
20788 fi
20789
20790 # Check if the compiler and runtime support printing long longs.
20791
20792 echo "$as_me:$LINENO: checking for long long support in printf" >&5
20793 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20794 if test "${gdb_cv_printf_has_long_long+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 else
20797 if test "$cross_compiling" = yes; then
20798 gdb_cv_printf_has_long_long=no
20799 else
20800 cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h. */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h. */
20806 $ac_includes_default
20807 int
20808 main ()
20809 {
20810 char buf[32];
20811 long long l = 0;
20812 l = (l << 16) + 0x0123;
20813 l = (l << 16) + 0x4567;
20814 l = (l << 16) + 0x89ab;
20815 l = (l << 16) + 0xcdef;
20816 sprintf (buf, "0x%016llx", l);
20817 return (strcmp ("0x0123456789abcdef", buf));
20818 ;
20819 return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest$ac_exeext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
20833 gdb_cv_printf_has_long_long=yes
20834 else
20835 echo "$as_me: program exited with status $ac_status" >&5
20836 echo "$as_me: failed program was:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20838
20839 ( exit $ac_status )
20840 gdb_cv_printf_has_long_long=no
20841 fi
20842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20843 fi
20844 fi
20845 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20846 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20847 if test $gdb_cv_printf_has_long_long = yes; then
20848
20849 cat >>confdefs.h <<\_ACEOF
20850 #define PRINTF_HAS_LONG_LONG 1
20851 _ACEOF
20852
20853 fi
20854
20855 # Check if the compiler supports the `long double' type. We can't use
20856 # AC_C_LONG_DOUBLE because that one does additional checks on the
20857 # constants defined in <float.h> that fail on some systems,
20858 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20859
20860 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20861 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20862 if test "${gdb_cv_c_long_double+set}" = set; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 else
20865 cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h. */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 long double foo;
20872 _ACEOF
20873 rm -f conftest.$ac_objext
20874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875 (eval $ac_compile) 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
20882 { ac_try='test -z "$ac_c_werror_flag"
20883 || test ! -s conftest.err'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest.$ac_objext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 gdb_cv_c_long_double=yes
20896 else
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900 gdb_cv_c_long_double=no
20901 fi
20902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903 fi
20904 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20905 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20906 if test $gdb_cv_c_long_double = yes; then
20907
20908 cat >>confdefs.h <<\_ACEOF
20909 #define HAVE_LONG_DOUBLE 1
20910 _ACEOF
20911
20912 fi
20913
20914 # Check if the compiler and runtime support printing long doubles.
20915
20916 echo "$as_me:$LINENO: checking for long double support in printf" >&5
20917 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20918 if test "${gdb_cv_printf_has_long_double+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921 if test "$cross_compiling" = yes; then
20922 gdb_cv_printf_has_long_double=no
20923 else
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 $ac_includes_default
20931 int
20932 main ()
20933 {
20934 char buf[16];
20935 long double f = 3.141592653;
20936 sprintf (buf, "%Lg", f);
20937 return (strncmp ("3.14159", buf, 7));
20938 ;
20939 return 0;
20940 }
20941 _ACEOF
20942 rm -f conftest$ac_exeext
20943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
20953 gdb_cv_printf_has_long_double=yes
20954 else
20955 echo "$as_me: program exited with status $ac_status" >&5
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 ( exit $ac_status )
20960 gdb_cv_printf_has_long_double=no
20961 fi
20962 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20963 fi
20964 fi
20965 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20966 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20967 if test $gdb_cv_printf_has_long_double = yes; then
20968
20969 cat >>confdefs.h <<\_ACEOF
20970 #define PRINTF_HAS_LONG_DOUBLE 1
20971 _ACEOF
20972
20973 fi
20974
20975 # Check if the compiler and runtime support scanning long doubles.
20976
20977 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20978 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20979 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 else
20982 if test "$cross_compiling" = yes; then
20983 gdb_cv_scanf_has_long_double=no
20984 else
20985 cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h. */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <stdio.h>
20992 int
20993 main ()
20994 {
20995 char *buf = "3.141592653";
20996 long double f = 0;
20997 sscanf (buf, "%Lg", &f);
20998 return !(f > 3.14159 && f < 3.14160);
20999 ;
21000 return 0;
21001 }
21002 _ACEOF
21003 rm -f conftest$ac_exeext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
21014 gdb_cv_scanf_has_long_double=yes
21015 else
21016 echo "$as_me: program exited with status $ac_status" >&5
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 ( exit $ac_status )
21021 gdb_cv_scanf_has_long_double=no
21022 fi
21023 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21024 fi
21025 fi
21026 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21027 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
21028 if test $gdb_cv_scanf_has_long_double = yes; then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define SCANF_HAS_LONG_DOUBLE 1
21032 _ACEOF
21033
21034 fi
21035
21036 case ${host_os} in
21037 aix*)
21038 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21039 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
21040 if test "${gdb_cv_bigtoc+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21042 else
21043
21044 SAVE_LDFLAGS=$LDFLAGS
21045
21046 case $GCC in
21047 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21048 *) gdb_cv_bigtoc=-bbigtoc ;;
21049 esac
21050
21051 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
21052 cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h. */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h. */
21058
21059 int
21060 main ()
21061 {
21062 int i;
21063 ;
21064 return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext conftest$ac_exeext
21068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069 (eval $ac_link) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
21089 :
21090 else
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 gdb_cv_bigtoc=
21095 fi
21096 rm -f conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21098 LDFLAGS="${SAVE_LDFLAGS}"
21099
21100 fi
21101 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21102 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
21103 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21104 ;;
21105 esac
21106
21107
21108
21109 if test ${build} = ${host} -a ${host} = ${target} ; then
21110 case ${host_os} in
21111 hpux*)
21112 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21113 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
21114 if test -f /usr/include/dce/cma_config.h ; then
21115 if test "$GCC" = "yes" ; then
21116 echo "$as_me:$LINENO: result: yes" >&5
21117 echo "${ECHO_T}yes" >&6
21118
21119 cat >>confdefs.h <<\_ACEOF
21120 #define HAVE_HPUX_THREAD_SUPPORT 1
21121 _ACEOF
21122
21123 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
21124 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21125 else
21126 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21127 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
21128 fi
21129 else
21130 echo "$as_me:$LINENO: result: no" >&5
21131 echo "${ECHO_T}no" >&6
21132 fi
21133 ;;
21134 solaris*)
21135 # See if thread_db library is around for Solaris thread debugging.
21136 # Note that we must explicitly test for version 1 of the library
21137 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21138 # the same API.
21139 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21140 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
21141 if test -f /usr/lib/libthread_db.so.1 ; then
21142 echo "$as_me:$LINENO: result: yes" >&5
21143 echo "${ECHO_T}yes" >&6
21144
21145 cat >>confdefs.h <<\_ACEOF
21146 #define HAVE_THREAD_DB_LIB 1
21147 _ACEOF
21148
21149 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
21150 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
21151
21152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21153 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21154 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 else
21157 ac_check_lib_save_LIBS=$LIBS
21158 LIBS="-ldl $LIBS"
21159 cat >conftest.$ac_ext <<_ACEOF
21160 /* confdefs.h. */
21161 _ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165
21166 /* Override any gcc2 internal prototype to avoid an error. */
21167 #ifdef __cplusplus
21168 extern "C"
21169 #endif
21170 /* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
21172 char dlopen ();
21173 int
21174 main ()
21175 {
21176 dlopen ();
21177 ;
21178 return 0;
21179 }
21180 _ACEOF
21181 rm -f conftest.$ac_objext conftest$ac_exeext
21182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_lib_dl_dlopen=yes
21204 else
21205 echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208 ac_cv_lib_dl_dlopen=no
21209 fi
21210 rm -f conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
21212 LIBS=$ac_check_lib_save_LIBS
21213 fi
21214 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21215 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21216 if test $ac_cv_lib_dl_dlopen = yes; then
21217 cat >>confdefs.h <<_ACEOF
21218 #define HAVE_LIBDL 1
21219 _ACEOF
21220
21221 LIBS="-ldl $LIBS"
21222
21223 fi
21224
21225 if test "$GCC" = "yes" ; then
21226 # The GNU linker requires the -export-dynamic option to make
21227 # all symbols visible in the dynamic symbol table.
21228 hold_ldflags=$LDFLAGS
21229 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21230 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
21231 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h. */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238
21239 int
21240 main ()
21241 {
21242 int i;
21243 ;
21244 return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } &&
21256 { ac_try='test -z "$ac_c_werror_flag"
21257 || test ! -s conftest.err'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; } &&
21263 { ac_try='test -s conftest$ac_exeext'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
21269 found=yes
21270 else
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 found=no
21275 fi
21276 rm -f conftest.err conftest.$ac_objext \
21277 conftest$ac_exeext conftest.$ac_ext
21278 LDFLAGS=$hold_ldflags
21279 echo "$as_me:$LINENO: result: $found" >&5
21280 echo "${ECHO_T}$found" >&6
21281 if test $found = yes; then
21282 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21283 fi
21284 fi
21285 # Sun randomly tweaked the prototypes in <proc_service.h>
21286 # at one point.
21287 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21288 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
21289 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292
21293 cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h. */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299
21300 #include <proc_service.h>
21301 ps_err_e ps_pdwrite
21302 (struct ps_prochandle*, psaddr_t, const void*, size_t);
21303
21304 int
21305 main ()
21306 {
21307
21308 ;
21309 return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext
21313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21314 (eval $ac_compile) 2>conftest.er1
21315 ac_status=$?
21316 grep -v '^ *+' conftest.er1 >conftest.err
21317 rm -f conftest.er1
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
21321 { ac_try='test -z "$ac_c_werror_flag"
21322 || test ! -s conftest.err'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest.$ac_objext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 gdb_cv_proc_service_is_old=no
21335 else
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 gdb_cv_proc_service_is_old=yes
21340 fi
21341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21342
21343 fi
21344
21345 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21346 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
21347 if test $gdb_cv_proc_service_is_old = yes; then
21348
21349 cat >>confdefs.h <<\_ACEOF
21350 #define PROC_SERVICE_IS_OLD 1
21351 _ACEOF
21352
21353 fi
21354 else
21355 echo "$as_me:$LINENO: result: no" >&5
21356 echo "${ECHO_T}no" >&6
21357 fi
21358 ;;
21359 aix*)
21360 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21361 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
21362 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364 else
21365 cat >conftest.$ac_ext <<_ACEOF
21366 /* confdefs.h. */
21367 _ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21371 #include <sys/pthdebug.h>
21372 int
21373 main ()
21374 {
21375 #ifndef PTHDB_VERSION_3
21376 #error
21377 #endif
21378 ;
21379 return 0;
21380 }
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21384 (eval $ac_compile) 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
21391 { ac_try='test -z "$ac_c_werror_flag"
21392 || test ! -s conftest.err'
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 gdb_cv_have_aix_thread_debug=yes
21405 else
21406 echo "$as_me: failed program was:" >&5
21407 sed 's/^/| /' conftest.$ac_ext >&5
21408
21409 gdb_cv_have_aix_thread_debug=no
21410 fi
21411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21412 fi
21413
21414 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21415 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
21416 if test $gdb_cv_have_aix_thread_debug = yes; then
21417 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
21418 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
21419 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21420 fi
21421 ;;
21422 esac
21423
21424 fi
21425
21426 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
21427 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21428 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
21429 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438 #include <thread_db.h>
21439 int
21440 main ()
21441 {
21442 int i = TD_NOTALLOC;
21443 ;
21444 return 0;
21445 }
21446 _ACEOF
21447 rm -f conftest.$ac_objext
21448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21449 (eval $ac_compile) 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
21456 { ac_try='test -z "$ac_c_werror_flag"
21457 || test ! -s conftest.err'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; } &&
21463 { ac_try='test -s conftest.$ac_objext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 gdb_cv_thread_db_h_has_td_notalloc=yes
21470 else
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474 gdb_cv_thread_db_h_has_td_notalloc=no
21475
21476 fi
21477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21478
21479 fi
21480 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21481 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
21482 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21483 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21484 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486 else
21487 cat >conftest.$ac_ext <<_ACEOF
21488 /* confdefs.h. */
21489 _ACEOF
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 #include <thread_db.h>
21494 int
21495 main ()
21496 {
21497 int i = TD_VERSION;
21498 ;
21499 return 0;
21500 }
21501 _ACEOF
21502 rm -f conftest.$ac_objext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -z "$ac_c_werror_flag"
21512 || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 gdb_cv_thread_db_h_has_td_version=yes
21525 else
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 gdb_cv_thread_db_h_has_td_version=no
21530
21531 fi
21532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533
21534 fi
21535 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21536 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21537 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21538 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21539 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542 cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h. */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <thread_db.h>
21549 int
21550 main ()
21551 {
21552 int i = TD_NOTLS;
21553 ;
21554 return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 gdb_cv_thread_db_h_has_td_notls=yes
21580 else
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 gdb_cv_thread_db_h_has_td_notls=no
21585
21586 fi
21587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588
21589 fi
21590 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21591 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
21592 fi
21593 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
21594
21595 cat >>confdefs.h <<\_ACEOF
21596 #define THREAD_DB_HAS_TD_NOTALLOC 1
21597 _ACEOF
21598
21599 fi
21600 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21601
21602 cat >>confdefs.h <<\_ACEOF
21603 #define THREAD_DB_HAS_TD_VERSION 1
21604 _ACEOF
21605
21606 fi
21607 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21608
21609 cat >>confdefs.h <<\_ACEOF
21610 #define THREAD_DB_HAS_TD_NOTLS 1
21611 _ACEOF
21612
21613 fi
21614
21615 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
21616 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21617 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
21618 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 else
21621 cat >conftest.$ac_ext <<_ACEOF
21622 /* confdefs.h. */
21623 _ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 #include <sys/syscall.h>
21628 int
21629 main ()
21630 {
21631 int i = __NR_tkill;
21632 ;
21633 return 0;
21634 }
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>conftest.er1
21639 ac_status=$?
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_c_werror_flag"
21646 || test ! -s conftest.err'
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 gdb_cv_sys_syscall_h_has_tkill=yes
21659 else
21660 echo "$as_me: failed program was:" >&5
21661 sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 gdb_cv_sys_syscall_h_has_tkill=no
21664
21665 fi
21666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21667
21668 fi
21669 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21670 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
21671 fi
21672 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
21673
21674 cat >>confdefs.h <<\_ACEOF
21675 #define HAVE_TKILL_SYSCALL 1
21676 _ACEOF
21677
21678 fi
21679
21680
21681
21682 # Check whether --with-sysroot or --without-sysroot was given.
21683 if test "${with_sysroot+set}" = set; then
21684 withval="$with_sysroot"
21685
21686 case ${with_sysroot} in
21687 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
21688 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21689 esac
21690
21691 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21692
21693 if test "x$prefix" = xNONE; then
21694 test_prefix=/usr/local
21695 else
21696 test_prefix=$prefix
21697 fi
21698 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
21699 test_exec_prefix=$test_prefix
21700 else
21701 test_exec_prefix=$exec_prefix
21702 fi
21703 case ${TARGET_SYSTEM_ROOT} in
21704 "${test_prefix}"|"${test_prefix}/"*|\
21705 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21706 '${prefix}'|'${prefix}/'*|\
21707 '${exec_prefix}'|'${exec_prefix}/'*)
21708 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21709 TARGET_SYSTEM_ROOT_DEFINE="$t"
21710 ;;
21711 esac
21712
21713 else
21714
21715 TARGET_SYSTEM_ROOT=
21716 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21717
21718 fi;
21719
21720
21721
21722 # Check whether --enable-werror or --disable-werror was given.
21723 if test "${enable_werror+set}" = set; then
21724 enableval="$enable_werror"
21725 case "${enableval}" in
21726 yes | y) ERROR_ON_WARNING="yes" ;;
21727 no | n) ERROR_ON_WARNING="no" ;;
21728 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21729 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21730 { (exit 1); exit 1; }; } ;;
21731 esac
21732 fi;
21733
21734 # Enable -Werror by default when using gcc
21735 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21736 ERROR_ON_WARNING=yes
21737 fi
21738
21739 WERROR_CFLAGS=""
21740 if test "${ERROR_ON_WARNING}" = yes ; then
21741 WERROR_CFLAGS="-Werror"
21742 fi
21743
21744 # The entries after -Wno-pointer-sign are disabled warnings which may
21745 # be enabled in the future, which can not currently be used to build
21746 # GDB.
21747 # NOTE: If you change this list, remember to update
21748 # gdb/doc/gdbint.texinfo.
21749 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21750 -Wformat-nonliteral -Wno-pointer-sign \
21751 -Wno-unused -Wno-switch -Wno-char-subscripts"
21752
21753 # Check whether --enable-build-warnings or --disable-build-warnings was given.
21754 if test "${enable_build_warnings+set}" = set; then
21755 enableval="$enable_build_warnings"
21756 case "${enableval}" in
21757 yes) ;;
21758 no) build_warnings="-w";;
21759 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21760 build_warnings="${build_warnings} ${t}";;
21761 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21762 build_warnings="${t} ${build_warnings}";;
21763 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21764 esac
21765 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21766 echo "Setting compiler warning flags = $build_warnings" 6>&1
21767 fi
21768 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21769 if test "${enable_gdb_build_warnings+set}" = set; then
21770 enableval="$enable_gdb_build_warnings"
21771 case "${enableval}" in
21772 yes) ;;
21773 no) build_warnings="-w";;
21774 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21775 build_warnings="${build_warnings} ${t}";;
21776 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21777 build_warnings="${t} ${build_warnings}";;
21778 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21779 esac
21780 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21781 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21782 fi
21783 fi; WARN_CFLAGS=""
21784 if test "x${build_warnings}" != x -a "x$GCC" = xyes
21785 then
21786 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21787 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21788 # Separate out the -Werror flag as some files just cannot be
21789 # compiled with it enabled.
21790 for w in ${build_warnings}; do
21791 case $w in
21792 -Werr*) WERROR_CFLAGS=-Werror ;;
21793 *) # Check that GCC accepts it
21794 saved_CFLAGS="$CFLAGS"
21795 CFLAGS="$CFLAGS $w"
21796 cat >conftest.$ac_ext <<_ACEOF
21797 /* confdefs.h. */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21802
21803 int
21804 main ()
21805 {
21806
21807 ;
21808 return 0;
21809 }
21810 _ACEOF
21811 rm -f conftest.$ac_objext
21812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
21820 { ac_try='test -z "$ac_c_werror_flag"
21821 || test ! -s conftest.err'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest.$ac_objext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 WARN_CFLAGS="${WARN_CFLAGS} $w"
21834 else
21835 echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.$ac_ext >&5
21837
21838 fi
21839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21840 CFLAGS="$saved_CFLAGS"
21841 esac
21842 done
21843 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21844 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
21845 fi
21846
21847
21848
21849 # In the Cygwin environment, we need some additional flags.
21850 echo "$as_me:$LINENO: checking for cygwin" >&5
21851 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21852 if test "${gdb_cv_os_cygwin+set}" = set; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21854 else
21855 cat >conftest.$ac_ext <<_ACEOF
21856 /* confdefs.h. */
21857 _ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861
21862 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
21863 lose
21864 #endif
21865 _ACEOF
21866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21867 $EGREP "lose" >/dev/null 2>&1; then
21868 gdb_cv_os_cygwin=yes
21869 else
21870 gdb_cv_os_cygwin=no
21871 fi
21872 rm -f conftest*
21873
21874 fi
21875 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21876 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21877
21878
21879 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21880 case ${host} in
21881 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21882 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21883 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21884 esac
21885
21886
21887 # libreadline needs libuser32.a in a cygwin environment
21888 WIN32LIBS=
21889 if test x$gdb_cv_os_cygwin = xyes; then
21890 WIN32LIBS="-luser32"
21891 case "${target}" in
21892 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21893 ;;
21894 esac
21895 fi
21896
21897 # The ser-tcp.c module requires sockets.
21898 case ${host} in
21899 *mingw32*)
21900
21901 cat >>confdefs.h <<\_ACEOF
21902 #define USE_WIN32API 1
21903 _ACEOF
21904
21905 WIN32LIBS="$WIN32LIBS -lws2_32"
21906 ;;
21907 esac
21908
21909
21910 # Add ELF support to GDB, but only if BFD includes ELF support.
21911 OLD_CFLAGS=$CFLAGS
21912 OLD_LDFLAGS=$LDFLAGS
21913 OLD_LIBS=$LIBS
21914 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
21915 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
21916 LIBS="$LIBS -lbfd -liberty $LIBINTL"
21917 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21918 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21919 if test "${gdb_cv_var_elf+set}" = set; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922 cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h. */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 #include <stdlib.h>
21929 #include "bfd.h"
21930 #include "elf-bfd.h"
21931
21932 int
21933 main ()
21934 {
21935 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21936 ;
21937 return 0;
21938 }
21939 _ACEOF
21940 rm -f conftest.$ac_objext conftest$ac_exeext
21941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21942 (eval $ac_link) 2>conftest.er1
21943 ac_status=$?
21944 grep -v '^ *+' conftest.er1 >conftest.err
21945 rm -f conftest.er1
21946 cat conftest.err >&5
21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); } &&
21949 { ac_try='test -z "$ac_c_werror_flag"
21950 || test ! -s conftest.err'
21951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952 (eval $ac_try) 2>&5
21953 ac_status=$?
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); }; } &&
21956 { ac_try='test -s conftest$ac_exeext'
21957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958 (eval $ac_try) 2>&5
21959 ac_status=$?
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); }; }; then
21962 gdb_cv_var_elf=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967 gdb_cv_var_elf=no
21968 fi
21969 rm -f conftest.err conftest.$ac_objext \
21970 conftest$ac_exeext conftest.$ac_ext
21971 fi
21972 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21973 echo "${ECHO_T}$gdb_cv_var_elf" >&6
21974 if test $gdb_cv_var_elf = yes; then
21975 CONFIG_OBS="$CONFIG_OBS elfread.o"
21976
21977 cat >>confdefs.h <<\_ACEOF
21978 #define HAVE_ELF 1
21979 _ACEOF
21980
21981 fi
21982 CFLAGS=$OLD_CFLAGS
21983 LDFLAGS=$OLD_LDFLAGS
21984 LIBS=$OLD_LIBS
21985
21986 # Add any host-specific objects to GDB.
21987 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21988
21989 LIBGUI="../libgui/src/libgui.a"
21990 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21991
21992
21993
21994 WIN32LDAPP=
21995
21996
21997
21998 case "${host}" in
21999 *-*-cygwin*)
22000 configdir="win"
22001 ;;
22002 *)
22003 configdir="unix"
22004 ;;
22005 esac
22006
22007 GDBTKLIBS=
22008 if test "${enable_gdbtk}" = "yes"; then
22009
22010 # Gdbtk must have an absolute path to srcdir in order to run
22011 # properly when not installed.
22012 here=`pwd`
22013 cd ${srcdir}
22014 GDBTK_SRC_DIR=`pwd`
22015 cd $here
22016
22017
22018 #
22019 # Ok, lets find the tcl configuration
22020 # First, look for one uninstalled.
22021 # the alternative search directory is invoked by --with-tclconfig
22022 #
22023
22024 if test x"${no_tcl}" = x ; then
22025 # we reset no_tcl in case something fails here
22026 no_tcl=true
22027
22028 # Check whether --with-tclconfig or --without-tclconfig was given.
22029 if test "${with_tclconfig+set}" = set; then
22030 withval="$with_tclconfig"
22031 with_tclconfig=${withval}
22032 fi;
22033 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22034 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
22035 if test "${ac_cv_c_tclconfig+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 else
22038
22039
22040 # First check to see if --with-tclconfig was specified.
22041 if test x"${with_tclconfig}" != x ; then
22042 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22043 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22044 else
22045 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22046 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22047 { (exit 1); exit 1; }; }
22048 fi
22049 fi
22050
22051 # then check for a private Tcl installation
22052 if test x"${ac_cv_c_tclconfig}" = x ; then
22053 for i in \
22054 ../tcl \
22055 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22056 ../../tcl \
22057 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22058 ../../../tcl \
22059 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22060 if test -f "$i/${configdir}/tclConfig.sh" ; then
22061 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22062 break
22063 fi
22064 done
22065 fi
22066 # check in a few common install locations
22067 if test x"${ac_cv_c_tclconfig}" = x ; then
22068 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22069 if test -f "$i/tclConfig.sh" ; then
22070 ac_cv_c_tclconfig=`(cd $i; pwd)`
22071 break
22072 fi
22073 done
22074 fi
22075 # check in a few other private locations
22076 if test x"${ac_cv_c_tclconfig}" = x ; then
22077 for i in \
22078 ${srcdir}/../tcl \
22079 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22080 if test -f "$i/${configdir}/tclConfig.sh" ; then
22081 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22082 break
22083 fi
22084 done
22085 fi
22086
22087 fi
22088
22089 if test x"${ac_cv_c_tclconfig}" = x ; then
22090 TCLCONFIG="# no Tcl configs found"
22091 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22092 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
22093 else
22094 no_tcl=
22095 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
22096 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22097 echo "${ECHO_T}found $TCLCONFIG" >&6
22098 fi
22099 fi
22100
22101 if test -z "${no_tcl}"; then
22102
22103 . $TCLCONFIG
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131 #
22132 # Ok, lets find the tk configuration
22133 # First, look for one uninstalled.
22134 # the alternative search directory is invoked by --with-tkconfig
22135 #
22136
22137 if test x"${no_tk}" = x ; then
22138 # we reset no_tk in case something fails here
22139 no_tk=true
22140
22141 # Check whether --with-tkconfig or --without-tkconfig was given.
22142 if test "${with_tkconfig+set}" = set; then
22143 withval="$with_tkconfig"
22144 with_tkconfig=${withval}
22145 fi;
22146 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22147 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
22148 if test "${ac_cv_c_tkconfig+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151
22152
22153 # First check to see if --with-tkconfig was specified.
22154 if test x"${with_tkconfig}" != x ; then
22155 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22156 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22157 else
22158 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22159 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22160 { (exit 1); exit 1; }; }
22161 fi
22162 fi
22163
22164 # then check for a private Tk library
22165 if test x"${ac_cv_c_tkconfig}" = x ; then
22166 for i in \
22167 ../tk \
22168 `ls -dr ../tk[4-9]* 2>/dev/null` \
22169 ../../tk \
22170 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22171 ../../../tk \
22172 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22173 if test -f "$i/${configdir}/tkConfig.sh" ; then
22174 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22175 break
22176 fi
22177 done
22178 fi
22179 # check in a few common install locations
22180 if test x"${ac_cv_c_tkconfig}" = x ; then
22181 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22182 if test -f "$i/tkConfig.sh" ; then
22183 ac_cv_c_tkconfig=`(cd $i; pwd)`
22184 break
22185 fi
22186 done
22187 fi
22188 # check in a few other private locations
22189 if test x"${ac_cv_c_tkconfig}" = x ; then
22190 for i in \
22191 ${srcdir}/../tk \
22192 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22193 if test -f "$i/${configdir}/tkConfig.sh" ; then
22194 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22195 break
22196 fi
22197 done
22198 fi
22199
22200 fi
22201
22202 if test x"${ac_cv_c_tkconfig}" = x ; then
22203 TKCONFIG="# no Tk configs found"
22204 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22205 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
22206 else
22207 no_tk=
22208 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
22209 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22210 echo "${ECHO_T}found $TKCONFIG" >&6
22211 fi
22212 fi
22213
22214
22215
22216 # now look for Tcl library stuff
22217
22218 tcldir="../tcl/${configdir}/"
22219
22220 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22221
22222 # If $no_tk is nonempty, then we can't do Tk, and there is no
22223 # point to doing Tcl.
22224 if test -z "${no_tk}"; then
22225
22226 if test -f "$TKCONFIG" ; then
22227 . $TKCONFIG
22228 fi
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243 #
22244 # Ok, lets find the tcl source trees so we can use the headers
22245 # Warning: transition of version 9 to 10 will break this algorithm
22246 # because 10 sorts before 9. We also look for just tcl. We have to
22247 # be careful that we don't match stuff like tclX by accident.
22248 # the alternative search directory is involked by --with-tclinclude
22249 #
22250
22251 no_tcl=true
22252 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22253 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
22254
22255 # Check whether --with-tclinclude or --without-tclinclude was given.
22256 if test "${with_tclinclude+set}" = set; then
22257 withval="$with_tclinclude"
22258 with_tclinclude=${withval}
22259 fi;
22260 if test "${ac_cv_c_tclh+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22262 else
22263
22264 # first check to see if --with-tclinclude was specified
22265 if test x"${with_tclinclude}" != x ; then
22266 if test -f ${with_tclinclude}/tclInt.h ; then
22267 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22268 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22269 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22270 else
22271 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22272 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22273 { (exit 1); exit 1; }; }
22274 fi
22275 fi
22276
22277 # next check if it came with Tcl configuration file
22278 if test x"${ac_cv_c_tclconfig}" = x ; then
22279 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22280 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22281 fi
22282 fi
22283
22284 # next check in private source directory
22285 #
22286 # since ls returns lowest version numbers first, reverse its output
22287 if test x"${ac_cv_c_tclh}" = x ; then
22288 for i in \
22289 ${srcdir}/../tcl \
22290 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22291 ${srcdir}/../../tcl \
22292 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22293 ${srcdir}/../../../tcl \
22294 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22295 if test -f $i/generic/tclInt.h ; then
22296 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22297 break
22298 fi
22299 done
22300 fi
22301 # finally check in a few common install locations
22302 #
22303 # since ls returns lowest version numbers first, reverse its output
22304 if test x"${ac_cv_c_tclh}" = x ; then
22305 for i in \
22306 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22307 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22308 /usr/local/src/tcl \
22309 /usr/local/lib/tcl \
22310 ${prefix}/include ; do
22311 if test -f $i/generic/tclInt.h ; then
22312 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22313 break
22314 fi
22315 done
22316 fi
22317 # see if one is installed
22318 if test x"${ac_cv_c_tclh}" = x ; then
22319 if test "${ac_cv_header_tclInt_h+set}" = set; then
22320 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22321 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22322 if test "${ac_cv_header_tclInt_h+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 fi
22325 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22326 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22327 else
22328 # Is the header compilable?
22329 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22330 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
22331 cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h. */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22337 $ac_includes_default
22338 #include <tclInt.h>
22339 _ACEOF
22340 rm -f conftest.$ac_objext
22341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22342 (eval $ac_compile) 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } &&
22349 { ac_try='test -z "$ac_c_werror_flag"
22350 || test ! -s conftest.err'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22353 ac_status=$?
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; } &&
22356 { ac_try='test -s conftest.$ac_objext'
22357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22358 (eval $ac_try) 2>&5
22359 ac_status=$?
22360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); }; }; then
22362 ac_header_compiler=yes
22363 else
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367 ac_header_compiler=no
22368 fi
22369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22370 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22371 echo "${ECHO_T}$ac_header_compiler" >&6
22372
22373 # Is the header present?
22374 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22375 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
22376 cat >conftest.$ac_ext <<_ACEOF
22377 /* confdefs.h. */
22378 _ACEOF
22379 cat confdefs.h >>conftest.$ac_ext
22380 cat >>conftest.$ac_ext <<_ACEOF
22381 /* end confdefs.h. */
22382 #include <tclInt.h>
22383 _ACEOF
22384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22386 ac_status=$?
22387 grep -v '^ *+' conftest.er1 >conftest.err
22388 rm -f conftest.er1
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } >/dev/null; then
22392 if test -s conftest.err; then
22393 ac_cpp_err=$ac_c_preproc_warn_flag
22394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22395 else
22396 ac_cpp_err=
22397 fi
22398 else
22399 ac_cpp_err=yes
22400 fi
22401 if test -z "$ac_cpp_err"; then
22402 ac_header_preproc=yes
22403 else
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_header_preproc=no
22408 fi
22409 rm -f conftest.err conftest.$ac_ext
22410 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22411 echo "${ECHO_T}$ac_header_preproc" >&6
22412
22413 # So? What about this header?
22414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22415 yes:no: )
22416 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22417 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22418 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22419 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22420 ac_header_preproc=yes
22421 ;;
22422 no:yes:* )
22423 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22424 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22425 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22426 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22427 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22428 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22429 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22430 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22431 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22432 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22433 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22434 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
22435 (
22436 cat <<\_ASBOX
22437 ## ------------------------------------------ ##
22438 ## Report this to the AC_PACKAGE_NAME lists. ##
22439 ## ------------------------------------------ ##
22440 _ASBOX
22441 ) |
22442 sed "s/^/$as_me: WARNING: /" >&2
22443 ;;
22444 esac
22445 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22446 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
22447 if test "${ac_cv_header_tclInt_h+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 else
22450 ac_cv_header_tclInt_h=$ac_header_preproc
22451 fi
22452 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22453 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
22454
22455 fi
22456 if test $ac_cv_header_tclInt_h = yes; then
22457 ac_cv_c_tclh=installed
22458 else
22459 ac_cv_c_tclh=""
22460 fi
22461
22462
22463 fi
22464
22465 fi
22466
22467 if test x"${ac_cv_c_tclh}" = x ; then
22468 TCLHDIR="# no Tcl private headers found"
22469 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22470 echo "$as_me: error: Can't find Tcl private headers" >&2;}
22471 { (exit 1); exit 1; }; }
22472 fi
22473 if test x"${ac_cv_c_tclh}" != x ; then
22474 no_tcl=""
22475 if test x"${ac_cv_c_tclh}" = x"installed" ; then
22476 echo "$as_me:$LINENO: result: is installed" >&5
22477 echo "${ECHO_T}is installed" >&6
22478 TCLHDIR=""
22479 else
22480 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22481 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
22482 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22483 TCLHDIR="-I${ac_cv_c_tclh}"
22484 fi
22485 fi
22486
22487
22488
22489
22490 #
22491 # Ok, lets find the tk source trees so we can use the headers
22492 # If the directory (presumably symlink) named "tk" exists, use that one
22493 # in preference to any others. Same logic is used when choosing library
22494 # and again with Tcl. The search order is the best place to look first, then in
22495 # decreasing significance. The loop breaks if the trigger file is found.
22496 # Note the gross little conversion here of srcdir by cd'ing to the found
22497 # directory. This converts the path from a relative to an absolute, so
22498 # recursive cache variables for the path will work right. We check all
22499 # the possible paths in one loop rather than many seperate loops to speed
22500 # things up.
22501 # the alternative search directory is involked by --with-tkinclude
22502 #
22503 no_tk=true
22504 echo "$as_me:$LINENO: checking for Tk private headers" >&5
22505 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
22506
22507 # Check whether --with-tkinclude or --without-tkinclude was given.
22508 if test "${with_tkinclude+set}" = set; then
22509 withval="$with_tkinclude"
22510 with_tkinclude=${withval}
22511 fi;
22512 if test "${ac_cv_c_tkh+set}" = set; then
22513 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 else
22515
22516 # first check to see if --with-tkinclude was specified
22517 if test x"${with_tkinclude}" != x ; then
22518 if test -f ${with_tkinclude}/tk.h ; then
22519 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22520 elif test -f ${with_tkinclude}/generic/tk.h ; then
22521 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22522 else
22523 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22524 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22525 { (exit 1); exit 1; }; }
22526 fi
22527 fi
22528
22529 # next check if it came with Tk configuration file
22530 if test x"${ac_cv_c_tkconfig}" = x ; then
22531 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22532 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22533 fi
22534 fi
22535
22536 # next check in private source directory
22537 #
22538 # since ls returns lowest version numbers first, reverse its output
22539 if test x"${ac_cv_c_tkh}" = x ; then
22540 for i in \
22541 ${srcdir}/../tk \
22542 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22543 ${srcdir}/../../tk \
22544 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22545 ${srcdir}/../../../tk \
22546 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22547 if test -f $i/generic/tk.h ; then
22548 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22549 break
22550 fi
22551 done
22552 fi
22553 # finally check in a few common install locations
22554 #
22555 # since ls returns lowest version numbers first, reverse its output
22556 if test x"${ac_cv_c_tkh}" = x ; then
22557 for i in \
22558 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22559 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22560 /usr/local/src/tk \
22561 /usr/local/lib/tk \
22562 ${prefix}/include ; do
22563 if test -f $i/generic/tk.h ; then
22564 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22565 break
22566 fi
22567 done
22568 fi
22569 # see if one is installed
22570 if test x"${ac_cv_c_tkh}" = x ; then
22571 if test "${ac_cv_header_tk_h+set}" = set; then
22572 echo "$as_me:$LINENO: checking for tk.h" >&5
22573 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22574 if test "${ac_cv_header_tk_h+set}" = set; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22576 fi
22577 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22578 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22579 else
22580 # Is the header compilable?
22581 echo "$as_me:$LINENO: checking tk.h usability" >&5
22582 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h. */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 #include <tk.h>
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22594 (eval $ac_compile) 2>conftest.er1
22595 ac_status=$?
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } &&
22601 { ac_try='test -z "$ac_c_werror_flag"
22602 || test ! -s conftest.err'
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; } &&
22608 { ac_try='test -s conftest.$ac_objext'
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614 ac_header_compiler=yes
22615 else
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619 ac_header_compiler=no
22620 fi
22621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22623 echo "${ECHO_T}$ac_header_compiler" >&6
22624
22625 # Is the header present?
22626 echo "$as_me:$LINENO: checking tk.h presence" >&5
22627 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
22628 cat >conftest.$ac_ext <<_ACEOF
22629 /* confdefs.h. */
22630 _ACEOF
22631 cat confdefs.h >>conftest.$ac_ext
22632 cat >>conftest.$ac_ext <<_ACEOF
22633 /* end confdefs.h. */
22634 #include <tk.h>
22635 _ACEOF
22636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } >/dev/null; then
22644 if test -s conftest.err; then
22645 ac_cpp_err=$ac_c_preproc_warn_flag
22646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22647 else
22648 ac_cpp_err=
22649 fi
22650 else
22651 ac_cpp_err=yes
22652 fi
22653 if test -z "$ac_cpp_err"; then
22654 ac_header_preproc=yes
22655 else
22656 echo "$as_me: failed program was:" >&5
22657 sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ac_header_preproc=no
22660 fi
22661 rm -f conftest.err conftest.$ac_ext
22662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22663 echo "${ECHO_T}$ac_header_preproc" >&6
22664
22665 # So? What about this header?
22666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22667 yes:no: )
22668 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22669 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22670 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22671 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22672 ac_header_preproc=yes
22673 ;;
22674 no:yes:* )
22675 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22676 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22677 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22678 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22680 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22682 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22684 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22685 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22686 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
22687 (
22688 cat <<\_ASBOX
22689 ## ------------------------------------------ ##
22690 ## Report this to the AC_PACKAGE_NAME lists. ##
22691 ## ------------------------------------------ ##
22692 _ASBOX
22693 ) |
22694 sed "s/^/$as_me: WARNING: /" >&2
22695 ;;
22696 esac
22697 echo "$as_me:$LINENO: checking for tk.h" >&5
22698 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
22699 if test "${ac_cv_header_tk_h+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22701 else
22702 ac_cv_header_tk_h=$ac_header_preproc
22703 fi
22704 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22705 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
22706
22707 fi
22708 if test $ac_cv_header_tk_h = yes; then
22709 ac_cv_c_tkh=installed
22710 else
22711 ac_cv_c_tkh=""
22712 fi
22713
22714
22715 fi
22716
22717 fi
22718
22719 if test x"${ac_cv_c_tkh}" != x ; then
22720 no_tk=""
22721 if test x"${ac_cv_c_tkh}" = x"installed" ; then
22722 echo "$as_me:$LINENO: result: is installed" >&5
22723 echo "${ECHO_T}is installed" >&6
22724 TKHDIR=""
22725 else
22726 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22727 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
22728 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22729 TKHDIR="-I${ac_cv_c_tkh}"
22730 fi
22731 else
22732 TKHDIR="# no Tk directory found"
22733 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22734 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
22735 no_tk=true
22736 fi
22737
22738
22739
22740
22741 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22742 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
22743 if test x"${ac_cv_c_itclh}" = x ; then
22744 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22745 if test -f $i/generic/itcl.h ; then
22746 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22747 break
22748 fi
22749 done
22750 fi
22751 if test x"${ac_cv_c_itclh}" = x ; then
22752 ITCLHDIR="# no Itcl private headers found"
22753 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22754 echo "$as_me: error: Can't find Itcl private headers" >&2;}
22755 { (exit 1); exit 1; }; }
22756 fi
22757 if test x"${ac_cv_c_itclh}" != x ; then
22758 ITCLHDIR="-I${ac_cv_c_itclh}"
22759 fi
22760 # should always be here
22761 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
22762
22763 #AC_SUBST(ITCLLIB)
22764
22765
22766 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22767 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
22768 if test x"${ac_cv_c_itkh}" = x ; then
22769 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22770 if test -f $i/generic/itk.h ; then
22771 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22772 break
22773 fi
22774 done
22775 fi
22776 if test x"${ac_cv_c_itkh}" = x ; then
22777 ITKHDIR="# no Itk private headers found"
22778 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22779 echo "$as_me: error: Can't find Itk private headers" >&2;}
22780 { (exit 1); exit 1; }; }
22781 fi
22782 if test x"${ac_cv_c_itkh}" != x ; then
22783 ITKHDIR="-I${ac_cv_c_itkh}"
22784 fi
22785 # should always be here
22786 # ITKLIB="../itcl/itk/unix/libitk.a"
22787
22788 #AC_SUBST(ITKLIB)
22789
22790
22791
22792 # now look for Tk library stuff
22793
22794 tkdir="../tk/${configdir}/"
22795
22796 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22797
22798 # now look for Itcl library stuff
22799
22800
22801 #
22802 # Ok, lets find the itcl configuration
22803 # First, look for one uninstalled.
22804 # the alternative search directory is invoked by --with-itclconfig
22805 #
22806
22807 if test x"${no_itcl}" = x ; then
22808 # we reset no_itcl in case something fails here
22809 no_itcl=true
22810
22811 # Check whether --with-itclconfig or --without-itclconfig was given.
22812 if test "${with_itclconfig+set}" = set; then
22813 withval="$with_itclconfig"
22814 with_itclconfig=${withval}
22815 fi;
22816 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22817 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22818 if test "${ac_cv_c_itclconfig+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 else
22821
22822
22823 # First check to see if --with-itclconfig was specified.
22824 if test x"${with_itclconfig}" != x ; then
22825 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22826 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22827 else
22828 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22829 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22830 { (exit 1); exit 1; }; }
22831 fi
22832 fi
22833
22834 # then check for a private Itcl library
22835 if test x"${ac_cv_c_itclconfig}" = x ; then
22836 for i in \
22837 ../itcl/itcl \
22838 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22839 ../../itcl \
22840 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22841 ../../../itcl \
22842 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22843 if test -f "$i/itclConfig.sh" ; then
22844 ac_cv_c_itclconfig=`(cd $i; pwd)`
22845 break
22846 fi
22847 done
22848 fi
22849 # check in a few common install locations
22850 if test x"${ac_cv_c_itclconfig}" = x ; then
22851 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22852 if test -f "$i/itclConfig.sh" ; then
22853 ac_cv_c_itclconfig=`(cd $i; pwd)`
22854 break
22855 fi
22856 done
22857 fi
22858 # check in a few other private locations
22859 if test x"${ac_cv_c_itclconfig}" = x ; then
22860 for i in \
22861 ${srcdir}/../itcl/itcl \
22862 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22863 if test -f "$i/itclConfig.sh" ; then
22864 ac_cv_c_itclconfig=`(cd $i; pwd)`
22865 break
22866 fi
22867 done
22868 fi
22869
22870 fi
22871
22872 if test x"${ac_cv_c_itclconfig}" = x ; then
22873 ITCLCONFIG="# no Itcl configs found"
22874 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22875 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22876 else
22877 no_itcl=
22878 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22879 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22880 echo "${ECHO_T}found $ITCLCONFIG" >&6
22881 fi
22882 fi
22883
22884 if test -z "${no_itcl}"; then
22885
22886 if test -f "$ITCLCONFIG" ; then
22887 . $ITCLCONFIG
22888 fi
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22902 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22903 fi
22904
22905
22906 # now look for Itk library stuff
22907
22908 #
22909 # Ok, lets find the itk configuration
22910 # First, look for one uninstalled.
22911 # the alternative search directory is invoked by --with-itkconfig
22912 #
22913
22914 if test x"${no_itk}" = x ; then
22915 # we reset no_itk in case something fails here
22916 no_itk=true
22917
22918 # Check whether --with-itkconfig or --without-itkconfig was given.
22919 if test "${with_itkconfig+set}" = set; then
22920 withval="$with_itkconfig"
22921 with_itkconfig=${withval}
22922 fi;
22923 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22924 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22925 if test "${ac_cv_c_itkconfig+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 else
22928
22929
22930 # First check to see if --with-itkconfig was specified.
22931 if test x"${with_itkconfig}" != x ; then
22932 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22933 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22934 else
22935 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22936 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22937 { (exit 1); exit 1; }; }
22938 fi
22939 fi
22940
22941 # then check for a private Itk library
22942 if test x"${ac_cv_c_itkconfig}" = x ; then
22943 for i in \
22944 ../itcl/itk \
22945 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22946 ../../itk \
22947 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22948 ../../../itk \
22949 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22950 if test -f "$i/itkConfig.sh" ; then
22951 ac_cv_c_itkconfig=`(cd $i; pwd)`
22952 break
22953 fi
22954 done
22955 fi
22956 # check in a few common install locations
22957 if test x"${ac_cv_c_itkconfig}" = x ; then
22958 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22959 if test -f "$i/itkConfig.sh" ; then
22960 ac_cv_c_itkconfig=`(cd $i; pwd)`
22961 break
22962 fi
22963 done
22964 fi
22965 # check in a few other private locations
22966 if test x"${ac_cv_c_itkconfig}" = x ; then
22967 for i in \
22968 ${srcdir}/../itcl/itk \
22969 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22970 if test -f "$i/itkConfig.sh" ; then
22971 ac_cv_c_itkconfig=`(cd $i; pwd)`
22972 break
22973 fi
22974 done
22975 fi
22976
22977 fi
22978
22979 if test x"${ac_cv_c_itkconfig}" = x ; then
22980 ITKCONFIG="# no Itk configs found"
22981 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22982 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22983 else
22984 no_itk=
22985 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22986 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22987 echo "${ECHO_T}found $ITKCONFIG" >&6
22988 fi
22989 fi
22990
22991
22992 if test -z "${no_itcl}"; then
22993
22994 if test -f "$ITKCONFIG" ; then
22995 . $ITKCONFIG
22996 fi
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009 ITKLIB="${ITK_BUILD_LIB_SPEC}"
23010 ITK_DEPS="${ITK_LIB_FULL_PATH}"
23011 fi
23012
23013 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
23014
23015 # Include some libraries that Tcl and Tk want.
23016 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
23017 # Yes, the ordering seems wrong here. But it isn't.
23018 # TK_LIBS is the list of libraries that need to be linked
23019 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23020 # were in LIBS then any link tests after this point would
23021 # try to include things like `$(LIBGUI)', which wouldn't work.
23022 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
23023
23024 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23025 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23026 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
23027 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23028 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23029 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23030 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
23031
23032 if test x$gdb_cv_os_cygwin = xyes; then
23033 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23034 WIN32LDAPP="-Wl,--subsystem,console"
23035 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23036 fi
23037 fi
23038 fi
23039
23040
23041
23042 subdirs="$subdirs gdbtk"
23043
23044 fi
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059 echo "$as_me:$LINENO: checking for X" >&5
23060 echo $ECHO_N "checking for X... $ECHO_C" >&6
23061
23062
23063 # Check whether --with-x or --without-x was given.
23064 if test "${with_x+set}" = set; then
23065 withval="$with_x"
23066
23067 fi;
23068 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23069 if test "x$with_x" = xno; then
23070 # The user explicitly disabled X.
23071 have_x=disabled
23072 else
23073 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23074 # Both variables are already set.
23075 have_x=yes
23076 else
23077 if test "${ac_cv_have_x+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 else
23080 # One or both of the vars are not set, and there is no cached value.
23081 ac_x_includes=no ac_x_libraries=no
23082 rm -fr conftest.dir
23083 if mkdir conftest.dir; then
23084 cd conftest.dir
23085 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23086 cat >Imakefile <<'_ACEOF'
23087 acfindx:
23088 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23089 _ACEOF
23090 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23092 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23093 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23094 for ac_extension in a so sl; do
23095 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23096 test -f $ac_im_libdir/libX11.$ac_extension; then
23097 ac_im_usrlibdir=$ac_im_libdir; break
23098 fi
23099 done
23100 # Screen out bogus values from the imake configuration. They are
23101 # bogus both because they are the default anyway, and because
23102 # using them would break gcc on systems where it needs fixed includes.
23103 case $ac_im_incroot in
23104 /usr/include) ;;
23105 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23106 esac
23107 case $ac_im_usrlibdir in
23108 /usr/lib | /lib) ;;
23109 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23110 esac
23111 fi
23112 cd ..
23113 rm -fr conftest.dir
23114 fi
23115
23116 # Standard set of common directories for X headers.
23117 # Check X11 before X11Rn because it is often a symlink to the current release.
23118 ac_x_header_dirs='
23119 /usr/X11/include
23120 /usr/X11R6/include
23121 /usr/X11R5/include
23122 /usr/X11R4/include
23123
23124 /usr/include/X11
23125 /usr/include/X11R6
23126 /usr/include/X11R5
23127 /usr/include/X11R4
23128
23129 /usr/local/X11/include
23130 /usr/local/X11R6/include
23131 /usr/local/X11R5/include
23132 /usr/local/X11R4/include
23133
23134 /usr/local/include/X11
23135 /usr/local/include/X11R6
23136 /usr/local/include/X11R5
23137 /usr/local/include/X11R4
23138
23139 /usr/X386/include
23140 /usr/x386/include
23141 /usr/XFree86/include/X11
23142
23143 /usr/include
23144 /usr/local/include
23145 /usr/unsupported/include
23146 /usr/athena/include
23147 /usr/local/x11r5/include
23148 /usr/lpp/Xamples/include
23149
23150 /usr/openwin/include
23151 /usr/openwin/share/include'
23152
23153 if test "$ac_x_includes" = no; then
23154 # Guess where to find include files, by looking for Intrinsic.h.
23155 # First, try using that file with no special directory specified.
23156 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h. */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162 #include <X11/Intrinsic.h>
23163 _ACEOF
23164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } >/dev/null; then
23172 if test -s conftest.err; then
23173 ac_cpp_err=$ac_c_preproc_warn_flag
23174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23175 else
23176 ac_cpp_err=
23177 fi
23178 else
23179 ac_cpp_err=yes
23180 fi
23181 if test -z "$ac_cpp_err"; then
23182 # We can compile using X headers with no special include directory.
23183 ac_x_includes=
23184 else
23185 echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23187
23188 for ac_dir in $ac_x_header_dirs; do
23189 if test -r "$ac_dir/X11/Intrinsic.h"; then
23190 ac_x_includes=$ac_dir
23191 break
23192 fi
23193 done
23194 fi
23195 rm -f conftest.err conftest.$ac_ext
23196 fi # $ac_x_includes = no
23197
23198 if test "$ac_x_libraries" = no; then
23199 # Check for the libraries.
23200 # See if we find them without any special options.
23201 # Don't add to $LIBS permanently.
23202 ac_save_LIBS=$LIBS
23203 LIBS="-lXt $LIBS"
23204 cat >conftest.$ac_ext <<_ACEOF
23205 /* confdefs.h. */
23206 _ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 #include <X11/Intrinsic.h>
23211 int
23212 main ()
23213 {
23214 XtMalloc (0)
23215 ;
23216 return 0;
23217 }
23218 _ACEOF
23219 rm -f conftest.$ac_objext conftest$ac_exeext
23220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23221 (eval $ac_link) 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } &&
23228 { ac_try='test -z "$ac_c_werror_flag"
23229 || test ! -s conftest.err'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; } &&
23235 { ac_try='test -s conftest$ac_exeext'
23236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23237 (eval $ac_try) 2>&5
23238 ac_status=$?
23239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240 (exit $ac_status); }; }; then
23241 LIBS=$ac_save_LIBS
23242 # We can link X programs with no special library path.
23243 ac_x_libraries=
23244 else
23245 echo "$as_me: failed program was:" >&5
23246 sed 's/^/| /' conftest.$ac_ext >&5
23247
23248 LIBS=$ac_save_LIBS
23249 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23250 do
23251 # Don't even attempt the hair of trying to link an X program!
23252 for ac_extension in a so sl; do
23253 if test -r $ac_dir/libXt.$ac_extension; then
23254 ac_x_libraries=$ac_dir
23255 break 2
23256 fi
23257 done
23258 done
23259 fi
23260 rm -f conftest.err conftest.$ac_objext \
23261 conftest$ac_exeext conftest.$ac_ext
23262 fi # $ac_x_libraries = no
23263
23264 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23265 # Didn't find X anywhere. Cache the known absence of X.
23266 ac_cv_have_x="have_x=no"
23267 else
23268 # Record where we found X for the cache.
23269 ac_cv_have_x="have_x=yes \
23270 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23271 fi
23272 fi
23273
23274 fi
23275 eval "$ac_cv_have_x"
23276 fi # $with_x != no
23277
23278 if test "$have_x" != yes; then
23279 echo "$as_me:$LINENO: result: $have_x" >&5
23280 echo "${ECHO_T}$have_x" >&6
23281 no_x=yes
23282 else
23283 # If each of the values was on the command line, it overrides each guess.
23284 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23285 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23286 # Update the cache value to reflect the command line values.
23287 ac_cv_have_x="have_x=yes \
23288 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23289 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23290 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23291 fi
23292
23293
23294 # Check whether we should enable the TUI, but only do so if we really
23295 # can.
23296 if test x"$enable_tui" = xyes; then
23297 if test -d $srcdir/tui; then
23298 if test "$ac_cv_search_waddstr" != no; then
23299 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23300 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23301 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23302 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23303 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23304 CONFIG_ALL="${CONFIG_ALL} all-tui"
23305 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23306 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23307 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23308 else
23309 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23310 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
23311 fi
23312 fi
23313 fi
23314
23315 # Unlike the sim directory, whether a simulator is linked is controlled by
23316 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
23317 # This code just checks for a few cases where we'd like to ignore those
23318 # definitions, even when they're present in the '.mt' file. These cases
23319 # are when --disable-sim is specified, or if the simulator directory is
23320 # not part of the source tree.
23321 #
23322 # Check whether --enable-sim or --disable-sim was given.
23323 if test "${enable_sim+set}" = set; then
23324 enableval="$enable_sim"
23325 echo "enable_sim = $enable_sim";
23326 echo "enableval = ${enableval}";
23327 case "${enableval}" in
23328 yes) ignore_sim=false ;;
23329 no) ignore_sim=true ;;
23330 *) ignore_sim=false ;;
23331 esac
23332 else
23333 ignore_sim=false
23334 fi;
23335
23336 if test ! -d "${srcdir}/../sim"; then
23337 ignore_sim=true
23338 fi
23339
23340 if test "${ignore_sim}" = "true"; then
23341 IGNORE_SIM="SIM="
23342 IGNORE_SIM_OBS="SIM_OBS="
23343 else
23344 IGNORE_SIM=""
23345 IGNORE_SIM_OBS=""
23346
23347 cat >>confdefs.h <<\_ACEOF
23348 #define WITH_SIM 1
23349 _ACEOF
23350
23351 fi
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366 # List of host floatformats.
23367
23368 cat >>confdefs.h <<_ACEOF
23369 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
23370 _ACEOF
23371
23372
23373 cat >>confdefs.h <<_ACEOF
23374 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
23375 _ACEOF
23376
23377
23378 cat >>confdefs.h <<_ACEOF
23379 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
23380 _ACEOF
23381
23382
23383 # target_subdir is used by the testsuite to find the target libraries.
23384 target_subdir=
23385 if test "${host}" != "${target}"; then
23386 target_subdir="${target_alias}/"
23387 fi
23388
23389
23390 frags=
23391 if test "${gdb_native}" = "yes"; then
23392 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23393 if test ! -f ${host_makefile_frag}; then
23394 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23395 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23396 { (exit 1); exit 1; }; }
23397 fi
23398 frags="$frags $host_makefile_frag"
23399 else
23400 host_makefile_frag=/dev/null
23401 fi
23402
23403 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23404 if test ! -f ${target_makefile_frag}; then
23405 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23406 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23407 { (exit 1); exit 1; }; }
23408 fi
23409 frags="$frags $target_makefile_frag"
23410
23411
23412
23413
23414
23415 hostfile=`sed -n '
23416 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23417 ' ${host_makefile_frag}`
23418
23419 targetfile=`sed -n '
23420 s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23421 ' ${target_makefile_frag}`
23422
23423 if test "${gdb_native}" = "yes"; then
23424 # We pick this up from the host configuration file (.mh) because we
23425 # do not have a native configuration Makefile fragment.
23426 nativefile=`sed -n '
23427 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23428 ' ${host_makefile_frag}`
23429 fi
23430
23431
23432 if test x"${gdb_osabi}" != x ; then
23433
23434 cat >>confdefs.h <<_ACEOF
23435 #define GDB_OSABI_DEFAULT $gdb_osabi
23436 _ACEOF
23437
23438 fi
23439
23440 # Enable multi-ice-gdb-server.
23441 # Check whether --enable-multi-ice or --disable-multi-ice was given.
23442 if test "${enable_multi_ice+set}" = set; then
23443 enableval="$enable_multi_ice"
23444 case $enableval in
23445 yes | no)
23446 ;;
23447 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23448 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23449 { (exit 1); exit 1; }; } ;;
23450 esac
23451 fi;
23452 if test "x$enable_multi_ice" = xyes; then
23453
23454
23455 subdirs="$subdirs multi-ice"
23456
23457 fi
23458
23459 # We only build gdbserver automatically in a native configuration.
23460 if test "$gdb_native" = "yes"; then
23461 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23462 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
23463 if test "x$build_gdbserver" = xyes; then
23464 echo "$as_me:$LINENO: result: yes" >&5
23465 echo "${ECHO_T}yes" >&6
23466
23467
23468 subdirs="$subdirs gdbserver"
23469
23470 else
23471 echo "$as_me:$LINENO: result: no" >&5
23472 echo "${ECHO_T}no" >&6
23473 fi
23474 fi
23475
23476 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23477 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23478 # to an empty version.
23479
23480 files=
23481 links=
23482
23483 rm -f xm.h
23484 xm_h=""
23485 if test "${hostfile}" != ""; then
23486 xm_h=xm.h
23487 case "${hostfile}" in
23488 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23489 * ) GDB_XM_FILE="${hostfile}"
23490 esac
23491 files="${files} ${GDB_XM_FILE}"
23492 links="${links} xm.h"
23493
23494 cat >>confdefs.h <<_ACEOF
23495 #define GDB_XM_FILE "${GDB_XM_FILE}"
23496 _ACEOF
23497
23498 fi
23499
23500
23501 rm -f tm.h
23502 tm_h=""
23503 if test "${targetfile}" != ""; then
23504 tm_h=tm.h
23505 case "${targetfile}" in
23506 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
23507 * ) GDB_TM_FILE="${targetfile}"
23508 esac
23509 files="${files} ${GDB_TM_FILE}"
23510 links="${links} tm.h"
23511
23512 cat >>confdefs.h <<_ACEOF
23513 #define GDB_TM_FILE "${GDB_TM_FILE}"
23514 _ACEOF
23515
23516 fi
23517
23518
23519 rm -f nm.h
23520 nm_h=""
23521 if test "${nativefile}" != ""; then
23522 nm_h=nm.h
23523 case "${nativefile}" in
23524 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23525 * ) GDB_NM_FILE="${nativefile}"
23526 esac
23527 files="${files} ${GDB_NM_FILE}"
23528 links="${links} nm.h"
23529
23530 cat >>confdefs.h <<_ACEOF
23531 #define GDB_NM_FILE "${GDB_NM_FILE}"
23532 _ACEOF
23533
23534 fi
23535
23536
23537 ac_sources="$files"
23538 ac_dests="$links"
23539 while test -n "$ac_sources"; do
23540 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23541 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23542 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23543 done
23544 ac_config_links="$ac_config_links $ac_config_links_1"
23545
23546
23547
23548
23549
23550
23551 cat >>confdefs.h <<\_ACEOF
23552 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23553 _ACEOF
23554
23555
23556
23557
23558
23559 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
23560 if test "${with_libiconv_prefix+set}" = set; then
23561 withval="$with_libiconv_prefix"
23562
23563 for dir in `echo "$withval" | tr : ' '`; do
23564 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23565 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23566 done
23567
23568 fi;
23569
23570 echo "$as_me:$LINENO: checking for iconv" >&5
23571 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
23572 if test "${am_cv_func_iconv+set}" = set; then
23573 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 else
23575
23576 am_cv_func_iconv="no, consider installing GNU libiconv"
23577 am_cv_lib_iconv=no
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 #include <stdlib.h>
23585 #include <iconv.h>
23586 int
23587 main ()
23588 {
23589 iconv_t cd = iconv_open("","");
23590 iconv(cd,NULL,NULL,NULL,NULL);
23591 iconv_close(cd);
23592 ;
23593 return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext conftest$ac_exeext
23597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23598 (eval $ac_link) 2>conftest.er1
23599 ac_status=$?
23600 grep -v '^ *+' conftest.er1 >conftest.err
23601 rm -f conftest.er1
23602 cat conftest.err >&5
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); } &&
23605 { ac_try='test -z "$ac_c_werror_flag"
23606 || test ! -s conftest.err'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; } &&
23612 { ac_try='test -s conftest$ac_exeext'
23613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23614 (eval $ac_try) 2>&5
23615 ac_status=$?
23616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23617 (exit $ac_status); }; }; then
23618 am_cv_func_iconv=yes
23619 else
23620 echo "$as_me: failed program was:" >&5
23621 sed 's/^/| /' conftest.$ac_ext >&5
23622
23623 fi
23624 rm -f conftest.err conftest.$ac_objext \
23625 conftest$ac_exeext conftest.$ac_ext
23626 if test "$am_cv_func_iconv" != yes; then
23627 am_save_LIBS="$LIBS"
23628 LIBS="$LIBS -liconv"
23629 cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h. */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 #include <stdlib.h>
23636 #include <iconv.h>
23637 int
23638 main ()
23639 {
23640 iconv_t cd = iconv_open("","");
23641 iconv(cd,NULL,NULL,NULL,NULL);
23642 iconv_close(cd);
23643 ;
23644 return 0;
23645 }
23646 _ACEOF
23647 rm -f conftest.$ac_objext conftest$ac_exeext
23648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23649 (eval $ac_link) 2>conftest.er1
23650 ac_status=$?
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
23656 { ac_try='test -z "$ac_c_werror_flag"
23657 || test ! -s conftest.err'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; } &&
23663 { ac_try='test -s conftest$ac_exeext'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669 am_cv_lib_iconv=yes
23670 am_cv_func_iconv=yes
23671 else
23672 echo "$as_me: failed program was:" >&5
23673 sed 's/^/| /' conftest.$ac_ext >&5
23674
23675 fi
23676 rm -f conftest.err conftest.$ac_objext \
23677 conftest$ac_exeext conftest.$ac_ext
23678 LIBS="$am_save_LIBS"
23679 fi
23680
23681 fi
23682 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23683 echo "${ECHO_T}$am_cv_func_iconv" >&6
23684 if test "$am_cv_func_iconv" = yes; then
23685
23686 cat >>confdefs.h <<\_ACEOF
23687 #define HAVE_ICONV 1
23688 _ACEOF
23689
23690 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23691 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
23692 if test "${am_cv_proto_iconv+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 else
23695
23696 cat >conftest.$ac_ext <<_ACEOF
23697 /* confdefs.h. */
23698 _ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702
23703 #include <stdlib.h>
23704 #include <iconv.h>
23705 extern
23706 #ifdef __cplusplus
23707 "C"
23708 #endif
23709 #if defined(__STDC__) || defined(__cplusplus)
23710 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23711 #else
23712 size_t iconv();
23713 #endif
23714
23715 int
23716 main ()
23717 {
23718
23719 ;
23720 return 0;
23721 }
23722 _ACEOF
23723 rm -f conftest.$ac_objext
23724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23725 (eval $ac_compile) 2>conftest.er1
23726 ac_status=$?
23727 grep -v '^ *+' conftest.er1 >conftest.err
23728 rm -f conftest.er1
23729 cat conftest.err >&5
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); } &&
23732 { ac_try='test -z "$ac_c_werror_flag"
23733 || test ! -s conftest.err'
23734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); }; } &&
23739 { ac_try='test -s conftest.$ac_objext'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23742 ac_status=$?
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; }; then
23745 am_cv_proto_iconv_arg1=""
23746 else
23747 echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750 am_cv_proto_iconv_arg1="const"
23751 fi
23752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23753 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);"
23754 fi
23755
23756 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23757 echo "$as_me:$LINENO: result: ${ac_t:-
23758 }$am_cv_proto_iconv" >&5
23759 echo "${ECHO_T}${ac_t:-
23760 }$am_cv_proto_iconv" >&6
23761
23762 cat >>confdefs.h <<_ACEOF
23763 #define ICONV_CONST $am_cv_proto_iconv_arg1
23764 _ACEOF
23765
23766 fi
23767 LIBICONV=
23768 if test "$am_cv_lib_iconv" = yes; then
23769 LIBICONV="-liconv"
23770 fi
23771
23772
23773
23774 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23775 ac_config_commands="$ac_config_commands default"
23776 cat >confcache <<\_ACEOF
23777 # This file is a shell script that caches the results of configure
23778 # tests run on this system so they can be shared between configure
23779 # scripts and configure runs, see configure's option --config-cache.
23780 # It is not useful on other systems. If it contains results you don't
23781 # want to keep, you may remove or edit it.
23782 #
23783 # config.status only pays attention to the cache file if you give it
23784 # the --recheck option to rerun configure.
23785 #
23786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23788 # following values.
23789
23790 _ACEOF
23791
23792 # The following way of writing the cache mishandles newlines in values,
23793 # but we know of no workaround that is simple, portable, and efficient.
23794 # So, don't put newlines in cache variables' values.
23795 # Ultrix sh set writes to stderr and can't be redirected directly,
23796 # and sets the high bit in the cache file unless we assign to the vars.
23797 {
23798 (set) 2>&1 |
23799 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23800 *ac_space=\ *)
23801 # `set' does not quote correctly, so add quotes (double-quote
23802 # substitution turns \\\\ into \\, and sed turns \\ into \).
23803 sed -n \
23804 "s/'/'\\\\''/g;
23805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23806 ;;
23807 *)
23808 # `set' quotes correctly as required by POSIX, so do not add quotes.
23809 sed -n \
23810 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23811 ;;
23812 esac;
23813 } |
23814 sed '
23815 t clear
23816 : clear
23817 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23818 t end
23819 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23820 : end' >>confcache
23821 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23822 if test -w $cache_file; then
23823 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23824 cat confcache >$cache_file
23825 else
23826 echo "not updating unwritable cache $cache_file"
23827 fi
23828 fi
23829 rm -f confcache
23830
23831 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23832 # Let make expand exec_prefix.
23833 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23834
23835 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23836 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23837 # trailing colons and then remove the whole line if VPATH becomes empty
23838 # (actually we leave an empty line to preserve line numbers).
23839 if test "x$srcdir" = x.; then
23840 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23841 s/:*\$(srcdir):*/:/;
23842 s/:*\${srcdir}:*/:/;
23843 s/:*@srcdir@:*/:/;
23844 s/^\([^=]*=[ ]*\):*/\1/;
23845 s/:*$//;
23846 s/^[^=]*=[ ]*$//;
23847 }'
23848 fi
23849
23850 DEFS=-DHAVE_CONFIG_H
23851
23852 ac_libobjs=
23853 ac_ltlibobjs=
23854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23855 # 1. Remove the extension, and $U if already installed.
23856 ac_i=`echo "$ac_i" |
23857 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23858 # 2. Add them.
23859 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23860 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23861 done
23862 LIBOBJS=$ac_libobjs
23863
23864 LTLIBOBJS=$ac_ltlibobjs
23865
23866
23867 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23868 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23869 Usually this means the macro was only invoked conditionally." >&5
23870 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23871 Usually this means the macro was only invoked conditionally." >&2;}
23872 { (exit 1); exit 1; }; }
23873 fi
23874
23875 : ${CONFIG_STATUS=./config.status}
23876 ac_clean_files_save=$ac_clean_files
23877 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23878 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23879 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23880 cat >$CONFIG_STATUS <<_ACEOF
23881 #! $SHELL
23882 # Generated by $as_me.
23883 # Run this file to recreate the current configuration.
23884 # Compiler output produced by configure, useful for debugging
23885 # configure, is in config.log if it exists.
23886
23887 debug=false
23888 ac_cs_recheck=false
23889 ac_cs_silent=false
23890 SHELL=\${CONFIG_SHELL-$SHELL}
23891 _ACEOF
23892
23893 cat >>$CONFIG_STATUS <<\_ACEOF
23894 ## --------------------- ##
23895 ## M4sh Initialization. ##
23896 ## --------------------- ##
23897
23898 # Be Bourne compatible
23899 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23900 emulate sh
23901 NULLCMD=:
23902 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23903 # is contrary to our usage. Disable this feature.
23904 alias -g '${1+"$@"}'='"$@"'
23905 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23906 set -o posix
23907 fi
23908 DUALCASE=1; export DUALCASE # for MKS sh
23909
23910 # Support unset when possible.
23911 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23912 as_unset=unset
23913 else
23914 as_unset=false
23915 fi
23916
23917
23918 # Work around bugs in pre-3.0 UWIN ksh.
23919 $as_unset ENV MAIL MAILPATH
23920 PS1='$ '
23921 PS2='> '
23922 PS4='+ '
23923
23924 # NLS nuisances.
23925 for as_var in \
23926 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23927 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23928 LC_TELEPHONE LC_TIME
23929 do
23930 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23931 eval $as_var=C; export $as_var
23932 else
23933 $as_unset $as_var
23934 fi
23935 done
23936
23937 # Required to use basename.
23938 if expr a : '\(a\)' >/dev/null 2>&1; then
23939 as_expr=expr
23940 else
23941 as_expr=false
23942 fi
23943
23944 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23945 as_basename=basename
23946 else
23947 as_basename=false
23948 fi
23949
23950
23951 # Name of the executable.
23952 as_me=`$as_basename "$0" ||
23953 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23954 X"$0" : 'X\(//\)$' \| \
23955 X"$0" : 'X\(/\)$' \| \
23956 . : '\(.\)' 2>/dev/null ||
23957 echo X/"$0" |
23958 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23959 /^X\/\(\/\/\)$/{ s//\1/; q; }
23960 /^X\/\(\/\).*/{ s//\1/; q; }
23961 s/.*/./; q'`
23962
23963
23964 # PATH needs CR, and LINENO needs CR and PATH.
23965 # Avoid depending upon Character Ranges.
23966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23969 as_cr_digits='0123456789'
23970 as_cr_alnum=$as_cr_Letters$as_cr_digits
23971
23972 # The user is always right.
23973 if test "${PATH_SEPARATOR+set}" != set; then
23974 echo "#! /bin/sh" >conf$$.sh
23975 echo "exit 0" >>conf$$.sh
23976 chmod +x conf$$.sh
23977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23978 PATH_SEPARATOR=';'
23979 else
23980 PATH_SEPARATOR=:
23981 fi
23982 rm -f conf$$.sh
23983 fi
23984
23985
23986 as_lineno_1=$LINENO
23987 as_lineno_2=$LINENO
23988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23989 test "x$as_lineno_1" != "x$as_lineno_2" &&
23990 test "x$as_lineno_3" = "x$as_lineno_2" || {
23991 # Find who we are. Look in the path if we contain no path at all
23992 # relative or not.
23993 case $0 in
23994 *[\\/]* ) as_myself=$0 ;;
23995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23996 for as_dir in $PATH
23997 do
23998 IFS=$as_save_IFS
23999 test -z "$as_dir" && as_dir=.
24000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24001 done
24002
24003 ;;
24004 esac
24005 # We did not find ourselves, most probably we were run as `sh COMMAND'
24006 # in which case we are not to be found in the path.
24007 if test "x$as_myself" = x; then
24008 as_myself=$0
24009 fi
24010 if test ! -f "$as_myself"; then
24011 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24012 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24013 { (exit 1); exit 1; }; }
24014 fi
24015 case $CONFIG_SHELL in
24016 '')
24017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24019 do
24020 IFS=$as_save_IFS
24021 test -z "$as_dir" && as_dir=.
24022 for as_base in sh bash ksh sh5; do
24023 case $as_dir in
24024 /*)
24025 if ("$as_dir/$as_base" -c '
24026 as_lineno_1=$LINENO
24027 as_lineno_2=$LINENO
24028 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24029 test "x$as_lineno_1" != "x$as_lineno_2" &&
24030 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24031 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24032 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24033 CONFIG_SHELL=$as_dir/$as_base
24034 export CONFIG_SHELL
24035 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24036 fi;;
24037 esac
24038 done
24039 done
24040 ;;
24041 esac
24042
24043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24044 # uniformly replaced by the line number. The first 'sed' inserts a
24045 # line-number line before each line; the second 'sed' does the real
24046 # work. The second script uses 'N' to pair each line-number line
24047 # with the numbered line, and appends trailing '-' during
24048 # substitution so that $LINENO is not a special case at line end.
24049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24050 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24051 sed '=' <$as_myself |
24052 sed '
24053 N
24054 s,$,-,
24055 : loop
24056 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24057 t loop
24058 s,-$,,
24059 s,^['$as_cr_digits']*\n,,
24060 ' >$as_me.lineno &&
24061 chmod +x $as_me.lineno ||
24062 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24063 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24064 { (exit 1); exit 1; }; }
24065
24066 # Don't try to exec as it changes $[0], causing all sort of problems
24067 # (the dirname of $[0] is not the place where we might find the
24068 # original and so on. Autoconf is especially sensible to this).
24069 . ./$as_me.lineno
24070 # Exit status is that of the last command.
24071 exit
24072 }
24073
24074
24075 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24076 *c*,-n*) ECHO_N= ECHO_C='
24077 ' ECHO_T=' ' ;;
24078 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24079 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24080 esac
24081
24082 if expr a : '\(a\)' >/dev/null 2>&1; then
24083 as_expr=expr
24084 else
24085 as_expr=false
24086 fi
24087
24088 rm -f conf$$ conf$$.exe conf$$.file
24089 echo >conf$$.file
24090 if ln -s conf$$.file conf$$ 2>/dev/null; then
24091 # We could just check for DJGPP; but this test a) works b) is more generic
24092 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24093 if test -f conf$$.exe; then
24094 # Don't use ln at all; we don't have any links
24095 as_ln_s='cp -p'
24096 else
24097 as_ln_s='ln -s'
24098 fi
24099 elif ln conf$$.file conf$$ 2>/dev/null; then
24100 as_ln_s=ln
24101 else
24102 as_ln_s='cp -p'
24103 fi
24104 rm -f conf$$ conf$$.exe conf$$.file
24105
24106 if mkdir -p . 2>/dev/null; then
24107 as_mkdir_p=:
24108 else
24109 test -d ./-p && rmdir ./-p
24110 as_mkdir_p=false
24111 fi
24112
24113 as_executable_p="test -f"
24114
24115 # Sed expression to map a string onto a valid CPP name.
24116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24117
24118 # Sed expression to map a string onto a valid variable name.
24119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24120
24121
24122 # IFS
24123 # We need space, tab and new line, in precisely that order.
24124 as_nl='
24125 '
24126 IFS=" $as_nl"
24127
24128 # CDPATH.
24129 $as_unset CDPATH
24130
24131 exec 6>&1
24132
24133 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24134 # report actual input values of CONFIG_FILES etc. instead of their
24135 # values after options handling. Logging --version etc. is OK.
24136 exec 5>>config.log
24137 {
24138 echo
24139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24140 ## Running $as_me. ##
24141 _ASBOX
24142 } >&5
24143 cat >&5 <<_CSEOF
24144
24145 This file was extended by $as_me, which was
24146 generated by GNU Autoconf 2.59. Invocation command line was
24147
24148 CONFIG_FILES = $CONFIG_FILES
24149 CONFIG_HEADERS = $CONFIG_HEADERS
24150 CONFIG_LINKS = $CONFIG_LINKS
24151 CONFIG_COMMANDS = $CONFIG_COMMANDS
24152 $ $0 $@
24153
24154 _CSEOF
24155 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24156 echo >&5
24157 _ACEOF
24158
24159 # Files that config.status was made for.
24160 if test -n "$ac_config_files"; then
24161 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24162 fi
24163
24164 if test -n "$ac_config_headers"; then
24165 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24166 fi
24167
24168 if test -n "$ac_config_links"; then
24169 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24170 fi
24171
24172 if test -n "$ac_config_commands"; then
24173 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24174 fi
24175
24176 cat >>$CONFIG_STATUS <<\_ACEOF
24177
24178 ac_cs_usage="\
24179 \`$as_me' instantiates files from templates according to the
24180 current configuration.
24181
24182 Usage: $0 [OPTIONS] [FILE]...
24183
24184 -h, --help print this help, then exit
24185 -V, --version print version number, then exit
24186 -q, --quiet do not print progress messages
24187 -d, --debug don't remove temporary files
24188 --recheck update $as_me by reconfiguring in the same conditions
24189 --file=FILE[:TEMPLATE]
24190 instantiate the configuration file FILE
24191 --header=FILE[:TEMPLATE]
24192 instantiate the configuration header FILE
24193
24194 Configuration files:
24195 $config_files
24196
24197 Configuration headers:
24198 $config_headers
24199
24200 Configuration links:
24201 $config_links
24202
24203 Configuration commands:
24204 $config_commands
24205
24206 Report bugs to <bug-autoconf@gnu.org>."
24207 _ACEOF
24208
24209 cat >>$CONFIG_STATUS <<_ACEOF
24210 ac_cs_version="\\
24211 config.status
24212 configured by $0, generated by GNU Autoconf 2.59,
24213 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24214
24215 Copyright (C) 2003 Free Software Foundation, Inc.
24216 This config.status script is free software; the Free Software Foundation
24217 gives unlimited permission to copy, distribute and modify it."
24218 srcdir=$srcdir
24219 INSTALL="$INSTALL"
24220 _ACEOF
24221
24222 cat >>$CONFIG_STATUS <<\_ACEOF
24223 # If no file are specified by the user, then we need to provide default
24224 # value. By we need to know if files were specified by the user.
24225 ac_need_defaults=:
24226 while test $# != 0
24227 do
24228 case $1 in
24229 --*=*)
24230 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24231 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24232 ac_shift=:
24233 ;;
24234 -*)
24235 ac_option=$1
24236 ac_optarg=$2
24237 ac_shift=shift
24238 ;;
24239 *) # This is not an option, so the user has probably given explicit
24240 # arguments.
24241 ac_option=$1
24242 ac_need_defaults=false;;
24243 esac
24244
24245 case $ac_option in
24246 # Handling of the options.
24247 _ACEOF
24248 cat >>$CONFIG_STATUS <<\_ACEOF
24249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24250 ac_cs_recheck=: ;;
24251 --version | --vers* | -V )
24252 echo "$ac_cs_version"; exit 0 ;;
24253 --he | --h)
24254 # Conflict between --help and --header
24255 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24256 Try \`$0 --help' for more information." >&5
24257 echo "$as_me: error: ambiguous option: $1
24258 Try \`$0 --help' for more information." >&2;}
24259 { (exit 1); exit 1; }; };;
24260 --help | --hel | -h )
24261 echo "$ac_cs_usage"; exit 0 ;;
24262 --debug | --d* | -d )
24263 debug=: ;;
24264 --file | --fil | --fi | --f )
24265 $ac_shift
24266 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24267 ac_need_defaults=false;;
24268 --header | --heade | --head | --hea )
24269 $ac_shift
24270 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24271 ac_need_defaults=false;;
24272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24274 ac_cs_silent=: ;;
24275
24276 # This is an error.
24277 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24278 Try \`$0 --help' for more information." >&5
24279 echo "$as_me: error: unrecognized option: $1
24280 Try \`$0 --help' for more information." >&2;}
24281 { (exit 1); exit 1; }; } ;;
24282
24283 *) ac_config_targets="$ac_config_targets $1" ;;
24284
24285 esac
24286 shift
24287 done
24288
24289 ac_configure_extra_args=
24290
24291 if $ac_cs_silent; then
24292 exec 6>/dev/null
24293 ac_configure_extra_args="$ac_configure_extra_args --silent"
24294 fi
24295
24296 _ACEOF
24297 cat >>$CONFIG_STATUS <<_ACEOF
24298 if \$ac_cs_recheck; then
24299 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24300 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24301 fi
24302
24303 _ACEOF
24304
24305 cat >>$CONFIG_STATUS <<_ACEOF
24306 #
24307 # INIT-COMMANDS section.
24308 #
24309
24310
24311 GCC="$GCC"
24312 CC="$CC"
24313 acx_cv_header_stdint="$acx_cv_header_stdint"
24314 acx_cv_type_int8_t="$acx_cv_type_int8_t"
24315 acx_cv_type_int16_t="$acx_cv_type_int16_t"
24316 acx_cv_type_int32_t="$acx_cv_type_int32_t"
24317 acx_cv_type_int64_t="$acx_cv_type_int64_t"
24318 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24319 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24320 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24321 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24322 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24323 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24324 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24325 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24326 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24327
24328
24329 gdb_host_cpu=$gdb_host_cpu
24330 gdb_target_cpu=$gdb_target_cpu
24331 nativefile=$nativefile
24332
24333
24334 _ACEOF
24335
24336
24337
24338 cat >>$CONFIG_STATUS <<\_ACEOF
24339 for ac_config_target in $ac_config_targets
24340 do
24341 case "$ac_config_target" in
24342 # Handling of arguments.
24343 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24344 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24345 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24346 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24347 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24348 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
24349 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24350 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24351 { (exit 1); exit 1; }; };;
24352 esac
24353 done
24354
24355 # If the user did not use the arguments to specify the items to instantiate,
24356 # then the envvar interface is used. Set only those that are not.
24357 # We use the long form for the default assignment because of an extremely
24358 # bizarre bug on SunOS 4.1.3.
24359 if $ac_need_defaults; then
24360 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24361 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24362 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24363 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24364 fi
24365
24366 # Have a temporary directory for convenience. Make it in the build tree
24367 # simply because there is no reason to put it here, and in addition,
24368 # creating and moving files from /tmp can sometimes cause problems.
24369 # Create a temporary directory, and hook for its removal unless debugging.
24370 $debug ||
24371 {
24372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24373 trap '{ (exit 1); exit 1; }' 1 2 13 15
24374 }
24375
24376 # Create a (secure) tmp directory for tmp files.
24377
24378 {
24379 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24380 test -n "$tmp" && test -d "$tmp"
24381 } ||
24382 {
24383 tmp=./confstat$$-$RANDOM
24384 (umask 077 && mkdir $tmp)
24385 } ||
24386 {
24387 echo "$me: cannot create a temporary directory in ." >&2
24388 { (exit 1); exit 1; }
24389 }
24390
24391 _ACEOF
24392
24393 cat >>$CONFIG_STATUS <<_ACEOF
24394
24395 #
24396 # CONFIG_FILES section.
24397 #
24398
24399 # No need to generate the scripts if there are no CONFIG_FILES.
24400 # This happens for instance when ./config.status config.h
24401 if test -n "\$CONFIG_FILES"; then
24402 # Protect against being on the right side of a sed subst in config.status.
24403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24405 s,@SHELL@,$SHELL,;t t
24406 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24407 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24408 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24409 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24410 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24411 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24412 s,@exec_prefix@,$exec_prefix,;t t
24413 s,@prefix@,$prefix,;t t
24414 s,@program_transform_name@,$program_transform_name,;t t
24415 s,@bindir@,$bindir,;t t
24416 s,@sbindir@,$sbindir,;t t
24417 s,@libexecdir@,$libexecdir,;t t
24418 s,@datadir@,$datadir,;t t
24419 s,@sysconfdir@,$sysconfdir,;t t
24420 s,@sharedstatedir@,$sharedstatedir,;t t
24421 s,@localstatedir@,$localstatedir,;t t
24422 s,@libdir@,$libdir,;t t
24423 s,@includedir@,$includedir,;t t
24424 s,@oldincludedir@,$oldincludedir,;t t
24425 s,@infodir@,$infodir,;t t
24426 s,@mandir@,$mandir,;t t
24427 s,@build_alias@,$build_alias,;t t
24428 s,@host_alias@,$host_alias,;t t
24429 s,@target_alias@,$target_alias,;t t
24430 s,@DEFS@,$DEFS,;t t
24431 s,@ECHO_C@,$ECHO_C,;t t
24432 s,@ECHO_N@,$ECHO_N,;t t
24433 s,@ECHO_T@,$ECHO_T,;t t
24434 s,@LIBS@,$LIBS,;t t
24435 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24436 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24437 s,@MAINT@,$MAINT,;t t
24438 s,@CC@,$CC,;t t
24439 s,@CFLAGS@,$CFLAGS,;t t
24440 s,@LDFLAGS@,$LDFLAGS,;t t
24441 s,@CPPFLAGS@,$CPPFLAGS,;t t
24442 s,@ac_ct_CC@,$ac_ct_CC,;t t
24443 s,@EXEEXT@,$EXEEXT,;t t
24444 s,@OBJEXT@,$OBJEXT,;t t
24445 s,@CPP@,$CPP,;t t
24446 s,@EGREP@,$EGREP,;t t
24447 s,@build@,$build,;t t
24448 s,@build_cpu@,$build_cpu,;t t
24449 s,@build_vendor@,$build_vendor,;t t
24450 s,@build_os@,$build_os,;t t
24451 s,@host@,$host,;t t
24452 s,@host_cpu@,$host_cpu,;t t
24453 s,@host_vendor@,$host_vendor,;t t
24454 s,@host_os@,$host_os,;t t
24455 s,@target@,$target,;t t
24456 s,@target_cpu@,$target_cpu,;t t
24457 s,@target_vendor@,$target_vendor,;t t
24458 s,@target_os@,$target_os,;t t
24459 s,@USE_NLS@,$USE_NLS,;t t
24460 s,@LIBINTL@,$LIBINTL,;t t
24461 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24462 s,@INCINTL@,$INCINTL,;t t
24463 s,@XGETTEXT@,$XGETTEXT,;t t
24464 s,@GMSGFMT@,$GMSGFMT,;t t
24465 s,@POSUB@,$POSUB,;t t
24466 s,@CATALOGS@,$CATALOGS,;t t
24467 s,@DATADIRNAME@,$DATADIRNAME,;t t
24468 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
24469 s,@GENCAT@,$GENCAT,;t t
24470 s,@CATOBJEXT@,$CATOBJEXT,;t t
24471 s,@localedir@,$localedir,;t t
24472 s,@PACKAGE@,$PACKAGE,;t t
24473 s,@subdirs@,$subdirs,;t t
24474 s,@AWK@,$AWK,;t t
24475 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24476 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24477 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24478 s,@LN_S@,$LN_S,;t t
24479 s,@RANLIB@,$RANLIB,;t t
24480 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24481 s,@YACC@,$YACC,;t t
24482 s,@AR@,$AR,;t t
24483 s,@ac_ct_AR@,$ac_ct_AR,;t t
24484 s,@DLLTOOL@,$DLLTOOL,;t t
24485 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24486 s,@WINDRES@,$WINDRES,;t t
24487 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24488 s,@MIG@,$MIG,;t t
24489 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
24490 s,@READLINE@,$READLINE,;t t
24491 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24492 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
24493 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24494 s,@LIBEXPAT@,$LIBEXPAT,;t t
24495 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
24496 s,@ALLOCA@,$ALLOCA,;t t
24497 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24498 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24499 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24500 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24501 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24502 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24503 s,@WIN32LIBS@,$WIN32LIBS,;t t
24504 s,@LIBGUI@,$LIBGUI,;t t
24505 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24506 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24507 s,@TCL_VERSION@,$TCL_VERSION,;t t
24508 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24509 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24510 s,@TCL_CC@,$TCL_CC,;t t
24511 s,@TCL_DEFS@,$TCL_DEFS,;t t
24512 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24513 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24514 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24515 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24516 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24517 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24518 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24519 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24520 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24521 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24522 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24523 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24524 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24525 s,@TK_VERSION@,$TK_VERSION,;t t
24526 s,@TK_DEFS@,$TK_DEFS,;t t
24527 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24528 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24529 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24530 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24531 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24532 s,@TCLHDIR@,$TCLHDIR,;t t
24533 s,@TKHDIR@,$TKHDIR,;t t
24534 s,@ITCLHDIR@,$ITCLHDIR,;t t
24535 s,@ITKHDIR@,$ITKHDIR,;t t
24536 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24537 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24538 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24539 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24540 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24541 s,@ITK_VERSION@,$ITK_VERSION,;t t
24542 s,@ITK_DEFS@,$ITK_DEFS,;t t
24543 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24544 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24545 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24546 s,@X_CFLAGS@,$X_CFLAGS,;t t
24547 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24548 s,@X_LIBS@,$X_LIBS,;t t
24549 s,@TCL_DEPS@,$TCL_DEPS,;t t
24550 s,@TK_DEPS@,$TK_DEPS,;t t
24551 s,@ITCLLIB@,$ITCLLIB,;t t
24552 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24553 s,@ITKLIB@,$ITKLIB,;t t
24554 s,@ITK_DEPS@,$ITK_DEPS,;t t
24555 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24556 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24557 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24558 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24559 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24560 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24561 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24562 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24563 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24564 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24565 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24566 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24567 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24568 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24569 s,@target_subdir@,$target_subdir,;t t
24570 s,@frags@,$frags,;t t
24571 s,@xm_h@,$xm_h,;t t
24572 s,@tm_h@,$tm_h,;t t
24573 s,@nm_h@,$nm_h,;t t
24574 s,@LIBICONV@,$LIBICONV,;t t
24575 s,@LIBOBJS@,$LIBOBJS,;t t
24576 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24577 /@host_makefile_frag@/r $host_makefile_frag
24578 s,@host_makefile_frag@,,;t t
24579 /@target_makefile_frag@/r $target_makefile_frag
24580 s,@target_makefile_frag@,,;t t
24581 CEOF
24582
24583 _ACEOF
24584
24585 cat >>$CONFIG_STATUS <<\_ACEOF
24586 # Split the substitutions into bite-sized pieces for seds with
24587 # small command number limits, like on Digital OSF/1 and HP-UX.
24588 ac_max_sed_lines=48
24589 ac_sed_frag=1 # Number of current file.
24590 ac_beg=1 # First line for current file.
24591 ac_end=$ac_max_sed_lines # Line after last line for current file.
24592 ac_more_lines=:
24593 ac_sed_cmds=
24594 while $ac_more_lines; do
24595 if test $ac_beg -gt 1; then
24596 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24597 else
24598 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24599 fi
24600 if test ! -s $tmp/subs.frag; then
24601 ac_more_lines=false
24602 else
24603 # The purpose of the label and of the branching condition is to
24604 # speed up the sed processing (if there are no `@' at all, there
24605 # is no need to browse any of the substitutions).
24606 # These are the two extra sed commands mentioned above.
24607 (echo ':t
24608 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24609 if test -z "$ac_sed_cmds"; then
24610 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24611 else
24612 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24613 fi
24614 ac_sed_frag=`expr $ac_sed_frag + 1`
24615 ac_beg=$ac_end
24616 ac_end=`expr $ac_end + $ac_max_sed_lines`
24617 fi
24618 done
24619 if test -z "$ac_sed_cmds"; then
24620 ac_sed_cmds=cat
24621 fi
24622 fi # test -n "$CONFIG_FILES"
24623
24624 _ACEOF
24625 cat >>$CONFIG_STATUS <<\_ACEOF
24626 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24628 case $ac_file in
24629 - | *:- | *:-:* ) # input from stdin
24630 cat >$tmp/stdin
24631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24635 * ) ac_file_in=$ac_file.in ;;
24636 esac
24637
24638 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24639 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24641 X"$ac_file" : 'X\(//\)[^/]' \| \
24642 X"$ac_file" : 'X\(//\)$' \| \
24643 X"$ac_file" : 'X\(/\)' \| \
24644 . : '\(.\)' 2>/dev/null ||
24645 echo X"$ac_file" |
24646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24648 /^X\(\/\/\)$/{ s//\1/; q; }
24649 /^X\(\/\).*/{ s//\1/; q; }
24650 s/.*/./; q'`
24651 { if $as_mkdir_p; then
24652 mkdir -p "$ac_dir"
24653 else
24654 as_dir="$ac_dir"
24655 as_dirs=
24656 while test ! -d "$as_dir"; do
24657 as_dirs="$as_dir $as_dirs"
24658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24660 X"$as_dir" : 'X\(//\)[^/]' \| \
24661 X"$as_dir" : 'X\(//\)$' \| \
24662 X"$as_dir" : 'X\(/\)' \| \
24663 . : '\(.\)' 2>/dev/null ||
24664 echo X"$as_dir" |
24665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24667 /^X\(\/\/\)$/{ s//\1/; q; }
24668 /^X\(\/\).*/{ s//\1/; q; }
24669 s/.*/./; q'`
24670 done
24671 test ! -n "$as_dirs" || mkdir $as_dirs
24672 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24673 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24674 { (exit 1); exit 1; }; }; }
24675
24676 ac_builddir=.
24677
24678 if test "$ac_dir" != .; then
24679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24680 # A "../" for each directory in $ac_dir_suffix.
24681 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24682 else
24683 ac_dir_suffix= ac_top_builddir=
24684 fi
24685
24686 case $srcdir in
24687 .) # No --srcdir option. We are building in place.
24688 ac_srcdir=.
24689 if test -z "$ac_top_builddir"; then
24690 ac_top_srcdir=.
24691 else
24692 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24693 fi ;;
24694 [\\/]* | ?:[\\/]* ) # Absolute path.
24695 ac_srcdir=$srcdir$ac_dir_suffix;
24696 ac_top_srcdir=$srcdir ;;
24697 *) # Relative path.
24698 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24699 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24700 esac
24701
24702 # Do not use `cd foo && pwd` to compute absolute paths, because
24703 # the directories may not exist.
24704 case `pwd` in
24705 .) ac_abs_builddir="$ac_dir";;
24706 *)
24707 case "$ac_dir" in
24708 .) ac_abs_builddir=`pwd`;;
24709 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24710 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24711 esac;;
24712 esac
24713 case $ac_abs_builddir in
24714 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24715 *)
24716 case ${ac_top_builddir}. in
24717 .) ac_abs_top_builddir=$ac_abs_builddir;;
24718 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24719 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24720 esac;;
24721 esac
24722 case $ac_abs_builddir in
24723 .) ac_abs_srcdir=$ac_srcdir;;
24724 *)
24725 case $ac_srcdir in
24726 .) ac_abs_srcdir=$ac_abs_builddir;;
24727 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24728 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24729 esac;;
24730 esac
24731 case $ac_abs_builddir in
24732 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24733 *)
24734 case $ac_top_srcdir in
24735 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24736 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24737 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24738 esac;;
24739 esac
24740
24741
24742 case $INSTALL in
24743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24744 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24745 esac
24746
24747 if test x"$ac_file" != x-; then
24748 { echo "$as_me:$LINENO: creating $ac_file" >&5
24749 echo "$as_me: creating $ac_file" >&6;}
24750 rm -f "$ac_file"
24751 fi
24752 # Let's still pretend it is `configure' which instantiates (i.e., don't
24753 # use $as_me), people would be surprised to read:
24754 # /* config.h. Generated by config.status. */
24755 if test x"$ac_file" = x-; then
24756 configure_input=
24757 else
24758 configure_input="$ac_file. "
24759 fi
24760 configure_input=$configure_input"Generated from `echo $ac_file_in |
24761 sed 's,.*/,,'` by configure."
24762
24763 # First look for the input files in the build tree, otherwise in the
24764 # src tree.
24765 ac_file_inputs=`IFS=:
24766 for f in $ac_file_in; do
24767 case $f in
24768 -) echo $tmp/stdin ;;
24769 [\\/$]*)
24770 # Absolute (can't be DOS-style, as IFS=:)
24771 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24772 echo "$as_me: error: cannot find input file: $f" >&2;}
24773 { (exit 1); exit 1; }; }
24774 echo "$f";;
24775 *) # Relative
24776 if test -f "$f"; then
24777 # Build tree
24778 echo "$f"
24779 elif test -f "$srcdir/$f"; then
24780 # Source tree
24781 echo "$srcdir/$f"
24782 else
24783 # /dev/null tree
24784 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24785 echo "$as_me: error: cannot find input file: $f" >&2;}
24786 { (exit 1); exit 1; }; }
24787 fi;;
24788 esac
24789 done` || { (exit 1); exit 1; }
24790 _ACEOF
24791 cat >>$CONFIG_STATUS <<_ACEOF
24792 sed "$ac_vpsub
24793 $extrasub
24794 _ACEOF
24795 cat >>$CONFIG_STATUS <<\_ACEOF
24796 :t
24797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24798 s,@configure_input@,$configure_input,;t t
24799 s,@srcdir@,$ac_srcdir,;t t
24800 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24801 s,@top_srcdir@,$ac_top_srcdir,;t t
24802 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24803 s,@builddir@,$ac_builddir,;t t
24804 s,@abs_builddir@,$ac_abs_builddir,;t t
24805 s,@top_builddir@,$ac_top_builddir,;t t
24806 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24807 s,@INSTALL@,$ac_INSTALL,;t t
24808 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24809 rm -f $tmp/stdin
24810 if test x"$ac_file" != x-; then
24811 mv $tmp/out $ac_file
24812 else
24813 cat $tmp/out
24814 rm -f $tmp/out
24815 fi
24816
24817 done
24818 _ACEOF
24819 cat >>$CONFIG_STATUS <<\_ACEOF
24820
24821 #
24822 # CONFIG_HEADER section.
24823 #
24824
24825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24827 #
24828 # ac_d sets the value in "#define NAME VALUE" lines.
24829 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24830 ac_dB='[ ].*$,\1#\2'
24831 ac_dC=' '
24832 ac_dD=',;t'
24833 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24834 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24835 ac_uB='$,\1#\2define\3'
24836 ac_uC=' '
24837 ac_uD=',;t'
24838
24839 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24840 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24841 case $ac_file in
24842 - | *:- | *:-:* ) # input from stdin
24843 cat >$tmp/stdin
24844 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24845 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24846 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24848 * ) ac_file_in=$ac_file.in ;;
24849 esac
24850
24851 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24852 echo "$as_me: creating $ac_file" >&6;}
24853
24854 # First look for the input files in the build tree, otherwise in the
24855 # src tree.
24856 ac_file_inputs=`IFS=:
24857 for f in $ac_file_in; do
24858 case $f in
24859 -) echo $tmp/stdin ;;
24860 [\\/$]*)
24861 # Absolute (can't be DOS-style, as IFS=:)
24862 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24863 echo "$as_me: error: cannot find input file: $f" >&2;}
24864 { (exit 1); exit 1; }; }
24865 # Do quote $f, to prevent DOS paths from being IFS'd.
24866 echo "$f";;
24867 *) # Relative
24868 if test -f "$f"; then
24869 # Build tree
24870 echo "$f"
24871 elif test -f "$srcdir/$f"; then
24872 # Source tree
24873 echo "$srcdir/$f"
24874 else
24875 # /dev/null tree
24876 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24877 echo "$as_me: error: cannot find input file: $f" >&2;}
24878 { (exit 1); exit 1; }; }
24879 fi;;
24880 esac
24881 done` || { (exit 1); exit 1; }
24882 # Remove the trailing spaces.
24883 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24884
24885 _ACEOF
24886
24887 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24888 # `conftest.undefs', that substitutes the proper values into
24889 # config.h.in to produce config.h. The first handles `#define'
24890 # templates, and the second `#undef' templates.
24891 # And first: Protect against being on the right side of a sed subst in
24892 # config.status. Protect against being in an unquoted here document
24893 # in config.status.
24894 rm -f conftest.defines conftest.undefs
24895 # Using a here document instead of a string reduces the quoting nightmare.
24896 # Putting comments in sed scripts is not portable.
24897 #
24898 # `end' is used to avoid that the second main sed command (meant for
24899 # 0-ary CPP macros) applies to n-ary macro definitions.
24900 # See the Autoconf documentation for `clear'.
24901 cat >confdef2sed.sed <<\_ACEOF
24902 s/[\\&,]/\\&/g
24903 s,[\\$`],\\&,g
24904 t clear
24905 : clear
24906 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24907 t end
24908 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24909 : end
24910 _ACEOF
24911 # If some macros were called several times there might be several times
24912 # the same #defines, which is useless. Nevertheless, we may not want to
24913 # sort them, since we want the *last* AC-DEFINE to be honored.
24914 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24915 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24916 rm -f confdef2sed.sed
24917
24918 # This sed command replaces #undef with comments. This is necessary, for
24919 # example, in the case of _POSIX_SOURCE, which is predefined and required
24920 # on some systems where configure will not decide to define it.
24921 cat >>conftest.undefs <<\_ACEOF
24922 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24923 _ACEOF
24924
24925 # Break up conftest.defines because some shells have a limit on the size
24926 # of here documents, and old seds have small limits too (100 cmds).
24927 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24928 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24929 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24930 echo ' :' >>$CONFIG_STATUS
24931 rm -f conftest.tail
24932 while grep . conftest.defines >/dev/null
24933 do
24934 # Write a limited-size here document to $tmp/defines.sed.
24935 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24936 # Speed up: don't consider the non `#define' lines.
24937 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24938 # Work around the forget-to-reset-the-flag bug.
24939 echo 't clr' >>$CONFIG_STATUS
24940 echo ': clr' >>$CONFIG_STATUS
24941 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24942 echo 'CEOF
24943 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24944 rm -f $tmp/in
24945 mv $tmp/out $tmp/in
24946 ' >>$CONFIG_STATUS
24947 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24948 rm -f conftest.defines
24949 mv conftest.tail conftest.defines
24950 done
24951 rm -f conftest.defines
24952 echo ' fi # grep' >>$CONFIG_STATUS
24953 echo >>$CONFIG_STATUS
24954
24955 # Break up conftest.undefs because some shells have a limit on the size
24956 # of here documents, and old seds have small limits too (100 cmds).
24957 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24958 rm -f conftest.tail
24959 while grep . conftest.undefs >/dev/null
24960 do
24961 # Write a limited-size here document to $tmp/undefs.sed.
24962 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24963 # Speed up: don't consider the non `#undef'
24964 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24965 # Work around the forget-to-reset-the-flag bug.
24966 echo 't clr' >>$CONFIG_STATUS
24967 echo ': clr' >>$CONFIG_STATUS
24968 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24969 echo 'CEOF
24970 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24971 rm -f $tmp/in
24972 mv $tmp/out $tmp/in
24973 ' >>$CONFIG_STATUS
24974 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24975 rm -f conftest.undefs
24976 mv conftest.tail conftest.undefs
24977 done
24978 rm -f conftest.undefs
24979
24980 cat >>$CONFIG_STATUS <<\_ACEOF
24981 # Let's still pretend it is `configure' which instantiates (i.e., don't
24982 # use $as_me), people would be surprised to read:
24983 # /* config.h. Generated by config.status. */
24984 if test x"$ac_file" = x-; then
24985 echo "/* Generated by configure. */" >$tmp/config.h
24986 else
24987 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24988 fi
24989 cat $tmp/in >>$tmp/config.h
24990 rm -f $tmp/in
24991 if test x"$ac_file" != x-; then
24992 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24994 echo "$as_me: $ac_file is unchanged" >&6;}
24995 else
24996 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24998 X"$ac_file" : 'X\(//\)[^/]' \| \
24999 X"$ac_file" : 'X\(//\)$' \| \
25000 X"$ac_file" : 'X\(/\)' \| \
25001 . : '\(.\)' 2>/dev/null ||
25002 echo X"$ac_file" |
25003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25005 /^X\(\/\/\)$/{ s//\1/; q; }
25006 /^X\(\/\).*/{ s//\1/; q; }
25007 s/.*/./; q'`
25008 { if $as_mkdir_p; then
25009 mkdir -p "$ac_dir"
25010 else
25011 as_dir="$ac_dir"
25012 as_dirs=
25013 while test ! -d "$as_dir"; do
25014 as_dirs="$as_dir $as_dirs"
25015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25017 X"$as_dir" : 'X\(//\)[^/]' \| \
25018 X"$as_dir" : 'X\(//\)$' \| \
25019 X"$as_dir" : 'X\(/\)' \| \
25020 . : '\(.\)' 2>/dev/null ||
25021 echo X"$as_dir" |
25022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25024 /^X\(\/\/\)$/{ s//\1/; q; }
25025 /^X\(\/\).*/{ s//\1/; q; }
25026 s/.*/./; q'`
25027 done
25028 test ! -n "$as_dirs" || mkdir $as_dirs
25029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25030 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25031 { (exit 1); exit 1; }; }; }
25032
25033 rm -f $ac_file
25034 mv $tmp/config.h $ac_file
25035 fi
25036 else
25037 cat $tmp/config.h
25038 rm -f $tmp/config.h
25039 fi
25040 done
25041 _ACEOF
25042 cat >>$CONFIG_STATUS <<\_ACEOF
25043
25044 #
25045 # CONFIG_LINKS section.
25046 #
25047
25048 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25049 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25050 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25051
25052 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25053 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25054
25055 if test ! -r $srcdir/$ac_source; then
25056 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25057 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25058 { (exit 1); exit 1; }; }
25059 fi
25060 rm -f $ac_dest
25061
25062 # Make relative symlinks.
25063 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25064 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25065 X"$ac_dest" : 'X\(//\)[^/]' \| \
25066 X"$ac_dest" : 'X\(//\)$' \| \
25067 X"$ac_dest" : 'X\(/\)' \| \
25068 . : '\(.\)' 2>/dev/null ||
25069 echo X"$ac_dest" |
25070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25071 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25072 /^X\(\/\/\)$/{ s//\1/; q; }
25073 /^X\(\/\).*/{ s//\1/; q; }
25074 s/.*/./; q'`
25075 { if $as_mkdir_p; then
25076 mkdir -p "$ac_dest_dir"
25077 else
25078 as_dir="$ac_dest_dir"
25079 as_dirs=
25080 while test ! -d "$as_dir"; do
25081 as_dirs="$as_dir $as_dirs"
25082 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25083 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25084 X"$as_dir" : 'X\(//\)[^/]' \| \
25085 X"$as_dir" : 'X\(//\)$' \| \
25086 X"$as_dir" : 'X\(/\)' \| \
25087 . : '\(.\)' 2>/dev/null ||
25088 echo X"$as_dir" |
25089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25091 /^X\(\/\/\)$/{ s//\1/; q; }
25092 /^X\(\/\).*/{ s//\1/; q; }
25093 s/.*/./; q'`
25094 done
25095 test ! -n "$as_dirs" || mkdir $as_dirs
25096 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25097 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25098 { (exit 1); exit 1; }; }; }
25099
25100 ac_builddir=.
25101
25102 if test "$ac_dest_dir" != .; then
25103 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25104 # A "../" for each directory in $ac_dir_suffix.
25105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25106 else
25107 ac_dir_suffix= ac_top_builddir=
25108 fi
25109
25110 case $srcdir in
25111 .) # No --srcdir option. We are building in place.
25112 ac_srcdir=.
25113 if test -z "$ac_top_builddir"; then
25114 ac_top_srcdir=.
25115 else
25116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25117 fi ;;
25118 [\\/]* | ?:[\\/]* ) # Absolute path.
25119 ac_srcdir=$srcdir$ac_dir_suffix;
25120 ac_top_srcdir=$srcdir ;;
25121 *) # Relative path.
25122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25124 esac
25125
25126 # Do not use `cd foo && pwd` to compute absolute paths, because
25127 # the directories may not exist.
25128 case `pwd` in
25129 .) ac_abs_builddir="$ac_dest_dir";;
25130 *)
25131 case "$ac_dest_dir" in
25132 .) ac_abs_builddir=`pwd`;;
25133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25134 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25135 esac;;
25136 esac
25137 case $ac_abs_builddir in
25138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25139 *)
25140 case ${ac_top_builddir}. in
25141 .) ac_abs_top_builddir=$ac_abs_builddir;;
25142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25144 esac;;
25145 esac
25146 case $ac_abs_builddir in
25147 .) ac_abs_srcdir=$ac_srcdir;;
25148 *)
25149 case $ac_srcdir in
25150 .) ac_abs_srcdir=$ac_abs_builddir;;
25151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25153 esac;;
25154 esac
25155 case $ac_abs_builddir in
25156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25157 *)
25158 case $ac_top_srcdir in
25159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25162 esac;;
25163 esac
25164
25165
25166 case $srcdir in
25167 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25168 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25169 esac
25170
25171 # Try a symlink, then a hard link, then a copy.
25172 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25173 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25174 cp -p $srcdir/$ac_source $ac_dest ||
25175 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25176 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25177 { (exit 1); exit 1; }; }
25178 done
25179 _ACEOF
25180 cat >>$CONFIG_STATUS <<\_ACEOF
25181
25182 #
25183 # CONFIG_COMMANDS section.
25184 #
25185 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25186 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25187 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25188 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25189 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25190 X"$ac_dest" : 'X\(//\)[^/]' \| \
25191 X"$ac_dest" : 'X\(//\)$' \| \
25192 X"$ac_dest" : 'X\(/\)' \| \
25193 . : '\(.\)' 2>/dev/null ||
25194 echo X"$ac_dest" |
25195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25196 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25197 /^X\(\/\/\)$/{ s//\1/; q; }
25198 /^X\(\/\).*/{ s//\1/; q; }
25199 s/.*/./; q'`
25200 { if $as_mkdir_p; then
25201 mkdir -p "$ac_dir"
25202 else
25203 as_dir="$ac_dir"
25204 as_dirs=
25205 while test ! -d "$as_dir"; do
25206 as_dirs="$as_dir $as_dirs"
25207 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25209 X"$as_dir" : 'X\(//\)[^/]' \| \
25210 X"$as_dir" : 'X\(//\)$' \| \
25211 X"$as_dir" : 'X\(/\)' \| \
25212 . : '\(.\)' 2>/dev/null ||
25213 echo X"$as_dir" |
25214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25215 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25216 /^X\(\/\/\)$/{ s//\1/; q; }
25217 /^X\(\/\).*/{ s//\1/; q; }
25218 s/.*/./; q'`
25219 done
25220 test ! -n "$as_dirs" || mkdir $as_dirs
25221 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25222 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25223 { (exit 1); exit 1; }; }; }
25224
25225 ac_builddir=.
25226
25227 if test "$ac_dir" != .; then
25228 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25229 # A "../" for each directory in $ac_dir_suffix.
25230 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25231 else
25232 ac_dir_suffix= ac_top_builddir=
25233 fi
25234
25235 case $srcdir in
25236 .) # No --srcdir option. We are building in place.
25237 ac_srcdir=.
25238 if test -z "$ac_top_builddir"; then
25239 ac_top_srcdir=.
25240 else
25241 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25242 fi ;;
25243 [\\/]* | ?:[\\/]* ) # Absolute path.
25244 ac_srcdir=$srcdir$ac_dir_suffix;
25245 ac_top_srcdir=$srcdir ;;
25246 *) # Relative path.
25247 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25248 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25249 esac
25250
25251 # Do not use `cd foo && pwd` to compute absolute paths, because
25252 # the directories may not exist.
25253 case `pwd` in
25254 .) ac_abs_builddir="$ac_dir";;
25255 *)
25256 case "$ac_dir" in
25257 .) ac_abs_builddir=`pwd`;;
25258 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25259 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25260 esac;;
25261 esac
25262 case $ac_abs_builddir in
25263 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25264 *)
25265 case ${ac_top_builddir}. in
25266 .) ac_abs_top_builddir=$ac_abs_builddir;;
25267 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25268 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25269 esac;;
25270 esac
25271 case $ac_abs_builddir in
25272 .) ac_abs_srcdir=$ac_srcdir;;
25273 *)
25274 case $ac_srcdir in
25275 .) ac_abs_srcdir=$ac_abs_builddir;;
25276 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25277 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25278 esac;;
25279 esac
25280 case $ac_abs_builddir in
25281 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25282 *)
25283 case $ac_top_srcdir in
25284 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25285 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25286 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25287 esac;;
25288 esac
25289
25290
25291 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25292 echo "$as_me: executing $ac_dest commands" >&6;}
25293 case $ac_dest in
25294 gdb_stdint.h )
25295 if test "$GCC" = yes; then
25296 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25297 else
25298 echo "/* generated for $CC */" > tmp-stdint.h
25299 fi
25300
25301 sed 's/^ *//' >> tmp-stdint.h <<EOF
25302
25303 #ifndef GCC_GENERATED_STDINT_H
25304 #define GCC_GENERATED_STDINT_H 1
25305
25306 #include <sys/types.h>
25307 EOF
25308
25309 if test "$acx_cv_header_stdint" != stdint.h; then
25310 echo "#include <stddef.h>" >> tmp-stdint.h
25311 fi
25312 if test "$acx_cv_header_stdint" != stddef.h; then
25313 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25314 fi
25315
25316 sed 's/^ *//' >> tmp-stdint.h <<EOF
25317 /* glibc uses these symbols as guards to prevent redefinitions. */
25318 #ifdef __int8_t_defined
25319 #define _INT8_T
25320 #define _INT16_T
25321 #define _INT32_T
25322 #endif
25323 #ifdef __uint32_t_defined
25324 #define _UINT32_T
25325 #endif
25326
25327 EOF
25328
25329 # ----------------- done header, emit basic int types -------------
25330 if test "$acx_cv_header_stdint" = stddef.h; then
25331 sed 's/^ *//' >> tmp-stdint.h <<EOF
25332
25333 #ifndef _UINT8_T
25334 #define _UINT8_T
25335 #ifndef __uint8_t_defined
25336 #define __uint8_t_defined
25337 typedef unsigned $acx_cv_type_int8_t uint8_t;
25338 #endif
25339 #endif
25340
25341 #ifndef _UINT16_T
25342 #define _UINT16_T
25343 #ifndef __uint16_t_defined
25344 #define __uint16_t_defined
25345 typedef unsigned $acx_cv_type_int16_t uint16_t;
25346 #endif
25347 #endif
25348
25349 #ifndef _UINT32_T
25350 #define _UINT32_T
25351 #ifndef __uint32_t_defined
25352 #define __uint32_t_defined
25353 typedef unsigned $acx_cv_type_int32_t uint32_t;
25354 #endif
25355 #endif
25356
25357 #ifndef _INT8_T
25358 #define _INT8_T
25359 #ifndef __int8_t_defined
25360 #define __int8_t_defined
25361 typedef $acx_cv_type_int8_t int8_t;
25362 #endif
25363 #endif
25364
25365 #ifndef _INT16_T
25366 #define _INT16_T
25367 #ifndef __int16_t_defined
25368 #define __int16_t_defined
25369 typedef $acx_cv_type_int16_t int16_t;
25370 #endif
25371 #endif
25372
25373 #ifndef _INT32_T
25374 #define _INT32_T
25375 #ifndef __int32_t_defined
25376 #define __int32_t_defined
25377 typedef $acx_cv_type_int32_t int32_t;
25378 #endif
25379 #endif
25380 EOF
25381 elif test "$ac_cv_type_u_int32_t" = yes; then
25382 sed 's/^ *//' >> tmp-stdint.h <<EOF
25383
25384 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25385 #ifndef _INT8_T
25386 #define _INT8_T
25387 #endif
25388 #ifndef _INT16_T
25389 #define _INT16_T
25390 #endif
25391 #ifndef _INT32_T
25392 #define _INT32_T
25393 #endif
25394
25395 #ifndef _UINT8_T
25396 #define _UINT8_T
25397 #ifndef __uint8_t_defined
25398 #define __uint8_t_defined
25399 typedef u_int8_t uint8_t;
25400 #endif
25401 #endif
25402
25403 #ifndef _UINT16_T
25404 #define _UINT16_T
25405 #ifndef __uint16_t_defined
25406 #define __uint16_t_defined
25407 typedef u_int16_t uint16_t;
25408 #endif
25409 #endif
25410
25411 #ifndef _UINT32_T
25412 #define _UINT32_T
25413 #ifndef __uint32_t_defined
25414 #define __uint32_t_defined
25415 typedef u_int32_t uint32_t;
25416 #endif
25417 #endif
25418 EOF
25419 else
25420 sed 's/^ *//' >> tmp-stdint.h <<EOF
25421
25422 /* Some systems have guard macros to prevent redefinitions, define them. */
25423 #ifndef _INT8_T
25424 #define _INT8_T
25425 #endif
25426 #ifndef _INT16_T
25427 #define _INT16_T
25428 #endif
25429 #ifndef _INT32_T
25430 #define _INT32_T
25431 #endif
25432 #ifndef _UINT8_T
25433 #define _UINT8_T
25434 #endif
25435 #ifndef _UINT16_T
25436 #define _UINT16_T
25437 #endif
25438 #ifndef _UINT32_T
25439 #define _UINT32_T
25440 #endif
25441 EOF
25442 fi
25443
25444 # ------------- done basic int types, emit int64_t types ------------
25445 if test "$ac_cv_type_uint64_t" = yes; then
25446 sed 's/^ *//' >> tmp-stdint.h <<EOF
25447
25448 /* system headers have good uint64_t and int64_t */
25449 #ifndef _INT64_T
25450 #define _INT64_T
25451 #endif
25452 #ifndef _UINT64_T
25453 #define _UINT64_T
25454 #endif
25455 EOF
25456 elif test "$ac_cv_type_u_int64_t" = yes; then
25457 sed 's/^ *//' >> tmp-stdint.h <<EOF
25458
25459 /* system headers have an u_int64_t (and int64_t) */
25460 #ifndef _INT64_T
25461 #define _INT64_T
25462 #endif
25463 #ifndef _UINT64_T
25464 #define _UINT64_T
25465 #ifndef __uint64_t_defined
25466 #define __uint64_t_defined
25467 typedef u_int64_t uint64_t;
25468 #endif
25469 #endif
25470 EOF
25471 elif test -n "$acx_cv_type_int64_t"; then
25472 sed 's/^ *//' >> tmp-stdint.h <<EOF
25473
25474 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25475 #ifndef _INT64_T
25476 #define _INT64_T
25477 typedef $acx_cv_type_int64_t int64_t;
25478 #endif
25479 #ifndef _UINT64_T
25480 #define _UINT64_T
25481 #ifndef __uint64_t_defined
25482 #define __uint64_t_defined
25483 typedef unsigned $acx_cv_type_int64_t uint64_t;
25484 #endif
25485 #endif
25486 EOF
25487 else
25488 sed 's/^ *//' >> tmp-stdint.h <<EOF
25489
25490 /* some common heuristics for int64_t, using compiler-specific tests */
25491 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25492 #ifndef _INT64_T
25493 #define _INT64_T
25494 #ifndef __int64_t_defined
25495 typedef long long int64_t;
25496 #endif
25497 #endif
25498 #ifndef _UINT64_T
25499 #define _UINT64_T
25500 typedef unsigned long long uint64_t;
25501 #endif
25502
25503 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25504 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25505 does not implement __extension__. But that compiler doesn't define
25506 __GNUC_MINOR__. */
25507 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25508 # define __extension__
25509 # endif
25510
25511 # ifndef _INT64_T
25512 # define _INT64_T
25513 __extension__ typedef long long int64_t;
25514 # endif
25515 # ifndef _UINT64_T
25516 # define _UINT64_T
25517 __extension__ typedef unsigned long long uint64_t;
25518 # endif
25519
25520 #elif !defined __STRICT_ANSI__
25521 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25522
25523 # ifndef _INT64_T
25524 # define _INT64_T
25525 typedef __int64 int64_t;
25526 # endif
25527 # ifndef _UINT64_T
25528 # define _UINT64_T
25529 typedef unsigned __int64 uint64_t;
25530 # endif
25531 # endif /* compiler */
25532
25533 #endif /* ANSI version */
25534 EOF
25535 fi
25536
25537 # ------------- done int64_t types, emit intptr types ------------
25538 if test "$ac_cv_type_uintptr_t" != yes; then
25539 sed 's/^ *//' >> tmp-stdint.h <<EOF
25540
25541 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25542 #ifndef __uintptr_t_defined
25543 typedef u$acx_cv_type_intptr_t uintptr_t;
25544 #endif
25545 #ifndef __intptr_t_defined
25546 typedef $acx_cv_type_intptr_t intptr_t;
25547 #endif
25548 EOF
25549 fi
25550
25551 # ------------- done intptr types, emit int_least types ------------
25552 if test "$ac_cv_type_int_least32_t" != yes; then
25553 sed 's/^ *//' >> tmp-stdint.h <<EOF
25554
25555 /* Define int_least types */
25556 typedef int8_t int_least8_t;
25557 typedef int16_t int_least16_t;
25558 typedef int32_t int_least32_t;
25559 #ifdef _INT64_T
25560 typedef int64_t int_least64_t;
25561 #endif
25562
25563 typedef uint8_t uint_least8_t;
25564 typedef uint16_t uint_least16_t;
25565 typedef uint32_t uint_least32_t;
25566 #ifdef _UINT64_T
25567 typedef uint64_t uint_least64_t;
25568 #endif
25569 EOF
25570 fi
25571
25572 # ------------- done intptr types, emit int_fast types ------------
25573 if test "$ac_cv_type_int_fast32_t" != yes; then
25574 sed 's/^ *//' >> tmp-stdint.h <<EOF
25575
25576 /* Define int_fast types. short is often slow */
25577 typedef int8_t int_fast8_t;
25578 typedef int int_fast16_t;
25579 typedef int32_t int_fast32_t;
25580 #ifdef _INT64_T
25581 typedef int64_t int_fast64_t;
25582 #endif
25583
25584 typedef uint8_t uint_fast8_t;
25585 typedef unsigned int uint_fast16_t;
25586 typedef uint32_t uint_fast32_t;
25587 #ifdef _UINT64_T
25588 typedef uint64_t uint_fast64_t;
25589 #endif
25590 EOF
25591 fi
25592
25593 if test "$ac_cv_type_uintmax_t" != yes; then
25594 sed 's/^ *//' >> tmp-stdint.h <<EOF
25595
25596 /* Define intmax based on what we found */
25597 #ifdef _INT64_T
25598 typedef int64_t intmax_t;
25599 #else
25600 typedef long intmax_t;
25601 #endif
25602 #ifdef _UINT64_T
25603 typedef uint64_t uintmax_t;
25604 #else
25605 typedef unsigned long uintmax_t;
25606 #endif
25607 EOF
25608 fi
25609
25610 sed 's/^ *//' >> tmp-stdint.h <<EOF
25611
25612 #endif /* GCC_GENERATED_STDINT_H */
25613 EOF
25614
25615 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25616 rm -f tmp-stdint.h
25617 else
25618 mv -f tmp-stdint.h gdb_stdint.h
25619 fi
25620
25621 ;;
25622 default )
25623
25624 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
25625 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25626 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25627 mv -f Makefile.tmp Makefile
25628
25629
25630 case x$CONFIG_HEADERS in
25631 xconfig.h:config.in)
25632 echo > stamp-h ;;
25633 esac
25634 ;;
25635 esac
25636 done
25637 _ACEOF
25638
25639 cat >>$CONFIG_STATUS <<\_ACEOF
25640
25641 { (exit 0); exit 0; }
25642 _ACEOF
25643 chmod +x $CONFIG_STATUS
25644 ac_clean_files=$ac_clean_files_save
25645
25646
25647 # configure is writing to config.log, and then calls config.status.
25648 # config.status does its own redirection, appending to config.log.
25649 # Unfortunately, on DOS this fails, as config.log is still kept open
25650 # by configure, so config.status won't be able to write to it; its
25651 # output is simply discarded. So we exec the FD to /dev/null,
25652 # effectively closing config.log, so it can be properly (re)opened and
25653 # appended to by config.status. When coming back to configure, we
25654 # need to make the FD available again.
25655 if test "$no_create" != yes; then
25656 ac_cs_success=:
25657 ac_config_status_args=
25658 test "$silent" = yes &&
25659 ac_config_status_args="$ac_config_status_args --quiet"
25660 exec 5>/dev/null
25661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25662 exec 5>>config.log
25663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25664 # would make configure fail if this is the last instruction.
25665 $ac_cs_success || { (exit 1); exit 1; }
25666 fi
25667
25668 #
25669 # CONFIG_SUBDIRS section.
25670 #
25671 if test "$no_recursion" != yes; then
25672
25673 # Remove --cache-file and --srcdir arguments so they do not pile up.
25674 ac_sub_configure_args=
25675 ac_prev=
25676 for ac_arg in $ac_configure_args; do
25677 if test -n "$ac_prev"; then
25678 ac_prev=
25679 continue
25680 fi
25681 case $ac_arg in
25682 -cache-file | --cache-file | --cache-fil | --cache-fi \
25683 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25684 ac_prev=cache_file ;;
25685 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25686 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25687 | --c=*)
25688 ;;
25689 --config-cache | -C)
25690 ;;
25691 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25692 ac_prev=srcdir ;;
25693 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25694 ;;
25695 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25696 ac_prev=prefix ;;
25697 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25698 ;;
25699 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25700 esac
25701 done
25702
25703 # Always prepend --prefix to ensure using the same prefix
25704 # in subdir configurations.
25705 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25706
25707 ac_popdir=`pwd`
25708 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25709
25710 # Do not complain, so a configure script can configure whichever
25711 # parts of a large source tree are present.
25712 test -d $srcdir/$ac_dir || continue
25713
25714 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25715 echo "$as_me: configuring in $ac_dir" >&6;}
25716 { if $as_mkdir_p; then
25717 mkdir -p "$ac_dir"
25718 else
25719 as_dir="$ac_dir"
25720 as_dirs=
25721 while test ! -d "$as_dir"; do
25722 as_dirs="$as_dir $as_dirs"
25723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25725 X"$as_dir" : 'X\(//\)[^/]' \| \
25726 X"$as_dir" : 'X\(//\)$' \| \
25727 X"$as_dir" : 'X\(/\)' \| \
25728 . : '\(.\)' 2>/dev/null ||
25729 echo X"$as_dir" |
25730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25732 /^X\(\/\/\)$/{ s//\1/; q; }
25733 /^X\(\/\).*/{ s//\1/; q; }
25734 s/.*/./; q'`
25735 done
25736 test ! -n "$as_dirs" || mkdir $as_dirs
25737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25738 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25739 { (exit 1); exit 1; }; }; }
25740
25741 ac_builddir=.
25742
25743 if test "$ac_dir" != .; then
25744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25745 # A "../" for each directory in $ac_dir_suffix.
25746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25747 else
25748 ac_dir_suffix= ac_top_builddir=
25749 fi
25750
25751 case $srcdir in
25752 .) # No --srcdir option. We are building in place.
25753 ac_srcdir=.
25754 if test -z "$ac_top_builddir"; then
25755 ac_top_srcdir=.
25756 else
25757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25758 fi ;;
25759 [\\/]* | ?:[\\/]* ) # Absolute path.
25760 ac_srcdir=$srcdir$ac_dir_suffix;
25761 ac_top_srcdir=$srcdir ;;
25762 *) # Relative path.
25763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25765 esac
25766
25767 # Do not use `cd foo && pwd` to compute absolute paths, because
25768 # the directories may not exist.
25769 case `pwd` in
25770 .) ac_abs_builddir="$ac_dir";;
25771 *)
25772 case "$ac_dir" in
25773 .) ac_abs_builddir=`pwd`;;
25774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25776 esac;;
25777 esac
25778 case $ac_abs_builddir in
25779 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25780 *)
25781 case ${ac_top_builddir}. in
25782 .) ac_abs_top_builddir=$ac_abs_builddir;;
25783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25785 esac;;
25786 esac
25787 case $ac_abs_builddir in
25788 .) ac_abs_srcdir=$ac_srcdir;;
25789 *)
25790 case $ac_srcdir in
25791 .) ac_abs_srcdir=$ac_abs_builddir;;
25792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25794 esac;;
25795 esac
25796 case $ac_abs_builddir in
25797 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25798 *)
25799 case $ac_top_srcdir in
25800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25803 esac;;
25804 esac
25805
25806
25807 cd $ac_dir
25808
25809 # Check for guested configure; otherwise get Cygnus style configure.
25810 if test -f $ac_srcdir/configure.gnu; then
25811 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25812 elif test -f $ac_srcdir/configure; then
25813 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25814 elif test -f $ac_srcdir/configure.in; then
25815 ac_sub_configure=$ac_configure
25816 else
25817 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25818 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25819 ac_sub_configure=
25820 fi
25821
25822 # The recursion is here.
25823 if test -n "$ac_sub_configure"; then
25824 # Make the cache file name correct relative to the subdirectory.
25825 case $cache_file in
25826 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25827 *) # Relative path.
25828 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25829 esac
25830
25831 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25832 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25833 # The eval makes quoting arguments work.
25834 eval $ac_sub_configure $ac_sub_configure_args \
25835 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25836 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25837 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25838 { (exit 1); exit 1; }; }
25839 fi
25840
25841 cd $ac_popdir
25842 done
25843 fi
25844
25845
25846 exit 0
This page took 0.625969 seconds and 4 git commands to generate.