*** empty log message ***
[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 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-gnu-ld assume the C compiler uses GNU ld default=no
881 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
882 --without-libexpat-prefix don't search for libexpat in includedir and libdir
883 --without-included-regex don't use included regex; this is the default
884 on systems with version 2 of the GNU C library
885 (use with caution on other system)
886 --with-sysroot=DIR Search for usr/lib et al within DIR.
887 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
888 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
889 --with-tclinclude=DIR Directory where tcl private headers are
890 --with-tkinclude=DIR Directory where tk private headers are
891 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
892 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
893 --with-x use the X Window System
894 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
895
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
903 CPP C preprocessor
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 _ACEOF
909 fi
910
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
913 ac_popdir=`pwd`
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
916 ac_builddir=.
917
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 else
923 ac_dir_suffix= ac_top_builddir=
924 fi
925
926 case $srcdir in
927 .) # No --srcdir option. We are building in place.
928 ac_srcdir=.
929 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=.
931 else
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 fi ;;
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
937 *) # Relative path.
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 esac
941
942 # Do not use `cd foo && pwd` to compute absolute paths, because
943 # the directories may not exist.
944 case `pwd` in
945 .) ac_abs_builddir="$ac_dir";;
946 *)
947 case "$ac_dir" in
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 esac;;
952 esac
953 case $ac_abs_builddir in
954 .) ac_abs_top_builddir=${ac_top_builddir}.;;
955 *)
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_srcdir=$ac_srcdir;;
964 *)
965 case $ac_srcdir in
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_top_srcdir=$ac_top_srcdir;;
973 *)
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 esac;;
979 esac
980
981 cd $ac_dir
982 # Check for guested configure; otherwise get Cygnus style configure.
983 if test -f $ac_srcdir/configure.gnu; then
984 echo
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
987 echo
988 $SHELL $ac_srcdir/configure --help=recursive
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
991 echo
992 $ac_configure --help
993 else
994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995 fi
996 cd $ac_popdir
997 done
998 fi
999
1000 test -n "$ac_init_help" && exit 0
1001 if $ac_init_version; then
1002 cat <<\_ACEOF
1003
1004 Copyright (C) 2003 Free Software Foundation, Inc.
1005 This configure script is free software; the Free Software Foundation
1006 gives unlimited permission to copy, distribute and modify it.
1007 _ACEOF
1008 exit 0
1009 fi
1010 exec 5>config.log
1011 cat >&5 <<_ACEOF
1012 This file contains any messages produced by compilers while
1013 running configure, to aid debugging if configure makes a mistake.
1014
1015 It was created by $as_me, which was
1016 generated by GNU Autoconf 2.59. Invocation command line was
1017
1018 $ $0 $@
1019
1020 _ACEOF
1021 {
1022 cat <<_ASUNAME
1023 ## --------- ##
1024 ## Platform. ##
1025 ## --------- ##
1026
1027 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032
1033 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035
1036 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1039 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1040 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043
1044 _ASUNAME
1045
1046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047 for as_dir in $PATH
1048 do
1049 IFS=$as_save_IFS
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1052 done
1053
1054 } >&5
1055
1056 cat >&5 <<_ACEOF
1057
1058
1059 ## ----------- ##
1060 ## Core tests. ##
1061 ## ----------- ##
1062
1063 _ACEOF
1064
1065
1066 # Keep a trace of the command line.
1067 # Strip out --no-create and --no-recursion so they do not pile up.
1068 # Strip out --silent because we don't want to record it for future runs.
1069 # Also quote any args containing shell meta-characters.
1070 # Make two passes to allow for proper duplicate-argument suppression.
1071 ac_configure_args=
1072 ac_configure_args0=
1073 ac_configure_args1=
1074 ac_sep=
1075 ac_must_keep_next=false
1076 for ac_pass in 1 2
1077 do
1078 for ac_arg
1079 do
1080 case $ac_arg in
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 continue ;;
1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 esac
1088 case $ac_pass in
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 2)
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1094 else
1095 case $ac_arg in
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 esac
1103 ;;
1104 -* ) ac_must_keep_next=true ;;
1105 esac
1106 fi
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1109 ac_sep=" "
1110 ;;
1111 esac
1112 done
1113 done
1114 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116
1117 # When interrupted or exit'd, cleanup temporary files, and complete
1118 # config.log. We remove comments because anyway the quotes in there
1119 # would cause problems or look ugly.
1120 # WARNING: Be sure not to use single quotes in there, as some shells,
1121 # such as our DU 5.0 friend, will then `close' the trap.
1122 trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1124 {
1125 echo
1126
1127 cat <<\_ASBOX
1128 ## ---------------- ##
1129 ## Cache variables. ##
1130 ## ---------------- ##
1131 _ASBOX
1132 echo
1133 # The following way of writing the cache mishandles newlines in values,
1134 {
1135 (set) 2>&1 |
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 *ac_space=\ *)
1138 sed -n \
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 ;;
1142 *)
1143 sed -n \
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1145 ;;
1146 esac;
1147 }
1148 echo
1149
1150 cat <<\_ASBOX
1151 ## ----------------- ##
1152 ## Output variables. ##
1153 ## ----------------- ##
1154 _ASBOX
1155 echo
1156 for ac_var in $ac_subst_vars
1157 do
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1160 done | sort
1161 echo
1162
1163 if test -n "$ac_subst_files"; then
1164 cat <<\_ASBOX
1165 ## ------------- ##
1166 ## Output files. ##
1167 ## ------------- ##
1168 _ASBOX
1169 echo
1170 for ac_var in $ac_subst_files
1171 do
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
1174 done | sort
1175 echo
1176 fi
1177
1178 if test -s confdefs.h; then
1179 cat <<\_ASBOX
1180 ## ----------- ##
1181 ## confdefs.h. ##
1182 ## ----------- ##
1183 _ASBOX
1184 echo
1185 sed "/^$/d" confdefs.h | sort
1186 echo
1187 fi
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1191 } >&5
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1194 exit $exit_status
1195 ' 0
1196 for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198 done
1199 ac_signal=0
1200
1201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1202 rm -rf conftest* confdefs.h
1203 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 echo >confdefs.h
1205
1206 # Predefined preprocessor variables.
1207
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_NAME "$PACKAGE_NAME"
1210 _ACEOF
1211
1212
1213 cat >>confdefs.h <<_ACEOF
1214 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215 _ACEOF
1216
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_STRING "$PACKAGE_STRING"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230 _ACEOF
1231
1232
1233 # Let the site file select an alternate cache file if it wants to.
1234 # Prefer explicitly selected file to automatically selected ones.
1235 if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 else
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 fi
1241 fi
1242 for ac_site_file in $CONFIG_SITE; do
1243 if test -r "$ac_site_file"; then
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245 echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
1247 . "$ac_site_file"
1248 fi
1249 done
1250
1251 if test -r "$cache_file"; then
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256 echo "$as_me: loading cache $cache_file" >&6;}
1257 case $cache_file in
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1260 esac
1261 fi
1262 else
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264 echo "$as_me: creating cache $cache_file" >&6;}
1265 >$cache_file
1266 fi
1267
1268 # Check that the precious variables saved in the cache have kept the same
1269 # value.
1270 ac_cache_corrupted=false
1271 for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
1277 case $ac_old_set,$ac_new_set in
1278 set,)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,set)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,);;
1287 *)
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292 echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294 echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1296 fi;;
1297 esac
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1300 case $ac_new_val in
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1304 esac
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 esac
1309 fi
1310 done
1311 if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
1317 fi
1318
1319 ac_ext=c
1320 ac_cpp='$CPP $CPPFLAGS'
1321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343 ac_config_headers="$ac_config_headers config.h:config.in"
1344
1345 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1348 if test "${enable_maintainer_mode+set}" = set; then
1349 enableval="$enable_maintainer_mode"
1350 USE_MAINTAINER_MODE=$enableval
1351 else
1352 USE_MAINTAINER_MODE=no
1353 fi;
1354 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1356
1357
1358 if test $USE_MAINTAINER_MODE = yes; then
1359 MAINTAINER_MODE_TRUE=
1360 MAINTAINER_MODE_FALSE='#'
1361 else
1362 MAINTAINER_MODE_TRUE='#'
1363 MAINTAINER_MODE_FALSE=
1364 fi
1365
1366 MAINT=$MAINTAINER_MODE_TRUE
1367
1368
1369
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375 if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1385 else
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1396 fi
1397 done
1398 done
1399
1400 fi
1401 fi
1402 CC=$ac_cv_prog_CC
1403 if test -n "$CC"; then
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405 echo "${ECHO_T}$CC" >&6
1406 else
1407 echo "$as_me:$LINENO: result: no" >&5
1408 echo "${ECHO_T}no" >&6
1409 fi
1410
1411 fi
1412 if test -z "$ac_cv_prog_CC"; then
1413 ac_ct_CC=$CC
1414 # Extract the first word of "gcc", so it can be a program name with args.
1415 set dummy gcc; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420 else
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423 else
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425 for as_dir in $PATH
1426 do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 break 2
1434 fi
1435 done
1436 done
1437
1438 fi
1439 fi
1440 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441 if test -n "$ac_ct_CC"; then
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443 echo "${ECHO_T}$ac_ct_CC" >&6
1444 else
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1447 fi
1448
1449 CC=$ac_ct_CC
1450 else
1451 CC="$ac_cv_prog_CC"
1452 fi
1453
1454 if test -z "$CC"; then
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1457 set dummy ${ac_tool_prefix}cc; ac_word=$2
1458 echo "$as_me:$LINENO: checking for $ac_word" >&5
1459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1460 if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
1462 else
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1465 else
1466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467 for as_dir in $PATH
1468 do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477 done
1478 done
1479
1480 fi
1481 fi
1482 CC=$ac_cv_prog_CC
1483 if test -n "$CC"; then
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485 echo "${ECHO_T}$CC" >&6
1486 else
1487 echo "$as_me:$LINENO: result: no" >&5
1488 echo "${ECHO_T}no" >&6
1489 fi
1490
1491 fi
1492 if test -z "$ac_cv_prog_CC"; then
1493 ac_ct_CC=$CC
1494 # Extract the first word of "cc", so it can be a program name with args.
1495 set dummy cc; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
1514 fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521 if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523 echo "${ECHO_T}$ac_ct_CC" >&6
1524 else
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529 CC=$ac_ct_CC
1530 else
1531 CC="$ac_cv_prog_CC"
1532 fi
1533
1534 fi
1535 if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537 set dummy cc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546 ac_prog_rejected=no
1547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 for as_dir in $PATH
1549 do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1556 continue
1557 fi
1558 ac_cv_prog_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562 done
1563 done
1564
1565 if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1568 shift
1569 if test $# != 0; then
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1573 shift
1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1575 fi
1576 fi
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584 echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588 fi
1589 if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in cl
1592 do
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 CC=$ac_cv_prog_CC
1620 if test -n "$CC"; then
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622 echo "${ECHO_T}$CC" >&6
1623 else
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628 test -n "$CC" && break
1629 done
1630 fi
1631 if test -z "$CC"; then
1632 ac_ct_CC=$CC
1633 for ac_prog in cl
1634 do
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636 set dummy $ac_prog; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 else
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644 else
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 for as_dir in $PATH
1647 do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1655 fi
1656 done
1657 done
1658
1659 fi
1660 fi
1661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662 if test -n "$ac_ct_CC"; then
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664 echo "${ECHO_T}$ac_ct_CC" >&6
1665 else
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1668 fi
1669
1670 test -n "$ac_ct_CC" && break
1671 done
1672
1673 CC=$ac_ct_CC
1674 fi
1675
1676 fi
1677
1678
1679 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680 See \`config.log' for more details." >&5
1681 echo "$as_me: error: no acceptable C compiler found in \$PATH
1682 See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685 # Provide some information about the compiler.
1686 echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
1688 ac_compiler=`set X $ac_compile; echo $2`
1689 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
1694 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
1696 ac_status=$?
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
1699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704
1705 cat >conftest.$ac_ext <<_ACEOF
1706 /* confdefs.h. */
1707 _ACEOF
1708 cat confdefs.h >>conftest.$ac_ext
1709 cat >>conftest.$ac_ext <<_ACEOF
1710 /* end confdefs.h. */
1711
1712 int
1713 main ()
1714 {
1715
1716 ;
1717 return 0;
1718 }
1719 _ACEOF
1720 ac_clean_files_save=$ac_clean_files
1721 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1722 # Try to create an executable without -o first, disregard a.out.
1723 # It will help us diagnose broken compilers, and finding out an intuition
1724 # of exeext.
1725 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1727 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
1733 # Find the output, starting from the most likely. This scheme is
1734 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735 # resort.
1736
1737 # Be careful to initialize this variable, since it used to be cached.
1738 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739 ac_cv_exeext=
1740 # b.out is created by i960 compilers.
1741 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1742 do
1743 test -f "$ac_file" || continue
1744 case $ac_file in
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746 ;;
1747 conftest.$ac_ext )
1748 # This is the source file.
1749 ;;
1750 [ab].out )
1751 # We found the default executable, but exeext='' is most
1752 # certainly right.
1753 break;;
1754 *.* )
1755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool,
1757 # but it would be cool to find out if it's true. Does anybody
1758 # maintain Libtool? --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * )
1762 break;;
1763 esac
1764 done
1765 else
1766 echo "$as_me: failed program was:" >&5
1767 sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: C compiler cannot create executables
1772 See \`config.log' for more details." >&2;}
1773 { (exit 77); exit 77; }; }
1774 fi
1775
1776 ac_exeext=$ac_cv_exeext
1777 echo "$as_me:$LINENO: result: $ac_file" >&5
1778 echo "${ECHO_T}$ac_file" >&6
1779
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1784 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785 # If not cross compiling, check that we can run a simple program.
1786 if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 cross_compiling=no
1794 else
1795 if test "$cross_compiling" = maybe; then
1796 cross_compiling=yes
1797 else
1798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799 If you meant to cross compile, use \`--host'.
1800 See \`config.log' for more details." >&5
1801 echo "$as_me: error: cannot run C compiled programs.
1802 If you meant to cross compile, use \`--host'.
1803 See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805 fi
1806 fi
1807 fi
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1810
1811 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812 ac_clean_files=$ac_clean_files_save
1813 # Check the compiler produces executables we can run. If not, either
1814 # the compiler is broken, or we cross compile.
1815 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818 echo "${ECHO_T}$cross_compiling" >&6
1819
1820 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1823 (eval $ac_link) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829 # work properly (i.e., refer to `conftest.exe'), while it won't with
1830 # `rm'.
1831 for ac_file in conftest.exe conftest conftest.*; do
1832 test -f "$ac_file" || continue
1833 case $ac_file in
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 export ac_cv_exeext
1837 break;;
1838 * ) break;;
1839 esac
1840 done
1841 else
1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843 See \`config.log' for more details." >&5
1844 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845 See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
1847 fi
1848
1849 rm -f conftest$ac_cv_exeext
1850 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851 echo "${ECHO_T}$ac_cv_exeext" >&6
1852
1853 rm -f conftest.$ac_ext
1854 EXEEXT=$ac_cv_exeext
1855 ac_exeext=$EXEEXT
1856 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1858 if test "${ac_cv_objext+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 cat >conftest.$ac_ext <<_ACEOF
1862 /* confdefs.h. */
1863 _ACEOF
1864 cat confdefs.h >>conftest.$ac_ext
1865 cat >>conftest.$ac_ext <<_ACEOF
1866 /* end confdefs.h. */
1867
1868 int
1869 main ()
1870 {
1871
1872 ;
1873 return 0;
1874 }
1875 _ACEOF
1876 rm -f conftest.o conftest.obj
1877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1883 case $ac_file in
1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 break;;
1887 esac
1888 done
1889 else
1890 echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1892
1893 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894 See \`config.log' for more details." >&5
1895 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896 See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
1898 fi
1899
1900 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1901 fi
1902 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903 echo "${ECHO_T}$ac_cv_objext" >&6
1904 OBJEXT=$ac_cv_objext
1905 ac_objext=$OBJEXT
1906 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1908 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 cat >conftest.$ac_ext <<_ACEOF
1912 /* confdefs.h. */
1913 _ACEOF
1914 cat confdefs.h >>conftest.$ac_ext
1915 cat >>conftest.$ac_ext <<_ACEOF
1916 /* end confdefs.h. */
1917
1918 int
1919 main ()
1920 {
1921 #ifndef __GNUC__
1922 choke me
1923 #endif
1924
1925 ;
1926 return 0;
1927 }
1928 _ACEOF
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1932 ac_status=$?
1933 grep -v '^ *+' conftest.er1 >conftest.err
1934 rm -f conftest.er1
1935 cat conftest.err >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
1938 { ac_try='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 ac_compiler_gnu=yes
1952 else
1953 echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956 ac_compiler_gnu=no
1957 fi
1958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960
1961 fi
1962 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1964 GCC=`test $ac_compiler_gnu = yes && echo yes`
1965 ac_test_CFLAGS=${CFLAGS+set}
1966 ac_save_CFLAGS=$CFLAGS
1967 CFLAGS="-g"
1968 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1970 if test "${ac_cv_prog_cc_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1979
1980 int
1981 main ()
1982 {
1983
1984 ;
1985 return 0;
1986 }
1987 _ACEOF
1988 rm -f conftest.$ac_objext
1989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
2010 ac_cv_prog_cc_g=yes
2011 else
2012 echo "$as_me: failed program was:" >&5
2013 sed 's/^/| /' conftest.$ac_ext >&5
2014
2015 ac_cv_prog_cc_g=no
2016 fi
2017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018 fi
2019 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2021 if test "$ac_test_CFLAGS" = set; then
2022 CFLAGS=$ac_save_CFLAGS
2023 elif test $ac_cv_prog_cc_g = yes; then
2024 if test "$GCC" = yes; then
2025 CFLAGS="-g -O2"
2026 else
2027 CFLAGS="-g"
2028 fi
2029 else
2030 if test "$GCC" = yes; then
2031 CFLAGS="-O2"
2032 else
2033 CFLAGS=
2034 fi
2035 fi
2036 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 ac_cv_prog_cc_stdc=no
2042 ac_save_CC=$CC
2043 cat >conftest.$ac_ext <<_ACEOF
2044 /* confdefs.h. */
2045 _ACEOF
2046 cat confdefs.h >>conftest.$ac_ext
2047 cat >>conftest.$ac_ext <<_ACEOF
2048 /* end confdefs.h. */
2049 #include <stdarg.h>
2050 #include <stdio.h>
2051 #include <sys/types.h>
2052 #include <sys/stat.h>
2053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054 struct buf { int x; };
2055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056 static char *e (p, i)
2057 char **p;
2058 int i;
2059 {
2060 return p[i];
2061 }
2062 static char *f (char * (*g) (char **, int), char **p, ...)
2063 {
2064 char *s;
2065 va_list v;
2066 va_start (v,p);
2067 s = g (p, va_arg (v,int));
2068 va_end (v);
2069 return s;
2070 }
2071
2072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not '\xHH' hex character constants.
2074 These don't provoke an error unfortunately, instead are silently treated
2075 as 'x'. The following induces an error, until -std1 is added to get
2076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2077 array size at least. It's necessary to write '\x00'==0 to get something
2078 that's true only with -std1. */
2079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080
2081 int test (int i, double x);
2082 struct s1 {int (*f) (int a);};
2083 struct s2 {int (*f) (double a);};
2084 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2085 int argc;
2086 char **argv;
2087 int
2088 main ()
2089 {
2090 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2091 ;
2092 return 0;
2093 }
2094 _ACEOF
2095 # Don't try gcc -ansi; that turns off useful extensions and
2096 # breaks some systems' header files.
2097 # AIX -qlanglvl=ansi
2098 # Ultrix and OSF/1 -std1
2099 # HP-UX 10.20 and later -Ae
2100 # HP-UX older versions -Aa -D_HPUX_SOURCE
2101 # SVR4 -Xc -D__EXTENSIONS__
2102 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2103 do
2104 CC="$ac_save_CC $ac_arg"
2105 rm -f conftest.$ac_objext
2106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
2127 ac_cv_prog_cc_stdc=$ac_arg
2128 break
2129 else
2130 echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2132
2133 fi
2134 rm -f conftest.err conftest.$ac_objext
2135 done
2136 rm -f conftest.$ac_ext conftest.$ac_objext
2137 CC=$ac_save_CC
2138
2139 fi
2140
2141 case "x$ac_cv_prog_cc_stdc" in
2142 x|xno)
2143 echo "$as_me:$LINENO: result: none needed" >&5
2144 echo "${ECHO_T}none needed" >&6 ;;
2145 *)
2146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148 CC="$CC $ac_cv_prog_cc_stdc" ;;
2149 esac
2150
2151 # Some people use a C++ compiler to compile C. Since we use `exit',
2152 # in C++ we need to declare it. In case someone uses the same compiler
2153 # for both compiling C and C++ we need to have the C++ compiler decide
2154 # the declaration of exit, since it's the most demanding environment.
2155 cat >conftest.$ac_ext <<_ACEOF
2156 #ifndef __cplusplus
2157 choke me
2158 #endif
2159 _ACEOF
2160 rm -f conftest.$ac_objext
2161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 for ac_declaration in \
2183 '' \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2188 'void exit (int);'
2189 do
2190 cat >conftest.$ac_ext <<_ACEOF
2191 /* confdefs.h. */
2192 _ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2196 $ac_declaration
2197 #include <stdlib.h>
2198 int
2199 main ()
2200 {
2201 exit (42);
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 :
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 continue
2234 fi
2235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237 /* confdefs.h. */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h. */
2242 $ac_declaration
2243 int
2244 main ()
2245 {
2246 exit (42);
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 break
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280 done
2281 rm -f conftest*
2282 if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2286 fi
2287
2288 else
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 fi
2293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2294 ac_ext=c
2295 ac_cpp='$CPP $CPPFLAGS'
2296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301 cat >>confdefs.h <<\_ACEOF
2302 #define _GNU_SOURCE 1
2303 _ACEOF
2304
2305
2306
2307 ac_ext=c
2308 ac_cpp='$CPP $CPPFLAGS'
2309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2314 # On Suns, sometimes $CPP names a directory.
2315 if test -n "$CPP" && test -d "$CPP"; then
2316 CPP=
2317 fi
2318 if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324 do
2325 ac_preproc_ok=false
2326 for ac_c_preproc_warn_flag in '' yes
2327 do
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 # <limits.h> exists even on freestanding compilers.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp. "Syntax error" is here to catch this case.
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 #ifdef __STDC__
2341 # include <limits.h>
2342 #else
2343 # include <assert.h>
2344 #endif
2345 Syntax error
2346 _ACEOF
2347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2358 else
2359 ac_cpp_err=
2360 fi
2361 else
2362 ac_cpp_err=yes
2363 fi
2364 if test -z "$ac_cpp_err"; then
2365 :
2366 else
2367 echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 # Broken: fails on valid input.
2371 continue
2372 fi
2373 rm -f conftest.err conftest.$ac_ext
2374
2375 # OK, works on sane cases. Now check whether non-existent headers
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2383 #include <ac_nonexistent.h>
2384 _ACEOF
2385 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } >/dev/null; then
2393 if test -s conftest.err; then
2394 ac_cpp_err=$ac_c_preproc_warn_flag
2395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396 else
2397 ac_cpp_err=
2398 fi
2399 else
2400 ac_cpp_err=yes
2401 fi
2402 if test -z "$ac_cpp_err"; then
2403 # Broken: success on invalid input.
2404 continue
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 # Passes both tests.
2410 ac_preproc_ok=:
2411 break
2412 fi
2413 rm -f conftest.err conftest.$ac_ext
2414
2415 done
2416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417 rm -f conftest.err conftest.$ac_ext
2418 if $ac_preproc_ok; then
2419 break
2420 fi
2421
2422 done
2423 ac_cv_prog_CPP=$CPP
2424
2425 fi
2426 CPP=$ac_cv_prog_CPP
2427 else
2428 ac_cv_prog_CPP=$CPP
2429 fi
2430 echo "$as_me:$LINENO: result: $CPP" >&5
2431 echo "${ECHO_T}$CPP" >&6
2432 ac_preproc_ok=false
2433 for ac_c_preproc_warn_flag in '' yes
2434 do
2435 # Use a header file that comes with gcc, so configuring glibc
2436 # with a fresh cross-compiler works.
2437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 # <limits.h> exists even on freestanding compilers.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp. "Syntax error" is here to catch this case.
2441 cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h. */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h. */
2447 #ifdef __STDC__
2448 # include <limits.h>
2449 #else
2450 # include <assert.h>
2451 #endif
2452 Syntax error
2453 _ACEOF
2454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465 else
2466 ac_cpp_err=
2467 fi
2468 else
2469 ac_cpp_err=yes
2470 fi
2471 if test -z "$ac_cpp_err"; then
2472 :
2473 else
2474 echo "$as_me: failed program was:" >&5
2475 sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 # Broken: fails on valid input.
2478 continue
2479 fi
2480 rm -f conftest.err conftest.$ac_ext
2481
2482 # OK, works on sane cases. Now check whether non-existent headers
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2485 /* confdefs.h. */
2486 _ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2490 #include <ac_nonexistent.h>
2491 _ACEOF
2492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503 else
2504 ac_cpp_err=
2505 fi
2506 else
2507 ac_cpp_err=yes
2508 fi
2509 if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2511 continue
2512 else
2513 echo "$as_me: failed program was:" >&5
2514 sed 's/^/| /' conftest.$ac_ext >&5
2515
2516 # Passes both tests.
2517 ac_preproc_ok=:
2518 break
2519 fi
2520 rm -f conftest.err conftest.$ac_ext
2521
2522 done
2523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524 rm -f conftest.err conftest.$ac_ext
2525 if $ac_preproc_ok; then
2526 :
2527 else
2528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531 See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
2533 fi
2534
2535 ac_ext=c
2536 ac_cpp='$CPP $CPPFLAGS'
2537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
2542 echo "$as_me:$LINENO: checking for egrep" >&5
2543 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544 if test "${ac_cv_prog_egrep+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 else
2547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548 then ac_cv_prog_egrep='grep -E'
2549 else ac_cv_prog_egrep='egrep'
2550 fi
2551 fi
2552 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554 EGREP=$ac_cv_prog_egrep
2555
2556
2557
2558 echo "$as_me:$LINENO: checking for AIX" >&5
2559 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2560 cat >conftest.$ac_ext <<_ACEOF
2561 /* confdefs.h. */
2562 _ACEOF
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2566 #ifdef _AIX
2567 yes
2568 #endif
2569
2570 _ACEOF
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2572 $EGREP "yes" >/dev/null 2>&1; then
2573 echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6
2575 cat >>confdefs.h <<\_ACEOF
2576 #define _ALL_SOURCE 1
2577 _ACEOF
2578
2579 else
2580 echo "$as_me:$LINENO: result: no" >&5
2581 echo "${ECHO_T}no" >&6
2582 fi
2583 rm -f conftest*
2584
2585
2586 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2588 if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 else
2591 ac_func_search_save_LIBS=$LIBS
2592 ac_cv_search_strerror=no
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599
2600 /* Override any gcc2 internal prototype to avoid an error. */
2601 #ifdef __cplusplus
2602 extern "C"
2603 #endif
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2606 char strerror ();
2607 int
2608 main ()
2609 {
2610 strerror ();
2611 ;
2612 return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext conftest$ac_exeext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2637 ac_cv_search_strerror="none required"
2638 else
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642 fi
2643 rm -f conftest.err conftest.$ac_objext \
2644 conftest$ac_exeext conftest.$ac_ext
2645 if test "$ac_cv_search_strerror" = no; then
2646 for ac_lib in cposix; do
2647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2648 cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h. */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h. */
2654
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 #ifdef __cplusplus
2657 extern "C"
2658 #endif
2659 /* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661 char strerror ();
2662 int
2663 main ()
2664 {
2665 strerror ();
2666 ;
2667 return 0;
2668 }
2669 _ACEOF
2670 rm -f conftest.$ac_objext conftest$ac_exeext
2671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest$ac_exeext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_search_strerror="-l$ac_lib"
2693 break
2694 else
2695 echo "$as_me: failed program was:" >&5
2696 sed 's/^/| /' conftest.$ac_ext >&5
2697
2698 fi
2699 rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701 done
2702 fi
2703 LIBS=$ac_func_search_save_LIBS
2704 fi
2705 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707 if test "$ac_cv_search_strerror" != no; then
2708 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2709
2710 fi
2711
2712
2713
2714
2715 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2717 if test "${am_cv_prog_cc_stdc+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 else
2720 am_cv_prog_cc_stdc=no
2721 ac_save_CC="$CC"
2722 # Don't try gcc -ansi; that turns off useful extensions and
2723 # breaks some systems' header files.
2724 # AIX -qlanglvl=ansi
2725 # Ultrix and OSF/1 -std1
2726 # HP-UX 10.20 and later -Ae
2727 # HP-UX older versions -Aa -D_HPUX_SOURCE
2728 # SVR4 -Xc -D__EXTENSIONS__
2729 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730 do
2731 CC="$ac_save_CC $ac_arg"
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h. */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746 char **p;
2747 int i;
2748 {
2749 return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753 char *s;
2754 va_list v;
2755 va_start (v,p);
2756 s = g (p, va_arg (v,int));
2757 va_end (v);
2758 return s;
2759 }
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 int argc;
2765 char **argv;
2766
2767 int
2768 main ()
2769 {
2770
2771 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2772
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.$ac_objext
2778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 am_cv_prog_cc_stdc="$ac_arg"; break
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804 fi
2805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 done
2807 CC="$ac_save_CC"
2808
2809 fi
2810
2811 if test -z "$am_cv_prog_cc_stdc"; then
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813 echo "${ECHO_T}none needed" >&6
2814 else
2815 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2817 fi
2818 case "x$am_cv_prog_cc_stdc" in
2819 x|xno) ;;
2820 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2821 esac
2822
2823
2824 ac_aux_dir=
2825 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826 if test -f $ac_dir/install-sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f $ac_dir/install.sh; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f $ac_dir/shtool; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2838 fi
2839 done
2840 if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2848
2849 # Make sure we can run config.sub.
2850 $ac_config_sub sun4 >/dev/null 2>&1 ||
2851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853 { (exit 1); exit 1; }; }
2854
2855 echo "$as_me:$LINENO: checking build system type" >&5
2856 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2857 if test "${ac_cv_build+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859 else
2860 ac_cv_build_alias=$build_alias
2861 test -z "$ac_cv_build_alias" &&
2862 ac_cv_build_alias=`$ac_config_guess`
2863 test -z "$ac_cv_build_alias" &&
2864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866 { (exit 1); exit 1; }; }
2867 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2870 { (exit 1); exit 1; }; }
2871
2872 fi
2873 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874 echo "${ECHO_T}$ac_cv_build" >&6
2875 build=$ac_cv_build
2876 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2879
2880
2881 echo "$as_me:$LINENO: checking host system type" >&5
2882 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2883 if test "${ac_cv_host+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 else
2886 ac_cv_host_alias=$host_alias
2887 test -z "$ac_cv_host_alias" &&
2888 ac_cv_host_alias=$ac_cv_build_alias
2889 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2892 { (exit 1); exit 1; }; }
2893
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896 echo "${ECHO_T}$ac_cv_host" >&6
2897 host=$ac_cv_host
2898 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2901
2902
2903 echo "$as_me:$LINENO: checking target system type" >&5
2904 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2905 if test "${ac_cv_target+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908 ac_cv_target_alias=$target_alias
2909 test "x$ac_cv_target_alias" = "x" &&
2910 ac_cv_target_alias=$ac_cv_host_alias
2911 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2914 { (exit 1); exit 1; }; }
2915
2916 fi
2917 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918 echo "${ECHO_T}$ac_cv_target" >&6
2919 target=$ac_cv_target
2920 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2923
2924
2925 # The aliases save the names the user supplied, while $host etc.
2926 # will get canonicalized.
2927 test -n "$target_alias" &&
2928 test "$program_prefix$program_suffix$program_transform_name" = \
2929 NONENONEs,x,x, &&
2930 program_prefix=${target_alias}-
2931
2932
2933 CONFIG_OBS=
2934 CONFIG_DEPS=
2935 CONFIG_SRCS=
2936 ENABLE_CFLAGS=
2937
2938 CONFIG_ALL=
2939 CONFIG_CLEAN=
2940 CONFIG_INSTALL=
2941 CONFIG_UNINSTALL=
2942
2943 # If we haven't got the data from the intl directory,
2944 # assume NLS is disabled.
2945 USE_NLS=no
2946 LIBINTL=
2947 LIBINTL_DEP=
2948 INCINTL=
2949 XGETTEXT=
2950 GMSGFMT=
2951 POSUB=
2952
2953 if test -f ../intl/config.intl; then
2954 . ../intl/config.intl
2955 fi
2956 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958 if test x"$USE_NLS" != xyes; then
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2961 else
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964
2965 cat >>confdefs.h <<\_ACEOF
2966 #define ENABLE_NLS 1
2967 _ACEOF
2968
2969
2970 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972 # Look for .po and .gmo files in the source directory.
2973 CATALOGS=
2974 XLINGUAS=
2975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976 # If there aren't any .gmo files the shell will give us the
2977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2978 # weeded out.
2979 case "$cat" in *\**)
2980 continue;;
2981 esac
2982 # The quadruple backslash is collapsed to a double backslash
2983 # by the backticks, then collapsed again by the double quotes,
2984 # leaving us with one backslash in the sed expression (right
2985 # before the dot that mustn't act as a wildcard).
2986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988 # The user is allowed to set LINGUAS to a list of languages to
2989 # install catalogs for. If it's empty that means "all of them."
2990 if test "x$LINGUAS" = x; then
2991 CATALOGS="$CATALOGS $cat"
2992 XLINGUAS="$XLINGUAS $lang"
2993 else
2994 case "$LINGUAS" in *$lang*)
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
2997 ;;
2998 esac
2999 fi
3000 done
3001 LINGUAS="$XLINGUAS"
3002 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003 echo "${ECHO_T}$LINGUAS" >&6
3004
3005
3006 DATADIRNAME=share
3007
3008 INSTOBJEXT=.mo
3009
3010 GENCAT=gencat
3011
3012 CATOBJEXT=.gmo
3013
3014 fi
3015
3016 localedir='${datadir}/locale'
3017
3018
3019 if test x"$USE_NLS" = xyes; then
3020 CONFIG_ALL="$CONFIG_ALL all-po"
3021 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3024 fi
3025
3026 PACKAGE=gdb
3027
3028 cat >>confdefs.h <<_ACEOF
3029 #define PACKAGE "$PACKAGE"
3030 _ACEOF
3031
3032
3033
3034 debugdir=${libdir}/debug
3035
3036
3037 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
3038 if test "${with_separate_debug_dir+set}" = set; then
3039 withval="$with_separate_debug_dir"
3040 debugdir="${withval}"
3041 fi;
3042
3043
3044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046 ac_define_dir=`eval echo $debugdir`
3047 ac_define_dir=`eval echo $ac_define_dir`
3048
3049 cat >>confdefs.h <<_ACEOF
3050 #define DEBUGDIR "$ac_define_dir"
3051 _ACEOF
3052
3053
3054 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3055
3056
3057
3058 subdirs="$subdirs doc testsuite"
3059
3060
3061 # Provide defaults for some variables set by the per-host and per-target
3062 # configuration.
3063 gdb_host_obs=posix-hdep.o
3064
3065 . $srcdir/configure.host
3066
3067 . $srcdir/configure.tgt
3068
3069 # Fetch the default architecture and default target vector from BFD.
3070 targ=$target; . $srcdir/../bfd/config.bfd
3071
3072 # We only want the first architecture, so strip off the others if
3073 # there is more than one.
3074 targ_archs=`echo $targ_archs | sed 's/ .*//'`
3075
3076 if test "x$targ_archs" != x; then
3077
3078 cat >>confdefs.h <<_ACEOF
3079 #define DEFAULT_BFD_ARCH $targ_archs
3080 _ACEOF
3081
3082 fi
3083 if test "x$targ_defvec" != x; then
3084
3085 cat >>confdefs.h <<_ACEOF
3086 #define DEFAULT_BFD_VEC $targ_defvec
3087 _ACEOF
3088
3089 fi
3090
3091 test "$program_prefix" != NONE &&
3092 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3093 # Use a double $ so make ignores it.
3094 test "$program_suffix" != NONE &&
3095 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3096 # Double any \ or $. echo might interpret backslashes.
3097 # By default was `s,x,x', remove it if useless.
3098 cat <<\_ACEOF >conftest.sed
3099 s/[\\$]/&&/g;s/;s,x,x,$//
3100 _ACEOF
3101 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3102 rm conftest.sed
3103
3104
3105 # The CLI cannot be disabled yet, but may be in the future.
3106
3107 # Enable CLI.
3108 # Check whether --enable-gdbcli or --disable-gdbcli was given.
3109 if test "${enable_gdbcli+set}" = set; then
3110 enableval="$enable_gdbcli"
3111 case $enableval in
3112 yes)
3113 ;;
3114 no)
3115 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3116 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3117 { (exit 1); exit 1; }; } ;;
3118 *)
3119 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3120 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3121 { (exit 1); exit 1; }; } ;;
3122 esac
3123 else
3124 enable_gdbcli=yes
3125 fi;
3126 if test x"$enable_gdbcli" = xyes; then
3127 if test -d $srcdir/cli; then
3128 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3129 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3130 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3131 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3132 fi
3133 fi
3134
3135 # Enable MI.
3136 # Check whether --enable-gdbmi or --disable-gdbmi was given.
3137 if test "${enable_gdbmi+set}" = set; then
3138 enableval="$enable_gdbmi"
3139 case $enableval in
3140 yes | no)
3141 ;;
3142 *)
3143 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3144 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 esac
3147 else
3148 enable_gdbmi=yes
3149 fi;
3150 if test x"$enable_gdbmi" = xyes; then
3151 if test -d $srcdir/mi; then
3152 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3153 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3154 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3155 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3156 fi
3157 fi
3158
3159 # Enable TUI.
3160 # Check whether --enable-tui or --disable-tui was given.
3161 if test "${enable_tui+set}" = set; then
3162 enableval="$enable_tui"
3163 case $enableval in
3164 yes | no)
3165 ;;
3166 *)
3167 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3168 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3169 { (exit 1); exit 1; }; } ;;
3170 esac
3171 else
3172 enable_tui=yes
3173 fi;
3174
3175 # Enable gdbtk.
3176 # Check whether --enable-gdbtk or --disable-gdbtk was given.
3177 if test "${enable_gdbtk+set}" = set; then
3178 enableval="$enable_gdbtk"
3179 case $enableval in
3180 yes | no)
3181 ;;
3182 *)
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3185 { (exit 1); exit 1; }; } ;;
3186 esac
3187 else
3188 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
3189 enable_gdbtk=yes
3190 else
3191 enable_gdbtk=no
3192 fi
3193 fi;
3194 # We unconditionally disable gdbtk tests on selected platforms.
3195 case $host_os in
3196 go32* | windows*)
3197 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3198 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3199 enable_gdbtk=no ;;
3200 esac
3201
3202 # Libunwind support.
3203 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3204 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3205 if test "${ac_cv_header_stdc+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 else
3208 cat >conftest.$ac_ext <<_ACEOF
3209 /* confdefs.h. */
3210 _ACEOF
3211 cat confdefs.h >>conftest.$ac_ext
3212 cat >>conftest.$ac_ext <<_ACEOF
3213 /* end confdefs.h. */
3214 #include <stdlib.h>
3215 #include <stdarg.h>
3216 #include <string.h>
3217 #include <float.h>
3218
3219 int
3220 main ()
3221 {
3222
3223 ;
3224 return 0;
3225 }
3226 _ACEOF
3227 rm -f conftest.$ac_objext
3228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3229 (eval $ac_compile) 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } &&
3236 { ac_try='test -z "$ac_c_werror_flag"
3237 || test ! -s conftest.err'
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; } &&
3243 { ac_try='test -s conftest.$ac_objext'
3244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 (eval $ac_try) 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; }; then
3249 ac_cv_header_stdc=yes
3250 else
3251 echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3253
3254 ac_cv_header_stdc=no
3255 fi
3256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3257
3258 if test $ac_cv_header_stdc = yes; then
3259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 /* confdefs.h. */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h. */
3266 #include <string.h>
3267
3268 _ACEOF
3269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3270 $EGREP "memchr" >/dev/null 2>&1; then
3271 :
3272 else
3273 ac_cv_header_stdc=no
3274 fi
3275 rm -f conftest*
3276
3277 fi
3278
3279 if test $ac_cv_header_stdc = yes; then
3280 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3281 cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <stdlib.h>
3288
3289 _ACEOF
3290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3291 $EGREP "free" >/dev/null 2>&1; then
3292 :
3293 else
3294 ac_cv_header_stdc=no
3295 fi
3296 rm -f conftest*
3297
3298 fi
3299
3300 if test $ac_cv_header_stdc = yes; then
3301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3302 if test "$cross_compiling" = yes; then
3303 :
3304 else
3305 cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 #include <ctype.h>
3312 #if ((' ' & 0x0FF) == 0x020)
3313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3315 #else
3316 # define ISLOWER(c) \
3317 (('a' <= (c) && (c) <= 'i') \
3318 || ('j' <= (c) && (c) <= 'r') \
3319 || ('s' <= (c) && (c) <= 'z'))
3320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3321 #endif
3322
3323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3324 int
3325 main ()
3326 {
3327 int i;
3328 for (i = 0; i < 256; i++)
3329 if (XOR (islower (i), ISLOWER (i))
3330 || toupper (i) != TOUPPER (i))
3331 exit(2);
3332 exit (0);
3333 }
3334 _ACEOF
3335 rm -f conftest$ac_exeext
3336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3337 (eval $ac_link) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3342 (eval $ac_try) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3346 :
3347 else
3348 echo "$as_me: program exited with status $ac_status" >&5
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3351
3352 ( exit $ac_status )
3353 ac_cv_header_stdc=no
3354 fi
3355 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 fi
3358 fi
3359 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3360 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3361 if test $ac_cv_header_stdc = yes; then
3362
3363 cat >>confdefs.h <<\_ACEOF
3364 #define STDC_HEADERS 1
3365 _ACEOF
3366
3367 fi
3368
3369 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3380 inttypes.h stdint.h unistd.h
3381 do
3382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3383 echo "$as_me:$LINENO: checking for $ac_header" >&5
3384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h. */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3394 $ac_includes_default
3395
3396 #include <$ac_header>
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3400 (eval $ac_compile) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -z "$ac_c_werror_flag"
3408 || test ! -s conftest.err'
3409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3410 (eval $ac_try) 2>&5
3411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; } &&
3414 { ac_try='test -s conftest.$ac_objext'
3415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); }; }; then
3420 eval "$as_ac_Header=yes"
3421 else
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 eval "$as_ac_Header=no"
3426 fi
3427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3428 fi
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3432 cat >>confdefs.h <<_ACEOF
3433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3434 _ACEOF
3435
3436 fi
3437
3438 done
3439
3440
3441
3442 # Check whether --with-libunwind or --without-libunwind was given.
3443 if test "${with_libunwind+set}" = set; then
3444 withval="$with_libunwind"
3445 case "${withval}" in
3446 yes) enable_libunwind=yes ;;
3447 no) enable_libunwind=no ;;
3448 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3449 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3450 { (exit 1); exit 1; }; } ;;
3451 esac
3452 else
3453
3454
3455 for ac_header in libunwind.h
3456 do
3457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3459 echo "$as_me:$LINENO: checking for $ac_header" >&5
3460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 fi
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466 else
3467 # Is the header compilable?
3468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3471 /* confdefs.h. */
3472 _ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3476 $ac_includes_default
3477 #include <$ac_header>
3478 _ACEOF
3479 rm -f conftest.$ac_objext
3480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3481 (eval $ac_compile) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -z "$ac_c_werror_flag"
3489 || test ! -s conftest.err'
3490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491 (eval $ac_try) 2>&5
3492 ac_status=$?
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); }; } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_header_compiler=yes
3502 else
3503 echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 ac_header_compiler=no
3507 fi
3508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3510 echo "${ECHO_T}$ac_header_compiler" >&6
3511
3512 # Is the header present?
3513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521 #include <$ac_header>
3522 _ACEOF
3523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null; then
3531 if test -s conftest.err; then
3532 ac_cpp_err=$ac_c_preproc_warn_flag
3533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534 else
3535 ac_cpp_err=
3536 fi
3537 else
3538 ac_cpp_err=yes
3539 fi
3540 if test -z "$ac_cpp_err"; then
3541 ac_header_preproc=yes
3542 else
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3545
3546 ac_header_preproc=no
3547 fi
3548 rm -f conftest.err conftest.$ac_ext
3549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3550 echo "${ECHO_T}$ac_header_preproc" >&6
3551
3552 # So? What about this header?
3553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3554 yes:no: )
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3559 ac_header_preproc=yes
3560 ;;
3561 no:yes:* )
3562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3574 (
3575 cat <<\_ASBOX
3576 ## ------------------------------------------ ##
3577 ## Report this to the AC_PACKAGE_NAME lists. ##
3578 ## ------------------------------------------ ##
3579 _ASBOX
3580 ) |
3581 sed "s/^/$as_me: WARNING: /" >&2
3582 ;;
3583 esac
3584 echo "$as_me:$LINENO: checking for $ac_header" >&5
3585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3587 echo $ECHO_N "(cached) $ECHO_C" >&6
3588 else
3589 eval "$as_ac_Header=\$ac_header_preproc"
3590 fi
3591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3593
3594 fi
3595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598 _ACEOF
3599
3600 fi
3601
3602 done
3603
3604
3605 for ac_header in libunwind-ia64.h
3606 do
3607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3609 echo "$as_me:$LINENO: checking for $ac_header" >&5
3610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 fi
3614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3616 else
3617 # Is the header compilable?
3618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3620 cat >conftest.$ac_ext <<_ACEOF
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3627 #include <$ac_header>
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_c_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_header_compiler=yes
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 ac_header_compiler=no
3657 fi
3658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3660 echo "${ECHO_T}$ac_header_compiler" >&6
3661
3662 # Is the header present?
3663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 #include <$ac_header>
3672 _ACEOF
3673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3675 ac_status=$?
3676 grep -v '^ *+' conftest.er1 >conftest.err
3677 rm -f conftest.er1
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } >/dev/null; then
3681 if test -s conftest.err; then
3682 ac_cpp_err=$ac_c_preproc_warn_flag
3683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3684 else
3685 ac_cpp_err=
3686 fi
3687 else
3688 ac_cpp_err=yes
3689 fi
3690 if test -z "$ac_cpp_err"; then
3691 ac_header_preproc=yes
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696 ac_header_preproc=no
3697 fi
3698 rm -f conftest.err conftest.$ac_ext
3699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3700 echo "${ECHO_T}$ac_header_preproc" >&6
3701
3702 # So? What about this header?
3703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3704 yes:no: )
3705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3709 ac_header_preproc=yes
3710 ;;
3711 no:yes:* )
3712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3724 (
3725 cat <<\_ASBOX
3726 ## ------------------------------------------ ##
3727 ## Report this to the AC_PACKAGE_NAME lists. ##
3728 ## ------------------------------------------ ##
3729 _ASBOX
3730 ) |
3731 sed "s/^/$as_me: WARNING: /" >&2
3732 ;;
3733 esac
3734 echo "$as_me:$LINENO: checking for $ac_header" >&5
3735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 eval "$as_ac_Header=\$ac_header_preproc"
3740 fi
3741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3743
3744 fi
3745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3746 cat >>confdefs.h <<_ACEOF
3747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3748 _ACEOF
3749
3750 fi
3751
3752 done
3753
3754 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3755 enable_libunwind=yes;
3756 fi
3757
3758 fi;
3759
3760 if test x"$enable_libunwind" = xyes; then
3761
3762 for ac_header in libunwind.h
3763 do
3764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3766 echo "$as_me:$LINENO: checking for $ac_header" >&5
3767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 fi
3771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3772 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3773 else
3774 # Is the header compilable?
3775 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3776 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3777 cat >conftest.$ac_ext <<_ACEOF
3778 /* confdefs.h. */
3779 _ACEOF
3780 cat confdefs.h >>conftest.$ac_ext
3781 cat >>conftest.$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3783 $ac_includes_default
3784 #include <$ac_header>
3785 _ACEOF
3786 rm -f conftest.$ac_objext
3787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3788 (eval $ac_compile) 2>conftest.er1
3789 ac_status=$?
3790 grep -v '^ *+' conftest.er1 >conftest.err
3791 rm -f conftest.er1
3792 cat conftest.err >&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } &&
3795 { ac_try='test -z "$ac_c_werror_flag"
3796 || test ! -s conftest.err'
3797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; } &&
3802 { ac_try='test -s conftest.$ac_objext'
3803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804 (eval $ac_try) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; }; then
3808 ac_header_compiler=yes
3809 else
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3812
3813 ac_header_compiler=no
3814 fi
3815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3817 echo "${ECHO_T}$ac_header_compiler" >&6
3818
3819 # Is the header present?
3820 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3821 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #include <$ac_header>
3829 _ACEOF
3830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3832 ac_status=$?
3833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } >/dev/null; then
3838 if test -s conftest.err; then
3839 ac_cpp_err=$ac_c_preproc_warn_flag
3840 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3841 else
3842 ac_cpp_err=
3843 fi
3844 else
3845 ac_cpp_err=yes
3846 fi
3847 if test -z "$ac_cpp_err"; then
3848 ac_header_preproc=yes
3849 else
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3852
3853 ac_header_preproc=no
3854 fi
3855 rm -f conftest.err conftest.$ac_ext
3856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3857 echo "${ECHO_T}$ac_header_preproc" >&6
3858
3859 # So? What about this header?
3860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3861 yes:no: )
3862 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3863 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3866 ac_header_preproc=yes
3867 ;;
3868 no:yes:* )
3869 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3870 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3871 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3872 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3873 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3874 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3875 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3876 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3879 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3880 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3881 (
3882 cat <<\_ASBOX
3883 ## ------------------------------------------ ##
3884 ## Report this to the AC_PACKAGE_NAME lists. ##
3885 ## ------------------------------------------ ##
3886 _ASBOX
3887 ) |
3888 sed "s/^/$as_me: WARNING: /" >&2
3889 ;;
3890 esac
3891 echo "$as_me:$LINENO: checking for $ac_header" >&5
3892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 eval "$as_ac_Header=\$ac_header_preproc"
3897 fi
3898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3900
3901 fi
3902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3903 cat >>confdefs.h <<_ACEOF
3904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3905 _ACEOF
3906
3907 fi
3908
3909 done
3910
3911
3912 for ac_header in libunwind-ia64.h
3913 do
3914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3916 echo "$as_me:$LINENO: checking for $ac_header" >&5
3917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3920 fi
3921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3923 else
3924 # Is the header compilable?
3925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3927 cat >conftest.$ac_ext <<_ACEOF
3928 /* confdefs.h. */
3929 _ACEOF
3930 cat confdefs.h >>conftest.$ac_ext
3931 cat >>conftest.$ac_ext <<_ACEOF
3932 /* end confdefs.h. */
3933 $ac_includes_default
3934 #include <$ac_header>
3935 _ACEOF
3936 rm -f conftest.$ac_objext
3937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3938 (eval $ac_compile) 2>conftest.er1
3939 ac_status=$?
3940 grep -v '^ *+' conftest.er1 >conftest.err
3941 rm -f conftest.er1
3942 cat conftest.err >&5
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); } &&
3945 { ac_try='test -z "$ac_c_werror_flag"
3946 || test ! -s conftest.err'
3947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948 (eval $ac_try) 2>&5
3949 ac_status=$?
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; } &&
3952 { ac_try='test -s conftest.$ac_objext'
3953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954 (eval $ac_try) 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; }; then
3958 ac_header_compiler=yes
3959 else
3960 echo "$as_me: failed program was:" >&5
3961 sed 's/^/| /' conftest.$ac_ext >&5
3962
3963 ac_header_compiler=no
3964 fi
3965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3967 echo "${ECHO_T}$ac_header_compiler" >&6
3968
3969 # Is the header present?
3970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 #include <$ac_header>
3979 _ACEOF
3980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3982 ac_status=$?
3983 grep -v '^ *+' conftest.er1 >conftest.err
3984 rm -f conftest.er1
3985 cat conftest.err >&5
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } >/dev/null; then
3988 if test -s conftest.err; then
3989 ac_cpp_err=$ac_c_preproc_warn_flag
3990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3991 else
3992 ac_cpp_err=
3993 fi
3994 else
3995 ac_cpp_err=yes
3996 fi
3997 if test -z "$ac_cpp_err"; then
3998 ac_header_preproc=yes
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4002
4003 ac_header_preproc=no
4004 fi
4005 rm -f conftest.err conftest.$ac_ext
4006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4007 echo "${ECHO_T}$ac_header_preproc" >&6
4008
4009 # So? What about this header?
4010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4011 yes:no: )
4012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4016 ac_header_preproc=yes
4017 ;;
4018 no:yes:* )
4019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4031 (
4032 cat <<\_ASBOX
4033 ## ------------------------------------------ ##
4034 ## Report this to the AC_PACKAGE_NAME lists. ##
4035 ## ------------------------------------------ ##
4036 _ASBOX
4037 ) |
4038 sed "s/^/$as_me: WARNING: /" >&2
4039 ;;
4040 esac
4041 echo "$as_me:$LINENO: checking for $ac_header" >&5
4042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 eval "$as_ac_Header=\$ac_header_preproc"
4047 fi
4048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4050
4051 fi
4052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055 _ACEOF
4056
4057 fi
4058
4059 done
4060
4061
4062 cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_LIBUNWIND 1
4064 _ACEOF
4065
4066 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4067 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4068 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4069 fi
4070
4071 # Profiling support.
4072 # Check whether --enable-profiling or --disable-profiling was given.
4073 if test "${enable_profiling+set}" = set; then
4074 enableval="$enable_profiling"
4075 case $enableval in
4076 yes | no)
4077 ;;
4078 *)
4079 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4080 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4081 { (exit 1); exit 1; }; } ;;
4082 esac
4083 else
4084 enable_profiling=no
4085 fi;
4086
4087
4088
4089 for ac_func in monstartup _mcleanup
4090 do
4091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4092 echo "$as_me:$LINENO: checking for $ac_func" >&5
4093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4094 if eval "test \"\${$as_ac_var+set}\" = set"; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096 else
4097 cat >conftest.$ac_ext <<_ACEOF
4098 /* confdefs.h. */
4099 _ACEOF
4100 cat confdefs.h >>conftest.$ac_ext
4101 cat >>conftest.$ac_ext <<_ACEOF
4102 /* end confdefs.h. */
4103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4105 #define $ac_func innocuous_$ac_func
4106
4107 /* System header to define __stub macros and hopefully few prototypes,
4108 which can conflict with char $ac_func (); below.
4109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4110 <limits.h> exists even on freestanding compilers. */
4111
4112 #ifdef __STDC__
4113 # include <limits.h>
4114 #else
4115 # include <assert.h>
4116 #endif
4117
4118 #undef $ac_func
4119
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 #ifdef __cplusplus
4122 extern "C"
4123 {
4124 #endif
4125 /* We use char because int might match the return type of a gcc2
4126 builtin and then its argument prototype would still apply. */
4127 char $ac_func ();
4128 /* The GNU C library defines this for functions which it implements
4129 to always fail with ENOSYS. Some functions are actually named
4130 something starting with __ and the normal name is an alias. */
4131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4132 choke me
4133 #else
4134 char (*f) () = $ac_func;
4135 #endif
4136 #ifdef __cplusplus
4137 }
4138 #endif
4139
4140 int
4141 main ()
4142 {
4143 return f != $ac_func;
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4150 (eval $ac_link) 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag"
4158 || test ! -s conftest.err'
4159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 (eval $ac_try) 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest$ac_exeext'
4165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 (eval $ac_try) 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 eval "$as_ac_var=yes"
4171 else
4172 echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175 eval "$as_ac_var=no"
4176 fi
4177 rm -f conftest.err conftest.$ac_objext \
4178 conftest$ac_exeext conftest.$ac_ext
4179 fi
4180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4182 if test `eval echo '${'$as_ac_var'}'` = yes; then
4183 cat >>confdefs.h <<_ACEOF
4184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4185 _ACEOF
4186
4187 fi
4188 done
4189
4190 echo "$as_me:$LINENO: checking for _etext" >&5
4191 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
4192 if test "${ac_cv_var__etext+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195 cat >conftest.$ac_ext <<_ACEOF
4196 /* confdefs.h. */
4197 _ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4201 #include <stdlib.h>
4202 extern char _etext;
4203
4204 int
4205 main ()
4206 {
4207 free (&_etext);
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 rm -f conftest.$ac_objext conftest$ac_exeext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4214 (eval $ac_link) 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag"
4222 || test ! -s conftest.err'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4224 (eval $ac_try) 2>&5
4225 ac_status=$?
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; } &&
4228 { ac_try='test -s conftest$ac_exeext'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; }; then
4234 ac_cv_var__etext=yes
4235 else
4236 echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4238
4239 ac_cv_var__etext=no
4240 fi
4241 rm -f conftest.err conftest.$ac_objext \
4242 conftest$ac_exeext conftest.$ac_ext
4243 fi
4244 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4245 echo "${ECHO_T}$ac_cv_var__etext" >&6
4246 if test $ac_cv_var__etext = yes; then
4247
4248 cat >>confdefs.h <<\_ACEOF
4249 #define HAVE__ETEXT 1
4250 _ACEOF
4251
4252 fi
4253 if test "$enable_profiling" = yes ; then
4254 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4255 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4256 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4257 { (exit 1); exit 1; }; }
4258 fi
4259 PROFILE_CFLAGS=-pg
4260 OLD_CFLAGS="$CFLAGS"
4261 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4262
4263 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4264 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
4265 if test "${ac_cv_cc_supports_pg+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h. */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h. */
4274
4275 int
4276 main ()
4277 {
4278 int x;
4279 ;
4280 return 0;
4281 }
4282 _ACEOF
4283 rm -f conftest.$ac_objext
4284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285 (eval $ac_compile) 2>conftest.er1
4286 ac_status=$?
4287 grep -v '^ *+' conftest.er1 >conftest.err
4288 rm -f conftest.er1
4289 cat conftest.err >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -z "$ac_c_werror_flag"
4293 || test ! -s conftest.err'
4294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295 (eval $ac_try) 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); }; } &&
4299 { ac_try='test -s conftest.$ac_objext'
4300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301 (eval $ac_try) 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_cc_supports_pg=yes
4306 else
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ac_cv_cc_supports_pg=no
4311 fi
4312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4315 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
4316
4317 if test $ac_cv_cc_supports_pg = no; then
4318 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4319 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4320 { (exit 1); exit 1; }; }
4321 fi
4322
4323 CFLAGS="$OLD_CFLAGS"
4324 fi
4325
4326 # --------------------- #
4327 # Checks for programs. #
4328 # --------------------- #
4329
4330 for ac_prog in gawk mawk nawk awk
4331 do
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy $ac_prog; ac_word=$2
4334 echo "$as_me:$LINENO: checking for $ac_word" >&5
4335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4336 if test "${ac_cv_prog_AWK+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338 else
4339 if test -n "$AWK"; then
4340 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4341 else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343 for as_dir in $PATH
4344 do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_AWK="$ac_prog"
4350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 break 2
4352 fi
4353 done
4354 done
4355
4356 fi
4357 fi
4358 AWK=$ac_cv_prog_AWK
4359 if test -n "$AWK"; then
4360 echo "$as_me:$LINENO: result: $AWK" >&5
4361 echo "${ECHO_T}$AWK" >&6
4362 else
4363 echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6
4365 fi
4366
4367 test -n "$AWK" && break
4368 done
4369
4370 # Find a good install program. We prefer a C program (faster),
4371 # so one script is as good as another. But avoid the broken or
4372 # incompatible versions:
4373 # SysV /etc/install, /usr/sbin/install
4374 # SunOS /usr/etc/install
4375 # IRIX /sbin/install
4376 # AIX /bin/install
4377 # AmigaOS /C/install, which installs bootblocks on floppy discs
4378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4381 # OS/2's system install, which has a completely different semantic
4382 # ./install, which can be erroneously created by make from ./install.sh.
4383 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4384 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4385 if test -z "$INSTALL"; then
4386 if test "${ac_cv_path_install+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 # Account for people who put trailing slashes in PATH elements.
4395 case $as_dir/ in
4396 ./ | .// | /cC/* | \
4397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4398 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4399 /usr/ucb/* ) ;;
4400 *)
4401 # OSF1 and SCO ODT 3.0 have their own names for install.
4402 # Don't use installbsd from OSF since it installs stuff as root
4403 # by default.
4404 for ac_prog in ginstall scoinst install; do
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4407 if test $ac_prog = install &&
4408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4409 # AIX install. It has an incompatible calling convention.
4410 :
4411 elif test $ac_prog = install &&
4412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4413 # program-specific install script used by HP pwplus--don't use.
4414 :
4415 else
4416 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4417 break 3
4418 fi
4419 fi
4420 done
4421 done
4422 ;;
4423 esac
4424 done
4425
4426
4427 fi
4428 if test "${ac_cv_path_install+set}" = set; then
4429 INSTALL=$ac_cv_path_install
4430 else
4431 # As a last resort, use the slow shell script. We don't cache a
4432 # path for INSTALL within a source directory, because that will
4433 # break other packages using the cache if that directory is
4434 # removed, or if the path is relative.
4435 INSTALL=$ac_install_sh
4436 fi
4437 fi
4438 echo "$as_me:$LINENO: result: $INSTALL" >&5
4439 echo "${ECHO_T}$INSTALL" >&6
4440
4441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4442 # It thinks the first close brace ends the variable substitution.
4443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4444
4445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4446
4447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4448
4449 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4450 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4451 LN_S=$as_ln_s
4452 if test "$LN_S" = "ln -s"; then
4453 echo "$as_me:$LINENO: result: yes" >&5
4454 echo "${ECHO_T}yes" >&6
4455 else
4456 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4457 echo "${ECHO_T}no, using $LN_S" >&6
4458 fi
4459
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4462 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_prog_RANLIB+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$RANLIB"; then
4469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4481 fi
4482 done
4483 done
4484
4485 fi
4486 fi
4487 RANLIB=$ac_cv_prog_RANLIB
4488 if test -n "$RANLIB"; then
4489 echo "$as_me:$LINENO: result: $RANLIB" >&5
4490 echo "${ECHO_T}$RANLIB" >&6
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4494 fi
4495
4496 fi
4497 if test -z "$ac_cv_prog_RANLIB"; then
4498 ac_ct_RANLIB=$RANLIB
4499 # Extract the first word of "ranlib", so it can be a program name with args.
4500 set dummy ranlib; ac_word=$2
4501 echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 if test -n "$ac_ct_RANLIB"; then
4507 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_ac_ct_RANLIB="ranlib"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4519 fi
4520 done
4521 done
4522
4523 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4524 fi
4525 fi
4526 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4527 if test -n "$ac_ct_RANLIB"; then
4528 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4529 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4530 else
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4533 fi
4534
4535 RANLIB=$ac_ct_RANLIB
4536 else
4537 RANLIB="$ac_cv_prog_RANLIB"
4538 fi
4539
4540 for ac_prog in 'bison -y' byacc
4541 do
4542 # Extract the first word of "$ac_prog", so it can be a program name with args.
4543 set dummy $ac_prog; ac_word=$2
4544 echo "$as_me:$LINENO: checking for $ac_word" >&5
4545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546 if test "${ac_cv_prog_YACC+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 if test -n "$YACC"; then
4550 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_YACC="$ac_prog"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563 done
4564 done
4565
4566 fi
4567 fi
4568 YACC=$ac_cv_prog_YACC
4569 if test -n "$YACC"; then
4570 echo "$as_me:$LINENO: result: $YACC" >&5
4571 echo "${ECHO_T}$YACC" >&6
4572 else
4573 echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6
4575 fi
4576
4577 test -n "$YACC" && break
4578 done
4579 test -n "$YACC" || YACC="yacc"
4580
4581
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}ar; ac_word=$2
4585 echo "$as_me:$LINENO: checking for $ac_word" >&5
4586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4587 if test "${ac_cv_prog_AR+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 if test -n "$AR"; then
4591 ac_cv_prog_AR="$AR" # Let the user override the test.
4592 else
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4600 ac_cv_prog_AR="${ac_tool_prefix}ar"
4601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606
4607 fi
4608 fi
4609 AR=$ac_cv_prog_AR
4610 if test -n "$AR"; then
4611 echo "$as_me:$LINENO: result: $AR" >&5
4612 echo "${ECHO_T}$AR" >&6
4613 else
4614 echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6
4616 fi
4617
4618 fi
4619 if test -z "$ac_cv_prog_AR"; then
4620 ac_ct_AR=$AR
4621 # Extract the first word of "ar", so it can be a program name with args.
4622 set dummy ar; ac_word=$2
4623 echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if test -n "$ac_ct_AR"; then
4629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638 ac_cv_prog_ac_ct_AR="ar"
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4641 fi
4642 done
4643 done
4644
4645 fi
4646 fi
4647 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4648 if test -n "$ac_ct_AR"; then
4649 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4650 echo "${ECHO_T}$ac_ct_AR" >&6
4651 else
4652 echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6
4654 fi
4655
4656 AR=$ac_ct_AR
4657 else
4658 AR="$ac_cv_prog_AR"
4659 fi
4660
4661 if test -n "$ac_tool_prefix"; then
4662 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4663 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4664 echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4666 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 if test -n "$DLLTOOL"; then
4670 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683 done
4684 done
4685
4686 fi
4687 fi
4688 DLLTOOL=$ac_cv_prog_DLLTOOL
4689 if test -n "$DLLTOOL"; then
4690 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4691 echo "${ECHO_T}$DLLTOOL" >&6
4692 else
4693 echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6
4695 fi
4696
4697 fi
4698 if test -z "$ac_cv_prog_DLLTOOL"; then
4699 ac_ct_DLLTOOL=$DLLTOOL
4700 # Extract the first word of "dlltool", so it can be a program name with args.
4701 set dummy dlltool; ac_word=$2
4702 echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 if test -n "$ac_ct_DLLTOOL"; then
4708 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721 done
4722 done
4723
4724 fi
4725 fi
4726 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4727 if test -n "$ac_ct_DLLTOOL"; then
4728 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4729 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4730 else
4731 echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4733 fi
4734
4735 DLLTOOL=$ac_ct_DLLTOOL
4736 else
4737 DLLTOOL="$ac_cv_prog_DLLTOOL"
4738 fi
4739
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}windres; ac_word=$2
4743 echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_WINDRES+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 else
4748 if test -n "$WINDRES"; then
4749 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4758 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762 done
4763 done
4764
4765 fi
4766 fi
4767 WINDRES=$ac_cv_prog_WINDRES
4768 if test -n "$WINDRES"; then
4769 echo "$as_me:$LINENO: result: $WINDRES" >&5
4770 echo "${ECHO_T}$WINDRES" >&6
4771 else
4772 echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6
4774 fi
4775
4776 fi
4777 if test -z "$ac_cv_prog_WINDRES"; then
4778 ac_ct_WINDRES=$WINDRES
4779 # Extract the first word of "windres", so it can be a program name with args.
4780 set dummy windres; ac_word=$2
4781 echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786 if test -n "$ac_ct_WINDRES"; then
4787 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_ac_ct_WINDRES="windres"
4797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4799 fi
4800 done
4801 done
4802
4803 fi
4804 fi
4805 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4806 if test -n "$ac_ct_WINDRES"; then
4807 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4808 echo "${ECHO_T}$ac_ct_WINDRES" >&6
4809 else
4810 echo "$as_me:$LINENO: result: no" >&5
4811 echo "${ECHO_T}no" >&6
4812 fi
4813
4814 WINDRES=$ac_ct_WINDRES
4815 else
4816 WINDRES="$ac_cv_prog_WINDRES"
4817 fi
4818
4819
4820 # Needed for GNU/Hurd.
4821 if test -n "$ac_tool_prefix"; then
4822 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4823 set dummy ${ac_tool_prefix}mig; ac_word=$2
4824 echo "$as_me:$LINENO: checking for $ac_word" >&5
4825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4826 if test "${ac_cv_prog_MIG+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829 if test -n "$MIG"; then
4830 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4831 else
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH
4834 do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843 done
4844 done
4845
4846 fi
4847 fi
4848 MIG=$ac_cv_prog_MIG
4849 if test -n "$MIG"; then
4850 echo "$as_me:$LINENO: result: $MIG" >&5
4851 echo "${ECHO_T}$MIG" >&6
4852 else
4853 echo "$as_me:$LINENO: result: no" >&5
4854 echo "${ECHO_T}no" >&6
4855 fi
4856
4857 fi
4858 if test -z "$ac_cv_prog_MIG"; then
4859 ac_ct_MIG=$MIG
4860 # Extract the first word of "mig", so it can be a program name with args.
4861 set dummy mig; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 if test -n "$ac_ct_MIG"; then
4868 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_ac_ct_MIG="mig"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881 done
4882 done
4883
4884 fi
4885 fi
4886 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4887 if test -n "$ac_ct_MIG"; then
4888 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4889 echo "${ECHO_T}$ac_ct_MIG" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893 fi
4894
4895 MIG=$ac_ct_MIG
4896 else
4897 MIG="$ac_cv_prog_MIG"
4898 fi
4899
4900
4901 # ---------------------- #
4902 # Checks for libraries. #
4903 # ---------------------- #
4904
4905 # We might need to link with -lm; most simulators need it.
4906
4907 echo "$as_me:$LINENO: checking for main in -lm" >&5
4908 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
4909 if test "${ac_cv_lib_m_main+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912 ac_check_lib_save_LIBS=$LIBS
4913 LIBS="-lm $LIBS"
4914 cat >conftest.$ac_ext <<_ACEOF
4915 /* confdefs.h. */
4916 _ACEOF
4917 cat confdefs.h >>conftest.$ac_ext
4918 cat >>conftest.$ac_ext <<_ACEOF
4919 /* end confdefs.h. */
4920
4921
4922 int
4923 main ()
4924 {
4925 main ();
4926 ;
4927 return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>conftest.er1
4933 ac_status=$?
4934 grep -v '^ *+' conftest.er1 >conftest.err
4935 rm -f conftest.er1
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -z "$ac_c_werror_flag"
4940 || test ! -s conftest.err'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 (eval $ac_try) 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; } &&
4946 { ac_try='test -s conftest$ac_exeext'
4947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 (eval $ac_try) 2>&5
4949 ac_status=$?
4950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951 (exit $ac_status); }; }; then
4952 ac_cv_lib_m_main=yes
4953 else
4954 echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_cv_lib_m_main=no
4958 fi
4959 rm -f conftest.err conftest.$ac_objext \
4960 conftest$ac_exeext conftest.$ac_ext
4961 LIBS=$ac_check_lib_save_LIBS
4962 fi
4963 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4964 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
4965 if test $ac_cv_lib_m_main = yes; then
4966 cat >>confdefs.h <<_ACEOF
4967 #define HAVE_LIBM 1
4968 _ACEOF
4969
4970 LIBS="-lm $LIBS"
4971
4972 fi
4973
4974
4975 # We need to link with -lw to get `wctype' on Solaris before Solaris
4976 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
4977 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
4978 # is known to have this problem). Therefore we avoid libw if we can.
4979 echo "$as_me:$LINENO: checking for wctype" >&5
4980 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
4981 if test "${ac_cv_func_wctype+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
4991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4992 #define wctype innocuous_wctype
4993
4994 /* System header to define __stub macros and hopefully few prototypes,
4995 which can conflict with char wctype (); below.
4996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4997 <limits.h> exists even on freestanding compilers. */
4998
4999 #ifdef __STDC__
5000 # include <limits.h>
5001 #else
5002 # include <assert.h>
5003 #endif
5004
5005 #undef wctype
5006
5007 /* Override any gcc2 internal prototype to avoid an error. */
5008 #ifdef __cplusplus
5009 extern "C"
5010 {
5011 #endif
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5014 char wctype ();
5015 /* The GNU C library defines this for functions which it implements
5016 to always fail with ENOSYS. Some functions are actually named
5017 something starting with __ and the normal name is an alias. */
5018 #if defined (__stub_wctype) || defined (__stub___wctype)
5019 choke me
5020 #else
5021 char (*f) () = wctype;
5022 #endif
5023 #ifdef __cplusplus
5024 }
5025 #endif
5026
5027 int
5028 main ()
5029 {
5030 return f != wctype;
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext conftest$ac_exeext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5037 (eval $ac_link) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest$ac_exeext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_cv_func_wctype=yes
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 ac_cv_func_wctype=no
5063 fi
5064 rm -f conftest.err conftest.$ac_objext \
5065 conftest$ac_exeext conftest.$ac_ext
5066 fi
5067 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5068 echo "${ECHO_T}$ac_cv_func_wctype" >&6
5069 if test $ac_cv_func_wctype = yes; then
5070 :
5071 else
5072
5073 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5074 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
5075 if test "${ac_cv_lib_w_wctype+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 else
5078 ac_check_lib_save_LIBS=$LIBS
5079 LIBS="-lw $LIBS"
5080 cat >conftest.$ac_ext <<_ACEOF
5081 /* confdefs.h. */
5082 _ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086
5087 /* Override any gcc2 internal prototype to avoid an error. */
5088 #ifdef __cplusplus
5089 extern "C"
5090 #endif
5091 /* We use char because int might match the return type of a gcc2
5092 builtin and then its argument prototype would still apply. */
5093 char wctype ();
5094 int
5095 main ()
5096 {
5097 wctype ();
5098 ;
5099 return 0;
5100 }
5101 _ACEOF
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5104 (eval $ac_link) 2>conftest.er1
5105 ac_status=$?
5106 grep -v '^ *+' conftest.er1 >conftest.err
5107 rm -f conftest.er1
5108 cat conftest.err >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); } &&
5111 { ac_try='test -z "$ac_c_werror_flag"
5112 || test ! -s conftest.err'
5113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 (eval $ac_try) 2>&5
5115 ac_status=$?
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); }; } &&
5118 { ac_try='test -s conftest$ac_exeext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 (eval $ac_try) 2>&5
5121 ac_status=$?
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 ac_cv_lib_w_wctype=yes
5125 else
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 ac_cv_lib_w_wctype=no
5130 fi
5131 rm -f conftest.err conftest.$ac_objext \
5132 conftest$ac_exeext conftest.$ac_ext
5133 LIBS=$ac_check_lib_save_LIBS
5134 fi
5135 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5136 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
5137 if test $ac_cv_lib_w_wctype = yes; then
5138 cat >>confdefs.h <<_ACEOF
5139 #define HAVE_LIBW 1
5140 _ACEOF
5141
5142 LIBS="-lw $LIBS"
5143
5144 fi
5145
5146 fi
5147
5148
5149 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
5150 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5151 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
5152 if test "${ac_cv_search_gethostbyname+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 ac_func_search_save_LIBS=$LIBS
5156 ac_cv_search_gethostbyname=no
5157 cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h. */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5163
5164 /* Override any gcc2 internal prototype to avoid an error. */
5165 #ifdef __cplusplus
5166 extern "C"
5167 #endif
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5170 char gethostbyname ();
5171 int
5172 main ()
5173 {
5174 gethostbyname ();
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 rm -f conftest.$ac_objext conftest$ac_exeext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5181 (eval $ac_link) 2>conftest.er1
5182 ac_status=$?
5183 grep -v '^ *+' conftest.er1 >conftest.err
5184 rm -f conftest.er1
5185 cat conftest.err >&5
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); } &&
5188 { ac_try='test -z "$ac_c_werror_flag"
5189 || test ! -s conftest.err'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; } &&
5195 { ac_try='test -s conftest$ac_exeext'
5196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5197 (eval $ac_try) 2>&5
5198 ac_status=$?
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); }; }; then
5201 ac_cv_search_gethostbyname="none required"
5202 else
5203 echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206 fi
5207 rm -f conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209 if test "$ac_cv_search_gethostbyname" = no; then
5210 for ac_lib in nsl; do
5211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5212 cat >conftest.$ac_ext <<_ACEOF
5213 /* confdefs.h. */
5214 _ACEOF
5215 cat confdefs.h >>conftest.$ac_ext
5216 cat >>conftest.$ac_ext <<_ACEOF
5217 /* end confdefs.h. */
5218
5219 /* Override any gcc2 internal prototype to avoid an error. */
5220 #ifdef __cplusplus
5221 extern "C"
5222 #endif
5223 /* We use char because int might match the return type of a gcc2
5224 builtin and then its argument prototype would still apply. */
5225 char gethostbyname ();
5226 int
5227 main ()
5228 {
5229 gethostbyname ();
5230 ;
5231 return 0;
5232 }
5233 _ACEOF
5234 rm -f conftest.$ac_objext conftest$ac_exeext
5235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5236 (eval $ac_link) 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } &&
5243 { ac_try='test -z "$ac_c_werror_flag"
5244 || test ! -s conftest.err'
5245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246 (eval $ac_try) 2>&5
5247 ac_status=$?
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; } &&
5250 { ac_try='test -s conftest$ac_exeext'
5251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 (eval $ac_try) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5256 ac_cv_search_gethostbyname="-l$ac_lib"
5257 break
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 fi
5263 rm -f conftest.err conftest.$ac_objext \
5264 conftest$ac_exeext conftest.$ac_ext
5265 done
5266 fi
5267 LIBS=$ac_func_search_save_LIBS
5268 fi
5269 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5270 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5271 if test "$ac_cv_search_gethostbyname" != no; then
5272 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
5273
5274 fi
5275
5276
5277 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
5278 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5279 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5280 if test "${ac_cv_search_socketpair+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 else
5283 ac_func_search_save_LIBS=$LIBS
5284 ac_cv_search_socketpair=no
5285 cat >conftest.$ac_ext <<_ACEOF
5286 /* confdefs.h. */
5287 _ACEOF
5288 cat confdefs.h >>conftest.$ac_ext
5289 cat >>conftest.$ac_ext <<_ACEOF
5290 /* end confdefs.h. */
5291
5292 /* Override any gcc2 internal prototype to avoid an error. */
5293 #ifdef __cplusplus
5294 extern "C"
5295 #endif
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5298 char socketpair ();
5299 int
5300 main ()
5301 {
5302 socketpair ();
5303 ;
5304 return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest.$ac_objext conftest$ac_exeext
5308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } &&
5316 { ac_try='test -z "$ac_c_werror_flag"
5317 || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest$ac_exeext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5325 (eval $ac_try) 2>&5
5326 ac_status=$?
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_search_socketpair="none required"
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 fi
5335 rm -f conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
5337 if test "$ac_cv_search_socketpair" = no; then
5338 for ac_lib in socket; do
5339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5340 cat >conftest.$ac_ext <<_ACEOF
5341 /* confdefs.h. */
5342 _ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346
5347 /* Override any gcc2 internal prototype to avoid an error. */
5348 #ifdef __cplusplus
5349 extern "C"
5350 #endif
5351 /* We use char because int might match the return type of a gcc2
5352 builtin and then its argument prototype would still apply. */
5353 char socketpair ();
5354 int
5355 main ()
5356 {
5357 socketpair ();
5358 ;
5359 return 0;
5360 }
5361 _ACEOF
5362 rm -f conftest.$ac_objext conftest$ac_exeext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5364 (eval $ac_link) 2>conftest.er1
5365 ac_status=$?
5366 grep -v '^ *+' conftest.er1 >conftest.err
5367 rm -f conftest.er1
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_c_werror_flag"
5372 || test ! -s conftest.err'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5380 (eval $ac_try) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_search_socketpair="-l$ac_lib"
5385 break
5386 else
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 fi
5391 rm -f conftest.err conftest.$ac_objext \
5392 conftest$ac_exeext conftest.$ac_ext
5393 done
5394 fi
5395 LIBS=$ac_func_search_save_LIBS
5396 fi
5397 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5398 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5399 if test "$ac_cv_search_socketpair" != no; then
5400 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5401
5402 fi
5403
5404
5405 # For the TUI, we need enhanced curses functionality.
5406 #
5407 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5408 # curses library because the latter might not provide all the
5409 # functionality we need. However, this leads to problems on systems
5410 # where the linker searches /usr/local/lib, but the compiler doesn't
5411 # search /usr/local/include, if ncurses is installed in /usr/local. A
5412 # default installation of ncurses on alpha*-dec-osf* will lead to such
5413 # a situation.
5414 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5415 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
5416 if test "${ac_cv_search_waddstr+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418 else
5419 ac_func_search_save_LIBS=$LIBS
5420 ac_cv_search_waddstr=no
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427
5428 /* Override any gcc2 internal prototype to avoid an error. */
5429 #ifdef __cplusplus
5430 extern "C"
5431 #endif
5432 /* We use char because int might match the return type of a gcc2
5433 builtin and then its argument prototype would still apply. */
5434 char waddstr ();
5435 int
5436 main ()
5437 {
5438 waddstr ();
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 rm -f conftest.$ac_objext conftest$ac_exeext
5444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5445 (eval $ac_link) 2>conftest.er1
5446 ac_status=$?
5447 grep -v '^ *+' conftest.er1 >conftest.err
5448 rm -f conftest.er1
5449 cat conftest.err >&5
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } &&
5452 { ac_try='test -z "$ac_c_werror_flag"
5453 || test ! -s conftest.err'
5454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5455 (eval $ac_try) 2>&5
5456 ac_status=$?
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); }; } &&
5459 { ac_try='test -s conftest$ac_exeext'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; }; then
5465 ac_cv_search_waddstr="none required"
5466 else
5467 echo "$as_me: failed program was:" >&5
5468 sed 's/^/| /' conftest.$ac_ext >&5
5469
5470 fi
5471 rm -f conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5473 if test "$ac_cv_search_waddstr" = no; then
5474 for ac_lib in ncurses cursesX curses; do
5475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482
5483 /* Override any gcc2 internal prototype to avoid an error. */
5484 #ifdef __cplusplus
5485 extern "C"
5486 #endif
5487 /* We use char because int might match the return type of a gcc2
5488 builtin and then its argument prototype would still apply. */
5489 char waddstr ();
5490 int
5491 main ()
5492 {
5493 waddstr ();
5494 ;
5495 return 0;
5496 }
5497 _ACEOF
5498 rm -f conftest.$ac_objext conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500 (eval $ac_link) 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } &&
5507 { ac_try='test -z "$ac_c_werror_flag"
5508 || test ! -s conftest.err'
5509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 (eval $ac_try) 2>&5
5511 ac_status=$?
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest$ac_exeext'
5515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5516 (eval $ac_try) 2>&5
5517 ac_status=$?
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); }; }; then
5520 ac_cv_search_waddstr="-l$ac_lib"
5521 break
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 fi
5527 rm -f conftest.err conftest.$ac_objext \
5528 conftest$ac_exeext conftest.$ac_ext
5529 done
5530 fi
5531 LIBS=$ac_func_search_save_LIBS
5532 fi
5533 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5534 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5535 if test "$ac_cv_search_waddstr" != no; then
5536 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
5537
5538 fi
5539
5540
5541 # Since GDB uses Readline, we need termcap functionality. In many
5542 # cases this will be provided by the curses library, but some systems
5543 # have a seperate termcap library, or no curses library at all.
5544
5545 case $host_os in
5546 cygwin*)
5547 if test -d $srcdir/libtermcap; then
5548 LIBS="../libtermcap/libtermcap.a $LIBS"
5549 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5550 fi ;;
5551 go32* | *djgpp*)
5552 ac_cv_search_tgetent="none required"
5553 ;;
5554 *mingw32*)
5555 ac_cv_search_tgetent="none required"
5556 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5557 ;;
5558 esac
5559
5560 # These are the libraries checked by Readline.
5561 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5562 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
5563 if test "${ac_cv_search_tgetent+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565 else
5566 ac_func_search_save_LIBS=$LIBS
5567 ac_cv_search_tgetent=no
5568 cat >conftest.$ac_ext <<_ACEOF
5569 /* confdefs.h. */
5570 _ACEOF
5571 cat confdefs.h >>conftest.$ac_ext
5572 cat >>conftest.$ac_ext <<_ACEOF
5573 /* end confdefs.h. */
5574
5575 /* Override any gcc2 internal prototype to avoid an error. */
5576 #ifdef __cplusplus
5577 extern "C"
5578 #endif
5579 /* We use char because int might match the return type of a gcc2
5580 builtin and then its argument prototype would still apply. */
5581 char tgetent ();
5582 int
5583 main ()
5584 {
5585 tgetent ();
5586 ;
5587 return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext conftest$ac_exeext
5591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>conftest.er1
5593 ac_status=$?
5594 grep -v '^ *+' conftest.er1 >conftest.err
5595 rm -f conftest.er1
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -z "$ac_c_werror_flag"
5600 || test ! -s conftest.err'
5601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5602 (eval $ac_try) 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
5607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608 (eval $ac_try) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_cv_search_tgetent="none required"
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 if test "$ac_cv_search_tgetent" = no; then
5621 for ac_lib in termcap tinfo curses ncurses; do
5622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5623 cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h. */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h. */
5629
5630 /* Override any gcc2 internal prototype to avoid an error. */
5631 #ifdef __cplusplus
5632 extern "C"
5633 #endif
5634 /* We use char because int might match the return type of a gcc2
5635 builtin and then its argument prototype would still apply. */
5636 char tgetent ();
5637 int
5638 main ()
5639 {
5640 tgetent ();
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 rm -f conftest.$ac_objext conftest$ac_exeext
5646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647 (eval $ac_link) 2>conftest.er1
5648 ac_status=$?
5649 grep -v '^ *+' conftest.er1 >conftest.err
5650 rm -f conftest.er1
5651 cat conftest.err >&5
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } &&
5654 { ac_try='test -z "$ac_c_werror_flag"
5655 || test ! -s conftest.err'
5656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657 (eval $ac_try) 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_search_tgetent="-l$ac_lib"
5668 break
5669 else
5670 echo "$as_me: failed program was:" >&5
5671 sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 fi
5674 rm -f conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5676 done
5677 fi
5678 LIBS=$ac_func_search_save_LIBS
5679 fi
5680 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5681 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5682 if test "$ac_cv_search_tgetent" != no; then
5683 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
5684
5685 fi
5686
5687
5688 if test "$ac_cv_search_tgetent" = no; then
5689 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5690 echo "$as_me: error: no termcap library found" >&2;}
5691 { (exit 1); exit 1; }; }
5692 fi
5693
5694
5695 if test "X$prefix" = "XNONE"; then
5696 acl_final_prefix="$ac_default_prefix"
5697 else
5698 acl_final_prefix="$prefix"
5699 fi
5700 if test "X$exec_prefix" = "XNONE"; then
5701 acl_final_exec_prefix='${prefix}'
5702 else
5703 acl_final_exec_prefix="$exec_prefix"
5704 fi
5705 acl_save_prefix="$prefix"
5706 prefix="$acl_final_prefix"
5707 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5708 prefix="$acl_save_prefix"
5709
5710
5711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5712 if test "${with_gnu_ld+set}" = set; then
5713 withval="$with_gnu_ld"
5714 test "$withval" = no || with_gnu_ld=yes
5715 else
5716 with_gnu_ld=no
5717 fi;
5718 # Prepare PATH_SEPARATOR.
5719 # The user is always right.
5720 if test "${PATH_SEPARATOR+set}" != set; then
5721 echo "#! /bin/sh" >conf$$.sh
5722 echo "exit 0" >>conf$$.sh
5723 chmod +x conf$$.sh
5724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5725 PATH_SEPARATOR=';'
5726 else
5727 PATH_SEPARATOR=:
5728 fi
5729 rm -f conf$$.sh
5730 fi
5731 ac_prog=ld
5732 if test "$GCC" = yes; then
5733 # Check if gcc -print-prog-name=ld gives a path.
5734 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5735 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5736 case $host in
5737 *-*-mingw*)
5738 # gcc leaves a trailing carriage return which upsets mingw
5739 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5740 *)
5741 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5742 esac
5743 case $ac_prog in
5744 # Accept absolute paths.
5745 [\\/]* | [A-Za-z]:[\\/]*)
5746 re_direlt='/[^/][^/]*/\.\./'
5747 # Canonicalize the path of ld
5748 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5749 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5750 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5751 done
5752 test -z "$LD" && LD="$ac_prog"
5753 ;;
5754 "")
5755 # If it fails, then pretend we aren't using GCC.
5756 ac_prog=ld
5757 ;;
5758 *)
5759 # If it is relative, then search for the first ld in PATH.
5760 with_gnu_ld=unknown
5761 ;;
5762 esac
5763 elif test "$with_gnu_ld" = yes; then
5764 echo "$as_me:$LINENO: checking for GNU ld" >&5
5765 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5766 else
5767 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5768 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5769 fi
5770 if test "${acl_cv_path_LD+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 if test -z "$LD"; then
5774 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5775 for ac_dir in $PATH; do
5776 test -z "$ac_dir" && ac_dir=.
5777 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5778 acl_cv_path_LD="$ac_dir/$ac_prog"
5779 # Check to see if the program is GNU ld. I'd rather use --version,
5780 # but apparently some GNU ld's only accept -v.
5781 # Break only if it was the GNU/non-GNU ld that we prefer.
5782 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5783 test "$with_gnu_ld" != no && break
5784 else
5785 test "$with_gnu_ld" != yes && break
5786 fi
5787 fi
5788 done
5789 IFS="$ac_save_ifs"
5790 else
5791 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5792 fi
5793 fi
5794
5795 LD="$acl_cv_path_LD"
5796 if test -n "$LD"; then
5797 echo "$as_me:$LINENO: result: $LD" >&5
5798 echo "${ECHO_T}$LD" >&6
5799 else
5800 echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6
5802 fi
5803 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5804 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5805 { (exit 1); exit 1; }; }
5806 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5807 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5808 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 else
5811 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5812 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5813 acl_cv_prog_gnu_ld=yes
5814 else
5815 acl_cv_prog_gnu_ld=no
5816 fi
5817 fi
5818 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5819 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5820 with_gnu_ld=$acl_cv_prog_gnu_ld
5821
5822
5823
5824 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5825 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5826 if test "${acl_cv_rpath+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829
5830 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5831 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5832 . ./conftest.sh
5833 rm -f ./conftest.sh
5834 acl_cv_rpath=done
5835
5836 fi
5837 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5838 echo "${ECHO_T}$acl_cv_rpath" >&6
5839 wl="$acl_cv_wl"
5840 libext="$acl_cv_libext"
5841 shlibext="$acl_cv_shlibext"
5842 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5843 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5844 hardcode_direct="$acl_cv_hardcode_direct"
5845 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5846 # Check whether --enable-rpath or --disable-rpath was given.
5847 if test "${enable_rpath+set}" = set; then
5848 enableval="$enable_rpath"
5849 :
5850 else
5851 enable_rpath=yes
5852 fi;
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 use_additional=yes
5863
5864 acl_save_prefix="$prefix"
5865 prefix="$acl_final_prefix"
5866 acl_save_exec_prefix="$exec_prefix"
5867 exec_prefix="$acl_final_exec_prefix"
5868
5869 eval additional_includedir=\"$includedir\"
5870 eval additional_libdir=\"$libdir\"
5871
5872 exec_prefix="$acl_save_exec_prefix"
5873 prefix="$acl_save_prefix"
5874
5875
5876 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5877 if test "${with_libexpat_prefix+set}" = set; then
5878 withval="$with_libexpat_prefix"
5879
5880 if test "X$withval" = "Xno"; then
5881 use_additional=no
5882 else
5883 if test "X$withval" = "X"; then
5884
5885 acl_save_prefix="$prefix"
5886 prefix="$acl_final_prefix"
5887 acl_save_exec_prefix="$exec_prefix"
5888 exec_prefix="$acl_final_exec_prefix"
5889
5890 eval additional_includedir=\"$includedir\"
5891 eval additional_libdir=\"$libdir\"
5892
5893 exec_prefix="$acl_save_exec_prefix"
5894 prefix="$acl_save_prefix"
5895
5896 else
5897 additional_includedir="$withval/include"
5898 additional_libdir="$withval/lib"
5899 fi
5900 fi
5901
5902 fi;
5903 LIBEXPAT=
5904 LTLIBEXPAT=
5905 INCEXPAT=
5906 rpathdirs=
5907 ltrpathdirs=
5908 names_already_handled=
5909 names_next_round='expat '
5910 while test -n "$names_next_round"; do
5911 names_this_round="$names_next_round"
5912 names_next_round=
5913 for name in $names_this_round; do
5914 already_handled=
5915 for n in $names_already_handled; do
5916 if test "$n" = "$name"; then
5917 already_handled=yes
5918 break
5919 fi
5920 done
5921 if test -z "$already_handled"; then
5922 names_already_handled="$names_already_handled $name"
5923 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5924 eval value=\"\$HAVE_LIB$uppername\"
5925 if test -n "$value"; then
5926 if test "$value" = yes; then
5927 eval value=\"\$LIB$uppername\"
5928 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5929 eval value=\"\$LTLIB$uppername\"
5930 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5931 else
5932 :
5933 fi
5934 else
5935 found_dir=
5936 found_la=
5937 found_so=
5938 found_a=
5939 if test $use_additional = yes; then
5940 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5941 found_dir="$additional_libdir"
5942 found_so="$additional_libdir/lib$name.$shlibext"
5943 if test -f "$additional_libdir/lib$name.la"; then
5944 found_la="$additional_libdir/lib$name.la"
5945 fi
5946 else
5947 if test -f "$additional_libdir/lib$name.$libext"; then
5948 found_dir="$additional_libdir"
5949 found_a="$additional_libdir/lib$name.$libext"
5950 if test -f "$additional_libdir/lib$name.la"; then
5951 found_la="$additional_libdir/lib$name.la"
5952 fi
5953 fi
5954 fi
5955 fi
5956 if test "X$found_dir" = "X"; then
5957 for x in $LDFLAGS $LTLIBEXPAT; do
5958
5959 acl_save_prefix="$prefix"
5960 prefix="$acl_final_prefix"
5961 acl_save_exec_prefix="$exec_prefix"
5962 exec_prefix="$acl_final_exec_prefix"
5963 eval x=\"$x\"
5964 exec_prefix="$acl_save_exec_prefix"
5965 prefix="$acl_save_prefix"
5966
5967 case "$x" in
5968 -L*)
5969 dir=`echo "X$x" | sed -e 's/^X-L//'`
5970 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5971 found_dir="$dir"
5972 found_so="$dir/lib$name.$shlibext"
5973 if test -f "$dir/lib$name.la"; then
5974 found_la="$dir/lib$name.la"
5975 fi
5976 else
5977 if test -f "$dir/lib$name.$libext"; then
5978 found_dir="$dir"
5979 found_a="$dir/lib$name.$libext"
5980 if test -f "$dir/lib$name.la"; then
5981 found_la="$dir/lib$name.la"
5982 fi
5983 fi
5984 fi
5985 ;;
5986 esac
5987 if test "X$found_dir" != "X"; then
5988 break
5989 fi
5990 done
5991 fi
5992 if test "X$found_dir" != "X"; then
5993 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
5994 if test "X$found_so" != "X"; then
5995 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5996 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
5997 else
5998 haveit=
5999 for x in $ltrpathdirs; do
6000 if test "X$x" = "X$found_dir"; then
6001 haveit=yes
6002 break
6003 fi
6004 done
6005 if test -z "$haveit"; then
6006 ltrpathdirs="$ltrpathdirs $found_dir"
6007 fi
6008 if test "$hardcode_direct" = yes; then
6009 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6010 else
6011 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6012 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6013 haveit=
6014 for x in $rpathdirs; do
6015 if test "X$x" = "X$found_dir"; then
6016 haveit=yes
6017 break
6018 fi
6019 done
6020 if test -z "$haveit"; then
6021 rpathdirs="$rpathdirs $found_dir"
6022 fi
6023 else
6024 haveit=
6025 for x in $LDFLAGS $LIBEXPAT; do
6026
6027 acl_save_prefix="$prefix"
6028 prefix="$acl_final_prefix"
6029 acl_save_exec_prefix="$exec_prefix"
6030 exec_prefix="$acl_final_exec_prefix"
6031 eval x=\"$x\"
6032 exec_prefix="$acl_save_exec_prefix"
6033 prefix="$acl_save_prefix"
6034
6035 if test "X$x" = "X-L$found_dir"; then
6036 haveit=yes
6037 break
6038 fi
6039 done
6040 if test -z "$haveit"; then
6041 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6042 fi
6043 if test "$hardcode_minus_L" != no; then
6044 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6045 else
6046 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6047 fi
6048 fi
6049 fi
6050 fi
6051 else
6052 if test "X$found_a" != "X"; then
6053 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6054 else
6055 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6056 fi
6057 fi
6058 additional_includedir=
6059 case "$found_dir" in
6060 */lib | */lib/)
6061 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6062 additional_includedir="$basedir/include"
6063 ;;
6064 esac
6065 if test "X$additional_includedir" != "X"; then
6066 if test "X$additional_includedir" != "X/usr/include"; then
6067 haveit=
6068 if test "X$additional_includedir" = "X/usr/local/include"; then
6069 if test -n "$GCC"; then
6070 case $host_os in
6071 linux*) haveit=yes;;
6072 esac
6073 fi
6074 fi
6075 if test -z "$haveit"; then
6076 for x in $CPPFLAGS $INCEXPAT; do
6077
6078 acl_save_prefix="$prefix"
6079 prefix="$acl_final_prefix"
6080 acl_save_exec_prefix="$exec_prefix"
6081 exec_prefix="$acl_final_exec_prefix"
6082 eval x=\"$x\"
6083 exec_prefix="$acl_save_exec_prefix"
6084 prefix="$acl_save_prefix"
6085
6086 if test "X$x" = "X-I$additional_includedir"; then
6087 haveit=yes
6088 break
6089 fi
6090 done
6091 if test -z "$haveit"; then
6092 if test -d "$additional_includedir"; then
6093 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6094 fi
6095 fi
6096 fi
6097 fi
6098 fi
6099 if test -n "$found_la"; then
6100 save_libdir="$libdir"
6101 case "$found_la" in
6102 */* | *\\*) . "$found_la" ;;
6103 *) . "./$found_la" ;;
6104 esac
6105 libdir="$save_libdir"
6106 for dep in $dependency_libs; do
6107 case "$dep" in
6108 -L*)
6109 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6110 if test "X$additional_libdir" != "X/usr/lib"; then
6111 haveit=
6112 if test "X$additional_libdir" = "X/usr/local/lib"; then
6113 if test -n "$GCC"; then
6114 case $host_os in
6115 linux*) haveit=yes;;
6116 esac
6117 fi
6118 fi
6119 if test -z "$haveit"; then
6120 haveit=
6121 for x in $LDFLAGS $LIBEXPAT; do
6122
6123 acl_save_prefix="$prefix"
6124 prefix="$acl_final_prefix"
6125 acl_save_exec_prefix="$exec_prefix"
6126 exec_prefix="$acl_final_exec_prefix"
6127 eval x=\"$x\"
6128 exec_prefix="$acl_save_exec_prefix"
6129 prefix="$acl_save_prefix"
6130
6131 if test "X$x" = "X-L$additional_libdir"; then
6132 haveit=yes
6133 break
6134 fi
6135 done
6136 if test -z "$haveit"; then
6137 if test -d "$additional_libdir"; then
6138 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6139 fi
6140 fi
6141 haveit=
6142 for x in $LDFLAGS $LTLIBEXPAT; do
6143
6144 acl_save_prefix="$prefix"
6145 prefix="$acl_final_prefix"
6146 acl_save_exec_prefix="$exec_prefix"
6147 exec_prefix="$acl_final_exec_prefix"
6148 eval x=\"$x\"
6149 exec_prefix="$acl_save_exec_prefix"
6150 prefix="$acl_save_prefix"
6151
6152 if test "X$x" = "X-L$additional_libdir"; then
6153 haveit=yes
6154 break
6155 fi
6156 done
6157 if test -z "$haveit"; then
6158 if test -d "$additional_libdir"; then
6159 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6160 fi
6161 fi
6162 fi
6163 fi
6164 ;;
6165 -R*)
6166 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6167 if test "$enable_rpath" != no; then
6168 haveit=
6169 for x in $rpathdirs; do
6170 if test "X$x" = "X$dir"; then
6171 haveit=yes
6172 break
6173 fi
6174 done
6175 if test -z "$haveit"; then
6176 rpathdirs="$rpathdirs $dir"
6177 fi
6178 haveit=
6179 for x in $ltrpathdirs; do
6180 if test "X$x" = "X$dir"; then
6181 haveit=yes
6182 break
6183 fi
6184 done
6185 if test -z "$haveit"; then
6186 ltrpathdirs="$ltrpathdirs $dir"
6187 fi
6188 fi
6189 ;;
6190 -l*)
6191 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6192 ;;
6193 *.la)
6194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6195 ;;
6196 *)
6197 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6198 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6199 ;;
6200 esac
6201 done
6202 fi
6203 else
6204 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6205 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6206 fi
6207 fi
6208 fi
6209 done
6210 done
6211 if test "X$rpathdirs" != "X"; then
6212 if test -n "$hardcode_libdir_separator"; then
6213 alldirs=
6214 for found_dir in $rpathdirs; do
6215 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6216 done
6217 acl_save_libdir="$libdir"
6218 libdir="$alldirs"
6219 eval flag=\"$hardcode_libdir_flag_spec\"
6220 libdir="$acl_save_libdir"
6221 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6222 else
6223 for found_dir in $rpathdirs; do
6224 acl_save_libdir="$libdir"
6225 libdir="$found_dir"
6226 eval flag=\"$hardcode_libdir_flag_spec\"
6227 libdir="$acl_save_libdir"
6228 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6229 done
6230 fi
6231 fi
6232 if test "X$ltrpathdirs" != "X"; then
6233 for found_dir in $ltrpathdirs; do
6234 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6235 done
6236 fi
6237
6238
6239 ac_save_CPPFLAGS="$CPPFLAGS"
6240
6241 for element in $INCEXPAT; do
6242 haveit=
6243 for x in $CPPFLAGS; do
6244
6245 acl_save_prefix="$prefix"
6246 prefix="$acl_final_prefix"
6247 acl_save_exec_prefix="$exec_prefix"
6248 exec_prefix="$acl_final_exec_prefix"
6249 eval x=\"$x\"
6250 exec_prefix="$acl_save_exec_prefix"
6251 prefix="$acl_save_prefix"
6252
6253 if test "X$x" = "X$element"; then
6254 haveit=yes
6255 break
6256 fi
6257 done
6258 if test -z "$haveit"; then
6259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6260 fi
6261 done
6262
6263
6264 echo "$as_me:$LINENO: checking for libexpat" >&5
6265 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6266 if test "${ac_cv_libexpat+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269
6270 ac_save_LIBS="$LIBS"
6271 LIBS="$LIBS $LIBEXPAT"
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include "expat.h"
6279 int
6280 main ()
6281 {
6282 XML_Parser p = XML_ParserCreate (0);
6283 ;
6284 return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext conftest$ac_exeext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6289 (eval $ac_link) 2>conftest.er1
6290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -z "$ac_c_werror_flag"
6297 || test ! -s conftest.err'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299 (eval $ac_try) 2>&5
6300 ac_status=$?
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; } &&
6303 { ac_try='test -s conftest$ac_exeext'
6304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 (eval $ac_try) 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_libexpat=yes
6310 else
6311 echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6313
6314 ac_cv_libexpat=no
6315 fi
6316 rm -f conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318 LIBS="$ac_save_LIBS"
6319
6320 fi
6321 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6322 echo "${ECHO_T}$ac_cv_libexpat" >&6
6323 if test "$ac_cv_libexpat" = yes; then
6324 HAVE_LIBEXPAT=yes
6325
6326 cat >>confdefs.h <<\_ACEOF
6327 #define HAVE_LIBEXPAT 1
6328 _ACEOF
6329
6330 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6331 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6332 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6333 echo "${ECHO_T}$LIBEXPAT" >&6
6334 else
6335 HAVE_LIBEXPAT=no
6336 CPPFLAGS="$ac_save_CPPFLAGS"
6337 LIBEXPAT=
6338 LTLIBEXPAT=
6339 fi
6340
6341
6342
6343
6344
6345
6346 if test "$HAVE_LIBEXPAT" != yes; then
6347 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6348 echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
6349 fi
6350
6351 # ------------------------- #
6352 # Checks for header files. #
6353 # ------------------------- #
6354
6355
6356
6357
6358
6359
6360 ac_header_dirent=no
6361 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6362 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6363 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6364 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6367 else
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #include <sys/types.h>
6375 #include <$ac_hdr>
6376
6377 int
6378 main ()
6379 {
6380 if ((DIR *) 0)
6381 return 0;
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6388 (eval $ac_compile) 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } &&
6395 { ac_try='test -z "$ac_c_werror_flag"
6396 || test ! -s conftest.err'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6404 (eval $ac_try) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 eval "$as_ac_Header=yes"
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 eval "$as_ac_Header=no"
6414 fi
6415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6420 cat >>confdefs.h <<_ACEOF
6421 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 ac_header_dirent=$ac_hdr; break
6425 fi
6426
6427 done
6428 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6429 if test $ac_header_dirent = dirent.h; then
6430 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6431 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6432 if test "${ac_cv_search_opendir+set}" = set; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 ac_func_search_save_LIBS=$LIBS
6436 ac_cv_search_opendir=no
6437 cat >conftest.$ac_ext <<_ACEOF
6438 /* confdefs.h. */
6439 _ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443
6444 /* Override any gcc2 internal prototype to avoid an error. */
6445 #ifdef __cplusplus
6446 extern "C"
6447 #endif
6448 /* We use char because int might match the return type of a gcc2
6449 builtin and then its argument prototype would still apply. */
6450 char opendir ();
6451 int
6452 main ()
6453 {
6454 opendir ();
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext conftest$ac_exeext
6460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461 (eval $ac_link) 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } &&
6468 { ac_try='test -z "$ac_c_werror_flag"
6469 || test ! -s conftest.err'
6470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 (eval $ac_try) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_search_opendir="none required"
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486 fi
6487 rm -f conftest.err conftest.$ac_objext \
6488 conftest$ac_exeext conftest.$ac_ext
6489 if test "$ac_cv_search_opendir" = no; then
6490 for ac_lib in dir; do
6491 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498
6499 /* Override any gcc2 internal prototype to avoid an error. */
6500 #ifdef __cplusplus
6501 extern "C"
6502 #endif
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6505 char opendir ();
6506 int
6507 main ()
6508 {
6509 opendir ();
6510 ;
6511 return 0;
6512 }
6513 _ACEOF
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag"
6524 || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest$ac_exeext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_cv_search_opendir="-l$ac_lib"
6537 break
6538 else
6539 echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 fi
6543 rm -f conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 done
6546 fi
6547 LIBS=$ac_func_search_save_LIBS
6548 fi
6549 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6550 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6551 if test "$ac_cv_search_opendir" != no; then
6552 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6553
6554 fi
6555
6556 else
6557 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6558 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6559 if test "${ac_cv_search_opendir+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 ac_func_search_save_LIBS=$LIBS
6563 ac_cv_search_opendir=no
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570
6571 /* Override any gcc2 internal prototype to avoid an error. */
6572 #ifdef __cplusplus
6573 extern "C"
6574 #endif
6575 /* We use char because int might match the return type of a gcc2
6576 builtin and then its argument prototype would still apply. */
6577 char opendir ();
6578 int
6579 main ()
6580 {
6581 opendir ();
6582 ;
6583 return 0;
6584 }
6585 _ACEOF
6586 rm -f conftest.$ac_objext conftest$ac_exeext
6587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588 (eval $ac_link) 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } &&
6595 { ac_try='test -z "$ac_c_werror_flag"
6596 || test ! -s conftest.err'
6597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598 (eval $ac_try) 2>&5
6599 ac_status=$?
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 (eval $ac_try) 2>&5
6605 ac_status=$?
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_search_opendir="none required"
6609 else
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613 fi
6614 rm -f conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
6616 if test "$ac_cv_search_opendir" = no; then
6617 for ac_lib in x; do
6618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632 char opendir ();
6633 int
6634 main ()
6635 {
6636 opendir ();
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try='test -s conftest$ac_exeext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 (eval $ac_try) 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_search_opendir="-l$ac_lib"
6664 break
6665 else
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 fi
6670 rm -f conftest.err conftest.$ac_objext \
6671 conftest$ac_exeext conftest.$ac_ext
6672 done
6673 fi
6674 LIBS=$ac_func_search_save_LIBS
6675 fi
6676 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6677 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6678 if test "$ac_cv_search_opendir" != no; then
6679 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6680
6681 fi
6682
6683 fi
6684
6685 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6686 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6687 if test "${ac_cv_header_stat_broken+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6689 else
6690 cat >conftest.$ac_ext <<_ACEOF
6691 /* confdefs.h. */
6692 _ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 #include <sys/types.h>
6697 #include <sys/stat.h>
6698
6699 #if defined(S_ISBLK) && defined(S_IFDIR)
6700 # if S_ISBLK (S_IFDIR)
6701 You lose.
6702 # endif
6703 #endif
6704
6705 #if defined(S_ISBLK) && defined(S_IFCHR)
6706 # if S_ISBLK (S_IFCHR)
6707 You lose.
6708 # endif
6709 #endif
6710
6711 #if defined(S_ISLNK) && defined(S_IFREG)
6712 # if S_ISLNK (S_IFREG)
6713 You lose.
6714 # endif
6715 #endif
6716
6717 #if defined(S_ISSOCK) && defined(S_IFREG)
6718 # if S_ISSOCK (S_IFREG)
6719 You lose.
6720 # endif
6721 #endif
6722
6723 _ACEOF
6724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725 $EGREP "You lose" >/dev/null 2>&1; then
6726 ac_cv_header_stat_broken=yes
6727 else
6728 ac_cv_header_stat_broken=no
6729 fi
6730 rm -f conftest*
6731
6732 fi
6733 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6734 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6735 if test $ac_cv_header_stat_broken = yes; then
6736
6737 cat >>confdefs.h <<\_ACEOF
6738 #define STAT_MACROS_BROKEN 1
6739 _ACEOF
6740
6741 fi
6742
6743 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6744 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6745 if test "${ac_cv_header_stdc+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h. */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h. */
6754 #include <stdlib.h>
6755 #include <stdarg.h>
6756 #include <string.h>
6757 #include <float.h>
6758
6759 int
6760 main ()
6761 {
6762
6763 ;
6764 return 0;
6765 }
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6769 (eval $ac_compile) 2>conftest.er1
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try='test -z "$ac_c_werror_flag"
6777 || test ! -s conftest.err'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 (eval $ac_try) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_header_stdc=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_cv_header_stdc=no
6795 fi
6796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6797
6798 if test $ac_cv_header_stdc = yes; then
6799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h. */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h. */
6806 #include <string.h>
6807
6808 _ACEOF
6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "memchr" >/dev/null 2>&1; then
6811 :
6812 else
6813 ac_cv_header_stdc=no
6814 fi
6815 rm -f conftest*
6816
6817 fi
6818
6819 if test $ac_cv_header_stdc = yes; then
6820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 #include <stdlib.h>
6828
6829 _ACEOF
6830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6831 $EGREP "free" >/dev/null 2>&1; then
6832 :
6833 else
6834 ac_cv_header_stdc=no
6835 fi
6836 rm -f conftest*
6837
6838 fi
6839
6840 if test $ac_cv_header_stdc = yes; then
6841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6842 if test "$cross_compiling" = yes; then
6843 :
6844 else
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 #include <ctype.h>
6852 #if ((' ' & 0x0FF) == 0x020)
6853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6855 #else
6856 # define ISLOWER(c) \
6857 (('a' <= (c) && (c) <= 'i') \
6858 || ('j' <= (c) && (c) <= 'r') \
6859 || ('s' <= (c) && (c) <= 'z'))
6860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6861 #endif
6862
6863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6864 int
6865 main ()
6866 {
6867 int i;
6868 for (i = 0; i < 256; i++)
6869 if (XOR (islower (i), ISLOWER (i))
6870 || toupper (i) != TOUPPER (i))
6871 exit(2);
6872 exit (0);
6873 }
6874 _ACEOF
6875 rm -f conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6882 (eval $ac_try) 2>&5
6883 ac_status=$?
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 :
6887 else
6888 echo "$as_me: program exited with status $ac_status" >&5
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 ( exit $ac_status )
6893 ac_cv_header_stdc=no
6894 fi
6895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6896 fi
6897 fi
6898 fi
6899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6901 if test $ac_cv_header_stdc = yes; then
6902
6903 cat >>confdefs.h <<\_ACEOF
6904 #define STDC_HEADERS 1
6905 _ACEOF
6906
6907 fi
6908
6909
6910 for ac_header in nlist.h
6911 do
6912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6914 echo "$as_me:$LINENO: checking for $ac_header" >&5
6915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 fi
6919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6921 else
6922 # Is the header compilable?
6923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6925 cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h. */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h. */
6931 $ac_includes_default
6932 #include <$ac_header>
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>conftest.er1
6937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } &&
6943 { ac_try='test -z "$ac_c_werror_flag"
6944 || test ! -s conftest.err'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6952 (eval $ac_try) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6956 ac_header_compiler=yes
6957 else
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ac_header_compiler=no
6962 fi
6963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6965 echo "${ECHO_T}$ac_header_compiler" >&6
6966
6967 # Is the header present?
6968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6970 cat >conftest.$ac_ext <<_ACEOF
6971 /* confdefs.h. */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 #include <$ac_header>
6977 _ACEOF
6978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } >/dev/null; then
6986 if test -s conftest.err; then
6987 ac_cpp_err=$ac_c_preproc_warn_flag
6988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6989 else
6990 ac_cpp_err=
6991 fi
6992 else
6993 ac_cpp_err=yes
6994 fi
6995 if test -z "$ac_cpp_err"; then
6996 ac_header_preproc=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7000
7001 ac_header_preproc=no
7002 fi
7003 rm -f conftest.err conftest.$ac_ext
7004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7005 echo "${ECHO_T}$ac_header_preproc" >&6
7006
7007 # So? What about this header?
7008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7009 yes:no: )
7010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7014 ac_header_preproc=yes
7015 ;;
7016 no:yes:* )
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7029 (
7030 cat <<\_ASBOX
7031 ## ------------------------------------------ ##
7032 ## Report this to the AC_PACKAGE_NAME lists. ##
7033 ## ------------------------------------------ ##
7034 _ASBOX
7035 ) |
7036 sed "s/^/$as_me: WARNING: /" >&2
7037 ;;
7038 esac
7039 echo "$as_me:$LINENO: checking for $ac_header" >&5
7040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044 eval "$as_ac_Header=\$ac_header_preproc"
7045 fi
7046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7048
7049 fi
7050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051 cat >>confdefs.h <<_ACEOF
7052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053 _ACEOF
7054
7055 fi
7056
7057 done
7058
7059
7060 for ac_header in link.h
7061 do
7062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063 echo "$as_me:$LINENO: checking for $ac_header" >&5
7064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 else
7068 cat >conftest.$ac_ext <<_ACEOF
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #if HAVE_SYS_TYPES_H
7075 # include <sys/types.h>
7076 #endif
7077 #if HAVE_NLIST_H
7078 # include <nlist.h>
7079 #endif
7080
7081
7082 #include <$ac_header>
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>conftest.er1
7087 ac_status=$?
7088 grep -v '^ *+' conftest.er1 >conftest.err
7089 rm -f conftest.er1
7090 cat conftest.err >&5
7091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } &&
7093 { ac_try='test -z "$ac_c_werror_flag"
7094 || test ! -s conftest.err'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 (eval $ac_try) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; } &&
7100 { ac_try='test -s conftest.$ac_objext'
7101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102 (eval $ac_try) 2>&5
7103 ac_status=$?
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 eval "$as_ac_Header=yes"
7107 else
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 eval "$as_ac_Header=no"
7112 fi
7113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114 fi
7115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7118 cat >>confdefs.h <<_ACEOF
7119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 _ACEOF
7121
7122 fi
7123
7124 done
7125
7126
7127 for ac_header in machine/reg.h
7128 do
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7131 echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 fi
7136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7138 else
7139 # Is the header compilable?
7140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h. */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 $ac_includes_default
7149 #include <$ac_header>
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153 (eval $ac_compile) 2>conftest.er1
7154 ac_status=$?
7155 grep -v '^ *+' conftest.er1 >conftest.err
7156 rm -f conftest.er1
7157 cat conftest.err >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); } &&
7160 { ac_try='test -z "$ac_c_werror_flag"
7161 || test ! -s conftest.err'
7162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163 (eval $ac_try) 2>&5
7164 ac_status=$?
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); }; } &&
7167 { ac_try='test -s conftest.$ac_objext'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169 (eval $ac_try) 2>&5
7170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_header_compiler=yes
7174 else
7175 echo "$as_me: failed program was:" >&5
7176 sed 's/^/| /' conftest.$ac_ext >&5
7177
7178 ac_header_compiler=no
7179 fi
7180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7182 echo "${ECHO_T}$ac_header_compiler" >&6
7183
7184 # Is the header present?
7185 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7186 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 #include <$ac_header>
7194 _ACEOF
7195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } >/dev/null; then
7203 if test -s conftest.err; then
7204 ac_cpp_err=$ac_c_preproc_warn_flag
7205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7206 else
7207 ac_cpp_err=
7208 fi
7209 else
7210 ac_cpp_err=yes
7211 fi
7212 if test -z "$ac_cpp_err"; then
7213 ac_header_preproc=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_header_preproc=no
7219 fi
7220 rm -f conftest.err conftest.$ac_ext
7221 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7222 echo "${ECHO_T}$ac_header_preproc" >&6
7223
7224 # So? What about this header?
7225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7226 yes:no: )
7227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7231 ac_header_preproc=yes
7232 ;;
7233 no:yes:* )
7234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7237 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7241 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7246 (
7247 cat <<\_ASBOX
7248 ## ------------------------------------------ ##
7249 ## Report this to the AC_PACKAGE_NAME lists. ##
7250 ## ------------------------------------------ ##
7251 _ASBOX
7252 ) |
7253 sed "s/^/$as_me: WARNING: /" >&2
7254 ;;
7255 esac
7256 echo "$as_me:$LINENO: checking for $ac_header" >&5
7257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261 eval "$as_ac_Header=\$ac_header_preproc"
7262 fi
7263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7265
7266 fi
7267 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7268 cat >>confdefs.h <<_ACEOF
7269 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7270 _ACEOF
7271
7272 fi
7273
7274 done
7275
7276
7277
7278 for ac_header in poll.h sys/poll.h
7279 do
7280 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7281 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7282 echo "$as_me:$LINENO: checking for $ac_header" >&5
7283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 fi
7287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7288 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7289 else
7290 # Is the header compilable?
7291 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 $ac_includes_default
7300 #include <$ac_header>
7301 _ACEOF
7302 rm -f conftest.$ac_objext
7303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7304 (eval $ac_compile) 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } &&
7311 { ac_try='test -z "$ac_c_werror_flag"
7312 || test ! -s conftest.err'
7313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 (eval $ac_try) 2>&5
7315 ac_status=$?
7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7324 ac_header_compiler=yes
7325 else
7326 echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329 ac_header_compiler=no
7330 fi
7331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7333 echo "${ECHO_T}$ac_header_compiler" >&6
7334
7335 # Is the header present?
7336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7338 cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h. */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7344 #include <$ac_header>
7345 _ACEOF
7346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } >/dev/null; then
7354 if test -s conftest.err; then
7355 ac_cpp_err=$ac_c_preproc_warn_flag
7356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7357 else
7358 ac_cpp_err=
7359 fi
7360 else
7361 ac_cpp_err=yes
7362 fi
7363 if test -z "$ac_cpp_err"; then
7364 ac_header_preproc=yes
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369 ac_header_preproc=no
7370 fi
7371 rm -f conftest.err conftest.$ac_ext
7372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7373 echo "${ECHO_T}$ac_header_preproc" >&6
7374
7375 # So? What about this header?
7376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7377 yes:no: )
7378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7382 ac_header_preproc=yes
7383 ;;
7384 no:yes:* )
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7386 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7388 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7390 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7392 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7396 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7397 (
7398 cat <<\_ASBOX
7399 ## ------------------------------------------ ##
7400 ## Report this to the AC_PACKAGE_NAME lists. ##
7401 ## ------------------------------------------ ##
7402 _ASBOX
7403 ) |
7404 sed "s/^/$as_me: WARNING: /" >&2
7405 ;;
7406 esac
7407 echo "$as_me:$LINENO: checking for $ac_header" >&5
7408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412 eval "$as_ac_Header=\$ac_header_preproc"
7413 fi
7414 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7415 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7416
7417 fi
7418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7419 cat >>confdefs.h <<_ACEOF
7420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7421 _ACEOF
7422
7423 fi
7424
7425 done
7426
7427
7428
7429
7430 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7431 do
7432 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7434 echo "$as_me:$LINENO: checking for $ac_header" >&5
7435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 fi
7439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7441 else
7442 # Is the header compilable?
7443 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7445 cat >conftest.$ac_ext <<_ACEOF
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7452 #include <$ac_header>
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_header_compiler=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_header_compiler=no
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7485 echo "${ECHO_T}$ac_header_compiler" >&6
7486
7487 # Is the header present?
7488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <$ac_header>
7497 _ACEOF
7498 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7499 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } >/dev/null; then
7506 if test -s conftest.err; then
7507 ac_cpp_err=$ac_c_preproc_warn_flag
7508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7509 else
7510 ac_cpp_err=
7511 fi
7512 else
7513 ac_cpp_err=yes
7514 fi
7515 if test -z "$ac_cpp_err"; then
7516 ac_header_preproc=yes
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 ac_header_preproc=no
7522 fi
7523 rm -f conftest.err conftest.$ac_ext
7524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6
7526
7527 # So? What about this header?
7528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7529 yes:no: )
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7534 ac_header_preproc=yes
7535 ;;
7536 no:yes:* )
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7549 (
7550 cat <<\_ASBOX
7551 ## ------------------------------------------ ##
7552 ## Report this to the AC_PACKAGE_NAME lists. ##
7553 ## ------------------------------------------ ##
7554 _ASBOX
7555 ) |
7556 sed "s/^/$as_me: WARNING: /" >&2
7557 ;;
7558 esac
7559 echo "$as_me:$LINENO: checking for $ac_header" >&5
7560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 eval "$as_ac_Header=\$ac_header_preproc"
7565 fi
7566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7567 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7568
7569 fi
7570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7571 cat >>confdefs.h <<_ACEOF
7572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7573 _ACEOF
7574
7575 fi
7576
7577 done
7578
7579
7580 for ac_header in stddef.h
7581 do
7582 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7584 echo "$as_me:$LINENO: checking for $ac_header" >&5
7585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7588 fi
7589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7590 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7591 else
7592 # Is the header compilable?
7593 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7594 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7595 cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h. */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 $ac_includes_default
7602 #include <$ac_header>
7603 _ACEOF
7604 rm -f conftest.$ac_objext
7605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606 (eval $ac_compile) 2>conftest.er1
7607 ac_status=$?
7608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag"
7614 || test ! -s conftest.err'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 ac_header_compiler=yes
7627 else
7628 echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7630
7631 ac_header_compiler=no
7632 fi
7633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7635 echo "${ECHO_T}$ac_header_compiler" >&6
7636
7637 # Is the header present?
7638 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7640 cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h. */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7646 #include <$ac_header>
7647 _ACEOF
7648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7649 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } >/dev/null; then
7656 if test -s conftest.err; then
7657 ac_cpp_err=$ac_c_preproc_warn_flag
7658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7659 else
7660 ac_cpp_err=
7661 fi
7662 else
7663 ac_cpp_err=yes
7664 fi
7665 if test -z "$ac_cpp_err"; then
7666 ac_header_preproc=yes
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 ac_header_preproc=no
7672 fi
7673 rm -f conftest.err conftest.$ac_ext
7674 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7675 echo "${ECHO_T}$ac_header_preproc" >&6
7676
7677 # So? What about this header?
7678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7679 yes:no: )
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7684 ac_header_preproc=yes
7685 ;;
7686 no:yes:* )
7687 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7689 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7690 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7691 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7693 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7694 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7697 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7699 (
7700 cat <<\_ASBOX
7701 ## ------------------------------------------ ##
7702 ## Report this to the AC_PACKAGE_NAME lists. ##
7703 ## ------------------------------------------ ##
7704 _ASBOX
7705 ) |
7706 sed "s/^/$as_me: WARNING: /" >&2
7707 ;;
7708 esac
7709 echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714 eval "$as_ac_Header=\$ac_header_preproc"
7715 fi
7716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7718
7719 fi
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 _ACEOF
7724
7725 fi
7726
7727 done
7728
7729
7730 for ac_header in stdlib.h
7731 do
7732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7734 echo "$as_me:$LINENO: checking for $ac_header" >&5
7735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 fi
7739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7741 else
7742 # Is the header compilable?
7743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 $ac_includes_default
7752 #include <$ac_header>
7753 _ACEOF
7754 rm -f conftest.$ac_objext
7755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7756 (eval $ac_compile) 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } &&
7763 { ac_try='test -z "$ac_c_werror_flag"
7764 || test ! -s conftest.err'
7765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 (eval $ac_try) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); }; } &&
7770 { ac_try='test -s conftest.$ac_objext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_header_compiler=yes
7777 else
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7780
7781 ac_header_compiler=no
7782 fi
7783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7785 echo "${ECHO_T}$ac_header_compiler" >&6
7786
7787 # Is the header present?
7788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7790 cat >conftest.$ac_ext <<_ACEOF
7791 /* confdefs.h. */
7792 _ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7796 #include <$ac_header>
7797 _ACEOF
7798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } >/dev/null; then
7806 if test -s conftest.err; then
7807 ac_cpp_err=$ac_c_preproc_warn_flag
7808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7809 else
7810 ac_cpp_err=
7811 fi
7812 else
7813 ac_cpp_err=yes
7814 fi
7815 if test -z "$ac_cpp_err"; then
7816 ac_header_preproc=yes
7817 else
7818 echo "$as_me: failed program was:" >&5
7819 sed 's/^/| /' conftest.$ac_ext >&5
7820
7821 ac_header_preproc=no
7822 fi
7823 rm -f conftest.err conftest.$ac_ext
7824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7825 echo "${ECHO_T}$ac_header_preproc" >&6
7826
7827 # So? What about this header?
7828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7829 yes:no: )
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7834 ac_header_preproc=yes
7835 ;;
7836 no:yes:* )
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7849 (
7850 cat <<\_ASBOX
7851 ## ------------------------------------------ ##
7852 ## Report this to the AC_PACKAGE_NAME lists. ##
7853 ## ------------------------------------------ ##
7854 _ASBOX
7855 ) |
7856 sed "s/^/$as_me: WARNING: /" >&2
7857 ;;
7858 esac
7859 echo "$as_me:$LINENO: checking for $ac_header" >&5
7860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7862 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 else
7864 eval "$as_ac_Header=\$ac_header_preproc"
7865 fi
7866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868
7869 fi
7870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7871 cat >>confdefs.h <<_ACEOF
7872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7873 _ACEOF
7874
7875 fi
7876
7877 done
7878
7879
7880 for ac_header in stdint.h
7881 do
7882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7884 echo "$as_me:$LINENO: checking for $ac_header" >&5
7885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7888 fi
7889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7890 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7891 else
7892 # Is the header compilable?
7893 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7895 cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h. */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7901 $ac_includes_default
7902 #include <$ac_header>
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906 (eval $ac_compile) 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -z "$ac_c_werror_flag"
7914 || test ! -s conftest.err'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; } &&
7920 { ac_try='test -s conftest.$ac_objext'
7921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 (eval $ac_try) 2>&5
7923 ac_status=$?
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_header_compiler=yes
7927 else
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7930
7931 ac_header_compiler=no
7932 fi
7933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7934 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7935 echo "${ECHO_T}$ac_header_compiler" >&6
7936
7937 # Is the header present?
7938 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7940 cat >conftest.$ac_ext <<_ACEOF
7941 /* confdefs.h. */
7942 _ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7946 #include <$ac_header>
7947 _ACEOF
7948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7950 ac_status=$?
7951 grep -v '^ *+' conftest.er1 >conftest.err
7952 rm -f conftest.er1
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } >/dev/null; then
7956 if test -s conftest.err; then
7957 ac_cpp_err=$ac_c_preproc_warn_flag
7958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7959 else
7960 ac_cpp_err=
7961 fi
7962 else
7963 ac_cpp_err=yes
7964 fi
7965 if test -z "$ac_cpp_err"; then
7966 ac_header_preproc=yes
7967 else
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ac_header_preproc=no
7972 fi
7973 rm -f conftest.err conftest.$ac_ext
7974 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7975 echo "${ECHO_T}$ac_header_preproc" >&6
7976
7977 # So? What about this header?
7978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7979 yes:no: )
7980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7984 ac_header_preproc=yes
7985 ;;
7986 no:yes:* )
7987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7999 (
8000 cat <<\_ASBOX
8001 ## ------------------------------------------ ##
8002 ## Report this to the AC_PACKAGE_NAME lists. ##
8003 ## ------------------------------------------ ##
8004 _ASBOX
8005 ) |
8006 sed "s/^/$as_me: WARNING: /" >&2
8007 ;;
8008 esac
8009 echo "$as_me:$LINENO: checking for $ac_header" >&5
8010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 else
8014 eval "$as_ac_Header=\$ac_header_preproc"
8015 fi
8016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8018
8019 fi
8020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8021 cat >>confdefs.h <<_ACEOF
8022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8023 _ACEOF
8024
8025 fi
8026
8027 done
8028
8029
8030
8031
8032 for ac_header in string.h memory.h strings.h
8033 do
8034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036 echo "$as_me:$LINENO: checking for $ac_header" >&5
8037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 fi
8041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8043 else
8044 # Is the header compilable?
8045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8047 cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h. */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 #include <$ac_header>
8055 _ACEOF
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8059 ac_status=$?
8060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_header_compiler=yes
8079 else
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_header_compiler=no
8084 fi
8085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8087 echo "${ECHO_T}$ac_header_compiler" >&6
8088
8089 # Is the header present?
8090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <$ac_header>
8099 _ACEOF
8100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8102 ac_status=$?
8103 grep -v '^ *+' conftest.er1 >conftest.err
8104 rm -f conftest.er1
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } >/dev/null; then
8108 if test -s conftest.err; then
8109 ac_cpp_err=$ac_c_preproc_warn_flag
8110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8111 else
8112 ac_cpp_err=
8113 fi
8114 else
8115 ac_cpp_err=yes
8116 fi
8117 if test -z "$ac_cpp_err"; then
8118 ac_header_preproc=yes
8119 else
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 ac_header_preproc=no
8124 fi
8125 rm -f conftest.err conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8127 echo "${ECHO_T}$ac_header_preproc" >&6
8128
8129 # So? What about this header?
8130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8131 yes:no: )
8132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8136 ac_header_preproc=yes
8137 ;;
8138 no:yes:* )
8139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8151 (
8152 cat <<\_ASBOX
8153 ## ------------------------------------------ ##
8154 ## Report this to the AC_PACKAGE_NAME lists. ##
8155 ## ------------------------------------------ ##
8156 _ASBOX
8157 ) |
8158 sed "s/^/$as_me: WARNING: /" >&2
8159 ;;
8160 esac
8161 echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166 eval "$as_ac_Header=\$ac_header_preproc"
8167 fi
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8170
8171 fi
8172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8173 cat >>confdefs.h <<_ACEOF
8174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8175 _ACEOF
8176
8177 fi
8178
8179 done
8180
8181
8182 for ac_header in sys/fault.h
8183 do
8184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8186 echo "$as_me:$LINENO: checking for $ac_header" >&5
8187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190 fi
8191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8193 else
8194 # Is the header compilable?
8195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8203 $ac_includes_default
8204 #include <$ac_header>
8205 _ACEOF
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208 (eval $ac_compile) 2>conftest.er1
8209 ac_status=$?
8210 grep -v '^ *+' conftest.er1 >conftest.err
8211 rm -f conftest.er1
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 (eval $ac_try) 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 (eval $ac_try) 2>&5
8225 ac_status=$?
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_header_compiler=yes
8229 else
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233 ac_header_compiler=no
8234 fi
8235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8237 echo "${ECHO_T}$ac_header_compiler" >&6
8238
8239 # Is the header present?
8240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8242 cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h. */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h. */
8248 #include <$ac_header>
8249 _ACEOF
8250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8252 ac_status=$?
8253 grep -v '^ *+' conftest.er1 >conftest.err
8254 rm -f conftest.er1
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } >/dev/null; then
8258 if test -s conftest.err; then
8259 ac_cpp_err=$ac_c_preproc_warn_flag
8260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8261 else
8262 ac_cpp_err=
8263 fi
8264 else
8265 ac_cpp_err=yes
8266 fi
8267 if test -z "$ac_cpp_err"; then
8268 ac_header_preproc=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_header_preproc=no
8274 fi
8275 rm -f conftest.err conftest.$ac_ext
8276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8277 echo "${ECHO_T}$ac_header_preproc" >&6
8278
8279 # So? What about this header?
8280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8281 yes:no: )
8282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8286 ac_header_preproc=yes
8287 ;;
8288 no:yes:* )
8289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8301 (
8302 cat <<\_ASBOX
8303 ## ------------------------------------------ ##
8304 ## Report this to the AC_PACKAGE_NAME lists. ##
8305 ## ------------------------------------------ ##
8306 _ASBOX
8307 ) |
8308 sed "s/^/$as_me: WARNING: /" >&2
8309 ;;
8310 esac
8311 echo "$as_me:$LINENO: checking for $ac_header" >&5
8312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316 eval "$as_ac_Header=\$ac_header_preproc"
8317 fi
8318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8320
8321 fi
8322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8323 cat >>confdefs.h <<_ACEOF
8324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8325 _ACEOF
8326
8327 fi
8328
8329 done
8330
8331
8332 for ac_header in sys/file.h
8333 do
8334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8336 echo "$as_me:$LINENO: checking for $ac_header" >&5
8337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 fi
8341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8343 else
8344 # Is the header compilable?
8345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8347 cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h. */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8353 $ac_includes_default
8354 #include <$ac_header>
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358 (eval $ac_compile) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -z "$ac_c_werror_flag"
8366 || test ! -s conftest.err'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 (eval $ac_try) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_header_compiler=yes
8379 else
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_header_compiler=no
8384 fi
8385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8386 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8387 echo "${ECHO_T}$ac_header_compiler" >&6
8388
8389 # Is the header present?
8390 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 #include <$ac_header>
8399 _ACEOF
8400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } >/dev/null; then
8408 if test -s conftest.err; then
8409 ac_cpp_err=$ac_c_preproc_warn_flag
8410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8411 else
8412 ac_cpp_err=
8413 fi
8414 else
8415 ac_cpp_err=yes
8416 fi
8417 if test -z "$ac_cpp_err"; then
8418 ac_header_preproc=yes
8419 else
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8422
8423 ac_header_preproc=no
8424 fi
8425 rm -f conftest.err conftest.$ac_ext
8426 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8427 echo "${ECHO_T}$ac_header_preproc" >&6
8428
8429 # So? What about this header?
8430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8431 yes:no: )
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8436 ac_header_preproc=yes
8437 ;;
8438 no:yes:* )
8439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8451 (
8452 cat <<\_ASBOX
8453 ## ------------------------------------------ ##
8454 ## Report this to the AC_PACKAGE_NAME lists. ##
8455 ## ------------------------------------------ ##
8456 _ASBOX
8457 ) |
8458 sed "s/^/$as_me: WARNING: /" >&2
8459 ;;
8460 esac
8461 echo "$as_me:$LINENO: checking for $ac_header" >&5
8462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8464 echo $ECHO_N "(cached) $ECHO_C" >&6
8465 else
8466 eval "$as_ac_Header=\$ac_header_preproc"
8467 fi
8468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470
8471 fi
8472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8473 cat >>confdefs.h <<_ACEOF
8474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8475 _ACEOF
8476
8477 fi
8478
8479 done
8480
8481
8482 for ac_header in sys/filio.h
8483 do
8484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8486 echo "$as_me:$LINENO: checking for $ac_header" >&5
8487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 fi
8491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8493 else
8494 # Is the header compilable?
8495 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503 $ac_includes_default
8504 #include <$ac_header>
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8508 (eval $ac_compile) 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest.$ac_objext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 ac_header_compiler=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8532
8533 ac_header_compiler=no
8534 fi
8535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8536 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8537 echo "${ECHO_T}$ac_header_compiler" >&6
8538
8539 # Is the header present?
8540 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8542 cat >conftest.$ac_ext <<_ACEOF
8543 /* confdefs.h. */
8544 _ACEOF
8545 cat confdefs.h >>conftest.$ac_ext
8546 cat >>conftest.$ac_ext <<_ACEOF
8547 /* end confdefs.h. */
8548 #include <$ac_header>
8549 _ACEOF
8550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } >/dev/null; then
8558 if test -s conftest.err; then
8559 ac_cpp_err=$ac_c_preproc_warn_flag
8560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8561 else
8562 ac_cpp_err=
8563 fi
8564 else
8565 ac_cpp_err=yes
8566 fi
8567 if test -z "$ac_cpp_err"; then
8568 ac_header_preproc=yes
8569 else
8570 echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 ac_header_preproc=no
8574 fi
8575 rm -f conftest.err conftest.$ac_ext
8576 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8577 echo "${ECHO_T}$ac_header_preproc" >&6
8578
8579 # So? What about this header?
8580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8581 yes:no: )
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8586 ac_header_preproc=yes
8587 ;;
8588 no:yes:* )
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8601 (
8602 cat <<\_ASBOX
8603 ## ------------------------------------------ ##
8604 ## Report this to the AC_PACKAGE_NAME lists. ##
8605 ## ------------------------------------------ ##
8606 _ASBOX
8607 ) |
8608 sed "s/^/$as_me: WARNING: /" >&2
8609 ;;
8610 esac
8611 echo "$as_me:$LINENO: checking for $ac_header" >&5
8612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616 eval "$as_ac_Header=\$ac_header_preproc"
8617 fi
8618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8620
8621 fi
8622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8623 cat >>confdefs.h <<_ACEOF
8624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8625 _ACEOF
8626
8627 fi
8628
8629 done
8630
8631
8632 for ac_header in sys/ioctl.h
8633 do
8634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8636 echo "$as_me:$LINENO: checking for $ac_header" >&5
8637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8640 fi
8641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8643 else
8644 # Is the header compilable?
8645 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8647 cat >conftest.$ac_ext <<_ACEOF
8648 /* confdefs.h. */
8649 _ACEOF
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 $ac_includes_default
8654 #include <$ac_header>
8655 _ACEOF
8656 rm -f conftest.$ac_objext
8657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8658 (eval $ac_compile) 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag"
8666 || test ! -s conftest.err'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 (eval $ac_try) 2>&5
8669 ac_status=$?
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; } &&
8672 { ac_try='test -s conftest.$ac_objext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674 (eval $ac_try) 2>&5
8675 ac_status=$?
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 ac_header_compiler=yes
8679 else
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 ac_header_compiler=no
8684 fi
8685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8687 echo "${ECHO_T}$ac_header_compiler" >&6
8688
8689 # Is the header present?
8690 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8691 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 #include <$ac_header>
8699 _ACEOF
8700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } >/dev/null; then
8708 if test -s conftest.err; then
8709 ac_cpp_err=$ac_c_preproc_warn_flag
8710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8711 else
8712 ac_cpp_err=
8713 fi
8714 else
8715 ac_cpp_err=yes
8716 fi
8717 if test -z "$ac_cpp_err"; then
8718 ac_header_preproc=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8722
8723 ac_header_preproc=no
8724 fi
8725 rm -f conftest.err conftest.$ac_ext
8726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8727 echo "${ECHO_T}$ac_header_preproc" >&6
8728
8729 # So? What about this header?
8730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8731 yes:no: )
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8733 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8735 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8736 ac_header_preproc=yes
8737 ;;
8738 no:yes:* )
8739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8740 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8742 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8744 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8746 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8748 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8750 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8751 (
8752 cat <<\_ASBOX
8753 ## ------------------------------------------ ##
8754 ## Report this to the AC_PACKAGE_NAME lists. ##
8755 ## ------------------------------------------ ##
8756 _ASBOX
8757 ) |
8758 sed "s/^/$as_me: WARNING: /" >&2
8759 ;;
8760 esac
8761 echo "$as_me:$LINENO: checking for $ac_header" >&5
8762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 else
8766 eval "$as_ac_Header=\$ac_header_preproc"
8767 fi
8768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8770
8771 fi
8772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 _ACEOF
8776
8777 fi
8778
8779 done
8780
8781
8782 for ac_header in sys/param.h
8783 do
8784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8786 echo "$as_me:$LINENO: checking for $ac_header" >&5
8787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8790 fi
8791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793 else
8794 # Is the header compilable?
8795 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8796 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8797 cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 $ac_includes_default
8804 #include <$ac_header>
8805 _ACEOF
8806 rm -f conftest.$ac_objext
8807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8808 (eval $ac_compile) 2>conftest.er1
8809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -z "$ac_c_werror_flag"
8816 || test ! -s conftest.err'
8817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8818 (eval $ac_try) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); }; } &&
8822 { ac_try='test -s conftest.$ac_objext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 ac_header_compiler=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_header_compiler=no
8834 fi
8835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8837 echo "${ECHO_T}$ac_header_compiler" >&6
8838
8839 # Is the header present?
8840 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8842 cat >conftest.$ac_ext <<_ACEOF
8843 /* confdefs.h. */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 #include <$ac_header>
8849 _ACEOF
8850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } >/dev/null; then
8858 if test -s conftest.err; then
8859 ac_cpp_err=$ac_c_preproc_warn_flag
8860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8861 else
8862 ac_cpp_err=
8863 fi
8864 else
8865 ac_cpp_err=yes
8866 fi
8867 if test -z "$ac_cpp_err"; then
8868 ac_header_preproc=yes
8869 else
8870 echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873 ac_header_preproc=no
8874 fi
8875 rm -f conftest.err conftest.$ac_ext
8876 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8877 echo "${ECHO_T}$ac_header_preproc" >&6
8878
8879 # So? What about this header?
8880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8881 yes:no: )
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8886 ac_header_preproc=yes
8887 ;;
8888 no:yes:* )
8889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8901 (
8902 cat <<\_ASBOX
8903 ## ------------------------------------------ ##
8904 ## Report this to the AC_PACKAGE_NAME lists. ##
8905 ## ------------------------------------------ ##
8906 _ASBOX
8907 ) |
8908 sed "s/^/$as_me: WARNING: /" >&2
8909 ;;
8910 esac
8911 echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 eval "$as_ac_Header=\$ac_header_preproc"
8917 fi
8918 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8920
8921 fi
8922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8923 cat >>confdefs.h <<_ACEOF
8924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8925 _ACEOF
8926
8927 fi
8928
8929 done
8930
8931
8932 for ac_header in sys/proc.h
8933 do
8934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8935 echo "$as_me:$LINENO: checking for $ac_header" >&5
8936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 cat >conftest.$ac_ext <<_ACEOF
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 #if HAVE_SYS_PARAM_H
8947 # include <sys/param.h>
8948 #endif
8949
8950
8951 #include <$ac_header>
8952 _ACEOF
8953 rm -f conftest.$ac_objext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8955 (eval $ac_compile) 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } &&
8962 { ac_try='test -z "$ac_c_werror_flag"
8963 || test ! -s conftest.err'
8964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 (eval $ac_try) 2>&5
8966 ac_status=$?
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); }; } &&
8969 { ac_try='test -s conftest.$ac_objext'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 (eval $ac_try) 2>&5
8972 ac_status=$?
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 eval "$as_ac_Header=yes"
8976 else
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 eval "$as_ac_Header=no"
8981 fi
8982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8987 cat >>confdefs.h <<_ACEOF
8988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8989 _ACEOF
8990
8991 fi
8992
8993 done
8994
8995
8996 for ac_header in sys/procfs.h
8997 do
8998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9000 echo "$as_me:$LINENO: checking for $ac_header" >&5
9001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 fi
9005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9007 else
9008 # Is the header compilable?
9009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9018 #include <$ac_header>
9019 _ACEOF
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022 (eval $ac_compile) 2>conftest.er1
9023 ac_status=$?
9024 grep -v '^ *+' conftest.er1 >conftest.err
9025 rm -f conftest.er1
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032 (eval $ac_try) 2>&5
9033 ac_status=$?
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038 (eval $ac_try) 2>&5
9039 ac_status=$?
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_header_compiler=yes
9043 else
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9046
9047 ac_header_compiler=no
9048 fi
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9051 echo "${ECHO_T}$ac_header_compiler" >&6
9052
9053 # Is the header present?
9054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9056 cat >conftest.$ac_ext <<_ACEOF
9057 /* confdefs.h. */
9058 _ACEOF
9059 cat confdefs.h >>conftest.$ac_ext
9060 cat >>conftest.$ac_ext <<_ACEOF
9061 /* end confdefs.h. */
9062 #include <$ac_header>
9063 _ACEOF
9064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } >/dev/null; then
9072 if test -s conftest.err; then
9073 ac_cpp_err=$ac_c_preproc_warn_flag
9074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9075 else
9076 ac_cpp_err=
9077 fi
9078 else
9079 ac_cpp_err=yes
9080 fi
9081 if test -z "$ac_cpp_err"; then
9082 ac_header_preproc=yes
9083 else
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087 ac_header_preproc=no
9088 fi
9089 rm -f conftest.err conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9091 echo "${ECHO_T}$ac_header_preproc" >&6
9092
9093 # So? What about this header?
9094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9095 yes:no: )
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9100 ac_header_preproc=yes
9101 ;;
9102 no:yes:* )
9103 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9106 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9109 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9110 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9113 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9115 (
9116 cat <<\_ASBOX
9117 ## ------------------------------------------ ##
9118 ## Report this to the AC_PACKAGE_NAME lists. ##
9119 ## ------------------------------------------ ##
9120 _ASBOX
9121 ) |
9122 sed "s/^/$as_me: WARNING: /" >&2
9123 ;;
9124 esac
9125 echo "$as_me:$LINENO: checking for $ac_header" >&5
9126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 eval "$as_ac_Header=\$ac_header_preproc"
9131 fi
9132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9134
9135 fi
9136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9137 cat >>confdefs.h <<_ACEOF
9138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9139 _ACEOF
9140
9141 fi
9142
9143 done
9144
9145
9146
9147 for ac_header in sys/ptrace.h ptrace.h
9148 do
9149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9151 echo "$as_me:$LINENO: checking for $ac_header" >&5
9152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9153 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 fi
9156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9158 else
9159 # Is the header compilable?
9160 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 $ac_includes_default
9169 #include <$ac_header>
9170 _ACEOF
9171 rm -f conftest.$ac_objext
9172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9173 (eval $ac_compile) 2>conftest.er1
9174 ac_status=$?
9175 grep -v '^ *+' conftest.er1 >conftest.err
9176 rm -f conftest.er1
9177 cat conftest.err >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } &&
9180 { ac_try='test -z "$ac_c_werror_flag"
9181 || test ! -s conftest.err'
9182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 (eval $ac_try) 2>&5
9184 ac_status=$?
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); }; } &&
9187 { ac_try='test -s conftest.$ac_objext'
9188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 (eval $ac_try) 2>&5
9190 ac_status=$?
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); }; }; then
9193 ac_header_compiler=yes
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9197
9198 ac_header_compiler=no
9199 fi
9200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9201 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9202 echo "${ECHO_T}$ac_header_compiler" >&6
9203
9204 # Is the header present?
9205 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9208 /* confdefs.h. */
9209 _ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 #include <$ac_header>
9214 _ACEOF
9215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9216 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9217 ac_status=$?
9218 grep -v '^ *+' conftest.er1 >conftest.err
9219 rm -f conftest.er1
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } >/dev/null; then
9223 if test -s conftest.err; then
9224 ac_cpp_err=$ac_c_preproc_warn_flag
9225 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9226 else
9227 ac_cpp_err=
9228 fi
9229 else
9230 ac_cpp_err=yes
9231 fi
9232 if test -z "$ac_cpp_err"; then
9233 ac_header_preproc=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_header_preproc=no
9239 fi
9240 rm -f conftest.err conftest.$ac_ext
9241 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9242 echo "${ECHO_T}$ac_header_preproc" >&6
9243
9244 # So? What about this header?
9245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9246 yes:no: )
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9251 ac_header_preproc=yes
9252 ;;
9253 no:yes:* )
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9266 (
9267 cat <<\_ASBOX
9268 ## ------------------------------------------ ##
9269 ## Report this to the AC_PACKAGE_NAME lists. ##
9270 ## ------------------------------------------ ##
9271 _ASBOX
9272 ) |
9273 sed "s/^/$as_me: WARNING: /" >&2
9274 ;;
9275 esac
9276 echo "$as_me:$LINENO: checking for $ac_header" >&5
9277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 else
9281 eval "$as_ac_Header=\$ac_header_preproc"
9282 fi
9283 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9284 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9285
9286 fi
9287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9288 cat >>confdefs.h <<_ACEOF
9289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9290 _ACEOF
9291
9292 fi
9293
9294 done
9295
9296
9297
9298 for ac_header in sys/reg.h sys/debugreg.h
9299 do
9300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9302 echo "$as_me:$LINENO: checking for $ac_header" >&5
9303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 fi
9307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9309 else
9310 # Is the header compilable?
9311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h. */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 $ac_includes_default
9320 #include <$ac_header>
9321 _ACEOF
9322 rm -f conftest.$ac_objext
9323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9324 (eval $ac_compile) 2>conftest.er1
9325 ac_status=$?
9326 grep -v '^ *+' conftest.er1 >conftest.err
9327 rm -f conftest.er1
9328 cat conftest.err >&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -z "$ac_c_werror_flag"
9332 || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest.$ac_objext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_header_compiler=yes
9345 else
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349 ac_header_compiler=no
9350 fi
9351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9353 echo "${ECHO_T}$ac_header_compiler" >&6
9354
9355 # Is the header present?
9356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9358 cat >conftest.$ac_ext <<_ACEOF
9359 /* confdefs.h. */
9360 _ACEOF
9361 cat confdefs.h >>conftest.$ac_ext
9362 cat >>conftest.$ac_ext <<_ACEOF
9363 /* end confdefs.h. */
9364 #include <$ac_header>
9365 _ACEOF
9366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9368 ac_status=$?
9369 grep -v '^ *+' conftest.er1 >conftest.err
9370 rm -f conftest.er1
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null; then
9374 if test -s conftest.err; then
9375 ac_cpp_err=$ac_c_preproc_warn_flag
9376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9377 else
9378 ac_cpp_err=
9379 fi
9380 else
9381 ac_cpp_err=yes
9382 fi
9383 if test -z "$ac_cpp_err"; then
9384 ac_header_preproc=yes
9385 else
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389 ac_header_preproc=no
9390 fi
9391 rm -f conftest.err conftest.$ac_ext
9392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9393 echo "${ECHO_T}$ac_header_preproc" >&6
9394
9395 # So? What about this header?
9396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9397 yes:no: )
9398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9402 ac_header_preproc=yes
9403 ;;
9404 no:yes:* )
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9417 (
9418 cat <<\_ASBOX
9419 ## ------------------------------------------ ##
9420 ## Report this to the AC_PACKAGE_NAME lists. ##
9421 ## ------------------------------------------ ##
9422 _ASBOX
9423 ) |
9424 sed "s/^/$as_me: WARNING: /" >&2
9425 ;;
9426 esac
9427 echo "$as_me:$LINENO: checking for $ac_header" >&5
9428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432 eval "$as_ac_Header=\$ac_header_preproc"
9433 fi
9434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9436
9437 fi
9438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9439 cat >>confdefs.h <<_ACEOF
9440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9441 _ACEOF
9442
9443 fi
9444
9445 done
9446
9447
9448 for ac_header in sys/select.h
9449 do
9450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452 echo "$as_me:$LINENO: checking for $ac_header" >&5
9453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 fi
9457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9459 else
9460 # Is the header compilable?
9461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h. */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 $ac_includes_default
9470 #include <$ac_header>
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>conftest.er1
9475 ac_status=$?
9476 grep -v '^ *+' conftest.er1 >conftest.err
9477 rm -f conftest.er1
9478 cat conftest.err >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } &&
9481 { ac_try='test -z "$ac_c_werror_flag"
9482 || test ! -s conftest.err'
9483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484 (eval $ac_try) 2>&5
9485 ac_status=$?
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490 (eval $ac_try) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); }; }; then
9494 ac_header_compiler=yes
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 ac_header_compiler=no
9500 fi
9501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9503 echo "${ECHO_T}$ac_header_compiler" >&6
9504
9505 # Is the header present?
9506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 #include <$ac_header>
9515 _ACEOF
9516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9518 ac_status=$?
9519 grep -v '^ *+' conftest.er1 >conftest.err
9520 rm -f conftest.er1
9521 cat conftest.err >&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); } >/dev/null; then
9524 if test -s conftest.err; then
9525 ac_cpp_err=$ac_c_preproc_warn_flag
9526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9527 else
9528 ac_cpp_err=
9529 fi
9530 else
9531 ac_cpp_err=yes
9532 fi
9533 if test -z "$ac_cpp_err"; then
9534 ac_header_preproc=yes
9535 else
9536 echo "$as_me: failed program was:" >&5
9537 sed 's/^/| /' conftest.$ac_ext >&5
9538
9539 ac_header_preproc=no
9540 fi
9541 rm -f conftest.err conftest.$ac_ext
9542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6
9544
9545 # So? What about this header?
9546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9547 yes:no: )
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552 ac_header_preproc=yes
9553 ;;
9554 no:yes:* )
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9567 (
9568 cat <<\_ASBOX
9569 ## ------------------------------------------ ##
9570 ## Report this to the AC_PACKAGE_NAME lists. ##
9571 ## ------------------------------------------ ##
9572 _ASBOX
9573 ) |
9574 sed "s/^/$as_me: WARNING: /" >&2
9575 ;;
9576 esac
9577 echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 eval "$as_ac_Header=\$ac_header_preproc"
9583 fi
9584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9585 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9586
9587 fi
9588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9589 cat >>confdefs.h <<_ACEOF
9590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591 _ACEOF
9592
9593 fi
9594
9595 done
9596
9597
9598 for ac_header in sys/syscall.h
9599 do
9600 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9602 echo "$as_me:$LINENO: checking for $ac_header" >&5
9603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 fi
9607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9609 else
9610 # Is the header compilable?
9611 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9614 /* confdefs.h. */
9615 _ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9619 $ac_includes_default
9620 #include <$ac_header>
9621 _ACEOF
9622 rm -f conftest.$ac_objext
9623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -z "$ac_c_werror_flag"
9632 || test ! -s conftest.err'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 (eval $ac_try) 2>&5
9635 ac_status=$?
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; } &&
9638 { ac_try='test -s conftest.$ac_objext'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; }; then
9644 ac_header_compiler=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_header_compiler=no
9650 fi
9651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9653 echo "${ECHO_T}$ac_header_compiler" >&6
9654
9655 # Is the header present?
9656 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h. */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h. */
9664 #include <$ac_header>
9665 _ACEOF
9666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9668 ac_status=$?
9669 grep -v '^ *+' conftest.er1 >conftest.err
9670 rm -f conftest.er1
9671 cat conftest.err >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); } >/dev/null; then
9674 if test -s conftest.err; then
9675 ac_cpp_err=$ac_c_preproc_warn_flag
9676 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9677 else
9678 ac_cpp_err=
9679 fi
9680 else
9681 ac_cpp_err=yes
9682 fi
9683 if test -z "$ac_cpp_err"; then
9684 ac_header_preproc=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689 ac_header_preproc=no
9690 fi
9691 rm -f conftest.err conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9693 echo "${ECHO_T}$ac_header_preproc" >&6
9694
9695 # So? What about this header?
9696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9697 yes:no: )
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9702 ac_header_preproc=yes
9703 ;;
9704 no:yes:* )
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9717 (
9718 cat <<\_ASBOX
9719 ## ------------------------------------------ ##
9720 ## Report this to the AC_PACKAGE_NAME lists. ##
9721 ## ------------------------------------------ ##
9722 _ASBOX
9723 ) |
9724 sed "s/^/$as_me: WARNING: /" >&2
9725 ;;
9726 esac
9727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 eval "$as_ac_Header=\$ac_header_preproc"
9733 fi
9734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9735 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9736
9737 fi
9738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9739 cat >>confdefs.h <<_ACEOF
9740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9741 _ACEOF
9742
9743 fi
9744
9745 done
9746
9747
9748 for ac_header in sys/types.h
9749 do
9750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9752 echo "$as_me:$LINENO: checking for $ac_header" >&5
9753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 fi
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9759 else
9760 # Is the header compilable?
9761 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h. */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9770 #include <$ac_header>
9771 _ACEOF
9772 rm -f conftest.$ac_objext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9774 (eval $ac_compile) 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try='test -s conftest.$ac_objext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9790 (eval $ac_try) 2>&5
9791 ac_status=$?
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_header_compiler=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_header_compiler=no
9800 fi
9801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9803 echo "${ECHO_T}$ac_header_compiler" >&6
9804
9805 # Is the header present?
9806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9808 cat >conftest.$ac_ext <<_ACEOF
9809 /* confdefs.h. */
9810 _ACEOF
9811 cat confdefs.h >>conftest.$ac_ext
9812 cat >>conftest.$ac_ext <<_ACEOF
9813 /* end confdefs.h. */
9814 #include <$ac_header>
9815 _ACEOF
9816 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } >/dev/null; then
9824 if test -s conftest.err; then
9825 ac_cpp_err=$ac_c_preproc_warn_flag
9826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9827 else
9828 ac_cpp_err=
9829 fi
9830 else
9831 ac_cpp_err=yes
9832 fi
9833 if test -z "$ac_cpp_err"; then
9834 ac_header_preproc=yes
9835 else
9836 echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839 ac_header_preproc=no
9840 fi
9841 rm -f conftest.err conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843 echo "${ECHO_T}$ac_header_preproc" >&6
9844
9845 # So? What about this header?
9846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9847 yes:no: )
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9852 ac_header_preproc=yes
9853 ;;
9854 no:yes:* )
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9867 (
9868 cat <<\_ASBOX
9869 ## ------------------------------------------ ##
9870 ## Report this to the AC_PACKAGE_NAME lists. ##
9871 ## ------------------------------------------ ##
9872 _ASBOX
9873 ) |
9874 sed "s/^/$as_me: WARNING: /" >&2
9875 ;;
9876 esac
9877 echo "$as_me:$LINENO: checking for $ac_header" >&5
9878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882 eval "$as_ac_Header=\$ac_header_preproc"
9883 fi
9884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9885 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9886
9887 fi
9888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9889 cat >>confdefs.h <<_ACEOF
9890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9891 _ACEOF
9892
9893 fi
9894
9895 done
9896
9897
9898 for ac_header in sys/user.h
9899 do
9900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901 echo "$as_me:$LINENO: checking for $ac_header" >&5
9902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9903 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 #if HAVE_SYS_PARAM_H
9913 # include <sys/param.h>
9914 #endif
9915
9916
9917 #include <$ac_header>
9918 _ACEOF
9919 rm -f conftest.$ac_objext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9921 (eval $ac_compile) 2>conftest.er1
9922 ac_status=$?
9923 grep -v '^ *+' conftest.er1 >conftest.err
9924 rm -f conftest.er1
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -z "$ac_c_werror_flag"
9929 || test ! -s conftest.err'
9930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9931 (eval $ac_try) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 eval "$as_ac_Header=yes"
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 eval "$as_ac_Header=no"
9947 fi
9948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9949 fi
9950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9953 cat >>confdefs.h <<_ACEOF
9954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9955 _ACEOF
9956
9957 fi
9958
9959 done
9960
9961
9962
9963 for ac_header in sys/wait.h wait.h
9964 do
9965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9967 echo "$as_me:$LINENO: checking for $ac_header" >&5
9968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 fi
9972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9973 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9974 else
9975 # Is the header compilable?
9976 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 #include <$ac_header>
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989 (eval $ac_compile) 2>conftest.er1
9990 ac_status=$?
9991 grep -v '^ *+' conftest.er1 >conftest.err
9992 rm -f conftest.er1
9993 cat conftest.err >&5
9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995 (exit $ac_status); } &&
9996 { ac_try='test -z "$ac_c_werror_flag"
9997 || test ! -s conftest.err'
9998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999 (eval $ac_try) 2>&5
10000 ac_status=$?
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); }; } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_header_compiler=yes
10010 else
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 ac_header_compiler=no
10015 fi
10016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10018 echo "${ECHO_T}$ac_header_compiler" >&6
10019
10020 # Is the header present?
10021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10023 cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h. */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 #include <$ac_header>
10030 _ACEOF
10031 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev/null; then
10039 if test -s conftest.err; then
10040 ac_cpp_err=$ac_c_preproc_warn_flag
10041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10042 else
10043 ac_cpp_err=
10044 fi
10045 else
10046 ac_cpp_err=yes
10047 fi
10048 if test -z "$ac_cpp_err"; then
10049 ac_header_preproc=yes
10050 else
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10053
10054 ac_header_preproc=no
10055 fi
10056 rm -f conftest.err conftest.$ac_ext
10057 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10058 echo "${ECHO_T}$ac_header_preproc" >&6
10059
10060 # So? What about this header?
10061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10062 yes:no: )
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10064 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10066 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10067 ac_header_preproc=yes
10068 ;;
10069 no:yes:* )
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10071 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10073 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10075 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10077 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10079 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10081 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10082 (
10083 cat <<\_ASBOX
10084 ## ------------------------------------------ ##
10085 ## Report this to the AC_PACKAGE_NAME lists. ##
10086 ## ------------------------------------------ ##
10087 _ASBOX
10088 ) |
10089 sed "s/^/$as_me: WARNING: /" >&2
10090 ;;
10091 esac
10092 echo "$as_me:$LINENO: checking for $ac_header" >&5
10093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 eval "$as_ac_Header=\$ac_header_preproc"
10098 fi
10099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10101
10102 fi
10103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10104 cat >>confdefs.h <<_ACEOF
10105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10106 _ACEOF
10107
10108 fi
10109
10110 done
10111
10112
10113
10114
10115 for ac_header in termios.h termio.h sgtty.h
10116 do
10117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
10124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10126 else
10127 # Is the header compilable?
10128 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10130 cat >conftest.$ac_ext <<_ACEOF
10131 /* confdefs.h. */
10132 _ACEOF
10133 cat confdefs.h >>conftest.$ac_ext
10134 cat >>conftest.$ac_ext <<_ACEOF
10135 /* end confdefs.h. */
10136 $ac_includes_default
10137 #include <$ac_header>
10138 _ACEOF
10139 rm -f conftest.$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag"
10149 || test ! -s conftest.err'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_header_compiler=yes
10162 else
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10165
10166 ac_header_compiler=no
10167 fi
10168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10170 echo "${ECHO_T}$ac_header_compiler" >&6
10171
10172 # Is the header present?
10173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h. */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h. */
10181 #include <$ac_header>
10182 _ACEOF
10183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); } >/dev/null; then
10191 if test -s conftest.err; then
10192 ac_cpp_err=$ac_c_preproc_warn_flag
10193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10194 else
10195 ac_cpp_err=
10196 fi
10197 else
10198 ac_cpp_err=yes
10199 fi
10200 if test -z "$ac_cpp_err"; then
10201 ac_header_preproc=yes
10202 else
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10205
10206 ac_header_preproc=no
10207 fi
10208 rm -f conftest.err conftest.$ac_ext
10209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10210 echo "${ECHO_T}$ac_header_preproc" >&6
10211
10212 # So? What about this header?
10213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10214 yes:no: )
10215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10219 ac_header_preproc=yes
10220 ;;
10221 no:yes:* )
10222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10234 (
10235 cat <<\_ASBOX
10236 ## ------------------------------------------ ##
10237 ## Report this to the AC_PACKAGE_NAME lists. ##
10238 ## ------------------------------------------ ##
10239 _ASBOX
10240 ) |
10241 sed "s/^/$as_me: WARNING: /" >&2
10242 ;;
10243 esac
10244 echo "$as_me:$LINENO: checking for $ac_header" >&5
10245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249 eval "$as_ac_Header=\$ac_header_preproc"
10250 fi
10251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10253
10254 fi
10255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10256 cat >>confdefs.h <<_ACEOF
10257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10258 _ACEOF
10259
10260 fi
10261
10262 done
10263
10264
10265 for ac_header in unistd.h
10266 do
10267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
10274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10276 else
10277 # Is the header compilable?
10278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10280 cat >conftest.$ac_ext <<_ACEOF
10281 /* confdefs.h. */
10282 _ACEOF
10283 cat confdefs.h >>conftest.$ac_ext
10284 cat >>conftest.$ac_ext <<_ACEOF
10285 /* end confdefs.h. */
10286 $ac_includes_default
10287 #include <$ac_header>
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10291 (eval $ac_compile) 2>conftest.er1
10292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag"
10299 || test ! -s conftest.err'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10302 ac_status=$?
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 ac_header_compiler=yes
10312 else
10313 echo "$as_me: failed program was:" >&5
10314 sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 ac_header_compiler=no
10317 fi
10318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10319 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10320 echo "${ECHO_T}$ac_header_compiler" >&6
10321
10322 # Is the header present?
10323 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10325 cat >conftest.$ac_ext <<_ACEOF
10326 /* confdefs.h. */
10327 _ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 #include <$ac_header>
10332 _ACEOF
10333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } >/dev/null; then
10341 if test -s conftest.err; then
10342 ac_cpp_err=$ac_c_preproc_warn_flag
10343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10344 else
10345 ac_cpp_err=
10346 fi
10347 else
10348 ac_cpp_err=yes
10349 fi
10350 if test -z "$ac_cpp_err"; then
10351 ac_header_preproc=yes
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356 ac_header_preproc=no
10357 fi
10358 rm -f conftest.err conftest.$ac_ext
10359 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10360 echo "${ECHO_T}$ac_header_preproc" >&6
10361
10362 # So? What about this header?
10363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10364 yes:no: )
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10366 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10369 ac_header_preproc=yes
10370 ;;
10371 no:yes:* )
10372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10377 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10379 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10383 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10384 (
10385 cat <<\_ASBOX
10386 ## ------------------------------------------ ##
10387 ## Report this to the AC_PACKAGE_NAME lists. ##
10388 ## ------------------------------------------ ##
10389 _ASBOX
10390 ) |
10391 sed "s/^/$as_me: WARNING: /" >&2
10392 ;;
10393 esac
10394 echo "$as_me:$LINENO: checking for $ac_header" >&5
10395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 eval "$as_ac_Header=\$ac_header_preproc"
10400 fi
10401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10403
10404 fi
10405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10406 cat >>confdefs.h <<_ACEOF
10407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10408 _ACEOF
10409
10410 fi
10411
10412 done
10413
10414
10415 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
10416 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10417 # think that we don't have <curses.h> if we're using GCC.
10418 case $host_os in
10419 solaris2.[789])
10420 if test "$GCC" = yes; then
10421
10422 cat >>confdefs.h <<\_ACEOF
10423 #define _MSE_INT_H 1
10424 _ACEOF
10425
10426 fi ;;
10427 esac
10428
10429
10430
10431
10432 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
10433 do
10434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10436 echo "$as_me:$LINENO: checking for $ac_header" >&5
10437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 fi
10441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10443 else
10444 # Is the header compilable?
10445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10447 cat >conftest.$ac_ext <<_ACEOF
10448 /* confdefs.h. */
10449 _ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10453 $ac_includes_default
10454 #include <$ac_header>
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10458 (eval $ac_compile) 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try='test -z "$ac_c_werror_flag"
10466 || test ! -s conftest.err'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10475 ac_status=$?
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 ac_header_compiler=yes
10479 else
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_header_compiler=no
10484 fi
10485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10486 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10487 echo "${ECHO_T}$ac_header_compiler" >&6
10488
10489 # Is the header present?
10490 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10492 cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h. */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 #include <$ac_header>
10499 _ACEOF
10500 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); } >/dev/null; then
10508 if test -s conftest.err; then
10509 ac_cpp_err=$ac_c_preproc_warn_flag
10510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10511 else
10512 ac_cpp_err=
10513 fi
10514 else
10515 ac_cpp_err=yes
10516 fi
10517 if test -z "$ac_cpp_err"; then
10518 ac_header_preproc=yes
10519 else
10520 echo "$as_me: failed program was:" >&5
10521 sed 's/^/| /' conftest.$ac_ext >&5
10522
10523 ac_header_preproc=no
10524 fi
10525 rm -f conftest.err conftest.$ac_ext
10526 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10527 echo "${ECHO_T}$ac_header_preproc" >&6
10528
10529 # So? What about this header?
10530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10531 yes:no: )
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10533 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10535 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10536 ac_header_preproc=yes
10537 ;;
10538 no:yes:* )
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10540 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10542 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10544 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10546 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10548 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10550 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10551 (
10552 cat <<\_ASBOX
10553 ## ------------------------------------------ ##
10554 ## Report this to the AC_PACKAGE_NAME lists. ##
10555 ## ------------------------------------------ ##
10556 _ASBOX
10557 ) |
10558 sed "s/^/$as_me: WARNING: /" >&2
10559 ;;
10560 esac
10561 echo "$as_me:$LINENO: checking for $ac_header" >&5
10562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 else
10566 eval "$as_ac_Header=\$ac_header_preproc"
10567 fi
10568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10570
10571 fi
10572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10573 cat >>confdefs.h <<_ACEOF
10574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10575 _ACEOF
10576
10577 fi
10578
10579 done
10580
10581
10582 for ac_header in ncurses/term.h
10583 do
10584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10586 echo "$as_me:$LINENO: checking for $ac_header" >&5
10587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 fi
10591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10593 else
10594 # Is the header compilable?
10595 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10596 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10597 cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h. */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 $ac_includes_default
10604 #include <$ac_header>
10605 _ACEOF
10606 rm -f conftest.$ac_objext
10607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10608 (eval $ac_compile) 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag"
10616 || test ! -s conftest.err'
10617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618 (eval $ac_try) 2>&5
10619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; } &&
10622 { ac_try='test -s conftest.$ac_objext'
10623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624 (eval $ac_try) 2>&5
10625 ac_status=$?
10626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627 (exit $ac_status); }; }; then
10628 ac_header_compiler=yes
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ac_header_compiler=no
10634 fi
10635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10637 echo "${ECHO_T}$ac_header_compiler" >&6
10638
10639 # Is the header present?
10640 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648 #include <$ac_header>
10649 _ACEOF
10650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10652 ac_status=$?
10653 grep -v '^ *+' conftest.er1 >conftest.err
10654 rm -f conftest.er1
10655 cat conftest.err >&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); } >/dev/null; then
10658 if test -s conftest.err; then
10659 ac_cpp_err=$ac_c_preproc_warn_flag
10660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10661 else
10662 ac_cpp_err=
10663 fi
10664 else
10665 ac_cpp_err=yes
10666 fi
10667 if test -z "$ac_cpp_err"; then
10668 ac_header_preproc=yes
10669 else
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673 ac_header_preproc=no
10674 fi
10675 rm -f conftest.err conftest.$ac_ext
10676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677 echo "${ECHO_T}$ac_header_preproc" >&6
10678
10679 # So? What about this header?
10680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10681 yes:no: )
10682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10686 ac_header_preproc=yes
10687 ;;
10688 no:yes:* )
10689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10701 (
10702 cat <<\_ASBOX
10703 ## ------------------------------------------ ##
10704 ## Report this to the AC_PACKAGE_NAME lists. ##
10705 ## ------------------------------------------ ##
10706 _ASBOX
10707 ) |
10708 sed "s/^/$as_me: WARNING: /" >&2
10709 ;;
10710 esac
10711 echo "$as_me:$LINENO: checking for $ac_header" >&5
10712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 else
10716 eval "$as_ac_Header=\$ac_header_preproc"
10717 fi
10718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10720
10721 fi
10722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10723 cat >>confdefs.h <<_ACEOF
10724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10725 _ACEOF
10726
10727 fi
10728
10729 done
10730
10731
10732 for ac_header in term.h
10733 do
10734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10735 echo "$as_me:$LINENO: checking for $ac_header" >&5
10736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #if HAVE_CURSES_H
10747 # include <curses.h>
10748 #endif
10749
10750
10751 #include <$ac_header>
10752 _ACEOF
10753 rm -f conftest.$ac_objext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10755 (eval $ac_compile) 2>conftest.er1
10756 ac_status=$?
10757 grep -v '^ *+' conftest.er1 >conftest.err
10758 rm -f conftest.er1
10759 cat conftest.err >&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -z "$ac_c_werror_flag"
10763 || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 eval "$as_ac_Header=yes"
10776 else
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780 eval "$as_ac_Header=no"
10781 fi
10782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783 fi
10784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10787 cat >>confdefs.h <<_ACEOF
10788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10789 _ACEOF
10790
10791 fi
10792
10793 done
10794
10795
10796 # FIXME: kettenis/20030102: In most cases we include these
10797 # unconditionally, so what's the point in checking these?
10798
10799
10800 for ac_header in ctype.h time.h
10801 do
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10804 echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 fi
10809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10811 else
10812 # Is the header compilable?
10813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10815 cat >conftest.$ac_ext <<_ACEOF
10816 /* confdefs.h. */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10821 $ac_includes_default
10822 #include <$ac_header>
10823 _ACEOF
10824 rm -f conftest.$ac_objext
10825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10826 (eval $ac_compile) 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } &&
10833 { ac_try='test -z "$ac_c_werror_flag"
10834 || test ! -s conftest.err'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10837 ac_status=$?
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10843 ac_status=$?
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10846 ac_header_compiler=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_header_compiler=no
10852 fi
10853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10855 echo "${ECHO_T}$ac_header_compiler" >&6
10856
10857 # Is the header present?
10858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10860 cat >conftest.$ac_ext <<_ACEOF
10861 /* confdefs.h. */
10862 _ACEOF
10863 cat confdefs.h >>conftest.$ac_ext
10864 cat >>conftest.$ac_ext <<_ACEOF
10865 /* end confdefs.h. */
10866 #include <$ac_header>
10867 _ACEOF
10868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } >/dev/null; then
10876 if test -s conftest.err; then
10877 ac_cpp_err=$ac_c_preproc_warn_flag
10878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10879 else
10880 ac_cpp_err=
10881 fi
10882 else
10883 ac_cpp_err=yes
10884 fi
10885 if test -z "$ac_cpp_err"; then
10886 ac_header_preproc=yes
10887 else
10888 echo "$as_me: failed program was:" >&5
10889 sed 's/^/| /' conftest.$ac_ext >&5
10890
10891 ac_header_preproc=no
10892 fi
10893 rm -f conftest.err conftest.$ac_ext
10894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10895 echo "${ECHO_T}$ac_header_preproc" >&6
10896
10897 # So? What about this header?
10898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10899 yes:no: )
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10904 ac_header_preproc=yes
10905 ;;
10906 no:yes:* )
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10919 (
10920 cat <<\_ASBOX
10921 ## ------------------------------------------ ##
10922 ## Report this to the AC_PACKAGE_NAME lists. ##
10923 ## ------------------------------------------ ##
10924 _ASBOX
10925 ) |
10926 sed "s/^/$as_me: WARNING: /" >&2
10927 ;;
10928 esac
10929 echo "$as_me:$LINENO: checking for $ac_header" >&5
10930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 eval "$as_ac_Header=\$ac_header_preproc"
10935 fi
10936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10938
10939 fi
10940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10941 cat >>confdefs.h <<_ACEOF
10942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10943 _ACEOF
10944
10945 fi
10946
10947 done
10948
10949
10950 # Create a header we can use portably to get the standard integer types.
10951
10952
10953 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
10954
10955 acx_cv_header_stdint=stddef.h
10956 acx_cv_header_stdint_kind="(already complete)"
10957 for i in stdint.h $inttype_headers; do
10958 unset ac_cv_type_uintptr_t
10959 unset ac_cv_type_uintmax_t
10960 unset ac_cv_type_int_least32_t
10961 unset ac_cv_type_int_fast32_t
10962 unset ac_cv_type_uint64_t
10963 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
10964 echo "$as_me:$LINENO: checking for uintmax_t" >&5
10965 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
10966 if test "${ac_cv_type_uintmax_t+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969 cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h. */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <sys/types.h>
10976 #include <$i>
10977
10978 int
10979 main ()
10980 {
10981 if ((uintmax_t *) 0)
10982 return 0;
10983 if (sizeof (uintmax_t))
10984 return 0;
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10991 (eval $ac_compile) 2>conftest.er1
10992 ac_status=$?
10993 grep -v '^ *+' conftest.er1 >conftest.err
10994 rm -f conftest.er1
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag"
10999 || test ! -s conftest.err'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; } &&
11005 { ac_try='test -s conftest.$ac_objext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_type_uintmax_t=yes
11012 else
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11015
11016 ac_cv_type_uintmax_t=no
11017 fi
11018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11019 fi
11020 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11021 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
11022 if test $ac_cv_type_uintmax_t = yes; then
11023 acx_cv_header_stdint=$i
11024 else
11025 continue
11026 fi
11027
11028 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11029 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11030 if test "${ac_cv_type_uintptr_t+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 else
11033 cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <sys/types.h>
11040 #include <$i>
11041
11042 int
11043 main ()
11044 {
11045 if ((uintptr_t *) 0)
11046 return 0;
11047 if (sizeof (uintptr_t))
11048 return 0;
11049 ;
11050 return 0;
11051 }
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>conftest.er1
11056 ac_status=$?
11057 grep -v '^ *+' conftest.er1 >conftest.err
11058 rm -f conftest.er1
11059 cat conftest.err >&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); } &&
11062 { ac_try='test -z "$ac_c_werror_flag"
11063 || test ! -s conftest.err'
11064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065 (eval $ac_try) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }; } &&
11069 { ac_try='test -s conftest.$ac_objext'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; }; then
11075 ac_cv_type_uintptr_t=yes
11076 else
11077 echo "$as_me: failed program was:" >&5
11078 sed 's/^/| /' conftest.$ac_ext >&5
11079
11080 ac_cv_type_uintptr_t=no
11081 fi
11082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11083 fi
11084 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11085 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11086 if test $ac_cv_type_uintptr_t = yes; then
11087 :
11088 else
11089 acx_cv_header_stdint_kind="(mostly complete)"
11090 fi
11091
11092 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11093 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
11094 if test "${ac_cv_type_int_least32_t+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h. */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h. */
11103 #include <sys/types.h>
11104 #include <$i>
11105
11106 int
11107 main ()
11108 {
11109 if ((int_least32_t *) 0)
11110 return 0;
11111 if (sizeof (int_least32_t))
11112 return 0;
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 rm -f conftest.$ac_objext
11118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11119 (eval $ac_compile) 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_c_werror_flag"
11127 || test ! -s conftest.err'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11130 ac_status=$?
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; } &&
11133 { ac_try='test -s conftest.$ac_objext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11136 ac_status=$?
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_type_int_least32_t=yes
11140 else
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 ac_cv_type_int_least32_t=no
11145 fi
11146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11147 fi
11148 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11149 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
11150 if test $ac_cv_type_int_least32_t = yes; then
11151 :
11152 else
11153 acx_cv_header_stdint_kind="(mostly complete)"
11154 fi
11155
11156 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11157 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
11158 if test "${ac_cv_type_int_fast32_t+set}" = set; then
11159 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161 cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h. */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 #include <sys/types.h>
11168 #include <$i>
11169
11170 int
11171 main ()
11172 {
11173 if ((int_fast32_t *) 0)
11174 return 0;
11175 if (sizeof (int_fast32_t))
11176 return 0;
11177 ;
11178 return 0;
11179 }
11180 _ACEOF
11181 rm -f conftest.$ac_objext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11183 (eval $ac_compile) 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -z "$ac_c_werror_flag"
11191 || test ! -s conftest.err'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 ac_cv_type_int_fast32_t=yes
11204 else
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11207
11208 ac_cv_type_int_fast32_t=no
11209 fi
11210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11211 fi
11212 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11213 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
11214 if test $ac_cv_type_int_fast32_t = yes; then
11215 :
11216 else
11217 acx_cv_header_stdint_kind="(mostly complete)"
11218 fi
11219
11220 echo "$as_me:$LINENO: checking for uint64_t" >&5
11221 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11222 if test "${ac_cv_type_uint64_t+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 else
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 #include <sys/types.h>
11232 #include <$i>
11233
11234 int
11235 main ()
11236 {
11237 if ((uint64_t *) 0)
11238 return 0;
11239 if (sizeof (uint64_t))
11240 return 0;
11241 ;
11242 return 0;
11243 }
11244 _ACEOF
11245 rm -f conftest.$ac_objext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247 (eval $ac_compile) 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -z "$ac_c_werror_flag"
11255 || test ! -s conftest.err'
11256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11257 (eval $ac_try) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); }; } &&
11261 { ac_try='test -s conftest.$ac_objext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 ac_cv_type_uint64_t=yes
11268 else
11269 echo "$as_me: failed program was:" >&5
11270 sed 's/^/| /' conftest.$ac_ext >&5
11271
11272 ac_cv_type_uint64_t=no
11273 fi
11274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11275 fi
11276 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11277 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11278 if test $ac_cv_type_uint64_t = yes; then
11279 :
11280 else
11281 acx_cv_header_stdint_kind="(lacks uint64_t)"
11282 fi
11283
11284 break
11285 done
11286 if test "$acx_cv_header_stdint" = stddef.h; then
11287 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11288 for i in stdint.h $inttype_headers; do
11289 unset ac_cv_type_uintptr_t
11290 unset ac_cv_type_uint32_t
11291 unset ac_cv_type_uint64_t
11292 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
11293 echo "$as_me:$LINENO: checking for uint32_t" >&5
11294 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
11295 if test "${ac_cv_type_uint32_t+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h. */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 #include <sys/types.h>
11305 #include <$i>
11306
11307 int
11308 main ()
11309 {
11310 if ((uint32_t *) 0)
11311 return 0;
11312 if (sizeof (uint32_t))
11313 return 0;
11314 ;
11315 return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11320 (eval $ac_compile) 2>conftest.er1
11321 ac_status=$?
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_type_uint32_t=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 ac_cv_type_uint32_t=no
11346 fi
11347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11348 fi
11349 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11350 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
11351 if test $ac_cv_type_uint32_t = yes; then
11352 acx_cv_header_stdint=$i
11353 else
11354 continue
11355 fi
11356
11357 echo "$as_me:$LINENO: checking for uint64_t" >&5
11358 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
11359 if test "${ac_cv_type_uint64_t+set}" = set; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 else
11362 cat >conftest.$ac_ext <<_ACEOF
11363 /* confdefs.h. */
11364 _ACEOF
11365 cat confdefs.h >>conftest.$ac_ext
11366 cat >>conftest.$ac_ext <<_ACEOF
11367 /* end confdefs.h. */
11368 #include <sys/types.h>
11369 #include <$i>
11370
11371 int
11372 main ()
11373 {
11374 if ((uint64_t *) 0)
11375 return 0;
11376 if (sizeof (uint64_t))
11377 return 0;
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 rm -f conftest.$ac_objext
11383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
11391 { ac_try='test -z "$ac_c_werror_flag"
11392 || test ! -s conftest.err'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11395 ac_status=$?
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; } &&
11398 { ac_try='test -s conftest.$ac_objext'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_cv_type_uint64_t=yes
11405 else
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 ac_cv_type_uint64_t=no
11410 fi
11411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11412 fi
11413 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11414 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
11415
11416 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11417 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11418 if test "${ac_cv_type_uintptr_t+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h. */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h. */
11427 #include <sys/types.h>
11428 #include <$i>
11429
11430 int
11431 main ()
11432 {
11433 if ((uintptr_t *) 0)
11434 return 0;
11435 if (sizeof (uintptr_t))
11436 return 0;
11437 ;
11438 return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11443 (eval $ac_compile) 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } &&
11450 { ac_try='test -z "$ac_c_werror_flag"
11451 || test ! -s conftest.err'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; } &&
11457 { ac_try='test -s conftest.$ac_objext'
11458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11459 (eval $ac_try) 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; }; then
11463 ac_cv_type_uintptr_t=yes
11464 else
11465 echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 ac_cv_type_uintptr_t=no
11469 fi
11470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471 fi
11472 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11473 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
11474
11475 break
11476 done
11477 fi
11478 if test "$acx_cv_header_stdint" = stddef.h; then
11479 acx_cv_header_stdint_kind="(u_intXX_t style)"
11480 for i in sys/types.h $inttype_headers; do
11481 unset ac_cv_type_u_int32_t
11482 unset ac_cv_type_u_int64_t
11483 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
11484 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11485 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11486 if test "${ac_cv_type_u_int32_t+set}" = set; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <sys/types.h>
11496 #include <$i>
11497
11498 int
11499 main ()
11500 {
11501 if ((u_int32_t *) 0)
11502 return 0;
11503 if (sizeof (u_int32_t))
11504 return 0;
11505 ;
11506 return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_c_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 ac_cv_type_u_int32_t=yes
11532 else
11533 echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_cv_type_u_int32_t=no
11537 fi
11538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11539 fi
11540 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11541 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11542 if test $ac_cv_type_u_int32_t = yes; then
11543 acx_cv_header_stdint=$i
11544 else
11545 continue
11546 fi
11547
11548 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11549 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
11550 if test "${ac_cv_type_u_int64_t+set}" = set; then
11551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552 else
11553 cat >conftest.$ac_ext <<_ACEOF
11554 /* confdefs.h. */
11555 _ACEOF
11556 cat confdefs.h >>conftest.$ac_ext
11557 cat >>conftest.$ac_ext <<_ACEOF
11558 /* end confdefs.h. */
11559 #include <sys/types.h>
11560 #include <$i>
11561
11562 int
11563 main ()
11564 {
11565 if ((u_int64_t *) 0)
11566 return 0;
11567 if (sizeof (u_int64_t))
11568 return 0;
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext
11574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11575 (eval $ac_compile) 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } &&
11582 { ac_try='test -z "$ac_c_werror_flag"
11583 || test ! -s conftest.err'
11584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585 (eval $ac_try) 2>&5
11586 ac_status=$?
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); }; } &&
11589 { ac_try='test -s conftest.$ac_objext'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; }; then
11595 ac_cv_type_u_int64_t=yes
11596 else
11597 echo "$as_me: failed program was:" >&5
11598 sed 's/^/| /' conftest.$ac_ext >&5
11599
11600 ac_cv_type_u_int64_t=no
11601 fi
11602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11603 fi
11604 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
11605 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
11606
11607 break
11608 done
11609 fi
11610 if test "$acx_cv_header_stdint" = stddef.h; then
11611 acx_cv_header_stdint_kind="(using manual detection)"
11612 fi
11613
11614 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11615 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11616 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11617 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11618 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11619
11620 # ----------------- Summarize what we found so far
11621
11622 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
11623 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
11624
11625 case `$as_basename gdb_stdint.h ||
11626 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
11627 Xgdb_stdint.h : 'X\(//\)$' \| \
11628 Xgdb_stdint.h : 'X\(/\)$' \| \
11629 . : '\(.\)' 2>/dev/null ||
11630 echo X/gdb_stdint.h |
11631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11632 /^X\/\(\/\/\)$/{ s//\1/; q; }
11633 /^X\/\(\/\).*/{ s//\1/; q; }
11634 s/.*/./; q'` in
11635 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11636 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11637 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
11638 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11639 *) ;;
11640 esac
11641
11642 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11643 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
11644
11645 # ----------------- done included file, check C basic types --------
11646
11647 # Lacking an uintptr_t? Test size of void *
11648 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11649 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
11650 echo $ECHO_N "checking for void *... $ECHO_C" >&6
11651 if test "${ac_cv_type_void_p+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 $ac_includes_default
11661 int
11662 main ()
11663 {
11664 if ((void * *) 0)
11665 return 0;
11666 if (sizeof (void *))
11667 return 0;
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 rm -f conftest.$ac_objext
11673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11674 (eval $ac_compile) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -z "$ac_c_werror_flag"
11682 || test ! -s conftest.err'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; } &&
11688 { ac_try='test -s conftest.$ac_objext'
11689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11690 (eval $ac_try) 2>&5
11691 ac_status=$?
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); }; }; then
11694 ac_cv_type_void_p=yes
11695 else
11696 echo "$as_me: failed program was:" >&5
11697 sed 's/^/| /' conftest.$ac_ext >&5
11698
11699 ac_cv_type_void_p=no
11700 fi
11701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11702 fi
11703 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
11704 echo "${ECHO_T}$ac_cv_type_void_p" >&6
11705
11706 echo "$as_me:$LINENO: checking size of void *" >&5
11707 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
11708 if test "${ac_cv_sizeof_void_p+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11710 else
11711 if test "$ac_cv_type_void_p" = yes; then
11712 # The cast to unsigned long works around a bug in the HP C Compiler
11713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11715 # This bug is HP SR number 8606223364.
11716 if test "$cross_compiling" = yes; then
11717 # Depending upon the size, compute the lo and hi bounds.
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_includes_default
11725 int
11726 main ()
11727 {
11728 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
11729 test_array [0] = 0
11730
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11737 (eval $ac_compile) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest.$ac_objext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_lo=0 ac_mid=0
11758 while :; do
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11766 int
11767 main ()
11768 {
11769 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11770 test_array [0] = 0
11771
11772 ;
11773 return 0;
11774 }
11775 _ACEOF
11776 rm -f conftest.$ac_objext
11777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11778 (eval $ac_compile) 2>conftest.er1
11779 ac_status=$?
11780 grep -v '^ *+' conftest.er1 >conftest.err
11781 rm -f conftest.er1
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -z "$ac_c_werror_flag"
11786 || test ! -s conftest.err'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 ac_hi=$ac_mid; break
11799 else
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803 ac_lo=`expr $ac_mid + 1`
11804 if test $ac_lo -le $ac_mid; then
11805 ac_lo= ac_hi=
11806 break
11807 fi
11808 ac_mid=`expr 2 '*' $ac_mid + 1`
11809 fi
11810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11811 done
11812 else
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11823 int
11824 main ()
11825 {
11826 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
11827 test_array [0] = 0
11828
11829 ;
11830 return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11852 ac_status=$?
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_hi=-1 ac_mid=-1
11856 while :; do
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 $ac_includes_default
11864 int
11865 main ()
11866 {
11867 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
11868 test_array [0] = 0
11869
11870 ;
11871 return 0;
11872 }
11873 _ACEOF
11874 rm -f conftest.$ac_objext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11876 (eval $ac_compile) 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } &&
11883 { ac_try='test -z "$ac_c_werror_flag"
11884 || test ! -s conftest.err'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; } &&
11890 { ac_try='test -s conftest.$ac_objext'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; }; then
11896 ac_lo=$ac_mid; break
11897 else
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 ac_hi=`expr '(' $ac_mid ')' - 1`
11902 if test $ac_mid -le $ac_hi; then
11903 ac_lo= ac_hi=
11904 break
11905 fi
11906 ac_mid=`expr 2 '*' $ac_mid`
11907 fi
11908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11909 done
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_lo= ac_hi=
11915 fi
11916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917 fi
11918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11919 # Binary search between lo and hi bounds.
11920 while test "x$ac_lo" != "x$ac_hi"; do
11921 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11922 cat >conftest.$ac_ext <<_ACEOF
11923 /* confdefs.h. */
11924 _ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11928 $ac_includes_default
11929 int
11930 main ()
11931 {
11932 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
11933 test_array [0] = 0
11934
11935 ;
11936 return 0;
11937 }
11938 _ACEOF
11939 rm -f conftest.$ac_objext
11940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11941 (eval $ac_compile) 2>conftest.er1
11942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
11948 { ac_try='test -z "$ac_c_werror_flag"
11949 || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_hi=$ac_mid
11962 else
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11965
11966 ac_lo=`expr '(' $ac_mid ')' + 1`
11967 fi
11968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11969 done
11970 case $ac_lo in
11971 ?*) ac_cv_sizeof_void_p=$ac_lo;;
11972 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
11973 See \`config.log' for more details." >&5
11974 echo "$as_me: error: cannot compute sizeof (void *), 77
11975 See \`config.log' for more details." >&2;}
11976 { (exit 1); exit 1; }; } ;;
11977 esac
11978 else
11979 if test "$cross_compiling" = yes; then
11980 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11981 See \`config.log' for more details." >&5
11982 echo "$as_me: error: cannot run test program while cross compiling
11983 See \`config.log' for more details." >&2;}
11984 { (exit 1); exit 1; }; }
11985 else
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h. */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 $ac_includes_default
11993 long longval () { return (long) (sizeof (void *)); }
11994 unsigned long ulongval () { return (long) (sizeof (void *)); }
11995 #include <stdio.h>
11996 #include <stdlib.h>
11997 int
11998 main ()
11999 {
12000
12001 FILE *f = fopen ("conftest.val", "w");
12002 if (! f)
12003 exit (1);
12004 if (((long) (sizeof (void *))) < 0)
12005 {
12006 long i = longval ();
12007 if (i != ((long) (sizeof (void *))))
12008 exit (1);
12009 fprintf (f, "%ld\n", i);
12010 }
12011 else
12012 {
12013 unsigned long i = ulongval ();
12014 if (i != ((long) (sizeof (void *))))
12015 exit (1);
12016 fprintf (f, "%lu\n", i);
12017 }
12018 exit (ferror (f) || fclose (f) != 0);
12019
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>&5
12027 ac_status=$?
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_sizeof_void_p=`cat conftest.val`
12036 else
12037 echo "$as_me: program exited with status $ac_status" >&5
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041 ( exit $ac_status )
12042 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
12043 See \`config.log' for more details." >&5
12044 echo "$as_me: error: cannot compute sizeof (void *), 77
12045 See \`config.log' for more details." >&2;}
12046 { (exit 1); exit 1; }; }
12047 fi
12048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12049 fi
12050 fi
12051 rm -f conftest.val
12052 else
12053 ac_cv_sizeof_void_p=0
12054 fi
12055 fi
12056 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12057 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12058 cat >>confdefs.h <<_ACEOF
12059 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12060 _ACEOF
12061
12062 ;;
12063 esac
12064
12065 # Lacking an uint64_t? Test size of long
12066 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12067 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12068 echo $ECHO_N "checking for long... $ECHO_C" >&6
12069 if test "${ac_cv_type_long+set}" = set; then
12070 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h. */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 $ac_includes_default
12079 int
12080 main ()
12081 {
12082 if ((long *) 0)
12083 return 0;
12084 if (sizeof (long))
12085 return 0;
12086 ;
12087 return 0;
12088 }
12089 _ACEOF
12090 rm -f conftest.$ac_objext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>conftest.er1
12093 ac_status=$?
12094 grep -v '^ *+' conftest.er1 >conftest.err
12095 rm -f conftest.er1
12096 cat conftest.err >&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); } &&
12099 { ac_try='test -z "$ac_c_werror_flag"
12100 || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest.$ac_objext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_type_long=yes
12113 else
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12116
12117 ac_cv_type_long=no
12118 fi
12119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12120 fi
12121 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12122 echo "${ECHO_T}$ac_cv_type_long" >&6
12123
12124 echo "$as_me:$LINENO: checking size of long" >&5
12125 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12126 if test "${ac_cv_sizeof_long+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 if test "$ac_cv_type_long" = yes; then
12130 # The cast to unsigned long works around a bug in the HP C Compiler
12131 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12132 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12133 # This bug is HP SR number 8606223364.
12134 if test "$cross_compiling" = yes; then
12135 # Depending upon the size, compute the lo and hi bounds.
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h. */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h. */
12142 $ac_includes_default
12143 int
12144 main ()
12145 {
12146 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12147 test_array [0] = 0
12148
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 rm -f conftest.$ac_objext
12154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12155 (eval $ac_compile) 2>conftest.er1
12156 ac_status=$?
12157 grep -v '^ *+' conftest.er1 >conftest.err
12158 rm -f conftest.er1
12159 cat conftest.err >&5
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } &&
12162 { ac_try='test -z "$ac_c_werror_flag"
12163 || test ! -s conftest.err'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_lo=0 ac_mid=0
12176 while :; do
12177 cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h. */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12184 int
12185 main ()
12186 {
12187 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12188 test_array [0] = 0
12189
12190 ;
12191 return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag"
12204 || test ! -s conftest.err'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12207 ac_status=$?
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; } &&
12210 { ac_try='test -s conftest.$ac_objext'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12213 ac_status=$?
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; }; then
12216 ac_hi=$ac_mid; break
12217 else
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221 ac_lo=`expr $ac_mid + 1`
12222 if test $ac_lo -le $ac_mid; then
12223 ac_lo= ac_hi=
12224 break
12225 fi
12226 ac_mid=`expr 2 '*' $ac_mid + 1`
12227 fi
12228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 done
12230 else
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 int
12242 main ()
12243 {
12244 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12245 test_array [0] = 0
12246
12247 ;
12248 return 0;
12249 }
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_hi=-1 ac_mid=-1
12274 while :; do
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 $ac_includes_default
12282 int
12283 main ()
12284 {
12285 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12286 test_array [0] = 0
12287
12288 ;
12289 return 0;
12290 }
12291 _ACEOF
12292 rm -f conftest.$ac_objext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12294 (eval $ac_compile) 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } &&
12301 { ac_try='test -z "$ac_c_werror_flag"
12302 || test ! -s conftest.err'
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12311 ac_status=$?
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_lo=$ac_mid; break
12315 else
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12318
12319 ac_hi=`expr '(' $ac_mid ')' - 1`
12320 if test $ac_mid -le $ac_hi; then
12321 ac_lo= ac_hi=
12322 break
12323 fi
12324 ac_mid=`expr 2 '*' $ac_mid`
12325 fi
12326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12327 done
12328 else
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 ac_lo= ac_hi=
12333 fi
12334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12335 fi
12336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12337 # Binary search between lo and hi bounds.
12338 while test "x$ac_lo" != "x$ac_hi"; do
12339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 $ac_includes_default
12347 int
12348 main ()
12349 {
12350 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12351 test_array [0] = 0
12352
12353 ;
12354 return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12360 ac_status=$?
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12370 ac_status=$?
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest.$ac_objext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_hi=$ac_mid
12380 else
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12383
12384 ac_lo=`expr '(' $ac_mid ')' + 1`
12385 fi
12386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12387 done
12388 case $ac_lo in
12389 ?*) ac_cv_sizeof_long=$ac_lo;;
12390 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12391 See \`config.log' for more details." >&5
12392 echo "$as_me: error: cannot compute sizeof (long), 77
12393 See \`config.log' for more details." >&2;}
12394 { (exit 1); exit 1; }; } ;;
12395 esac
12396 else
12397 if test "$cross_compiling" = yes; then
12398 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12399 See \`config.log' for more details." >&5
12400 echo "$as_me: error: cannot run test program while cross compiling
12401 See \`config.log' for more details." >&2;}
12402 { (exit 1); exit 1; }; }
12403 else
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 $ac_includes_default
12411 long longval () { return (long) (sizeof (long)); }
12412 unsigned long ulongval () { return (long) (sizeof (long)); }
12413 #include <stdio.h>
12414 #include <stdlib.h>
12415 int
12416 main ()
12417 {
12418
12419 FILE *f = fopen ("conftest.val", "w");
12420 if (! f)
12421 exit (1);
12422 if (((long) (sizeof (long))) < 0)
12423 {
12424 long i = longval ();
12425 if (i != ((long) (sizeof (long))))
12426 exit (1);
12427 fprintf (f, "%ld\n", i);
12428 }
12429 else
12430 {
12431 unsigned long i = ulongval ();
12432 if (i != ((long) (sizeof (long))))
12433 exit (1);
12434 fprintf (f, "%lu\n", i);
12435 }
12436 exit (ferror (f) || fclose (f) != 0);
12437
12438 ;
12439 return 0;
12440 }
12441 _ACEOF
12442 rm -f conftest$ac_exeext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 ac_cv_sizeof_long=`cat conftest.val`
12454 else
12455 echo "$as_me: program exited with status $ac_status" >&5
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12458
12459 ( exit $ac_status )
12460 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12461 See \`config.log' for more details." >&5
12462 echo "$as_me: error: cannot compute sizeof (long), 77
12463 See \`config.log' for more details." >&2;}
12464 { (exit 1); exit 1; }; }
12465 fi
12466 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12467 fi
12468 fi
12469 rm -f conftest.val
12470 else
12471 ac_cv_sizeof_long=0
12472 fi
12473 fi
12474 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12475 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12476 cat >>confdefs.h <<_ACEOF
12477 #define SIZEOF_LONG $ac_cv_sizeof_long
12478 _ACEOF
12479
12480 ;;
12481 esac
12482
12483 if test $acx_cv_header_stdint = stddef.h; then
12484 # Lacking a good header? Test size of everything and deduce all types.
12485 echo "$as_me:$LINENO: checking for int" >&5
12486 echo $ECHO_N "checking for int... $ECHO_C" >&6
12487 if test "${ac_cv_type_int+set}" = set; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490 cat >conftest.$ac_ext <<_ACEOF
12491 /* confdefs.h. */
12492 _ACEOF
12493 cat confdefs.h >>conftest.$ac_ext
12494 cat >>conftest.$ac_ext <<_ACEOF
12495 /* end confdefs.h. */
12496 $ac_includes_default
12497 int
12498 main ()
12499 {
12500 if ((int *) 0)
12501 return 0;
12502 if (sizeof (int))
12503 return 0;
12504 ;
12505 return 0;
12506 }
12507 _ACEOF
12508 rm -f conftest.$ac_objext
12509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -z "$ac_c_werror_flag"
12518 || test ! -s conftest.err'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; } &&
12524 { ac_try='test -s conftest.$ac_objext'
12525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526 (eval $ac_try) 2>&5
12527 ac_status=$?
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; }; then
12530 ac_cv_type_int=yes
12531 else
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12534
12535 ac_cv_type_int=no
12536 fi
12537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538 fi
12539 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12540 echo "${ECHO_T}$ac_cv_type_int" >&6
12541
12542 echo "$as_me:$LINENO: checking size of int" >&5
12543 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12544 if test "${ac_cv_sizeof_int+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 else
12547 if test "$ac_cv_type_int" = yes; then
12548 # The cast to unsigned long works around a bug in the HP C Compiler
12549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12551 # This bug is HP SR number 8606223364.
12552 if test "$cross_compiling" = yes; then
12553 # Depending upon the size, compute the lo and hi bounds.
12554 cat >conftest.$ac_ext <<_ACEOF
12555 /* confdefs.h. */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 $ac_includes_default
12561 int
12562 main ()
12563 {
12564 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12565 test_array [0] = 0
12566
12567 ;
12568 return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext
12572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12573 (eval $ac_compile) 2>conftest.er1
12574 ac_status=$?
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
12580 { ac_try='test -z "$ac_c_werror_flag"
12581 || test ! -s conftest.err'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_lo=0 ac_mid=0
12594 while :; do
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12602 int
12603 main ()
12604 {
12605 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12606 test_array [0] = 0
12607
12608 ;
12609 return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext
12613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12614 (eval $ac_compile) 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
12621 { ac_try='test -z "$ac_c_werror_flag"
12622 || test ! -s conftest.err'
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; } &&
12628 { ac_try='test -s conftest.$ac_objext'
12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); }; }; then
12634 ac_hi=$ac_mid; break
12635 else
12636 echo "$as_me: failed program was:" >&5
12637 sed 's/^/| /' conftest.$ac_ext >&5
12638
12639 ac_lo=`expr $ac_mid + 1`
12640 if test $ac_lo -le $ac_mid; then
12641 ac_lo= ac_hi=
12642 break
12643 fi
12644 ac_mid=`expr 2 '*' $ac_mid + 1`
12645 fi
12646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12647 done
12648 else
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12651
12652 cat >conftest.$ac_ext <<_ACEOF
12653 /* confdefs.h. */
12654 _ACEOF
12655 cat confdefs.h >>conftest.$ac_ext
12656 cat >>conftest.$ac_ext <<_ACEOF
12657 /* end confdefs.h. */
12658 $ac_includes_default
12659 int
12660 main ()
12661 {
12662 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12663 test_array [0] = 0
12664
12665 ;
12666 return 0;
12667 }
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12672 ac_status=$?
12673 grep -v '^ *+' conftest.er1 >conftest.err
12674 rm -f conftest.er1
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 ac_hi=-1 ac_mid=-1
12692 while :; do
12693 cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h. */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 $ac_includes_default
12700 int
12701 main ()
12702 {
12703 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12704 test_array [0] = 0
12705
12706 ;
12707 return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -z "$ac_c_werror_flag"
12720 || test ! -s conftest.err'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12723 ac_status=$?
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; } &&
12726 { ac_try='test -s conftest.$ac_objext'
12727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12728 (eval $ac_try) 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_lo=$ac_mid; break
12733 else
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737 ac_hi=`expr '(' $ac_mid ')' - 1`
12738 if test $ac_mid -le $ac_hi; then
12739 ac_lo= ac_hi=
12740 break
12741 fi
12742 ac_mid=`expr 2 '*' $ac_mid`
12743 fi
12744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12745 done
12746 else
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12749
12750 ac_lo= ac_hi=
12751 fi
12752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12755 # Binary search between lo and hi bounds.
12756 while test "x$ac_lo" != "x$ac_hi"; do
12757 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12764 $ac_includes_default
12765 int
12766 main ()
12767 {
12768 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12769 test_array [0] = 0
12770
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest.$ac_objext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 ac_hi=$ac_mid
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 ac_lo=`expr '(' $ac_mid ')' + 1`
12803 fi
12804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12805 done
12806 case $ac_lo in
12807 ?*) ac_cv_sizeof_int=$ac_lo;;
12808 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12809 See \`config.log' for more details." >&5
12810 echo "$as_me: error: cannot compute sizeof (int), 77
12811 See \`config.log' for more details." >&2;}
12812 { (exit 1); exit 1; }; } ;;
12813 esac
12814 else
12815 if test "$cross_compiling" = yes; then
12816 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12817 See \`config.log' for more details." >&5
12818 echo "$as_me: error: cannot run test program while cross compiling
12819 See \`config.log' for more details." >&2;}
12820 { (exit 1); exit 1; }; }
12821 else
12822 cat >conftest.$ac_ext <<_ACEOF
12823 /* confdefs.h. */
12824 _ACEOF
12825 cat confdefs.h >>conftest.$ac_ext
12826 cat >>conftest.$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 $ac_includes_default
12829 long longval () { return (long) (sizeof (int)); }
12830 unsigned long ulongval () { return (long) (sizeof (int)); }
12831 #include <stdio.h>
12832 #include <stdlib.h>
12833 int
12834 main ()
12835 {
12836
12837 FILE *f = fopen ("conftest.val", "w");
12838 if (! f)
12839 exit (1);
12840 if (((long) (sizeof (int))) < 0)
12841 {
12842 long i = longval ();
12843 if (i != ((long) (sizeof (int))))
12844 exit (1);
12845 fprintf (f, "%ld\n", i);
12846 }
12847 else
12848 {
12849 unsigned long i = ulongval ();
12850 if (i != ((long) (sizeof (int))))
12851 exit (1);
12852 fprintf (f, "%lu\n", i);
12853 }
12854 exit (ferror (f) || fclose (f) != 0);
12855
12856 ;
12857 return 0;
12858 }
12859 _ACEOF
12860 rm -f conftest$ac_exeext
12861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12862 (eval $ac_link) 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12868 ac_status=$?
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_sizeof_int=`cat conftest.val`
12872 else
12873 echo "$as_me: program exited with status $ac_status" >&5
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12876
12877 ( exit $ac_status )
12878 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12879 See \`config.log' for more details." >&5
12880 echo "$as_me: error: cannot compute sizeof (int), 77
12881 See \`config.log' for more details." >&2;}
12882 { (exit 1); exit 1; }; }
12883 fi
12884 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12885 fi
12886 fi
12887 rm -f conftest.val
12888 else
12889 ac_cv_sizeof_int=0
12890 fi
12891 fi
12892 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12893 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12894 cat >>confdefs.h <<_ACEOF
12895 #define SIZEOF_INT $ac_cv_sizeof_int
12896 _ACEOF
12897
12898
12899 echo "$as_me:$LINENO: checking for short" >&5
12900 echo $ECHO_N "checking for short... $ECHO_C" >&6
12901 if test "${ac_cv_type_short+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 else
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 int
12912 main ()
12913 {
12914 if ((short *) 0)
12915 return 0;
12916 if (sizeof (short))
12917 return 0;
12918 ;
12919 return 0;
12920 }
12921 _ACEOF
12922 rm -f conftest.$ac_objext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12924 (eval $ac_compile) 2>conftest.er1
12925 ac_status=$?
12926 grep -v '^ *+' conftest.er1 >conftest.err
12927 rm -f conftest.er1
12928 cat conftest.err >&5
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930 (exit $ac_status); } &&
12931 { ac_try='test -z "$ac_c_werror_flag"
12932 || test ! -s conftest.err'
12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12935 ac_status=$?
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; } &&
12938 { ac_try='test -s conftest.$ac_objext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_type_short=yes
12945 else
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 ac_cv_type_short=no
12950 fi
12951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12952 fi
12953 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12954 echo "${ECHO_T}$ac_cv_type_short" >&6
12955
12956 echo "$as_me:$LINENO: checking size of short" >&5
12957 echo $ECHO_N "checking size of short... $ECHO_C" >&6
12958 if test "${ac_cv_sizeof_short+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961 if test "$ac_cv_type_short" = yes; then
12962 # The cast to unsigned long works around a bug in the HP C Compiler
12963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12965 # This bug is HP SR number 8606223364.
12966 if test "$cross_compiling" = yes; then
12967 # Depending upon the size, compute the lo and hi bounds.
12968 cat >conftest.$ac_ext <<_ACEOF
12969 /* confdefs.h. */
12970 _ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 $ac_includes_default
12975 int
12976 main ()
12977 {
12978 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
12979 test_array [0] = 0
12980
12981 ;
12982 return 0;
12983 }
12984 _ACEOF
12985 rm -f conftest.$ac_objext
12986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12987 (eval $ac_compile) 2>conftest.er1
12988 ac_status=$?
12989 grep -v '^ *+' conftest.er1 >conftest.err
12990 rm -f conftest.er1
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } &&
12994 { ac_try='test -z "$ac_c_werror_flag"
12995 || test ! -s conftest.err'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12998 ac_status=$?
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; } &&
13001 { ac_try='test -s conftest.$ac_objext'
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; }; then
13007 ac_lo=0 ac_mid=0
13008 while :; do
13009 cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h. */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 $ac_includes_default
13016 int
13017 main ()
13018 {
13019 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13020 test_array [0] = 0
13021
13022 ;
13023 return 0;
13024 }
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_hi=$ac_mid; break
13049 else
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 ac_lo=`expr $ac_mid + 1`
13054 if test $ac_lo -le $ac_mid; then
13055 ac_lo= ac_hi=
13056 break
13057 fi
13058 ac_mid=`expr 2 '*' $ac_mid + 1`
13059 fi
13060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13061 done
13062 else
13063 echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066 cat >conftest.$ac_ext <<_ACEOF
13067 /* confdefs.h. */
13068 _ACEOF
13069 cat confdefs.h >>conftest.$ac_ext
13070 cat >>conftest.$ac_ext <<_ACEOF
13071 /* end confdefs.h. */
13072 $ac_includes_default
13073 int
13074 main ()
13075 {
13076 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
13077 test_array [0] = 0
13078
13079 ;
13080 return 0;
13081 }
13082 _ACEOF
13083 rm -f conftest.$ac_objext
13084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>conftest.er1
13086 ac_status=$?
13087 grep -v '^ *+' conftest.er1 >conftest.err
13088 rm -f conftest.er1
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag"
13093 || test ! -s conftest.err'
13094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13095 (eval $ac_try) 2>&5
13096 ac_status=$?
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest.$ac_objext'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; }; then
13105 ac_hi=-1 ac_mid=-1
13106 while :; do
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h. */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 $ac_includes_default
13114 int
13115 main ()
13116 {
13117 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
13118 test_array [0] = 0
13119
13120 ;
13121 return 0;
13122 }
13123 _ACEOF
13124 rm -f conftest.$ac_objext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13126 (eval $ac_compile) 2>conftest.er1
13127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag"
13134 || test ! -s conftest.err'
13135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13136 (eval $ac_try) 2>&5
13137 ac_status=$?
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; } &&
13140 { ac_try='test -s conftest.$ac_objext'
13141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13142 (eval $ac_try) 2>&5
13143 ac_status=$?
13144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); }; }; then
13146 ac_lo=$ac_mid; break
13147 else
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13150
13151 ac_hi=`expr '(' $ac_mid ')' - 1`
13152 if test $ac_mid -le $ac_hi; then
13153 ac_lo= ac_hi=
13154 break
13155 fi
13156 ac_mid=`expr 2 '*' $ac_mid`
13157 fi
13158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13159 done
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13163
13164 ac_lo= ac_hi=
13165 fi
13166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13167 fi
13168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13169 # Binary search between lo and hi bounds.
13170 while test "x$ac_lo" != "x$ac_hi"; do
13171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h. */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 $ac_includes_default
13179 int
13180 main ()
13181 {
13182 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
13183 test_array [0] = 0
13184
13185 ;
13186 return 0;
13187 }
13188 _ACEOF
13189 rm -f conftest.$ac_objext
13190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13191 (eval $ac_compile) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest.$ac_objext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_hi=$ac_mid
13212 else
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216 ac_lo=`expr '(' $ac_mid ')' + 1`
13217 fi
13218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13219 done
13220 case $ac_lo in
13221 ?*) ac_cv_sizeof_short=$ac_lo;;
13222 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13223 See \`config.log' for more details." >&5
13224 echo "$as_me: error: cannot compute sizeof (short), 77
13225 See \`config.log' for more details." >&2;}
13226 { (exit 1); exit 1; }; } ;;
13227 esac
13228 else
13229 if test "$cross_compiling" = yes; then
13230 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13231 See \`config.log' for more details." >&5
13232 echo "$as_me: error: cannot run test program while cross compiling
13233 See \`config.log' for more details." >&2;}
13234 { (exit 1); exit 1; }; }
13235 else
13236 cat >conftest.$ac_ext <<_ACEOF
13237 /* confdefs.h. */
13238 _ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 $ac_includes_default
13243 long longval () { return (long) (sizeof (short)); }
13244 unsigned long ulongval () { return (long) (sizeof (short)); }
13245 #include <stdio.h>
13246 #include <stdlib.h>
13247 int
13248 main ()
13249 {
13250
13251 FILE *f = fopen ("conftest.val", "w");
13252 if (! f)
13253 exit (1);
13254 if (((long) (sizeof (short))) < 0)
13255 {
13256 long i = longval ();
13257 if (i != ((long) (sizeof (short))))
13258 exit (1);
13259 fprintf (f, "%ld\n", i);
13260 }
13261 else
13262 {
13263 unsigned long i = ulongval ();
13264 if (i != ((long) (sizeof (short))))
13265 exit (1);
13266 fprintf (f, "%lu\n", i);
13267 }
13268 exit (ferror (f) || fclose (f) != 0);
13269
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 rm -f conftest$ac_exeext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13276 (eval $ac_link) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13282 ac_status=$?
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 ac_cv_sizeof_short=`cat conftest.val`
13286 else
13287 echo "$as_me: program exited with status $ac_status" >&5
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ( exit $ac_status )
13292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
13293 See \`config.log' for more details." >&5
13294 echo "$as_me: error: cannot compute sizeof (short), 77
13295 See \`config.log' for more details." >&2;}
13296 { (exit 1); exit 1; }; }
13297 fi
13298 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13299 fi
13300 fi
13301 rm -f conftest.val
13302 else
13303 ac_cv_sizeof_short=0
13304 fi
13305 fi
13306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
13308 cat >>confdefs.h <<_ACEOF
13309 #define SIZEOF_SHORT $ac_cv_sizeof_short
13310 _ACEOF
13311
13312
13313 echo "$as_me:$LINENO: checking for char" >&5
13314 echo $ECHO_N "checking for char... $ECHO_C" >&6
13315 if test "${ac_cv_type_char+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 cat >conftest.$ac_ext <<_ACEOF
13319 /* confdefs.h. */
13320 _ACEOF
13321 cat confdefs.h >>conftest.$ac_ext
13322 cat >>conftest.$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13325 int
13326 main ()
13327 {
13328 if ((char *) 0)
13329 return 0;
13330 if (sizeof (char))
13331 return 0;
13332 ;
13333 return 0;
13334 }
13335 _ACEOF
13336 rm -f conftest.$ac_objext
13337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13338 (eval $ac_compile) 2>conftest.er1
13339 ac_status=$?
13340 grep -v '^ *+' conftest.er1 >conftest.err
13341 rm -f conftest.er1
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -z "$ac_c_werror_flag"
13346 || test ! -s conftest.err'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; } &&
13352 { ac_try='test -s conftest.$ac_objext'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_type_char=yes
13359 else
13360 echo "$as_me: failed program was:" >&5
13361 sed 's/^/| /' conftest.$ac_ext >&5
13362
13363 ac_cv_type_char=no
13364 fi
13365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13366 fi
13367 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13368 echo "${ECHO_T}$ac_cv_type_char" >&6
13369
13370 echo "$as_me:$LINENO: checking size of char" >&5
13371 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13372 if test "${ac_cv_sizeof_char+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 if test "$ac_cv_type_char" = yes; then
13376 # The cast to unsigned long works around a bug in the HP C Compiler
13377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13379 # This bug is HP SR number 8606223364.
13380 if test "$cross_compiling" = yes; then
13381 # Depending upon the size, compute the lo and hi bounds.
13382 cat >conftest.$ac_ext <<_ACEOF
13383 /* confdefs.h. */
13384 _ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13389 int
13390 main ()
13391 {
13392 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13393 test_array [0] = 0
13394
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 rm -f conftest.$ac_objext
13400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13401 (eval $ac_compile) 2>conftest.er1
13402 ac_status=$?
13403 grep -v '^ *+' conftest.er1 >conftest.err
13404 rm -f conftest.er1
13405 cat conftest.err >&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } &&
13408 { ac_try='test -z "$ac_c_werror_flag"
13409 || test ! -s conftest.err'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13412 ac_status=$?
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13421 ac_lo=0 ac_mid=0
13422 while :; do
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429 $ac_includes_default
13430 int
13431 main ()
13432 {
13433 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13434 test_array [0] = 0
13435
13436 ;
13437 return 0;
13438 }
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13442 (eval $ac_compile) 2>conftest.er1
13443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } &&
13449 { ac_try='test -z "$ac_c_werror_flag"
13450 || test ! -s conftest.err'
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_hi=$ac_mid; break
13463 else
13464 echo "$as_me: failed program was:" >&5
13465 sed 's/^/| /' conftest.$ac_ext >&5
13466
13467 ac_lo=`expr $ac_mid + 1`
13468 if test $ac_lo -le $ac_mid; then
13469 ac_lo= ac_hi=
13470 break
13471 fi
13472 ac_mid=`expr 2 '*' $ac_mid + 1`
13473 fi
13474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13475 done
13476 else
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13479
13480 cat >conftest.$ac_ext <<_ACEOF
13481 /* confdefs.h. */
13482 _ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 int
13488 main ()
13489 {
13490 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13491 test_array [0] = 0
13492
13493 ;
13494 return 0;
13495 }
13496 _ACEOF
13497 rm -f conftest.$ac_objext
13498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13499 (eval $ac_compile) 2>conftest.er1
13500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); } &&
13506 { ac_try='test -z "$ac_c_werror_flag"
13507 || test ! -s conftest.err'
13508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13509 (eval $ac_try) 2>&5
13510 ac_status=$?
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); }; } &&
13513 { ac_try='test -s conftest.$ac_objext'
13514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13515 (eval $ac_try) 2>&5
13516 ac_status=$?
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_hi=-1 ac_mid=-1
13520 while :; do
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13528 int
13529 main ()
13530 {
13531 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13532 test_array [0] = 0
13533
13534 ;
13535 return 0;
13536 }
13537 _ACEOF
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13541 ac_status=$?
13542 grep -v '^ *+' conftest.er1 >conftest.err
13543 rm -f conftest.er1
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag"
13548 || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 ac_lo=$ac_mid; break
13561 else
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.$ac_ext >&5
13564
13565 ac_hi=`expr '(' $ac_mid ')' - 1`
13566 if test $ac_mid -le $ac_hi; then
13567 ac_lo= ac_hi=
13568 break
13569 fi
13570 ac_mid=`expr 2 '*' $ac_mid`
13571 fi
13572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13573 done
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 ac_lo= ac_hi=
13579 fi
13580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13581 fi
13582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13583 # Binary search between lo and hi bounds.
13584 while test "x$ac_lo" != "x$ac_hi"; do
13585 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 $ac_includes_default
13593 int
13594 main ()
13595 {
13596 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13597 test_array [0] = 0
13598
13599 ;
13600 return 0;
13601 }
13602 _ACEOF
13603 rm -f conftest.$ac_objext
13604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_hi=$ac_mid
13626 else
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_lo=`expr '(' $ac_mid ')' + 1`
13631 fi
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633 done
13634 case $ac_lo in
13635 ?*) ac_cv_sizeof_char=$ac_lo;;
13636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13637 See \`config.log' for more details." >&5
13638 echo "$as_me: error: cannot compute sizeof (char), 77
13639 See \`config.log' for more details." >&2;}
13640 { (exit 1); exit 1; }; } ;;
13641 esac
13642 else
13643 if test "$cross_compiling" = yes; then
13644 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13645 See \`config.log' for more details." >&5
13646 echo "$as_me: error: cannot run test program while cross compiling
13647 See \`config.log' for more details." >&2;}
13648 { (exit 1); exit 1; }; }
13649 else
13650 cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h. */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13656 $ac_includes_default
13657 long longval () { return (long) (sizeof (char)); }
13658 unsigned long ulongval () { return (long) (sizeof (char)); }
13659 #include <stdio.h>
13660 #include <stdlib.h>
13661 int
13662 main ()
13663 {
13664
13665 FILE *f = fopen ("conftest.val", "w");
13666 if (! f)
13667 exit (1);
13668 if (((long) (sizeof (char))) < 0)
13669 {
13670 long i = longval ();
13671 if (i != ((long) (sizeof (char))))
13672 exit (1);
13673 fprintf (f, "%ld\n", i);
13674 }
13675 else
13676 {
13677 unsigned long i = ulongval ();
13678 if (i != ((long) (sizeof (char))))
13679 exit (1);
13680 fprintf (f, "%lu\n", i);
13681 }
13682 exit (ferror (f) || fclose (f) != 0);
13683
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest$ac_exeext
13689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13690 (eval $ac_link) 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13695 (eval $ac_try) 2>&5
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; }; then
13699 ac_cv_sizeof_char=`cat conftest.val`
13700 else
13701 echo "$as_me: program exited with status $ac_status" >&5
13702 echo "$as_me: failed program was:" >&5
13703 sed 's/^/| /' conftest.$ac_ext >&5
13704
13705 ( exit $ac_status )
13706 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13707 See \`config.log' for more details." >&5
13708 echo "$as_me: error: cannot compute sizeof (char), 77
13709 See \`config.log' for more details." >&2;}
13710 { (exit 1); exit 1; }; }
13711 fi
13712 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 fi
13715 rm -f conftest.val
13716 else
13717 ac_cv_sizeof_char=0
13718 fi
13719 fi
13720 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13721 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13722 cat >>confdefs.h <<_ACEOF
13723 #define SIZEOF_CHAR $ac_cv_sizeof_char
13724 _ACEOF
13725
13726
13727
13728 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
13729 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
13730 case "$ac_cv_sizeof_char" in
13731 1) acx_cv_type_int8_t=char ;;
13732 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
13733 echo "$as_me: error: no 8-bit type" >&2;}
13734 { (exit please report a bug); exit please report a bug; }; }
13735 esac
13736 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
13737 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
13738
13739 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
13740 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
13741 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13742 2:*) acx_cv_type_int16_t=int ;;
13743 *:2) acx_cv_type_int16_t=short ;;
13744 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
13745 echo "$as_me: error: no 16-bit type" >&2;}
13746 { (exit please report a bug); exit please report a bug; }; }
13747 esac
13748 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
13749 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
13750
13751 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
13752 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
13753 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13754 4:*) acx_cv_type_int32_t=int ;;
13755 *:4) acx_cv_type_int32_t=long ;;
13756 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
13757 echo "$as_me: error: no 32-bit type" >&2;}
13758 { (exit please report a bug); exit please report a bug; }; }
13759 esac
13760 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
13761 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
13762 fi
13763
13764 # These tests are here to make the output prettier
13765
13766 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13767 case "$ac_cv_sizeof_long" in
13768 8) acx_cv_type_int64_t=long ;;
13769 esac
13770 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
13771 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
13772 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13773 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
13774 fi
13775
13776 # Now we can use the above types
13777
13778 if test "$ac_cv_type_uintptr_t" != yes; then
13779 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
13780 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
13781 case $ac_cv_sizeof_void_p in
13782 2) acx_cv_type_intptr_t=int16_t ;;
13783 4) acx_cv_type_intptr_t=int32_t ;;
13784 8) acx_cv_type_intptr_t=int64_t ;;
13785 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
13786 echo "$as_me: error: no equivalent for intptr_t" >&2;}
13787 { (exit please report a bug); exit please report a bug; }; }
13788 esac
13789 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
13790 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
13791 fi
13792
13793 # ----------------- done all checks, emit header -------------
13794 ac_config_commands="$ac_config_commands gdb_stdint.h"
13795
13796
13797
13798
13799 # ------------------------- #
13800 # Checks for declarations. #
13801 # ------------------------- #
13802
13803 echo "$as_me:$LINENO: checking whether free is declared" >&5
13804 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
13805 if test "${ac_cv_have_decl_free+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h. */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814 $ac_includes_default
13815 int
13816 main ()
13817 {
13818 #ifndef free
13819 char *p = (char *) free;
13820 #endif
13821
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 rm -f conftest.$ac_objext
13827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13828 (eval $ac_compile) 2>conftest.er1
13829 ac_status=$?
13830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } &&
13835 { ac_try='test -z "$ac_c_werror_flag"
13836 || test ! -s conftest.err'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13839 ac_status=$?
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; } &&
13842 { ac_try='test -s conftest.$ac_objext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13845 ac_status=$?
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_cv_have_decl_free=yes
13849 else
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 ac_cv_have_decl_free=no
13854 fi
13855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13856 fi
13857 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13858 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13859 if test $ac_cv_have_decl_free = yes; then
13860
13861 cat >>confdefs.h <<_ACEOF
13862 #define HAVE_DECL_FREE 1
13863 _ACEOF
13864
13865
13866 else
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_DECL_FREE 0
13869 _ACEOF
13870
13871
13872 fi
13873 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13874 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13875 if test "${ac_cv_have_decl_malloc+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878 cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h. */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13885 int
13886 main ()
13887 {
13888 #ifndef malloc
13889 char *p = (char *) malloc;
13890 #endif
13891
13892 ;
13893 return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } &&
13905 { ac_try='test -z "$ac_c_werror_flag"
13906 || test ! -s conftest.err'
13907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908 (eval $ac_try) 2>&5
13909 ac_status=$?
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest.$ac_objext'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13915 ac_status=$?
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; }; then
13918 ac_cv_have_decl_malloc=yes
13919 else
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923 ac_cv_have_decl_malloc=no
13924 fi
13925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13926 fi
13927 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13928 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13929 if test $ac_cv_have_decl_malloc = yes; then
13930
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_DECL_MALLOC 1
13933 _ACEOF
13934
13935
13936 else
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_DECL_MALLOC 0
13939 _ACEOF
13940
13941
13942 fi
13943 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13944 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13945 if test "${ac_cv_have_decl_realloc+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 else
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 int
13956 main ()
13957 {
13958 #ifndef realloc
13959 char *p = (char *) realloc;
13960 #endif
13961
13962 ;
13963 return 0;
13964 }
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>conftest.er1
13969 ac_status=$?
13970 grep -v '^ *+' conftest.er1 >conftest.err
13971 rm -f conftest.er1
13972 cat conftest.err >&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -z "$ac_c_werror_flag"
13976 || test ! -s conftest.err'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13979 ac_status=$?
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try='test -s conftest.$ac_objext'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_cv_have_decl_realloc=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_cv_have_decl_realloc=no
13994 fi
13995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13996 fi
13997 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13998 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13999 if test $ac_cv_have_decl_realloc = yes; then
14000
14001 cat >>confdefs.h <<_ACEOF
14002 #define HAVE_DECL_REALLOC 1
14003 _ACEOF
14004
14005
14006 else
14007 cat >>confdefs.h <<_ACEOF
14008 #define HAVE_DECL_REALLOC 0
14009 _ACEOF
14010
14011
14012 fi
14013
14014
14015 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14016 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
14017 if test "${ac_cv_have_decl_strerror+set}" = set; then
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020 cat >conftest.$ac_ext <<_ACEOF
14021 /* confdefs.h. */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 $ac_includes_default
14027 int
14028 main ()
14029 {
14030 #ifndef strerror
14031 char *p = (char *) strerror;
14032 #endif
14033
14034 ;
14035 return 0;
14036 }
14037 _ACEOF
14038 rm -f conftest.$ac_objext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag"
14048 || test ! -s conftest.err'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest.$ac_objext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14057 ac_status=$?
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_have_decl_strerror=yes
14061 else
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065 ac_cv_have_decl_strerror=no
14066 fi
14067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14068 fi
14069 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14070 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
14071 if test $ac_cv_have_decl_strerror = yes; then
14072
14073 cat >>confdefs.h <<_ACEOF
14074 #define HAVE_DECL_STRERROR 1
14075 _ACEOF
14076
14077
14078 else
14079 cat >>confdefs.h <<_ACEOF
14080 #define HAVE_DECL_STRERROR 0
14081 _ACEOF
14082
14083
14084 fi
14085 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14086 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
14087 if test "${ac_cv_have_decl_strstr+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090 cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h. */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14096 $ac_includes_default
14097 int
14098 main ()
14099 {
14100 #ifndef strstr
14101 char *p = (char *) strstr;
14102 #endif
14103
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>conftest.er1
14111 ac_status=$?
14112 grep -v '^ *+' conftest.er1 >conftest.err
14113 rm -f conftest.er1
14114 cat conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -z "$ac_c_werror_flag"
14118 || test ! -s conftest.err'
14119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14120 (eval $ac_try) 2>&5
14121 ac_status=$?
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14127 ac_status=$?
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14130 ac_cv_have_decl_strstr=yes
14131 else
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14134
14135 ac_cv_have_decl_strstr=no
14136 fi
14137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14138 fi
14139 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14140 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
14141 if test $ac_cv_have_decl_strstr = yes; then
14142
14143 cat >>confdefs.h <<_ACEOF
14144 #define HAVE_DECL_STRSTR 1
14145 _ACEOF
14146
14147
14148 else
14149 cat >>confdefs.h <<_ACEOF
14150 #define HAVE_DECL_STRSTR 0
14151 _ACEOF
14152
14153
14154 fi
14155
14156
14157 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14158 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
14159 if test "${ac_cv_have_decl_getopt+set}" = set; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 else
14162 cat >conftest.$ac_ext <<_ACEOF
14163 /* confdefs.h. */
14164 _ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 $ac_includes_default
14169 int
14170 main ()
14171 {
14172 #ifndef getopt
14173 char *p = (char *) getopt;
14174 #endif
14175
14176 ;
14177 return 0;
14178 }
14179 _ACEOF
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182 (eval $ac_compile) 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -z "$ac_c_werror_flag"
14190 || test ! -s conftest.err'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest.$ac_objext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14199 ac_status=$?
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_cv_have_decl_getopt=yes
14203 else
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207 ac_cv_have_decl_getopt=no
14208 fi
14209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14210 fi
14211 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14212 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
14213 if test $ac_cv_have_decl_getopt = yes; then
14214
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_DECL_GETOPT 1
14217 _ACEOF
14218
14219
14220 else
14221 cat >>confdefs.h <<_ACEOF
14222 #define HAVE_DECL_GETOPT 0
14223 _ACEOF
14224
14225
14226 fi
14227 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14228 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
14229 if test "${ac_cv_have_decl_snprintf+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232 cat >conftest.$ac_ext <<_ACEOF
14233 /* confdefs.h. */
14234 _ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 $ac_includes_default
14239 int
14240 main ()
14241 {
14242 #ifndef snprintf
14243 char *p = (char *) snprintf;
14244 #endif
14245
14246 ;
14247 return 0;
14248 }
14249 _ACEOF
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14253 ac_status=$?
14254 grep -v '^ *+' conftest.er1 >conftest.err
14255 rm -f conftest.er1
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag"
14260 || test ! -s conftest.err'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; } &&
14266 { ac_try='test -s conftest.$ac_objext'
14267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268 (eval $ac_try) 2>&5
14269 ac_status=$?
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); }; }; then
14272 ac_cv_have_decl_snprintf=yes
14273 else
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14276
14277 ac_cv_have_decl_snprintf=no
14278 fi
14279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14280 fi
14281 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14282 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
14283 if test $ac_cv_have_decl_snprintf = yes; then
14284
14285 cat >>confdefs.h <<_ACEOF
14286 #define HAVE_DECL_SNPRINTF 1
14287 _ACEOF
14288
14289
14290 else
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_DECL_SNPRINTF 0
14293 _ACEOF
14294
14295
14296 fi
14297 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14298 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
14299 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 else
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14309 int
14310 main ()
14311 {
14312 #ifndef vsnprintf
14313 char *p = (char *) vsnprintf;
14314 #endif
14315
14316 ;
14317 return 0;
14318 }
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_c_werror_flag"
14330 || test ! -s conftest.err'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14333 ac_status=$?
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest.$ac_objext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 ac_cv_have_decl_vsnprintf=yes
14343 else
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 ac_cv_have_decl_vsnprintf=no
14348 fi
14349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14352 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
14353 if test $ac_cv_have_decl_vsnprintf = yes; then
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_DECL_VSNPRINTF 1
14357 _ACEOF
14358
14359
14360 else
14361 cat >>confdefs.h <<_ACEOF
14362 #define HAVE_DECL_VSNPRINTF 0
14363 _ACEOF
14364
14365
14366 fi
14367
14368
14369
14370 # ----------------------- #
14371 # Checks for structures. #
14372 # ----------------------- #
14373
14374 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14375 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14376 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14378 else
14379 cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h. */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h. */
14385 $ac_includes_default
14386 int
14387 main ()
14388 {
14389 static struct stat ac_aggr;
14390 if (ac_aggr.st_blocks)
14391 return 0;
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>conftest.er1
14399 ac_status=$?
14400 grep -v '^ *+' conftest.er1 >conftest.err
14401 rm -f conftest.er1
14402 cat conftest.err >&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -z "$ac_c_werror_flag"
14406 || test ! -s conftest.err'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14415 ac_status=$?
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_cv_member_struct_stat_st_blocks=yes
14419 else
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14422
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 $ac_includes_default
14430 int
14431 main ()
14432 {
14433 static struct stat ac_aggr;
14434 if (sizeof ac_aggr.st_blocks)
14435 return 0;
14436 ;
14437 return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext
14441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14442 (eval $ac_compile) 2>conftest.er1
14443 ac_status=$?
14444 grep -v '^ *+' conftest.er1 >conftest.err
14445 rm -f conftest.er1
14446 cat conftest.err >&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -z "$ac_c_werror_flag"
14450 || test ! -s conftest.err'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest.$ac_objext'
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; }; then
14462 ac_cv_member_struct_stat_st_blocks=yes
14463 else
14464 echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14466
14467 ac_cv_member_struct_stat_st_blocks=no
14468 fi
14469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14470 fi
14471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472 fi
14473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14474 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14475 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14476
14477 cat >>confdefs.h <<_ACEOF
14478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14479 _ACEOF
14480
14481
14482 fi
14483
14484 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14485 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14486 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 $ac_includes_default
14496 int
14497 main ()
14498 {
14499 static struct stat ac_aggr;
14500 if (ac_aggr.st_blksize)
14501 return 0;
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 rm -f conftest.$ac_objext
14507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14508 (eval $ac_compile) 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -z "$ac_c_werror_flag"
14516 || test ! -s conftest.err'
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_member_struct_stat_st_blksize=yes
14529 else
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h. */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 $ac_includes_default
14540 int
14541 main ()
14542 {
14543 static struct stat ac_aggr;
14544 if (sizeof ac_aggr.st_blksize)
14545 return 0;
14546 ;
14547 return 0;
14548 }
14549 _ACEOF
14550 rm -f conftest.$ac_objext
14551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14552 (eval $ac_compile) 2>conftest.er1
14553 ac_status=$?
14554 grep -v '^ *+' conftest.er1 >conftest.err
14555 rm -f conftest.er1
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } &&
14559 { ac_try='test -z "$ac_c_werror_flag"
14560 || test ! -s conftest.err'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 ac_cv_member_struct_stat_st_blksize=yes
14573 else
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577 ac_cv_member_struct_stat_st_blksize=no
14578 fi
14579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14580 fi
14581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14582 fi
14583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14584 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14585 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14586
14587 cat >>confdefs.h <<_ACEOF
14588 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14589 _ACEOF
14590
14591
14592 fi
14593
14594
14595 # ------------------ #
14596 # Checks for types. #
14597 # ------------------ #
14598
14599 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14600 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
14601 if test "${ac_cv_type_signal+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 else
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h. */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 #include <sys/types.h>
14611 #include <signal.h>
14612 #ifdef signal
14613 # undef signal
14614 #endif
14615 #ifdef __cplusplus
14616 extern "C" void (*signal (int, void (*)(int)))(int);
14617 #else
14618 void (*signal ()) ();
14619 #endif
14620
14621 int
14622 main ()
14623 {
14624 int i;
14625 ;
14626 return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext
14630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14631 (eval $ac_compile) 2>conftest.er1
14632 ac_status=$?
14633 grep -v '^ *+' conftest.er1 >conftest.err
14634 rm -f conftest.er1
14635 cat conftest.err >&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -z "$ac_c_werror_flag"
14639 || test ! -s conftest.err'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14642 ac_status=$?
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14648 ac_status=$?
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14651 ac_cv_type_signal=void
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 ac_cv_type_signal=int
14657 fi
14658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14659 fi
14660 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14661 echo "${ECHO_T}$ac_cv_type_signal" >&6
14662
14663 cat >>confdefs.h <<_ACEOF
14664 #define RETSIGTYPE $ac_cv_type_signal
14665 _ACEOF
14666
14667
14668 echo "$as_me:$LINENO: checking for socklen_t" >&5
14669 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14670 if test "${ac_cv_type_socklen_t+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 #include <sys/types.h>
14680 #include <sys/socket.h>
14681
14682
14683 int
14684 main ()
14685 {
14686 if ((socklen_t *) 0)
14687 return 0;
14688 if (sizeof (socklen_t))
14689 return 0;
14690 ;
14691 return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14696 (eval $ac_compile) 2>conftest.er1
14697 ac_status=$?
14698 grep -v '^ *+' conftest.er1 >conftest.err
14699 rm -f conftest.er1
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } &&
14703 { ac_try='test -z "$ac_c_werror_flag"
14704 || test ! -s conftest.err'
14705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706 (eval $ac_try) 2>&5
14707 ac_status=$?
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); }; } &&
14710 { ac_try='test -s conftest.$ac_objext'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 ac_cv_type_socklen_t=yes
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 ac_cv_type_socklen_t=no
14722 fi
14723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14724 fi
14725 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
14726 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
14727 if test $ac_cv_type_socklen_t = yes; then
14728
14729 cat >>confdefs.h <<_ACEOF
14730 #define HAVE_SOCKLEN_T 1
14731 _ACEOF
14732
14733
14734 fi
14735
14736 echo "$as_me:$LINENO: checking for uintptr_t" >&5
14737 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
14738 if test "${ac_cv_type_uintptr_t+set}" = set; then
14739 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741 cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h. */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 #include <stdint.h>
14748
14749 int
14750 main ()
14751 {
14752 if ((uintptr_t *) 0)
14753 return 0;
14754 if (sizeof (uintptr_t))
14755 return 0;
14756 ;
14757 return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_uintptr_t=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_cv_type_uintptr_t=no
14788 fi
14789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14790 fi
14791 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
14792 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
14793 if test $ac_cv_type_uintptr_t = yes; then
14794
14795 cat >>confdefs.h <<_ACEOF
14796 #define HAVE_UINTPTR_T 1
14797 _ACEOF
14798
14799
14800 fi
14801
14802
14803 # ------------------------------------- #
14804 # Checks for compiler characteristics. #
14805 # ------------------------------------- #
14806
14807 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14809 if test "${ac_cv_c_const+set}" = set; then
14810 echo $ECHO_N "(cached) $ECHO_C" >&6
14811 else
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h. */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818
14819 int
14820 main ()
14821 {
14822 /* FIXME: Include the comments suggested by Paul. */
14823 #ifndef __cplusplus
14824 /* Ultrix mips cc rejects this. */
14825 typedef int charset[2];
14826 const charset x;
14827 /* SunOS 4.1.1 cc rejects this. */
14828 char const *const *ccp;
14829 char **p;
14830 /* NEC SVR4.0.2 mips cc rejects this. */
14831 struct point {int x, y;};
14832 static struct point const zero = {0,0};
14833 /* AIX XL C 1.02.0.0 rejects this.
14834 It does not let you subtract one const X* pointer from another in
14835 an arm of an if-expression whose if-part is not a constant
14836 expression */
14837 const char *g = "string";
14838 ccp = &g + (g ? g-g : 0);
14839 /* HPUX 7.0 cc rejects these. */
14840 ++ccp;
14841 p = (char**) ccp;
14842 ccp = (char const *const *) p;
14843 { /* SCO 3.2v4 cc rejects this. */
14844 char *t;
14845 char const *s = 0 ? (char *) 0 : (char const *) 0;
14846
14847 *t++ = 0;
14848 }
14849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14850 int x[] = {25, 17};
14851 const int *foo = &x[0];
14852 ++foo;
14853 }
14854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14855 typedef const int *iptr;
14856 iptr p = 0;
14857 ++p;
14858 }
14859 { /* AIX XL C 1.02.0.0 rejects this saying
14860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14861 struct s { int j; const int *ap[3]; };
14862 struct s *b; b->j = 5;
14863 }
14864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14865 const int foo = 10;
14866 }
14867 #endif
14868
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875 (eval $ac_compile) 2>conftest.er1
14876 ac_status=$?
14877 grep -v '^ *+' conftest.er1 >conftest.err
14878 rm -f conftest.er1
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } &&
14882 { ac_try='test -z "$ac_c_werror_flag"
14883 || test ! -s conftest.err'
14884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14885 (eval $ac_try) 2>&5
14886 ac_status=$?
14887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14888 (exit $ac_status); }; } &&
14889 { ac_try='test -s conftest.$ac_objext'
14890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14892 ac_status=$?
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_c_const=yes
14896 else
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14899
14900 ac_cv_c_const=no
14901 fi
14902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14903 fi
14904 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14905 echo "${ECHO_T}$ac_cv_c_const" >&6
14906 if test $ac_cv_c_const = no; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 #define const
14910 _ACEOF
14911
14912 fi
14913
14914 echo "$as_me:$LINENO: checking for inline" >&5
14915 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14916 if test "${ac_cv_c_inline+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 else
14919 ac_cv_c_inline=no
14920 for ac_kw in inline __inline__ __inline; do
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 #ifndef __cplusplus
14928 typedef int foo_t;
14929 static $ac_kw foo_t static_foo () {return 0; }
14930 $ac_kw foo_t foo () {return 0; }
14931 #endif
14932
14933 _ACEOF
14934 rm -f conftest.$ac_objext
14935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14936 (eval $ac_compile) 2>conftest.er1
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } &&
14943 { ac_try='test -z "$ac_c_werror_flag"
14944 || test ! -s conftest.err'
14945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14947 ac_status=$?
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); }; } &&
14950 { ac_try='test -s conftest.$ac_objext'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14956 ac_cv_c_inline=$ac_kw; break
14957 else
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14960
14961 fi
14962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14963 done
14964
14965 fi
14966 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14967 echo "${ECHO_T}$ac_cv_c_inline" >&6
14968
14969
14970 case $ac_cv_c_inline in
14971 inline | yes) ;;
14972 *)
14973 case $ac_cv_c_inline in
14974 no) ac_val=;;
14975 *) ac_val=$ac_cv_c_inline;;
14976 esac
14977 cat >>confdefs.h <<_ACEOF
14978 #ifndef __cplusplus
14979 #define inline $ac_val
14980 #endif
14981 _ACEOF
14982 ;;
14983 esac
14984
14985
14986 # ------------------------------ #
14987 # Checks for library functions. #
14988 # ------------------------------ #
14989
14990 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14991 # for constant arguments. Useless!
14992 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14993 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14994 if test "${ac_cv_working_alloca_h+set}" = set; then
14995 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 else
14997 cat >conftest.$ac_ext <<_ACEOF
14998 /* confdefs.h. */
14999 _ACEOF
15000 cat confdefs.h >>conftest.$ac_ext
15001 cat >>conftest.$ac_ext <<_ACEOF
15002 /* end confdefs.h. */
15003 #include <alloca.h>
15004 int
15005 main ()
15006 {
15007 char *p = (char *) alloca (2 * sizeof (int));
15008 ;
15009 return 0;
15010 }
15011 _ACEOF
15012 rm -f conftest.$ac_objext conftest$ac_exeext
15013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15014 (eval $ac_link) 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
15021 { ac_try='test -z "$ac_c_werror_flag"
15022 || test ! -s conftest.err'
15023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15031 ac_status=$?
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 ac_cv_working_alloca_h=yes
15035 else
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039 ac_cv_working_alloca_h=no
15040 fi
15041 rm -f conftest.err conftest.$ac_objext \
15042 conftest$ac_exeext conftest.$ac_ext
15043 fi
15044 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15045 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15046 if test $ac_cv_working_alloca_h = yes; then
15047
15048 cat >>confdefs.h <<\_ACEOF
15049 #define HAVE_ALLOCA_H 1
15050 _ACEOF
15051
15052 fi
15053
15054 echo "$as_me:$LINENO: checking for alloca" >&5
15055 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15056 if test "${ac_cv_func_alloca_works+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15058 else
15059 cat >conftest.$ac_ext <<_ACEOF
15060 /* confdefs.h. */
15061 _ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 #ifdef __GNUC__
15066 # define alloca __builtin_alloca
15067 #else
15068 # ifdef _MSC_VER
15069 # include <malloc.h>
15070 # define alloca _alloca
15071 # else
15072 # if HAVE_ALLOCA_H
15073 # include <alloca.h>
15074 # else
15075 # ifdef _AIX
15076 #pragma alloca
15077 # else
15078 # ifndef alloca /* predefined by HP cc +Olibcalls */
15079 char *alloca ();
15080 # endif
15081 # endif
15082 # endif
15083 # endif
15084 #endif
15085
15086 int
15087 main ()
15088 {
15089 char *p = (char *) alloca (1);
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 rm -f conftest.$ac_objext conftest$ac_exeext
15095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15096 (eval $ac_link) 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest$ac_exeext'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_func_alloca_works=yes
15117 else
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121 ac_cv_func_alloca_works=no
15122 fi
15123 rm -f conftest.err conftest.$ac_objext \
15124 conftest$ac_exeext conftest.$ac_ext
15125 fi
15126 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15127 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15128
15129 if test $ac_cv_func_alloca_works = yes; then
15130
15131 cat >>confdefs.h <<\_ACEOF
15132 #define HAVE_ALLOCA 1
15133 _ACEOF
15134
15135 else
15136 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15137 # that cause trouble. Some versions do not even contain alloca or
15138 # contain a buggy version. If you still want to use their alloca,
15139 # use ar to extract alloca.o from them instead of compiling alloca.c.
15140
15141 ALLOCA=alloca.$ac_objext
15142
15143 cat >>confdefs.h <<\_ACEOF
15144 #define C_ALLOCA 1
15145 _ACEOF
15146
15147
15148 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15149 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15150 if test "${ac_cv_os_cray+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153 cat >conftest.$ac_ext <<_ACEOF
15154 /* confdefs.h. */
15155 _ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 #if defined(CRAY) && ! defined(CRAY2)
15160 webecray
15161 #else
15162 wenotbecray
15163 #endif
15164
15165 _ACEOF
15166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15167 $EGREP "webecray" >/dev/null 2>&1; then
15168 ac_cv_os_cray=yes
15169 else
15170 ac_cv_os_cray=no
15171 fi
15172 rm -f conftest*
15173
15174 fi
15175 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15176 echo "${ECHO_T}$ac_cv_os_cray" >&6
15177 if test $ac_cv_os_cray = yes; then
15178 for ac_func in _getb67 GETB67 getb67; do
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15182 if eval "test \"\${$as_ac_var+set}\" = set"; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h. */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15194
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15199
15200 #ifdef __STDC__
15201 # include <limits.h>
15202 #else
15203 # include <assert.h>
15204 #endif
15205
15206 #undef $ac_func
15207
15208 /* Override any gcc2 internal prototype to avoid an error. */
15209 #ifdef __cplusplus
15210 extern "C"
15211 {
15212 #endif
15213 /* We use char because int might match the return type of a gcc2
15214 builtin and then its argument prototype would still apply. */
15215 char $ac_func ();
15216 /* The GNU C library defines this for functions which it implements
15217 to always fail with ENOSYS. Some functions are actually named
15218 something starting with __ and the normal name is an alias. */
15219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15220 choke me
15221 #else
15222 char (*f) () = $ac_func;
15223 #endif
15224 #ifdef __cplusplus
15225 }
15226 #endif
15227
15228 int
15229 main ()
15230 {
15231 return f != $ac_func;
15232 ;
15233 return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238 (eval $ac_link) 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_exeext'
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 eval "$as_ac_var=yes"
15259 else
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 eval "$as_ac_var=no"
15264 fi
15265 rm -f conftest.err conftest.$ac_objext \
15266 conftest$ac_exeext conftest.$ac_ext
15267 fi
15268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15270 if test `eval echo '${'$as_ac_var'}'` = yes; then
15271
15272 cat >>confdefs.h <<_ACEOF
15273 #define CRAY_STACKSEG_END $ac_func
15274 _ACEOF
15275
15276 break
15277 fi
15278
15279 done
15280 fi
15281
15282 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15283 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15284 if test "${ac_cv_c_stack_direction+set}" = set; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 if test "$cross_compiling" = yes; then
15288 ac_cv_c_stack_direction=0
15289 else
15290 cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h. */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h. */
15296 int
15297 find_stack_direction ()
15298 {
15299 static char *addr = 0;
15300 auto char dummy;
15301 if (addr == 0)
15302 {
15303 addr = &dummy;
15304 return find_stack_direction ();
15305 }
15306 else
15307 return (&dummy > addr) ? 1 : -1;
15308 }
15309
15310 int
15311 main ()
15312 {
15313 exit (find_stack_direction () < 0);
15314 }
15315 _ACEOF
15316 rm -f conftest$ac_exeext
15317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15318 (eval $ac_link) 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_c_stack_direction=1
15328 else
15329 echo "$as_me: program exited with status $ac_status" >&5
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333 ( exit $ac_status )
15334 ac_cv_c_stack_direction=-1
15335 fi
15336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15337 fi
15338 fi
15339 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15340 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15341
15342 cat >>confdefs.h <<_ACEOF
15343 #define STACK_DIRECTION $ac_cv_c_stack_direction
15344 _ACEOF
15345
15346
15347 fi
15348
15349
15350
15351 for ac_header in stdlib.h unistd.h
15352 do
15353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15355 echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15357 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 fi
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15362 else
15363 # Is the header compilable?
15364 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15367 /* confdefs.h. */
15368 _ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15373 #include <$ac_header>
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_header_compiler=yes
15398 else
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15401
15402 ac_header_compiler=no
15403 fi
15404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15406 echo "${ECHO_T}$ac_header_compiler" >&6
15407
15408 # Is the header present?
15409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15411 cat >conftest.$ac_ext <<_ACEOF
15412 /* confdefs.h. */
15413 _ACEOF
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 #include <$ac_header>
15418 _ACEOF
15419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } >/dev/null; then
15427 if test -s conftest.err; then
15428 ac_cpp_err=$ac_c_preproc_warn_flag
15429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15430 else
15431 ac_cpp_err=
15432 fi
15433 else
15434 ac_cpp_err=yes
15435 fi
15436 if test -z "$ac_cpp_err"; then
15437 ac_header_preproc=yes
15438 else
15439 echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442 ac_header_preproc=no
15443 fi
15444 rm -f conftest.err conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15446 echo "${ECHO_T}$ac_header_preproc" >&6
15447
15448 # So? What about this header?
15449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15450 yes:no: )
15451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15455 ac_header_preproc=yes
15456 ;;
15457 no:yes:* )
15458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15470 (
15471 cat <<\_ASBOX
15472 ## ------------------------------------------ ##
15473 ## Report this to the AC_PACKAGE_NAME lists. ##
15474 ## ------------------------------------------ ##
15475 _ASBOX
15476 ) |
15477 sed "s/^/$as_me: WARNING: /" >&2
15478 ;;
15479 esac
15480 echo "$as_me:$LINENO: checking for $ac_header" >&5
15481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15483 echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485 eval "$as_ac_Header=\$ac_header_preproc"
15486 fi
15487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15489
15490 fi
15491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15492 cat >>confdefs.h <<_ACEOF
15493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15494 _ACEOF
15495
15496 fi
15497
15498 done
15499
15500
15501 for ac_func in getpagesize
15502 do
15503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15504 echo "$as_me:$LINENO: checking for $ac_func" >&5
15505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15506 if eval "test \"\${$as_ac_var+set}\" = set"; then
15507 echo $ECHO_N "(cached) $ECHO_C" >&6
15508 else
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15517 #define $ac_func innocuous_$ac_func
15518
15519 /* System header to define __stub macros and hopefully few prototypes,
15520 which can conflict with char $ac_func (); below.
15521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15522 <limits.h> exists even on freestanding compilers. */
15523
15524 #ifdef __STDC__
15525 # include <limits.h>
15526 #else
15527 # include <assert.h>
15528 #endif
15529
15530 #undef $ac_func
15531
15532 /* Override any gcc2 internal prototype to avoid an error. */
15533 #ifdef __cplusplus
15534 extern "C"
15535 {
15536 #endif
15537 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
15539 char $ac_func ();
15540 /* The GNU C library defines this for functions which it implements
15541 to always fail with ENOSYS. Some functions are actually named
15542 something starting with __ and the normal name is an alias. */
15543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15544 choke me
15545 #else
15546 char (*f) () = $ac_func;
15547 #endif
15548 #ifdef __cplusplus
15549 }
15550 #endif
15551
15552 int
15553 main ()
15554 {
15555 return f != $ac_func;
15556 ;
15557 return 0;
15558 }
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15562 (eval $ac_link) 2>conftest.er1
15563 ac_status=$?
15564 grep -v '^ *+' conftest.er1 >conftest.err
15565 rm -f conftest.er1
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag"
15570 || test ! -s conftest.err'
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); }; } &&
15576 { ac_try='test -s conftest$ac_exeext'
15577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578 (eval $ac_try) 2>&5
15579 ac_status=$?
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); }; }; then
15582 eval "$as_ac_var=yes"
15583 else
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15586
15587 eval "$as_ac_var=no"
15588 fi
15589 rm -f conftest.err conftest.$ac_objext \
15590 conftest$ac_exeext conftest.$ac_ext
15591 fi
15592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15594 if test `eval echo '${'$as_ac_var'}'` = yes; then
15595 cat >>confdefs.h <<_ACEOF
15596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15597 _ACEOF
15598
15599 fi
15600 done
15601
15602 echo "$as_me:$LINENO: checking for working mmap" >&5
15603 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15604 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15605 echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607 if test "$cross_compiling" = yes; then
15608 ac_cv_func_mmap_fixed_mapped=no
15609 else
15610 cat >conftest.$ac_ext <<_ACEOF
15611 /* confdefs.h. */
15612 _ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15617 /* malloc might have been renamed as rpl_malloc. */
15618 #undef malloc
15619
15620 /* Thanks to Mike Haertel and Jim Avera for this test.
15621 Here is a matrix of mmap possibilities:
15622 mmap private not fixed
15623 mmap private fixed at somewhere currently unmapped
15624 mmap private fixed at somewhere already mapped
15625 mmap shared not fixed
15626 mmap shared fixed at somewhere currently unmapped
15627 mmap shared fixed at somewhere already mapped
15628 For private mappings, we should verify that changes cannot be read()
15629 back from the file, nor mmap's back from the file at a different
15630 address. (There have been systems where private was not correctly
15631 implemented like the infamous i386 svr4.0, and systems where the
15632 VM page cache was not coherent with the file system buffer cache
15633 like early versions of FreeBSD and possibly contemporary NetBSD.)
15634 For shared mappings, we should conversely verify that changes get
15635 propagated back to all the places they're supposed to be.
15636
15637 Grep wants private fixed already mapped.
15638 The main things grep needs to know about mmap are:
15639 * does it exist and is it safe to write into the mmap'd area
15640 * how to use it (BSD variants) */
15641
15642 #include <fcntl.h>
15643 #include <sys/mman.h>
15644
15645 #if !STDC_HEADERS && !HAVE_STDLIB_H
15646 char *malloc ();
15647 #endif
15648
15649 /* This mess was copied from the GNU getpagesize.h. */
15650 #if !HAVE_GETPAGESIZE
15651 /* Assume that all systems that can run configure have sys/param.h. */
15652 # if !HAVE_SYS_PARAM_H
15653 # define HAVE_SYS_PARAM_H 1
15654 # endif
15655
15656 # ifdef _SC_PAGESIZE
15657 # define getpagesize() sysconf(_SC_PAGESIZE)
15658 # else /* no _SC_PAGESIZE */
15659 # if HAVE_SYS_PARAM_H
15660 # include <sys/param.h>
15661 # ifdef EXEC_PAGESIZE
15662 # define getpagesize() EXEC_PAGESIZE
15663 # else /* no EXEC_PAGESIZE */
15664 # ifdef NBPG
15665 # define getpagesize() NBPG * CLSIZE
15666 # ifndef CLSIZE
15667 # define CLSIZE 1
15668 # endif /* no CLSIZE */
15669 # else /* no NBPG */
15670 # ifdef NBPC
15671 # define getpagesize() NBPC
15672 # else /* no NBPC */
15673 # ifdef PAGESIZE
15674 # define getpagesize() PAGESIZE
15675 # endif /* PAGESIZE */
15676 # endif /* no NBPC */
15677 # endif /* no NBPG */
15678 # endif /* no EXEC_PAGESIZE */
15679 # else /* no HAVE_SYS_PARAM_H */
15680 # define getpagesize() 8192 /* punt totally */
15681 # endif /* no HAVE_SYS_PARAM_H */
15682 # endif /* no _SC_PAGESIZE */
15683
15684 #endif /* no HAVE_GETPAGESIZE */
15685
15686 int
15687 main ()
15688 {
15689 char *data, *data2, *data3;
15690 int i, pagesize;
15691 int fd;
15692
15693 pagesize = getpagesize ();
15694
15695 /* First, make a file with some known garbage in it. */
15696 data = (char *) malloc (pagesize);
15697 if (!data)
15698 exit (1);
15699 for (i = 0; i < pagesize; ++i)
15700 *(data + i) = rand ();
15701 umask (0);
15702 fd = creat ("conftest.mmap", 0600);
15703 if (fd < 0)
15704 exit (1);
15705 if (write (fd, data, pagesize) != pagesize)
15706 exit (1);
15707 close (fd);
15708
15709 /* Next, try to mmap the file at a fixed address which already has
15710 something else allocated at it. If we can, also make sure that
15711 we see the same garbage. */
15712 fd = open ("conftest.mmap", O_RDWR);
15713 if (fd < 0)
15714 exit (1);
15715 data2 = (char *) malloc (2 * pagesize);
15716 if (!data2)
15717 exit (1);
15718 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15719 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15720 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15721 exit (1);
15722 for (i = 0; i < pagesize; ++i)
15723 if (*(data + i) != *(data2 + i))
15724 exit (1);
15725
15726 /* Finally, make sure that changes to the mapped area do not
15727 percolate back to the file as seen by read(). (This is a bug on
15728 some variants of i386 svr4.0.) */
15729 for (i = 0; i < pagesize; ++i)
15730 *(data2 + i) = *(data2 + i) + 1;
15731 data3 = (char *) malloc (pagesize);
15732 if (!data3)
15733 exit (1);
15734 if (read (fd, data3, pagesize) != pagesize)
15735 exit (1);
15736 for (i = 0; i < pagesize; ++i)
15737 if (*(data + i) != *(data3 + i))
15738 exit (1);
15739 close (fd);
15740 exit (0);
15741 }
15742 _ACEOF
15743 rm -f conftest$ac_exeext
15744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15746 ac_status=$?
15747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_func_mmap_fixed_mapped=yes
15755 else
15756 echo "$as_me: program exited with status $ac_status" >&5
15757 echo "$as_me: failed program was:" >&5
15758 sed 's/^/| /' conftest.$ac_ext >&5
15759
15760 ( exit $ac_status )
15761 ac_cv_func_mmap_fixed_mapped=no
15762 fi
15763 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15764 fi
15765 fi
15766 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15767 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15768 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15769
15770 cat >>confdefs.h <<\_ACEOF
15771 #define HAVE_MMAP 1
15772 _ACEOF
15773
15774 fi
15775 rm -f conftest.mmap
15776
15777 echo "$as_me:$LINENO: checking for pid_t" >&5
15778 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15779 if test "${ac_cv_type_pid_t+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 else
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h. */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h. */
15788 $ac_includes_default
15789 int
15790 main ()
15791 {
15792 if ((pid_t *) 0)
15793 return 0;
15794 if (sizeof (pid_t))
15795 return 0;
15796 ;
15797 return 0;
15798 }
15799 _ACEOF
15800 rm -f conftest.$ac_objext
15801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15802 (eval $ac_compile) 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag"
15810 || test ! -s conftest.err'
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest.$ac_objext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_type_pid_t=yes
15823 else
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15826
15827 ac_cv_type_pid_t=no
15828 fi
15829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15830 fi
15831 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15832 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15833 if test $ac_cv_type_pid_t = yes; then
15834 :
15835 else
15836
15837 cat >>confdefs.h <<_ACEOF
15838 #define pid_t int
15839 _ACEOF
15840
15841 fi
15842
15843
15844
15845 for ac_header in unistd.h vfork.h
15846 do
15847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15853 fi
15854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15856 else
15857 # Is the header compilable?
15858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h. */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 $ac_includes_default
15867 #include <$ac_header>
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871 (eval $ac_compile) 2>conftest.er1
15872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } &&
15878 { ac_try='test -z "$ac_c_werror_flag"
15879 || test ! -s conftest.err'
15880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15882 ac_status=$?
15883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); }; } &&
15885 { ac_try='test -s conftest.$ac_objext'
15886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15887 (eval $ac_try) 2>&5
15888 ac_status=$?
15889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); }; }; then
15891 ac_header_compiler=yes
15892 else
15893 echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 ac_header_compiler=no
15897 fi
15898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15899 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15900 echo "${ECHO_T}$ac_header_compiler" >&6
15901
15902 # Is the header present?
15903 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15906 /* confdefs.h. */
15907 _ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 #include <$ac_header>
15912 _ACEOF
15913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15915 ac_status=$?
15916 grep -v '^ *+' conftest.er1 >conftest.err
15917 rm -f conftest.er1
15918 cat conftest.err >&5
15919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920 (exit $ac_status); } >/dev/null; then
15921 if test -s conftest.err; then
15922 ac_cpp_err=$ac_c_preproc_warn_flag
15923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15924 else
15925 ac_cpp_err=
15926 fi
15927 else
15928 ac_cpp_err=yes
15929 fi
15930 if test -z "$ac_cpp_err"; then
15931 ac_header_preproc=yes
15932 else
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15935
15936 ac_header_preproc=no
15937 fi
15938 rm -f conftest.err conftest.$ac_ext
15939 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15940 echo "${ECHO_T}$ac_header_preproc" >&6
15941
15942 # So? What about this header?
15943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15944 yes:no: )
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15946 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15949 ac_header_preproc=yes
15950 ;;
15951 no:yes:* )
15952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15957 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15959 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15963 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15964 (
15965 cat <<\_ASBOX
15966 ## ------------------------------------------ ##
15967 ## Report this to the AC_PACKAGE_NAME lists. ##
15968 ## ------------------------------------------ ##
15969 _ASBOX
15970 ) |
15971 sed "s/^/$as_me: WARNING: /" >&2
15972 ;;
15973 esac
15974 echo "$as_me:$LINENO: checking for $ac_header" >&5
15975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15977 echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979 eval "$as_ac_Header=\$ac_header_preproc"
15980 fi
15981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15983
15984 fi
15985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15986 cat >>confdefs.h <<_ACEOF
15987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15988 _ACEOF
15989
15990 fi
15991
15992 done
15993
15994
15995
15996 for ac_func in fork vfork
15997 do
15998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15999 echo "$as_me:$LINENO: checking for $ac_func" >&5
16000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16001 if eval "test \"\${$as_ac_var+set}\" = set"; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003 else
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16012 #define $ac_func innocuous_$ac_func
16013
16014 /* System header to define __stub macros and hopefully few prototypes,
16015 which can conflict with char $ac_func (); below.
16016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16017 <limits.h> exists even on freestanding compilers. */
16018
16019 #ifdef __STDC__
16020 # include <limits.h>
16021 #else
16022 # include <assert.h>
16023 #endif
16024
16025 #undef $ac_func
16026
16027 /* Override any gcc2 internal prototype to avoid an error. */
16028 #ifdef __cplusplus
16029 extern "C"
16030 {
16031 #endif
16032 /* We use char because int might match the return type of a gcc2
16033 builtin and then its argument prototype would still apply. */
16034 char $ac_func ();
16035 /* The GNU C library defines this for functions which it implements
16036 to always fail with ENOSYS. Some functions are actually named
16037 something starting with __ and the normal name is an alias. */
16038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16039 choke me
16040 #else
16041 char (*f) () = $ac_func;
16042 #endif
16043 #ifdef __cplusplus
16044 }
16045 #endif
16046
16047 int
16048 main ()
16049 {
16050 return f != $ac_func;
16051 ;
16052 return 0;
16053 }
16054 _ACEOF
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16057 (eval $ac_link) 2>conftest.er1
16058 ac_status=$?
16059 grep -v '^ *+' conftest.er1 >conftest.err
16060 rm -f conftest.er1
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag"
16065 || test ! -s conftest.err'
16066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16067 (eval $ac_try) 2>&5
16068 ac_status=$?
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); }; } &&
16071 { ac_try='test -s conftest$ac_exeext'
16072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16073 (eval $ac_try) 2>&5
16074 ac_status=$?
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); }; }; then
16077 eval "$as_ac_var=yes"
16078 else
16079 echo "$as_me: failed program was:" >&5
16080 sed 's/^/| /' conftest.$ac_ext >&5
16081
16082 eval "$as_ac_var=no"
16083 fi
16084 rm -f conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 fi
16087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16088 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16089 if test `eval echo '${'$as_ac_var'}'` = yes; then
16090 cat >>confdefs.h <<_ACEOF
16091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16092 _ACEOF
16093
16094 fi
16095 done
16096
16097 if test "x$ac_cv_func_fork" = xyes; then
16098 echo "$as_me:$LINENO: checking for working fork" >&5
16099 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
16100 if test "${ac_cv_func_fork_works+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 else
16103 if test "$cross_compiling" = yes; then
16104 ac_cv_func_fork_works=cross
16105 else
16106 cat >conftest.$ac_ext <<_ACEOF
16107 /* By Ruediger Kuhlmann. */
16108 #include <sys/types.h>
16109 #if HAVE_UNISTD_H
16110 # include <unistd.h>
16111 #endif
16112 /* Some systems only have a dummy stub for fork() */
16113 int main ()
16114 {
16115 if (fork() < 0)
16116 exit (1);
16117 exit (0);
16118 }
16119 _ACEOF
16120 rm -f conftest$ac_exeext
16121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16122 (eval $ac_link) 2>&5
16123 ac_status=$?
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16128 ac_status=$?
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; }; then
16131 ac_cv_func_fork_works=yes
16132 else
16133 echo "$as_me: program exited with status $ac_status" >&5
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ( exit $ac_status )
16138 ac_cv_func_fork_works=no
16139 fi
16140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16141 fi
16142 fi
16143 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16144 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
16145
16146 else
16147 ac_cv_func_fork_works=$ac_cv_func_fork
16148 fi
16149 if test "x$ac_cv_func_fork_works" = xcross; then
16150 case $host in
16151 *-*-amigaos* | *-*-msdosdjgpp*)
16152 # Override, as these systems have only a dummy fork() stub
16153 ac_cv_func_fork_works=no
16154 ;;
16155 *)
16156 ac_cv_func_fork_works=yes
16157 ;;
16158 esac
16159 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16160 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16161 fi
16162 ac_cv_func_vfork_works=$ac_cv_func_vfork
16163 if test "x$ac_cv_func_vfork" = xyes; then
16164 echo "$as_me:$LINENO: checking for working vfork" >&5
16165 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
16166 if test "${ac_cv_func_vfork_works+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 if test "$cross_compiling" = yes; then
16170 ac_cv_func_vfork_works=cross
16171 else
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 /* Thanks to Paul Eggert for this test. */
16179 #include <stdio.h>
16180 #include <stdlib.h>
16181 #include <sys/types.h>
16182 #include <sys/stat.h>
16183 #include <sys/wait.h>
16184 #if HAVE_UNISTD_H
16185 # include <unistd.h>
16186 #endif
16187 #if HAVE_VFORK_H
16188 # include <vfork.h>
16189 #endif
16190 /* On some sparc systems, changes by the child to local and incoming
16191 argument registers are propagated back to the parent. The compiler
16192 is told about this with #include <vfork.h>, but some compilers
16193 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16194 static variable whose address is put into a register that is
16195 clobbered by the vfork. */
16196 static void
16197 #ifdef __cplusplus
16198 sparc_address_test (int arg)
16199 # else
16200 sparc_address_test (arg) int arg;
16201 #endif
16202 {
16203 static pid_t child;
16204 if (!child) {
16205 child = vfork ();
16206 if (child < 0) {
16207 perror ("vfork");
16208 _exit(2);
16209 }
16210 if (!child) {
16211 arg = getpid();
16212 write(-1, "", 0);
16213 _exit (arg);
16214 }
16215 }
16216 }
16217
16218 int
16219 main ()
16220 {
16221 pid_t parent = getpid ();
16222 pid_t child;
16223
16224 sparc_address_test (0);
16225
16226 child = vfork ();
16227
16228 if (child == 0) {
16229 /* Here is another test for sparc vfork register problems. This
16230 test uses lots of local variables, at least as many local
16231 variables as main has allocated so far including compiler
16232 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16233 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16234 reuse the register of parent for one of the local variables,
16235 since it will think that parent can't possibly be used any more
16236 in this routine. Assigning to the local variable will thus
16237 munge parent in the parent process. */
16238 pid_t
16239 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16240 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16241 /* Convince the compiler that p..p7 are live; otherwise, it might
16242 use the same hardware register for all 8 local variables. */
16243 if (p != p1 || p != p2 || p != p3 || p != p4
16244 || p != p5 || p != p6 || p != p7)
16245 _exit(1);
16246
16247 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16248 from child file descriptors. If the child closes a descriptor
16249 before it execs or exits, this munges the parent's descriptor
16250 as well. Test for this by closing stdout in the child. */
16251 _exit(close(fileno(stdout)) != 0);
16252 } else {
16253 int status;
16254 struct stat st;
16255
16256 while (wait(&status) != child)
16257 ;
16258 exit(
16259 /* Was there some problem with vforking? */
16260 child < 0
16261
16262 /* Did the child fail? (This shouldn't happen.) */
16263 || status
16264
16265 /* Did the vfork/compiler bug occur? */
16266 || parent != getpid()
16267
16268 /* Did the file descriptor bug occur? */
16269 || fstat(fileno(stdout), &st) != 0
16270 );
16271 }
16272 }
16273 _ACEOF
16274 rm -f conftest$ac_exeext
16275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16276 (eval $ac_link) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; }; then
16285 ac_cv_func_vfork_works=yes
16286 else
16287 echo "$as_me: program exited with status $ac_status" >&5
16288 echo "$as_me: failed program was:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16290
16291 ( exit $ac_status )
16292 ac_cv_func_vfork_works=no
16293 fi
16294 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16295 fi
16296 fi
16297 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16298 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
16299
16300 fi;
16301 if test "x$ac_cv_func_fork_works" = xcross; then
16302 ac_cv_func_vfork_works=$ac_cv_func_vfork
16303 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16304 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16305 fi
16306
16307 if test "x$ac_cv_func_vfork_works" = xyes; then
16308
16309 cat >>confdefs.h <<\_ACEOF
16310 #define HAVE_WORKING_VFORK 1
16311 _ACEOF
16312
16313 else
16314
16315 cat >>confdefs.h <<\_ACEOF
16316 #define vfork fork
16317 _ACEOF
16318
16319 fi
16320 if test "x$ac_cv_func_fork_works" = xyes; then
16321
16322 cat >>confdefs.h <<\_ACEOF
16323 #define HAVE_WORKING_FORK 1
16324 _ACEOF
16325
16326 fi
16327
16328
16329
16330 for ac_func in canonicalize_file_name realpath
16331 do
16332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16333 echo "$as_me:$LINENO: checking for $ac_func" >&5
16334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16335 if eval "test \"\${$as_ac_var+set}\" = set"; then
16336 echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h. */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h. */
16344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16346 #define $ac_func innocuous_$ac_func
16347
16348 /* System header to define __stub macros and hopefully few prototypes,
16349 which can conflict with char $ac_func (); below.
16350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16351 <limits.h> exists even on freestanding compilers. */
16352
16353 #ifdef __STDC__
16354 # include <limits.h>
16355 #else
16356 # include <assert.h>
16357 #endif
16358
16359 #undef $ac_func
16360
16361 /* Override any gcc2 internal prototype to avoid an error. */
16362 #ifdef __cplusplus
16363 extern "C"
16364 {
16365 #endif
16366 /* We use char because int might match the return type of a gcc2
16367 builtin and then its argument prototype would still apply. */
16368 char $ac_func ();
16369 /* The GNU C library defines this for functions which it implements
16370 to always fail with ENOSYS. Some functions are actually named
16371 something starting with __ and the normal name is an alias. */
16372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16373 choke me
16374 #else
16375 char (*f) () = $ac_func;
16376 #endif
16377 #ifdef __cplusplus
16378 }
16379 #endif
16380
16381 int
16382 main ()
16383 {
16384 return f != $ac_func;
16385 ;
16386 return 0;
16387 }
16388 _ACEOF
16389 rm -f conftest.$ac_objext conftest$ac_exeext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16391 (eval $ac_link) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest$ac_exeext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 eval "$as_ac_var=yes"
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 eval "$as_ac_var=no"
16417 fi
16418 rm -f conftest.err conftest.$ac_objext \
16419 conftest$ac_exeext conftest.$ac_ext
16420 fi
16421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16422 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16423 if test `eval echo '${'$as_ac_var'}'` = yes; then
16424 cat >>confdefs.h <<_ACEOF
16425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16426 _ACEOF
16427
16428 fi
16429 done
16430
16431
16432
16433 for ac_func in getuid getgid
16434 do
16435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16436 echo "$as_me:$LINENO: checking for $ac_func" >&5
16437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16438 if eval "test \"\${$as_ac_var+set}\" = set"; then
16439 echo $ECHO_N "(cached) $ECHO_C" >&6
16440 else
16441 cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h. */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h. */
16447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16449 #define $ac_func innocuous_$ac_func
16450
16451 /* System header to define __stub macros and hopefully few prototypes,
16452 which can conflict with char $ac_func (); below.
16453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16454 <limits.h> exists even on freestanding compilers. */
16455
16456 #ifdef __STDC__
16457 # include <limits.h>
16458 #else
16459 # include <assert.h>
16460 #endif
16461
16462 #undef $ac_func
16463
16464 /* Override any gcc2 internal prototype to avoid an error. */
16465 #ifdef __cplusplus
16466 extern "C"
16467 {
16468 #endif
16469 /* We use char because int might match the return type of a gcc2
16470 builtin and then its argument prototype would still apply. */
16471 char $ac_func ();
16472 /* The GNU C library defines this for functions which it implements
16473 to always fail with ENOSYS. Some functions are actually named
16474 something starting with __ and the normal name is an alias. */
16475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16476 choke me
16477 #else
16478 char (*f) () = $ac_func;
16479 #endif
16480 #ifdef __cplusplus
16481 }
16482 #endif
16483
16484 int
16485 main ()
16486 {
16487 return f != $ac_func;
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>conftest.er1
16495 ac_status=$?
16496 grep -v '^ *+' conftest.er1 >conftest.err
16497 rm -f conftest.er1
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } &&
16501 { ac_try='test -z "$ac_c_werror_flag"
16502 || test ! -s conftest.err'
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; } &&
16508 { ac_try='test -s conftest$ac_exeext'
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16514 eval "$as_ac_var=yes"
16515 else
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16518
16519 eval "$as_ac_var=no"
16520 fi
16521 rm -f conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 fi
16524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16525 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16526 if test `eval echo '${'$as_ac_var'}'` = yes; then
16527 cat >>confdefs.h <<_ACEOF
16528 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16529 _ACEOF
16530
16531 fi
16532 done
16533
16534
16535 for ac_func in poll
16536 do
16537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16538 echo "$as_me:$LINENO: checking for $ac_func" >&5
16539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16540 if eval "test \"\${$as_ac_var+set}\" = set"; then
16541 echo $ECHO_N "(cached) $ECHO_C" >&6
16542 else
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16551 #define $ac_func innocuous_$ac_func
16552
16553 /* System header to define __stub macros and hopefully few prototypes,
16554 which can conflict with char $ac_func (); below.
16555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16556 <limits.h> exists even on freestanding compilers. */
16557
16558 #ifdef __STDC__
16559 # include <limits.h>
16560 #else
16561 # include <assert.h>
16562 #endif
16563
16564 #undef $ac_func
16565
16566 /* Override any gcc2 internal prototype to avoid an error. */
16567 #ifdef __cplusplus
16568 extern "C"
16569 {
16570 #endif
16571 /* We use char because int might match the return type of a gcc2
16572 builtin and then its argument prototype would still apply. */
16573 char $ac_func ();
16574 /* The GNU C library defines this for functions which it implements
16575 to always fail with ENOSYS. Some functions are actually named
16576 something starting with __ and the normal name is an alias. */
16577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16578 choke me
16579 #else
16580 char (*f) () = $ac_func;
16581 #endif
16582 #ifdef __cplusplus
16583 }
16584 #endif
16585
16586 int
16587 main ()
16588 {
16589 return f != $ac_func;
16590 ;
16591 return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16596 (eval $ac_link) 2>conftest.er1
16597 ac_status=$?
16598 grep -v '^ *+' conftest.er1 >conftest.err
16599 rm -f conftest.er1
16600 cat conftest.err >&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
16603 { ac_try='test -z "$ac_c_werror_flag"
16604 || test ! -s conftest.err'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest$ac_exeext'
16611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16613 ac_status=$?
16614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); }; }; then
16616 eval "$as_ac_var=yes"
16617 else
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16620
16621 eval "$as_ac_var=no"
16622 fi
16623 rm -f conftest.err conftest.$ac_objext \
16624 conftest$ac_exeext conftest.$ac_ext
16625 fi
16626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16627 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16628 if test `eval echo '${'$as_ac_var'}'` = yes; then
16629 cat >>confdefs.h <<_ACEOF
16630 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16631 _ACEOF
16632
16633 fi
16634 done
16635
16636
16637 for ac_func in pread64
16638 do
16639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16640 echo "$as_me:$LINENO: checking for $ac_func" >&5
16641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16642 if eval "test \"\${$as_ac_var+set}\" = set"; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16653 #define $ac_func innocuous_$ac_func
16654
16655 /* System header to define __stub macros and hopefully few prototypes,
16656 which can conflict with char $ac_func (); below.
16657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16658 <limits.h> exists even on freestanding compilers. */
16659
16660 #ifdef __STDC__
16661 # include <limits.h>
16662 #else
16663 # include <assert.h>
16664 #endif
16665
16666 #undef $ac_func
16667
16668 /* Override any gcc2 internal prototype to avoid an error. */
16669 #ifdef __cplusplus
16670 extern "C"
16671 {
16672 #endif
16673 /* We use char because int might match the return type of a gcc2
16674 builtin and then its argument prototype would still apply. */
16675 char $ac_func ();
16676 /* The GNU C library defines this for functions which it implements
16677 to always fail with ENOSYS. Some functions are actually named
16678 something starting with __ and the normal name is an alias. */
16679 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16680 choke me
16681 #else
16682 char (*f) () = $ac_func;
16683 #endif
16684 #ifdef __cplusplus
16685 }
16686 #endif
16687
16688 int
16689 main ()
16690 {
16691 return f != $ac_func;
16692 ;
16693 return 0;
16694 }
16695 _ACEOF
16696 rm -f conftest.$ac_objext conftest$ac_exeext
16697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16698 (eval $ac_link) 2>conftest.er1
16699 ac_status=$?
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest$ac_exeext'
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 eval "$as_ac_var=yes"
16719 else
16720 echo "$as_me: failed program was:" >&5
16721 sed 's/^/| /' conftest.$ac_ext >&5
16722
16723 eval "$as_ac_var=no"
16724 fi
16725 rm -f conftest.err conftest.$ac_objext \
16726 conftest$ac_exeext conftest.$ac_ext
16727 fi
16728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16729 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733 _ACEOF
16734
16735 fi
16736 done
16737
16738
16739 for ac_func in sbrk
16740 do
16741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16742 echo "$as_me:$LINENO: checking for $ac_func" >&5
16743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16744 if eval "test \"\${$as_ac_var+set}\" = set"; then
16745 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 else
16747 cat >conftest.$ac_ext <<_ACEOF
16748 /* confdefs.h. */
16749 _ACEOF
16750 cat confdefs.h >>conftest.$ac_ext
16751 cat >>conftest.$ac_ext <<_ACEOF
16752 /* end confdefs.h. */
16753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16755 #define $ac_func innocuous_$ac_func
16756
16757 /* System header to define __stub macros and hopefully few prototypes,
16758 which can conflict with char $ac_func (); below.
16759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16760 <limits.h> exists even on freestanding compilers. */
16761
16762 #ifdef __STDC__
16763 # include <limits.h>
16764 #else
16765 # include <assert.h>
16766 #endif
16767
16768 #undef $ac_func
16769
16770 /* Override any gcc2 internal prototype to avoid an error. */
16771 #ifdef __cplusplus
16772 extern "C"
16773 {
16774 #endif
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16777 char $ac_func ();
16778 /* The GNU C library defines this for functions which it implements
16779 to always fail with ENOSYS. Some functions are actually named
16780 something starting with __ and the normal name is an alias. */
16781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16782 choke me
16783 #else
16784 char (*f) () = $ac_func;
16785 #endif
16786 #ifdef __cplusplus
16787 }
16788 #endif
16789
16790 int
16791 main ()
16792 {
16793 return f != $ac_func;
16794 ;
16795 return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>conftest.er1
16801 ac_status=$?
16802 grep -v '^ *+' conftest.er1 >conftest.err
16803 rm -f conftest.er1
16804 cat conftest.err >&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } &&
16807 { ac_try='test -z "$ac_c_werror_flag"
16808 || test ! -s conftest.err'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16811 ac_status=$?
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16817 ac_status=$?
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 eval "$as_ac_var=yes"
16821 else
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 eval "$as_ac_var=no"
16826 fi
16827 rm -f conftest.err conftest.$ac_objext \
16828 conftest$ac_exeext conftest.$ac_ext
16829 fi
16830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16832 if test `eval echo '${'$as_ac_var'}'` = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16835 _ACEOF
16836
16837 fi
16838 done
16839
16840
16841
16842 for ac_func in setpgid setpgrp
16843 do
16844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845 echo "$as_me:$LINENO: checking for $ac_func" >&5
16846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16847 if eval "test \"\${$as_ac_var+set}\" = set"; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h. */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16858 #define $ac_func innocuous_$ac_func
16859
16860 /* System header to define __stub macros and hopefully few prototypes,
16861 which can conflict with char $ac_func (); below.
16862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863 <limits.h> exists even on freestanding compilers. */
16864
16865 #ifdef __STDC__
16866 # include <limits.h>
16867 #else
16868 # include <assert.h>
16869 #endif
16870
16871 #undef $ac_func
16872
16873 /* Override any gcc2 internal prototype to avoid an error. */
16874 #ifdef __cplusplus
16875 extern "C"
16876 {
16877 #endif
16878 /* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16880 char $ac_func ();
16881 /* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
16884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16885 choke me
16886 #else
16887 char (*f) () = $ac_func;
16888 #endif
16889 #ifdef __cplusplus
16890 }
16891 #endif
16892
16893 int
16894 main ()
16895 {
16896 return f != $ac_func;
16897 ;
16898 return 0;
16899 }
16900 _ACEOF
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>conftest.er1
16904 ac_status=$?
16905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag"
16911 || test ! -s conftest.err'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16919 (eval $ac_try) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 eval "$as_ac_var=yes"
16924 else
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 eval "$as_ac_var=no"
16929 fi
16930 rm -f conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932 fi
16933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16934 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938 _ACEOF
16939
16940 fi
16941 done
16942
16943
16944
16945
16946 for ac_func in sigaction sigprocmask sigsetmask
16947 do
16948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16949 echo "$as_me:$LINENO: checking for $ac_func" >&5
16950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16951 if eval "test \"\${$as_ac_var+set}\" = set"; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 else
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16962 #define $ac_func innocuous_$ac_func
16963
16964 /* System header to define __stub macros and hopefully few prototypes,
16965 which can conflict with char $ac_func (); below.
16966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16967 <limits.h> exists even on freestanding compilers. */
16968
16969 #ifdef __STDC__
16970 # include <limits.h>
16971 #else
16972 # include <assert.h>
16973 #endif
16974
16975 #undef $ac_func
16976
16977 /* Override any gcc2 internal prototype to avoid an error. */
16978 #ifdef __cplusplus
16979 extern "C"
16980 {
16981 #endif
16982 /* We use char because int might match the return type of a gcc2
16983 builtin and then its argument prototype would still apply. */
16984 char $ac_func ();
16985 /* The GNU C library defines this for functions which it implements
16986 to always fail with ENOSYS. Some functions are actually named
16987 something starting with __ and the normal name is an alias. */
16988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16989 choke me
16990 #else
16991 char (*f) () = $ac_func;
16992 #endif
16993 #ifdef __cplusplus
16994 }
16995 #endif
16996
16997 int
16998 main ()
16999 {
17000 return f != $ac_func;
17001 ;
17002 return 0;
17003 }
17004 _ACEOF
17005 rm -f conftest.$ac_objext conftest$ac_exeext
17006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17007 (eval $ac_link) 2>conftest.er1
17008 ac_status=$?
17009 grep -v '^ *+' conftest.er1 >conftest.err
17010 rm -f conftest.er1
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -z "$ac_c_werror_flag"
17015 || test ! -s conftest.err'
17016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017 (eval $ac_try) 2>&5
17018 ac_status=$?
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest$ac_exeext'
17022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17023 (eval $ac_try) 2>&5
17024 ac_status=$?
17025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); }; }; then
17027 eval "$as_ac_var=yes"
17028 else
17029 echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032 eval "$as_ac_var=no"
17033 fi
17034 rm -f conftest.err conftest.$ac_objext \
17035 conftest$ac_exeext conftest.$ac_ext
17036 fi
17037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17039 if test `eval echo '${'$as_ac_var'}'` = yes; then
17040 cat >>confdefs.h <<_ACEOF
17041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17042 _ACEOF
17043
17044 fi
17045 done
17046
17047
17048 for ac_func in socketpair
17049 do
17050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17051 echo "$as_me:$LINENO: checking for $ac_func" >&5
17052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17053 if eval "test \"\${$as_ac_var+set}\" = set"; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h. */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064 #define $ac_func innocuous_$ac_func
17065
17066 /* System header to define __stub macros and hopefully few prototypes,
17067 which can conflict with char $ac_func (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
17070
17071 #ifdef __STDC__
17072 # include <limits.h>
17073 #else
17074 # include <assert.h>
17075 #endif
17076
17077 #undef $ac_func
17078
17079 /* Override any gcc2 internal prototype to avoid an error. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 {
17083 #endif
17084 /* We use char because int might match the return type of a gcc2
17085 builtin and then its argument prototype would still apply. */
17086 char $ac_func ();
17087 /* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
17090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17091 choke me
17092 #else
17093 char (*f) () = $ac_func;
17094 #endif
17095 #ifdef __cplusplus
17096 }
17097 #endif
17098
17099 int
17100 main ()
17101 {
17102 return f != $ac_func;
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>conftest.er1
17110 ac_status=$?
17111 grep -v '^ *+' conftest.er1 >conftest.err
17112 rm -f conftest.er1
17113 cat conftest.err >&5
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); } &&
17116 { ac_try='test -z "$ac_c_werror_flag"
17117 || test ! -s conftest.err'
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; } &&
17123 { ac_try='test -s conftest$ac_exeext'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17129 eval "$as_ac_var=yes"
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 eval "$as_ac_var=no"
17135 fi
17136 rm -f conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17138 fi
17139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17141 if test `eval echo '${'$as_ac_var'}'` = yes; then
17142 cat >>confdefs.h <<_ACEOF
17143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17144 _ACEOF
17145
17146 fi
17147 done
17148
17149
17150 for ac_func in syscall
17151 do
17152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17155 if eval "test \"\${$as_ac_var+set}\" = set"; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166 #define $ac_func innocuous_$ac_func
17167
17168 /* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17172
17173 #ifdef __STDC__
17174 # include <limits.h>
17175 #else
17176 # include <assert.h>
17177 #endif
17178
17179 #undef $ac_func
17180
17181 /* Override any gcc2 internal prototype to avoid an error. */
17182 #ifdef __cplusplus
17183 extern "C"
17184 {
17185 #endif
17186 /* We use char because int might match the return type of a gcc2
17187 builtin and then its argument prototype would still apply. */
17188 char $ac_func ();
17189 /* The GNU C library defines this for functions which it implements
17190 to always fail with ENOSYS. Some functions are actually named
17191 something starting with __ and the normal name is an alias. */
17192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17193 choke me
17194 #else
17195 char (*f) () = $ac_func;
17196 #endif
17197 #ifdef __cplusplus
17198 }
17199 #endif
17200
17201 int
17202 main ()
17203 {
17204 return f != $ac_func;
17205 ;
17206 return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211 (eval $ac_link) 2>conftest.er1
17212 ac_status=$?
17213 grep -v '^ *+' conftest.er1 >conftest.err
17214 rm -f conftest.er1
17215 cat conftest.err >&5
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); } &&
17218 { ac_try='test -z "$ac_c_werror_flag"
17219 || test ! -s conftest.err'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; } &&
17225 { ac_try='test -s conftest$ac_exeext'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; }; then
17231 eval "$as_ac_var=yes"
17232 else
17233 echo "$as_me: failed program was:" >&5
17234 sed 's/^/| /' conftest.$ac_ext >&5
17235
17236 eval "$as_ac_var=no"
17237 fi
17238 rm -f conftest.err conftest.$ac_objext \
17239 conftest$ac_exeext conftest.$ac_ext
17240 fi
17241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17243 if test `eval echo '${'$as_ac_var'}'` = yes; then
17244 cat >>confdefs.h <<_ACEOF
17245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17246 _ACEOF
17247
17248 fi
17249 done
17250
17251
17252 for ac_func in ttrace
17253 do
17254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 echo "$as_me:$LINENO: checking for $ac_func" >&5
17256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17257 if eval "test \"\${$as_ac_var+set}\" = set"; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 else
17260 cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h. */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17268 #define $ac_func innocuous_$ac_func
17269
17270 /* System header to define __stub macros and hopefully few prototypes,
17271 which can conflict with char $ac_func (); below.
17272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17273 <limits.h> exists even on freestanding compilers. */
17274
17275 #ifdef __STDC__
17276 # include <limits.h>
17277 #else
17278 # include <assert.h>
17279 #endif
17280
17281 #undef $ac_func
17282
17283 /* Override any gcc2 internal prototype to avoid an error. */
17284 #ifdef __cplusplus
17285 extern "C"
17286 {
17287 #endif
17288 /* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
17290 char $ac_func ();
17291 /* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
17294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17295 choke me
17296 #else
17297 char (*f) () = $ac_func;
17298 #endif
17299 #ifdef __cplusplus
17300 }
17301 #endif
17302
17303 int
17304 main ()
17305 {
17306 return f != $ac_func;
17307 ;
17308 return 0;
17309 }
17310 _ACEOF
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>conftest.er1
17314 ac_status=$?
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
17320 { ac_try='test -z "$ac_c_werror_flag"
17321 || test ! -s conftest.err'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; } &&
17327 { ac_try='test -s conftest$ac_exeext'
17328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17329 (eval $ac_try) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 eval "$as_ac_var=yes"
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 eval "$as_ac_var=no"
17339 fi
17340 rm -f conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17342 fi
17343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17345 if test `eval echo '${'$as_ac_var'}'` = yes; then
17346 cat >>confdefs.h <<_ACEOF
17347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17348 _ACEOF
17349
17350 fi
17351 done
17352
17353
17354 for ac_func in wborder
17355 do
17356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17357 echo "$as_me:$LINENO: checking for $ac_func" >&5
17358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17359 if eval "test \"\${$as_ac_var+set}\" = set"; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362 cat >conftest.$ac_ext <<_ACEOF
17363 /* confdefs.h. */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h. */
17368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17370 #define $ac_func innocuous_$ac_func
17371
17372 /* System header to define __stub macros and hopefully few prototypes,
17373 which can conflict with char $ac_func (); below.
17374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17375 <limits.h> exists even on freestanding compilers. */
17376
17377 #ifdef __STDC__
17378 # include <limits.h>
17379 #else
17380 # include <assert.h>
17381 #endif
17382
17383 #undef $ac_func
17384
17385 /* Override any gcc2 internal prototype to avoid an error. */
17386 #ifdef __cplusplus
17387 extern "C"
17388 {
17389 #endif
17390 /* We use char because int might match the return type of a gcc2
17391 builtin and then its argument prototype would still apply. */
17392 char $ac_func ();
17393 /* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17397 choke me
17398 #else
17399 char (*f) () = $ac_func;
17400 #endif
17401 #ifdef __cplusplus
17402 }
17403 #endif
17404
17405 int
17406 main ()
17407 {
17408 return f != $ac_func;
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 rm -f conftest.$ac_objext conftest$ac_exeext
17414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17415 (eval $ac_link) 2>conftest.er1
17416 ac_status=$?
17417 grep -v '^ *+' conftest.er1 >conftest.err
17418 rm -f conftest.er1
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag"
17423 || test ! -s conftest.err'
17424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
17430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17431 (eval $ac_try) 2>&5
17432 ac_status=$?
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); }; }; then
17435 eval "$as_ac_var=yes"
17436 else
17437 echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440 eval "$as_ac_var=no"
17441 fi
17442 rm -f conftest.err conftest.$ac_objext \
17443 conftest$ac_exeext conftest.$ac_ext
17444 fi
17445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17447 if test `eval echo '${'$as_ac_var'}'` = yes; then
17448 cat >>confdefs.h <<_ACEOF
17449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450 _ACEOF
17451
17452 fi
17453 done
17454
17455
17456 # Check the return and argument types of ptrace. No canned test for
17457 # this, so roll our own.
17458 gdb_ptrace_headers='
17459 #if HAVE_SYS_TYPES_H
17460 # include <sys/types.h>
17461 #endif
17462 #if HAVE_SYS_PTRACE_H
17463 # include <sys/ptrace.h>
17464 #endif
17465 #if HAVE_UNISTD_H
17466 # include <unistd.h>
17467 #endif
17468 '
17469 # There is no point in checking if we don't have a prototype.
17470 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
17471 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
17472 if test "${ac_cv_have_decl_ptrace+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475 cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h. */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h. */
17481 $gdb_ptrace_headers
17482
17483 int
17484 main ()
17485 {
17486 #ifndef ptrace
17487 char *p = (char *) ptrace;
17488 #endif
17489
17490 ;
17491 return 0;
17492 }
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -z "$ac_c_werror_flag"
17504 || test ! -s conftest.err'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_have_decl_ptrace=yes
17517 else
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521 ac_cv_have_decl_ptrace=no
17522 fi
17523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17524 fi
17525 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
17526 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
17527 if test $ac_cv_have_decl_ptrace = yes; then
17528
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_DECL_PTRACE 1
17531 _ACEOF
17532
17533
17534 else
17535 cat >>confdefs.h <<_ACEOF
17536 #define HAVE_DECL_PTRACE 0
17537 _ACEOF
17538
17539
17540 : ${gdb_cv_func_ptrace_ret='int'}
17541 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17542
17543 fi
17544
17545
17546 # Check return type.
17547 echo "$as_me:$LINENO: checking return type of ptrace" >&5
17548 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
17549 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
17550 echo $ECHO_N "(cached) $ECHO_C" >&6
17551 else
17552 cat >conftest.$ac_ext <<_ACEOF
17553 /* confdefs.h. */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h. */
17558 $gdb_ptrace_headers
17559 int
17560 main ()
17561 {
17562 extern int ptrace ();
17563 ;
17564 return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17569 (eval $ac_compile) 2>conftest.er1
17570 ac_status=$?
17571 grep -v '^ *+' conftest.er1 >conftest.err
17572 rm -f conftest.er1
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } &&
17576 { ac_try='test -z "$ac_c_werror_flag"
17577 || test ! -s conftest.err'
17578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; } &&
17583 { ac_try='test -s conftest.$ac_objext'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; }; then
17589 gdb_cv_func_ptrace_ret='int'
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 gdb_cv_func_ptrace_ret='long'
17595 fi
17596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17597 fi
17598 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
17599 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
17600
17601 cat >>confdefs.h <<_ACEOF
17602 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
17603 _ACEOF
17604
17605 # Check argument types.
17606 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
17607 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
17608 if test "${gdb_cv_func_ptrace_args+set}" = set; then
17609 echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611
17612 for gdb_arg1 in 'int' 'long'; do
17613 for gdb_arg2 in 'pid_t' 'int' 'long'; do
17614 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
17615 for gdb_arg4 in 'int' 'long'; do
17616 cat >conftest.$ac_ext <<_ACEOF
17617 /* confdefs.h. */
17618 _ACEOF
17619 cat confdefs.h >>conftest.$ac_ext
17620 cat >>conftest.$ac_ext <<_ACEOF
17621 /* end confdefs.h. */
17622 $gdb_ptrace_headers
17623 int
17624 main ()
17625 {
17626
17627 extern $gdb_cv_func_ptrace_ret
17628 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
17629
17630 ;
17631 return 0;
17632 }
17633 _ACEOF
17634 rm -f conftest.$ac_objext
17635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17636 (eval $ac_compile) 2>conftest.er1
17637 ac_status=$?
17638 grep -v '^ *+' conftest.er1 >conftest.err
17639 rm -f conftest.er1
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag"
17644 || test ! -s conftest.err'
17645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17646 (eval $ac_try) 2>&5
17647 ac_status=$?
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); }; } &&
17650 { ac_try='test -s conftest.$ac_objext'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17653 ac_status=$?
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; }; then
17656 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
17657 break 4;
17658 else
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 fi
17663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17664 for gdb_arg5 in 'int *' 'int' 'long'; do
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $gdb_ptrace_headers
17672 int
17673 main ()
17674 {
17675
17676 extern $gdb_cv_func_ptrace_ret
17677 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
17678
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17685 (eval $ac_compile) 2>conftest.er1
17686 ac_status=$?
17687 grep -v '^ *+' conftest.er1 >conftest.err
17688 rm -f conftest.er1
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try='test -z "$ac_c_werror_flag"
17693 || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17696 ac_status=$?
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest.$ac_objext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705
17706 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
17707 break 5;
17708 else
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17711
17712 fi
17713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17714 done
17715 done
17716 done
17717 done
17718 done
17719 # Provide a safe default value.
17720 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
17721
17722 fi
17723 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
17724 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
17725 ac_save_IFS=$IFS; IFS=','
17726 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
17727 IFS=$ac_save_IFS
17728 shift
17729
17730 cat >>confdefs.h <<_ACEOF
17731 #define PTRACE_TYPE_ARG3 $3
17732 _ACEOF
17733
17734 if test -n "$5"; then
17735
17736 cat >>confdefs.h <<_ACEOF
17737 #define PTRACE_TYPE_ARG5 $5
17738 _ACEOF
17739
17740 fi
17741
17742 if test "$cross_compiling" = no; then
17743 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17744 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17745 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17746 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 else
17748 if test "$cross_compiling" = yes; then
17749 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17750 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17751 { (exit 1); exit 1; }; }
17752 else
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h. */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h. */
17759 #if HAVE_UNISTD_H
17760 # include <unistd.h>
17761 #endif
17762
17763 int
17764 main ()
17765 {
17766 /* If this system has a BSD-style setpgrp which takes arguments,
17767 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17768 exit successfully. */
17769 exit (setpgrp (1,1) == -1 ? 0 : 1);
17770 ;
17771 return 0;
17772 }
17773 _ACEOF
17774 rm -f conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17782 ac_status=$?
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; }; then
17785 ac_cv_func_setpgrp_void=no
17786 else
17787 echo "$as_me: program exited with status $ac_status" >&5
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ( exit $ac_status )
17792 ac_cv_func_setpgrp_void=yes
17793 fi
17794 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17795 fi
17796 fi
17797 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17798 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17799 if test $ac_cv_func_setpgrp_void = yes; then
17800
17801 cat >>confdefs.h <<\_ACEOF
17802 #define SETPGRP_VOID 1
17803 _ACEOF
17804
17805 fi
17806
17807 else
17808 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17809 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17810 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17811 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 else
17813 cat >conftest.$ac_ext <<_ACEOF
17814 /* confdefs.h. */
17815 _ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819
17820 #include <unistd.h>
17821
17822 int
17823 main ()
17824 {
17825
17826 if (setpgrp(1,1) == -1)
17827 exit (0);
17828 else
17829 exit (1);
17830
17831 ;
17832 return 0;
17833 }
17834 _ACEOF
17835 rm -f conftest.$ac_objext
17836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17837 (eval $ac_compile) 2>conftest.er1
17838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
17844 { ac_try='test -z "$ac_c_werror_flag"
17845 || test ! -s conftest.err'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest.$ac_objext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_func_setpgrp_void=no
17858 else
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17861
17862 ac_cv_func_setpgrp_void=yes
17863 fi
17864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17865 fi
17866 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17867 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17868 if test $ac_cv_func_setpgrp_void = yes; then
17869 cat >>confdefs.h <<\_ACEOF
17870 #define SETPGRP_VOID 1
17871 _ACEOF
17872
17873 fi
17874 fi
17875
17876 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
17877 # since sigsetjmp might only be defined as a macro.
17878 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17879 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
17880 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
17881 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 else
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889
17890 #include <setjmp.h>
17891
17892 int
17893 main ()
17894 {
17895 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
17896 ;
17897 return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902 (eval $ac_compile) 2>conftest.er1
17903 ac_status=$?
17904 grep -v '^ *+' conftest.er1 >conftest.err
17905 rm -f conftest.er1
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); } &&
17909 { ac_try='test -z "$ac_c_werror_flag"
17910 || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17913 ac_status=$?
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest.$ac_objext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17919 ac_status=$?
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 gdb_cv_func_sigsetjmp=yes
17923 else
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 gdb_cv_func_sigsetjmp=no
17928 fi
17929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17930 fi
17931 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
17932 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
17933 if test $gdb_cv_func_sigsetjmp = yes; then
17934
17935 cat >>confdefs.h <<\_ACEOF
17936 #define HAVE_SIGSETJMP 1
17937 _ACEOF
17938
17939 fi
17940
17941 # Assume we'll default to using the included libiberty regex.
17942 gdb_use_included_regex=yes
17943
17944 # However, if the system regex is GNU regex, then default to *not*
17945 # using the included regex.
17946 echo "$as_me:$LINENO: checking for GNU regex" >&5
17947 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
17948 if test "${gdb_cv_have_gnu_regex+set}" = set; then
17949 echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951 cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h. */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #include <gnu-versions.h>
17958 int
17959 main ()
17960 {
17961 #define REGEX_INTERFACE_VERSION 1
17962 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
17963 # error "Version mismatch"
17964 #endif
17965 ;
17966 return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext
17970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17971 (eval $ac_compile) 2>conftest.er1
17972 ac_status=$?
17973 grep -v '^ *+' conftest.er1 >conftest.err
17974 rm -f conftest.er1
17975 cat conftest.err >&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); } &&
17978 { ac_try='test -z "$ac_c_werror_flag"
17979 || test ! -s conftest.err'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17982 ac_status=$?
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; } &&
17985 { ac_try='test -s conftest.$ac_objext'
17986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17988 ac_status=$?
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; }; then
17991 gdb_cv_have_gnu_regex=yes
17992 else
17993 echo "$as_me: failed program was:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17995
17996 gdb_cv_have_gnu_regex=no
17997 fi
17998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17999 fi
18000 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18001 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
18002 if test $gdb_cv_have_gnu_regex = yes; then
18003 gdb_use_included_regex=no
18004 fi
18005
18006
18007 # Check whether --with-included-regex or --without-included-regex was given.
18008 if test "${with_included_regex+set}" = set; then
18009 withval="$with_included_regex"
18010 gdb_with_regex=$withval
18011 else
18012 gdb_with_regex=$gdb_use_included_regex
18013 fi;
18014 if test "$gdb_with_regex" = yes; then
18015
18016 cat >>confdefs.h <<\_ACEOF
18017 #define USE_INCLUDED_REGEX 1
18018 _ACEOF
18019
18020 fi
18021
18022 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
18023 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18024 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
18025 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
18026 echo $ECHO_N "(cached) $ECHO_C" >&6
18027 else
18028 cat >conftest.$ac_ext <<_ACEOF
18029 /* confdefs.h. */
18030 _ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include <sys/param.h>
18035 #include <sys/proc.h>
18036
18037
18038 int
18039 main ()
18040 {
18041 static struct thread ac_aggr;
18042 if (ac_aggr.td_pcb)
18043 return 0;
18044 ;
18045 return 0;
18046 }
18047 _ACEOF
18048 rm -f conftest.$ac_objext
18049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18050 (eval $ac_compile) 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
18057 { ac_try='test -z "$ac_c_werror_flag"
18058 || test ! -s conftest.err'
18059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18060 (eval $ac_try) 2>&5
18061 ac_status=$?
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); }; } &&
18064 { ac_try='test -s conftest.$ac_objext'
18065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066 (eval $ac_try) 2>&5
18067 ac_status=$?
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); }; }; then
18070 ac_cv_member_struct_thread_td_pcb=yes
18071 else
18072 echo "$as_me: failed program was:" >&5
18073 sed 's/^/| /' conftest.$ac_ext >&5
18074
18075 cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h. */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 #include <sys/param.h>
18082 #include <sys/proc.h>
18083
18084
18085 int
18086 main ()
18087 {
18088 static struct thread ac_aggr;
18089 if (sizeof ac_aggr.td_pcb)
18090 return 0;
18091 ;
18092 return 0;
18093 }
18094 _ACEOF
18095 rm -f conftest.$ac_objext
18096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18097 (eval $ac_compile) 2>conftest.er1
18098 ac_status=$?
18099 grep -v '^ *+' conftest.er1 >conftest.err
18100 rm -f conftest.er1
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag"
18105 || test ! -s conftest.err'
18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18107 (eval $ac_try) 2>&5
18108 ac_status=$?
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest.$ac_objext'
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_member_struct_thread_td_pcb=yes
18118 else
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122 ac_cv_member_struct_thread_td_pcb=no
18123 fi
18124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18125 fi
18126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18127 fi
18128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18129 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
18130 if test $ac_cv_member_struct_thread_td_pcb = yes; then
18131
18132 cat >>confdefs.h <<_ACEOF
18133 #define HAVE_STRUCT_THREAD_TD_PCB 1
18134 _ACEOF
18135
18136
18137 fi
18138
18139
18140 # See if <sys/lwp.h> defines `struct lwp`.
18141 echo "$as_me:$LINENO: checking for struct lwp" >&5
18142 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
18143 if test "${gdb_cv_struct_lwp+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18145 else
18146 cat >conftest.$ac_ext <<_ACEOF
18147 /* confdefs.h. */
18148 _ACEOF
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 #include <sys/param.h>
18153 #include <sys/lwp.h>
18154 int
18155 main ()
18156 {
18157 struct lwp l;
18158 ;
18159 return 0;
18160 }
18161 _ACEOF
18162 rm -f conftest.$ac_objext
18163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18164 (eval $ac_compile) 2>conftest.er1
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try='test -z "$ac_c_werror_flag"
18172 || test ! -s conftest.err'
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
18178 { ac_try='test -s conftest.$ac_objext'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
18184 gdb_cv_struct_lwp=yes
18185 else
18186 echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189 gdb_cv_struct_lwp=no
18190 fi
18191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18192 fi
18193 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18194 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
18195 if test $gdb_cv_struct_lwp = yes; then
18196
18197 cat >>confdefs.h <<\_ACEOF
18198 #define HAVE_STRUCT_LWP 1
18199 _ACEOF
18200
18201 fi
18202
18203 # See if <machine/reg.h> degines `struct reg'.
18204 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18205 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
18206 if test "${gdb_cv_struct_reg+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 #include <sys/types.h>
18216 #include <machine/reg.h>
18217 int
18218 main ()
18219 {
18220 struct reg r;
18221 ;
18222 return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227 (eval $ac_compile) 2>conftest.er1
18228 ac_status=$?
18229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest.$ac_objext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18244 ac_status=$?
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 gdb_cv_struct_reg=yes
18248 else
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 gdb_cv_struct_reg=no
18253 fi
18254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18255 fi
18256 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18257 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
18258 if test $gdb_cv_struct_reg = yes; then
18259
18260 cat >>confdefs.h <<\_ACEOF
18261 #define HAVE_STRUCT_REG 1
18262 _ACEOF
18263
18264 fi
18265
18266 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18267 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
18268 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18269 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
18270 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
18271 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 else
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 #include <machine/reg.h>
18280
18281 int
18282 main ()
18283 {
18284 static struct reg ac_aggr;
18285 if (ac_aggr.r_fs)
18286 return 0;
18287 ;
18288 return 0;
18289 }
18290 _ACEOF
18291 rm -f conftest.$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -z "$ac_c_werror_flag"
18301 || test ! -s conftest.err'
18302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18303 (eval $ac_try) 2>&5
18304 ac_status=$?
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest.$ac_objext'
18308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18309 (eval $ac_try) 2>&5
18310 ac_status=$?
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); }; }; then
18313 ac_cv_member_struct_reg_r_fs=yes
18314 else
18315 echo "$as_me: failed program was:" >&5
18316 sed 's/^/| /' conftest.$ac_ext >&5
18317
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <machine/reg.h>
18325
18326 int
18327 main ()
18328 {
18329 static struct reg ac_aggr;
18330 if (sizeof ac_aggr.r_fs)
18331 return 0;
18332 ;
18333 return 0;
18334 }
18335 _ACEOF
18336 rm -f conftest.$ac_objext
18337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18338 (eval $ac_compile) 2>conftest.er1
18339 ac_status=$?
18340 grep -v '^ *+' conftest.er1 >conftest.err
18341 rm -f conftest.er1
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } &&
18345 { ac_try='test -z "$ac_c_werror_flag"
18346 || test ! -s conftest.err'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest.$ac_objext'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18355 ac_status=$?
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 ac_cv_member_struct_reg_r_fs=yes
18359 else
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363 ac_cv_member_struct_reg_r_fs=no
18364 fi
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 fi
18367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 fi
18369 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18370 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
18371 if test $ac_cv_member_struct_reg_r_fs = yes; then
18372
18373 cat >>confdefs.h <<_ACEOF
18374 #define HAVE_STRUCT_REG_R_FS 1
18375 _ACEOF
18376
18377
18378 fi
18379 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18380 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
18381 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h. */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18390 #include <machine/reg.h>
18391
18392 int
18393 main ()
18394 {
18395 static struct reg ac_aggr;
18396 if (ac_aggr.r_gs)
18397 return 0;
18398 ;
18399 return 0;
18400 }
18401 _ACEOF
18402 rm -f conftest.$ac_objext
18403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18404 (eval $ac_compile) 2>conftest.er1
18405 ac_status=$?
18406 grep -v '^ *+' conftest.er1 >conftest.err
18407 rm -f conftest.er1
18408 cat conftest.err >&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); } &&
18411 { ac_try='test -z "$ac_c_werror_flag"
18412 || test ! -s conftest.err'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; } &&
18418 { ac_try='test -s conftest.$ac_objext'
18419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18420 (eval $ac_try) 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
18424 ac_cv_member_struct_reg_r_gs=yes
18425 else
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18428
18429 cat >conftest.$ac_ext <<_ACEOF
18430 /* confdefs.h. */
18431 _ACEOF
18432 cat confdefs.h >>conftest.$ac_ext
18433 cat >>conftest.$ac_ext <<_ACEOF
18434 /* end confdefs.h. */
18435 #include <machine/reg.h>
18436
18437 int
18438 main ()
18439 {
18440 static struct reg ac_aggr;
18441 if (sizeof ac_aggr.r_gs)
18442 return 0;
18443 ;
18444 return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext
18448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18449 (eval $ac_compile) 2>conftest.er1
18450 ac_status=$?
18451 grep -v '^ *+' conftest.er1 >conftest.err
18452 rm -f conftest.er1
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); } &&
18456 { ac_try='test -z "$ac_c_werror_flag"
18457 || test ! -s conftest.err'
18458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18459 (eval $ac_try) 2>&5
18460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); }; } &&
18463 { ac_try='test -s conftest.$ac_objext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_member_struct_reg_r_gs=yes
18470 else
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474 ac_cv_member_struct_reg_r_gs=no
18475 fi
18476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18477 fi
18478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18479 fi
18480 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
18481 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
18482 if test $ac_cv_member_struct_reg_r_gs = yes; then
18483
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_STRUCT_REG_R_GS 1
18486 _ACEOF
18487
18488
18489 fi
18490
18491
18492 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
18493 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
18494 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
18495 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #include <sys/ptrace.h>
18505 int
18506 main ()
18507 {
18508 PTRACE_GETREGS;
18509 ;
18510 return 0;
18511 }
18512 _ACEOF
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>conftest.er1
18516 ac_status=$?
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
18522 { ac_try='test -z "$ac_c_werror_flag"
18523 || test ! -s conftest.err'
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 gdb_cv_have_ptrace_getregs=yes
18536 else
18537 echo "$as_me: failed program was:" >&5
18538 sed 's/^/| /' conftest.$ac_ext >&5
18539
18540 gdb_cv_have_ptrace_getregs=no
18541 fi
18542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18543 fi
18544
18545 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
18546 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
18547 if test $gdb_cv_have_ptrace_getregs = yes; then
18548
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE_PTRACE_GETREGS 1
18551 _ACEOF
18552
18553 fi
18554
18555 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
18556 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
18557 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
18558 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include <sys/ptrace.h>
18568 int
18569 main ()
18570 {
18571 PTRACE_GETFPXREGS;
18572 ;
18573 return 0;
18574 }
18575 _ACEOF
18576 rm -f conftest.$ac_objext
18577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18578 (eval $ac_compile) 2>conftest.er1
18579 ac_status=$?
18580 grep -v '^ *+' conftest.er1 >conftest.err
18581 rm -f conftest.er1
18582 cat conftest.err >&5
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } &&
18585 { ac_try='test -z "$ac_c_werror_flag"
18586 || test ! -s conftest.err'
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; } &&
18592 { ac_try='test -s conftest.$ac_objext'
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; }; then
18598 gdb_cv_have_ptrace_getfpxregs=yes
18599 else
18600 echo "$as_me: failed program was:" >&5
18601 sed 's/^/| /' conftest.$ac_ext >&5
18602
18603 gdb_cv_have_ptrace_getfpxregs=no
18604 fi
18605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18606 fi
18607
18608 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
18609 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
18610 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
18611
18612 cat >>confdefs.h <<\_ACEOF
18613 #define HAVE_PTRACE_GETFPXREGS 1
18614 _ACEOF
18615
18616 fi
18617
18618 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
18619 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
18620 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
18621 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
18622 echo $ECHO_N "(cached) $ECHO_C" >&6
18623 else
18624 cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h. */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #include <sys/types.h>
18631 #include <sys/ptrace.h>
18632 int
18633 main ()
18634 {
18635 PT_GETDBREGS;
18636 ;
18637 return 0;
18638 }
18639 _ACEOF
18640 rm -f conftest.$ac_objext
18641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18642 (eval $ac_compile) 2>conftest.er1
18643 ac_status=$?
18644 grep -v '^ *+' conftest.er1 >conftest.err
18645 rm -f conftest.er1
18646 cat conftest.err >&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); } &&
18649 { ac_try='test -z "$ac_c_werror_flag"
18650 || test ! -s conftest.err'
18651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18652 (eval $ac_try) 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; } &&
18656 { ac_try='test -s conftest.$ac_objext'
18657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18658 (eval $ac_try) 2>&5
18659 ac_status=$?
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); }; }; then
18662 gdb_cv_have_pt_getdbregs=yes
18663 else
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667 gdb_cv_have_pt_getdbregs=no
18668 fi
18669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18670 fi
18671
18672 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
18673 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
18674 if test $gdb_cv_have_pt_getdbregs = yes; then
18675
18676 cat >>confdefs.h <<\_ACEOF
18677 #define HAVE_PT_GETDBREGS 1
18678 _ACEOF
18679
18680 fi
18681
18682 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
18683 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
18684 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
18685 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
18686 echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688 cat >conftest.$ac_ext <<_ACEOF
18689 /* confdefs.h. */
18690 _ACEOF
18691 cat confdefs.h >>conftest.$ac_ext
18692 cat >>conftest.$ac_ext <<_ACEOF
18693 /* end confdefs.h. */
18694 #include <sys/types.h>
18695 #include <sys/ptrace.h>
18696 int
18697 main ()
18698 {
18699 PT_GETXMMREGS;
18700 ;
18701 return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 gdb_cv_have_pt_getxmmregs=yes
18727 else
18728 echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 gdb_cv_have_pt_getxmmregs=no
18732 fi
18733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18734 fi
18735
18736 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
18737 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
18738 if test $gdb_cv_have_pt_getxmmregs = yes; then
18739
18740 cat >>confdefs.h <<\_ACEOF
18741 #define HAVE_PT_GETXMMREGS 1
18742 _ACEOF
18743
18744 fi
18745
18746 # If we are configured native on GNU/Linux, work around problems with
18747 # sys/procfs.h
18748 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
18749
18750 if test "${target}" = "${host}"; then
18751 case "${host}" in
18752 i[3456]86-*-linux*)
18753
18754 cat >>confdefs.h <<\_ACEOF
18755 #define START_INFERIOR_TRAPS_EXPECTED 2
18756 _ACEOF
18757
18758
18759 cat >>confdefs.h <<\_ACEOF
18760 #define sys_quotactl 1
18761 _ACEOF
18762
18763 ;;
18764 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
18765
18766 cat >>confdefs.h <<\_ACEOF
18767 #define NEW_PROC_API 1
18768 _ACEOF
18769
18770 ;;
18771 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
18772
18773 cat >>confdefs.h <<\_ACEOF
18774 #define NEW_PROC_API 1
18775 _ACEOF
18776
18777 ;;
18778 mips-sgi-irix5*)
18779 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
18780
18781 cat >>confdefs.h <<\_ACEOF
18782 #define _KMEMUSER 1
18783 _ACEOF
18784
18785 ;;
18786 esac
18787 fi
18788
18789 if test "$ac_cv_header_sys_procfs_h" = yes; then
18790 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
18791 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
18792 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 else
18795 cat >conftest.$ac_ext <<_ACEOF
18796 /* confdefs.h. */
18797 _ACEOF
18798 cat confdefs.h >>conftest.$ac_ext
18799 cat >>conftest.$ac_ext <<_ACEOF
18800 /* end confdefs.h. */
18801
18802 #define _SYSCALL32
18803 #include <sys/procfs.h>
18804 int
18805 main ()
18806 {
18807 pstatus_t avar
18808 ;
18809 return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18814 (eval $ac_compile) 2>conftest.er1
18815 ac_status=$?
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
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); }; } &&
18828 { ac_try='test -s conftest.$ac_objext'
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 bfd_cv_have_sys_procfs_type_pstatus_t=yes
18835 else
18836 echo "$as_me: failed program was:" >&5
18837 sed 's/^/| /' conftest.$ac_ext >&5
18838
18839 bfd_cv_have_sys_procfs_type_pstatus_t=no
18840
18841 fi
18842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18843 fi
18844
18845 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
18846
18847 cat >>confdefs.h <<\_ACEOF
18848 #define HAVE_PSTATUS_T 1
18849 _ACEOF
18850
18851 fi
18852 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
18853 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
18854
18855 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
18856 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
18857 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
18858 echo $ECHO_N "(cached) $ECHO_C" >&6
18859 else
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h. */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h. */
18866
18867 #define _SYSCALL32
18868 #include <sys/procfs.h>
18869 int
18870 main ()
18871 {
18872 prrun_t avar
18873 ;
18874 return 0;
18875 }
18876 _ACEOF
18877 rm -f conftest.$ac_objext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18879 (eval $ac_compile) 2>conftest.er1
18880 ac_status=$?
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 bfd_cv_have_sys_procfs_type_prrun_t=yes
18900 else
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 bfd_cv_have_sys_procfs_type_prrun_t=no
18905
18906 fi
18907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18908 fi
18909
18910 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
18911
18912 cat >>confdefs.h <<\_ACEOF
18913 #define HAVE_PRRUN_T 1
18914 _ACEOF
18915
18916 fi
18917 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
18918 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
18919
18920 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
18921 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
18922 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 else
18925 cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h. */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h. */
18931
18932 #define _SYSCALL32
18933 #include <sys/procfs.h>
18934 int
18935 main ()
18936 {
18937 gregset_t avar
18938 ;
18939 return 0;
18940 }
18941 _ACEOF
18942 rm -f conftest.$ac_objext
18943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18944 (eval $ac_compile) 2>conftest.er1
18945 ac_status=$?
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
18951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 bfd_cv_have_sys_procfs_type_gregset_t=yes
18965 else
18966 echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.$ac_ext >&5
18968
18969 bfd_cv_have_sys_procfs_type_gregset_t=no
18970
18971 fi
18972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18973 fi
18974
18975 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
18976
18977 cat >>confdefs.h <<\_ACEOF
18978 #define HAVE_GREGSET_T 1
18979 _ACEOF
18980
18981 fi
18982 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
18983 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
18984
18985 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
18986 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
18987 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 cat >conftest.$ac_ext <<_ACEOF
18991 /* confdefs.h. */
18992 _ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996
18997 #define _SYSCALL32
18998 #include <sys/procfs.h>
18999 int
19000 main ()
19001 {
19002 fpregset_t avar
19003 ;
19004 return 0;
19005 }
19006 _ACEOF
19007 rm -f conftest.$ac_objext
19008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19009 (eval $ac_compile) 2>conftest.er1
19010 ac_status=$?
19011 grep -v '^ *+' conftest.er1 >conftest.err
19012 rm -f conftest.er1
19013 cat conftest.err >&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); } &&
19016 { ac_try='test -z "$ac_c_werror_flag"
19017 || test ! -s conftest.err'
19018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019 (eval $ac_try) 2>&5
19020 ac_status=$?
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; } &&
19023 { ac_try='test -s conftest.$ac_objext'
19024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025 (eval $ac_try) 2>&5
19026 ac_status=$?
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; }; then
19029 bfd_cv_have_sys_procfs_type_fpregset_t=yes
19030 else
19031 echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19033
19034 bfd_cv_have_sys_procfs_type_fpregset_t=no
19035
19036 fi
19037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19038 fi
19039
19040 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
19041
19042 cat >>confdefs.h <<\_ACEOF
19043 #define HAVE_FPREGSET_T 1
19044 _ACEOF
19045
19046 fi
19047 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19048 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
19049
19050 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19051 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
19052 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19053 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 else
19055 cat >conftest.$ac_ext <<_ACEOF
19056 /* confdefs.h. */
19057 _ACEOF
19058 cat confdefs.h >>conftest.$ac_ext
19059 cat >>conftest.$ac_ext <<_ACEOF
19060 /* end confdefs.h. */
19061
19062 #define _SYSCALL32
19063 #include <sys/procfs.h>
19064 int
19065 main ()
19066 {
19067 prgregset_t avar
19068 ;
19069 return 0;
19070 }
19071 _ACEOF
19072 rm -f conftest.$ac_objext
19073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19074 (eval $ac_compile) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } &&
19081 { ac_try='test -z "$ac_c_werror_flag"
19082 || test ! -s conftest.err'
19083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19084 (eval $ac_try) 2>&5
19085 ac_status=$?
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); }; } &&
19088 { ac_try='test -s conftest.$ac_objext'
19089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19091 ac_status=$?
19092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 bfd_cv_have_sys_procfs_type_prgregset_t=yes
19095 else
19096 echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099 bfd_cv_have_sys_procfs_type_prgregset_t=no
19100
19101 fi
19102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19103 fi
19104
19105 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
19106
19107 cat >>confdefs.h <<\_ACEOF
19108 #define HAVE_PRGREGSET_T 1
19109 _ACEOF
19110
19111 fi
19112 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19113 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
19114
19115 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19116 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
19117 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 else
19120 cat >conftest.$ac_ext <<_ACEOF
19121 /* confdefs.h. */
19122 _ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126
19127 #define _SYSCALL32
19128 #include <sys/procfs.h>
19129 int
19130 main ()
19131 {
19132 prfpregset_t avar
19133 ;
19134 return 0;
19135 }
19136 _ACEOF
19137 rm -f conftest.$ac_objext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19139 (eval $ac_compile) 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } &&
19146 { ac_try='test -z "$ac_c_werror_flag"
19147 || test ! -s conftest.err'
19148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19149 (eval $ac_try) 2>&5
19150 ac_status=$?
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); }; } &&
19153 { ac_try='test -s conftest.$ac_objext'
19154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155 (eval $ac_try) 2>&5
19156 ac_status=$?
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); }; }; then
19159 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
19160 else
19161 echo "$as_me: failed program was:" >&5
19162 sed 's/^/| /' conftest.$ac_ext >&5
19163
19164 bfd_cv_have_sys_procfs_type_prfpregset_t=no
19165
19166 fi
19167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19168 fi
19169
19170 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19171
19172 cat >>confdefs.h <<\_ACEOF
19173 #define HAVE_PRFPREGSET_T 1
19174 _ACEOF
19175
19176 fi
19177 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19178 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
19179
19180 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19181 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
19182 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 else
19185 cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h. */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h. */
19191
19192 #define _SYSCALL32
19193 #include <sys/procfs.h>
19194 int
19195 main ()
19196 {
19197 prgregset32_t avar
19198 ;
19199 return 0;
19200 }
19201 _ACEOF
19202 rm -f conftest.$ac_objext
19203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19204 (eval $ac_compile) 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } &&
19211 { ac_try='test -z "$ac_c_werror_flag"
19212 || test ! -s conftest.err'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19215 ac_status=$?
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; } &&
19218 { ac_try='test -s conftest.$ac_objext'
19219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220 (eval $ac_try) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); }; }; then
19224 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 bfd_cv_have_sys_procfs_type_prgregset32_t=no
19230
19231 fi
19232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19233 fi
19234
19235 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
19236
19237 cat >>confdefs.h <<\_ACEOF
19238 #define HAVE_PRGREGSET32_T 1
19239 _ACEOF
19240
19241 fi
19242 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19243 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
19244
19245 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19246 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
19247 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19249 else
19250 cat >conftest.$ac_ext <<_ACEOF
19251 /* confdefs.h. */
19252 _ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19256
19257 #define _SYSCALL32
19258 #include <sys/procfs.h>
19259 int
19260 main ()
19261 {
19262 prfpregset32_t avar
19263 ;
19264 return 0;
19265 }
19266 _ACEOF
19267 rm -f conftest.$ac_objext
19268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269 (eval $ac_compile) 2>conftest.er1
19270 ac_status=$?
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
19276 { ac_try='test -z "$ac_c_werror_flag"
19277 || test ! -s conftest.err'
19278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest.$ac_objext'
19284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285 (eval $ac_try) 2>&5
19286 ac_status=$?
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19289 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
19295
19296 fi
19297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19298 fi
19299
19300 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
19301
19302 cat >>confdefs.h <<\_ACEOF
19303 #define HAVE_PRFPREGSET32_T 1
19304 _ACEOF
19305
19306 fi
19307 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19308 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
19309
19310 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19311 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
19312 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h. */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321
19322 #define _SYSCALL32
19323 #include <sys/procfs.h>
19324 int
19325 main ()
19326 {
19327 lwpid_t avar
19328 ;
19329 return 0;
19330 }
19331 _ACEOF
19332 rm -f conftest.$ac_objext
19333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19334 (eval $ac_compile) 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_c_werror_flag"
19342 || test ! -s conftest.err'
19343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19344 (eval $ac_try) 2>&5
19345 ac_status=$?
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest.$ac_objext'
19349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19350 (eval $ac_try) 2>&5
19351 ac_status=$?
19352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19353 (exit $ac_status); }; }; then
19354 bfd_cv_have_sys_procfs_type_lwpid_t=yes
19355 else
19356 echo "$as_me: failed program was:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19358
19359 bfd_cv_have_sys_procfs_type_lwpid_t=no
19360
19361 fi
19362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19363 fi
19364
19365 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
19366
19367 cat >>confdefs.h <<\_ACEOF
19368 #define HAVE_LWPID_T 1
19369 _ACEOF
19370
19371 fi
19372 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19373 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
19374
19375 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19376 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
19377 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19378 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 else
19380 cat >conftest.$ac_ext <<_ACEOF
19381 /* confdefs.h. */
19382 _ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19386
19387 #define _SYSCALL32
19388 #include <sys/procfs.h>
19389 int
19390 main ()
19391 {
19392 psaddr_t avar
19393 ;
19394 return 0;
19395 }
19396 _ACEOF
19397 rm -f conftest.$ac_objext
19398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399 (eval $ac_compile) 2>conftest.er1
19400 ac_status=$?
19401 grep -v '^ *+' conftest.er1 >conftest.err
19402 rm -f conftest.er1
19403 cat conftest.err >&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } &&
19406 { ac_try='test -z "$ac_c_werror_flag"
19407 || test ! -s conftest.err'
19408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19409 (eval $ac_try) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); }; } &&
19413 { ac_try='test -s conftest.$ac_objext'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 bfd_cv_have_sys_procfs_type_psaddr_t=yes
19420 else
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 bfd_cv_have_sys_procfs_type_psaddr_t=no
19425
19426 fi
19427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19428 fi
19429
19430 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
19431
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE_PSADDR_T 1
19434 _ACEOF
19435
19436 fi
19437 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19438 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
19439
19440 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19441 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
19442 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h. */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19451
19452 #define _SYSCALL32
19453 #include <sys/procfs.h>
19454 int
19455 main ()
19456 {
19457 prsysent_t avar
19458 ;
19459 return 0;
19460 }
19461 _ACEOF
19462 rm -f conftest.$ac_objext
19463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19464 (eval $ac_compile) 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest.$ac_objext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 bfd_cv_have_sys_procfs_type_prsysent_t=yes
19485 else
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19488
19489 bfd_cv_have_sys_procfs_type_prsysent_t=no
19490
19491 fi
19492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19493 fi
19494
19495 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
19496
19497 cat >>confdefs.h <<\_ACEOF
19498 #define HAVE_PRSYSENT_T 1
19499 _ACEOF
19500
19501 fi
19502 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
19503 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
19504
19505 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
19506 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
19507 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510 cat >conftest.$ac_ext <<_ACEOF
19511 /* confdefs.h. */
19512 _ACEOF
19513 cat confdefs.h >>conftest.$ac_ext
19514 cat >>conftest.$ac_ext <<_ACEOF
19515 /* end confdefs.h. */
19516
19517 #define _SYSCALL32
19518 #include <sys/procfs.h>
19519 int
19520 main ()
19521 {
19522 pr_sigset_t avar
19523 ;
19524 return 0;
19525 }
19526 _ACEOF
19527 rm -f conftest.$ac_objext
19528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19529 (eval $ac_compile) 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } &&
19536 { ac_try='test -z "$ac_c_werror_flag"
19537 || test ! -s conftest.err'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; } &&
19543 { ac_try='test -s conftest.$ac_objext'
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
19550 else
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
19555
19556 fi
19557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19558 fi
19559
19560 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
19561
19562 cat >>confdefs.h <<\_ACEOF
19563 #define HAVE_PR_SIGSET_T 1
19564 _ACEOF
19565
19566 fi
19567 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
19568 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
19569
19570 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
19571 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
19572 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575 cat >conftest.$ac_ext <<_ACEOF
19576 /* confdefs.h. */
19577 _ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581
19582 #define _SYSCALL32
19583 #include <sys/procfs.h>
19584 int
19585 main ()
19586 {
19587 pr_sigaction64_t avar
19588 ;
19589 return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
19615 else
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
19620
19621 fi
19622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19623 fi
19624
19625 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
19626
19627 cat >>confdefs.h <<\_ACEOF
19628 #define HAVE_PR_SIGACTION64_T 1
19629 _ACEOF
19630
19631 fi
19632 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
19633 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
19634
19635 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
19636 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
19637 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646
19647 #define _SYSCALL32
19648 #include <sys/procfs.h>
19649 int
19650 main ()
19651 {
19652 pr_siginfo64_t avar
19653 ;
19654 return 0;
19655 }
19656 _ACEOF
19657 rm -f conftest.$ac_objext
19658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19659 (eval $ac_compile) 2>conftest.er1
19660 ac_status=$?
19661 grep -v '^ *+' conftest.er1 >conftest.err
19662 rm -f conftest.er1
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); } &&
19666 { ac_try='test -z "$ac_c_werror_flag"
19667 || test ! -s conftest.err'
19668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19669 (eval $ac_try) 2>&5
19670 ac_status=$?
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest.$ac_objext'
19674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19675 (eval $ac_try) 2>&5
19676 ac_status=$?
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); }; }; then
19679 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
19680 else
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
19685
19686 fi
19687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19688 fi
19689
19690 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
19691
19692 cat >>confdefs.h <<\_ACEOF
19693 #define HAVE_PR_SIGINFO64_T 1
19694 _ACEOF
19695
19696 fi
19697 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
19698 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
19699
19700
19701
19702
19703
19704 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
19705 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
19706 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
19707 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
19708 echo $ECHO_N "(cached) $ECHO_C" >&6
19709 else
19710 if test "$cross_compiling" = yes; then
19711 gdb_cv_prfpregset_t_broken=yes
19712 else
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19719 #include <sys/procfs.h>
19720 int main ()
19721 {
19722 if (sizeof (prfpregset_t) == sizeof (void *))
19723 return 1;
19724 return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest$ac_exeext
19728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19730 ac_status=$?
19731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; }; then
19738 gdb_cv_prfpregset_t_broken=no
19739 else
19740 echo "$as_me: program exited with status $ac_status" >&5
19741 echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744 ( exit $ac_status )
19745 gdb_cv_prfpregset_t_broken=yes
19746 fi
19747 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19748 fi
19749 fi
19750
19751 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
19752 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
19753 if test $gdb_cv_prfpregset_t_broken = yes; then
19754
19755 cat >>confdefs.h <<\_ACEOF
19756 #define PRFPREGSET_T_BROKEN 1
19757 _ACEOF
19758
19759 fi
19760 fi
19761
19762
19763 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
19764 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
19765 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
19766 echo $ECHO_N "(cached) $ECHO_C" >&6
19767 else
19768 cat >conftest.$ac_ext <<_ACEOF
19769 /* confdefs.h. */
19770 _ACEOF
19771 cat confdefs.h >>conftest.$ac_ext
19772 cat >>conftest.$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19774 #include <unistd.h>
19775 #include <sys/types.h>
19776 #include <sys/procfs.h>
19777
19778 int
19779 main ()
19780 {
19781
19782 int dummy;;
19783 dummy = ioctl(0, PIOCSET, &dummy);
19784
19785 ;
19786 return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19791 (eval $ac_compile) 2>conftest.er1
19792 ac_status=$?
19793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
19798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 gdb_cv_have_procfs_piocset=yes
19812 else
19813 echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 gdb_cv_have_procfs_piocset=no
19817 fi
19818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19819 fi
19820
19821 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
19822 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
19823 if test $gdb_cv_have_procfs_piocset = yes; then
19824
19825 cat >>confdefs.h <<\_ACEOF
19826 #define HAVE_PROCFS_PIOCSET 1
19827 _ACEOF
19828
19829 fi
19830 fi
19831
19832 if test ${host} = ${target} ; then
19833
19834 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
19835 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
19836 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839 cat >conftest.$ac_ext <<_ACEOF
19840 /* confdefs.h. */
19841 _ACEOF
19842 cat confdefs.h >>conftest.$ac_ext
19843 cat >>conftest.$ac_ext <<_ACEOF
19844 /* end confdefs.h. */
19845 #include <link.h>
19846 int
19847 main ()
19848 {
19849 struct link_map lm; (void) lm.l_addr;
19850 ;
19851 return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19856 (eval $ac_compile) 2>conftest.er1
19857 ac_status=$?
19858 grep -v '^ *+' conftest.er1 >conftest.err
19859 rm -f conftest.er1
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -z "$ac_c_werror_flag"
19864 || test ! -s conftest.err'
19865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19867 ac_status=$?
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); }; } &&
19870 { ac_try='test -s conftest.$ac_objext'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 gdb_cv_have_struct_link_map_with_l_members=yes
19877 else
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 gdb_cv_have_struct_link_map_with_l_members=no
19882 fi
19883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19884 fi
19885
19886 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
19887 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
19888 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
19889
19890 cat >>confdefs.h <<\_ACEOF
19891 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
19892 _ACEOF
19893
19894 fi
19895
19896
19897 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
19898 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
19899 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h. */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h. */
19908 #include <sys/types.h>
19909 #include <link.h>
19910 int
19911 main ()
19912 {
19913 struct link_map lm; (void) lm.lm_addr;
19914 ;
19915 return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext
19919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920 (eval $ac_compile) 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
19927 { ac_try='test -z "$ac_c_werror_flag"
19928 || test ! -s conftest.err'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19931 ac_status=$?
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; } &&
19934 { ac_try='test -s conftest.$ac_objext'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19937 ac_status=$?
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; }; then
19940 gdb_cv_have_struct_link_map_with_lm_members=yes
19941 else
19942 echo "$as_me: failed program was:" >&5
19943 sed 's/^/| /' conftest.$ac_ext >&5
19944
19945 gdb_cv_have_struct_link_map_with_lm_members=no
19946 fi
19947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19948 fi
19949
19950 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
19951 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
19952 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
19953
19954 cat >>confdefs.h <<\_ACEOF
19955 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
19956 _ACEOF
19957
19958 fi
19959
19960
19961 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
19962 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
19963 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 else
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h. */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h. */
19972 #include <sys/types.h>
19973 #ifdef HAVE_NLIST_H
19974 #include <nlist.h>
19975 #endif
19976 #include <link.h>
19977 int
19978 main ()
19979 {
19980 struct so_map lm; (void) lm.som_addr;
19981 ;
19982 return 0;
19983 }
19984 _ACEOF
19985 rm -f conftest.$ac_objext
19986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19987 (eval $ac_compile) 2>conftest.er1
19988 ac_status=$?
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 gdb_cv_have_struct_so_map_with_som_members=yes
20008 else
20009 echo "$as_me: failed program was:" >&5
20010 sed 's/^/| /' conftest.$ac_ext >&5
20011
20012 gdb_cv_have_struct_so_map_with_som_members=no
20013 fi
20014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20015 fi
20016
20017 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20018 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
20019 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
20020
20021 cat >>confdefs.h <<\_ACEOF
20022 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
20023 _ACEOF
20024
20025 fi
20026
20027
20028 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20029 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
20030 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 else
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 #define _SYSCALL32
20040 #include <sys/link.h>
20041 int
20042 main ()
20043 {
20044 struct link_map32 l;
20045 ;
20046 return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest.$ac_objext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20051 (eval $ac_compile) 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } &&
20058 { ac_try='test -z "$ac_c_werror_flag"
20059 || test ! -s conftest.err'
20060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061 (eval $ac_try) 2>&5
20062 ac_status=$?
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); }; } &&
20065 { ac_try='test -s conftest.$ac_objext'
20066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067 (eval $ac_try) 2>&5
20068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); }; }; then
20071 gdb_cv_have_struct_link_map32=yes
20072 else
20073 echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20075
20076 gdb_cv_have_struct_link_map32=no
20077 fi
20078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20079 fi
20080
20081 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20082 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
20083 if test $gdb_cv_have_struct_link_map32 = yes; then
20084
20085 cat >>confdefs.h <<\_ACEOF
20086 #define HAVE_STRUCT_LINK_MAP32 1
20087 _ACEOF
20088
20089
20090 cat >>confdefs.h <<\_ACEOF
20091 #define _SYSCALL32 1
20092 _ACEOF
20093
20094 fi
20095 fi
20096
20097 # Check if the compiler supports the `long long' type.
20098
20099 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20100 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
20101 if test "${gdb_cv_c_long_long+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104 cat >conftest.$ac_ext <<_ACEOF
20105 /* confdefs.h. */
20106 _ACEOF
20107 cat confdefs.h >>conftest.$ac_ext
20108 cat >>conftest.$ac_ext <<_ACEOF
20109 /* end confdefs.h. */
20110 extern long long foo;
20111 int
20112 main ()
20113 {
20114 switch (foo & 2) { case 0: return 1; }
20115 ;
20116 return 0;
20117 }
20118 _ACEOF
20119 rm -f conftest.$ac_objext
20120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20121 (eval $ac_compile) 2>conftest.er1
20122 ac_status=$?
20123 grep -v '^ *+' conftest.er1 >conftest.err
20124 rm -f conftest.er1
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag"
20129 || test ! -s conftest.err'
20130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20131 (eval $ac_try) 2>&5
20132 ac_status=$?
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20137 (eval $ac_try) 2>&5
20138 ac_status=$?
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); }; }; then
20141 gdb_cv_c_long_long=yes
20142 else
20143 echo "$as_me: failed program was:" >&5
20144 sed 's/^/| /' conftest.$ac_ext >&5
20145
20146 gdb_cv_c_long_long=no
20147 fi
20148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20149 fi
20150 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20151 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
20152 if test $gdb_cv_c_long_long = yes; then
20153
20154 cat >>confdefs.h <<\_ACEOF
20155 #define CC_HAS_LONG_LONG 1
20156 _ACEOF
20157
20158 fi
20159
20160 # Check if the compiler and runtime support printing long longs.
20161
20162 echo "$as_me:$LINENO: checking for long long support in printf" >&5
20163 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
20164 if test "${gdb_cv_printf_has_long_long+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 else
20167 if test "$cross_compiling" = yes; then
20168 gdb_cv_printf_has_long_long=no
20169 else
20170 cat >conftest.$ac_ext <<_ACEOF
20171 /* confdefs.h. */
20172 _ACEOF
20173 cat confdefs.h >>conftest.$ac_ext
20174 cat >>conftest.$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 $ac_includes_default
20177 int
20178 main ()
20179 {
20180 char buf[32];
20181 long long l = 0;
20182 l = (l << 16) + 0x0123;
20183 l = (l << 16) + 0x4567;
20184 l = (l << 16) + 0x89ab;
20185 l = (l << 16) + 0xcdef;
20186 sprintf (buf, "0x%016llx", l);
20187 return (strcmp ("0x0123456789abcdef", buf));
20188 ;
20189 return 0;
20190 }
20191 _ACEOF
20192 rm -f conftest$ac_exeext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20194 (eval $ac_link) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 gdb_cv_printf_has_long_long=yes
20204 else
20205 echo "$as_me: program exited with status $ac_status" >&5
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 ( exit $ac_status )
20210 gdb_cv_printf_has_long_long=no
20211 fi
20212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20213 fi
20214 fi
20215 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20216 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
20217 if test $gdb_cv_printf_has_long_long = yes; then
20218
20219 cat >>confdefs.h <<\_ACEOF
20220 #define PRINTF_HAS_LONG_LONG 1
20221 _ACEOF
20222
20223 fi
20224
20225 # Check if the compiler supports the `long double' type. We can't use
20226 # AC_C_LONG_DOUBLE because that one does additional checks on the
20227 # constants defined in <float.h> that fail on some systems,
20228 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
20229
20230 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20231 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
20232 if test "${gdb_cv_c_long_double+set}" = set; then
20233 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 else
20235 cat >conftest.$ac_ext <<_ACEOF
20236 /* confdefs.h. */
20237 _ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20241 long double foo;
20242 _ACEOF
20243 rm -f conftest.$ac_objext
20244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20245 (eval $ac_compile) 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } &&
20252 { ac_try='test -z "$ac_c_werror_flag"
20253 || test ! -s conftest.err'
20254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20255 (eval $ac_try) 2>&5
20256 ac_status=$?
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20262 ac_status=$?
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 gdb_cv_c_long_double=yes
20266 else
20267 echo "$as_me: failed program was:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20269
20270 gdb_cv_c_long_double=no
20271 fi
20272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20273 fi
20274 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20275 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
20276 if test $gdb_cv_c_long_double = yes; then
20277
20278 cat >>confdefs.h <<\_ACEOF
20279 #define HAVE_LONG_DOUBLE 1
20280 _ACEOF
20281
20282 fi
20283
20284 # Check if the compiler and runtime support printing long doubles.
20285
20286 echo "$as_me:$LINENO: checking for long double support in printf" >&5
20287 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
20288 if test "${gdb_cv_printf_has_long_double+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291 if test "$cross_compiling" = yes; then
20292 gdb_cv_printf_has_long_double=no
20293 else
20294 cat >conftest.$ac_ext <<_ACEOF
20295 /* confdefs.h. */
20296 _ACEOF
20297 cat confdefs.h >>conftest.$ac_ext
20298 cat >>conftest.$ac_ext <<_ACEOF
20299 /* end confdefs.h. */
20300 $ac_includes_default
20301 int
20302 main ()
20303 {
20304 char buf[16];
20305 long double f = 3.141592653;
20306 sprintf (buf, "%Lg", f);
20307 return (strncmp ("3.14159", buf, 7));
20308 ;
20309 return 0;
20310 }
20311 _ACEOF
20312 rm -f conftest$ac_exeext
20313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20314 (eval $ac_link) 2>&5
20315 ac_status=$?
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 gdb_cv_printf_has_long_double=yes
20324 else
20325 echo "$as_me: program exited with status $ac_status" >&5
20326 echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 ( exit $ac_status )
20330 gdb_cv_printf_has_long_double=no
20331 fi
20332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20333 fi
20334 fi
20335 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20336 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
20337 if test $gdb_cv_printf_has_long_double = yes; then
20338
20339 cat >>confdefs.h <<\_ACEOF
20340 #define PRINTF_HAS_LONG_DOUBLE 1
20341 _ACEOF
20342
20343 fi
20344
20345 # Check if the compiler and runtime support scanning long doubles.
20346
20347 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20348 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
20349 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20351 else
20352 if test "$cross_compiling" = yes; then
20353 gdb_cv_scanf_has_long_double=no
20354 else
20355 cat >conftest.$ac_ext <<_ACEOF
20356 /* confdefs.h. */
20357 _ACEOF
20358 cat confdefs.h >>conftest.$ac_ext
20359 cat >>conftest.$ac_ext <<_ACEOF
20360 /* end confdefs.h. */
20361 #include <stdio.h>
20362 int
20363 main ()
20364 {
20365 char *buf = "3.141592653";
20366 long double f = 0;
20367 sscanf (buf, "%Lg", &f);
20368 return !(f > 3.14159 && f < 3.14160);
20369 ;
20370 return 0;
20371 }
20372 _ACEOF
20373 rm -f conftest$ac_exeext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375 (eval $ac_link) 2>&5
20376 ac_status=$?
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 gdb_cv_scanf_has_long_double=yes
20385 else
20386 echo "$as_me: program exited with status $ac_status" >&5
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ( exit $ac_status )
20391 gdb_cv_scanf_has_long_double=no
20392 fi
20393 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20394 fi
20395 fi
20396 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20397 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
20398 if test $gdb_cv_scanf_has_long_double = yes; then
20399
20400 cat >>confdefs.h <<\_ACEOF
20401 #define SCANF_HAS_LONG_DOUBLE 1
20402 _ACEOF
20403
20404 fi
20405
20406 case ${host_os} in
20407 aix*)
20408 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20409 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
20410 if test "${gdb_cv_bigtoc+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413
20414 SAVE_LDFLAGS=$LDFLAGS
20415
20416 case $GCC in
20417 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20418 *) gdb_cv_bigtoc=-bbigtoc ;;
20419 esac
20420
20421 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
20422 cat >conftest.$ac_ext <<_ACEOF
20423 /* confdefs.h. */
20424 _ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20428
20429 int
20430 main ()
20431 {
20432 int i;
20433 ;
20434 return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext conftest$ac_exeext
20438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20439 (eval $ac_link) 2>conftest.er1
20440 ac_status=$?
20441 grep -v '^ *+' conftest.er1 >conftest.err
20442 rm -f conftest.er1
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -z "$ac_c_werror_flag"
20447 || test ! -s conftest.err'
20448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest$ac_exeext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20456 ac_status=$?
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20459 :
20460 else
20461 echo "$as_me: failed program was:" >&5
20462 sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 gdb_cv_bigtoc=
20465 fi
20466 rm -f conftest.err conftest.$ac_objext \
20467 conftest$ac_exeext conftest.$ac_ext
20468 LDFLAGS="${SAVE_LDFLAGS}"
20469
20470 fi
20471 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
20472 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
20473 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
20474 ;;
20475 esac
20476
20477
20478
20479 if test ${build} = ${host} -a ${host} = ${target} ; then
20480 case ${host_os} in
20481 hpux*)
20482 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
20483 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
20484 if test -f /usr/include/dce/cma_config.h ; then
20485 if test "$GCC" = "yes" ; then
20486 echo "$as_me:$LINENO: result: yes" >&5
20487 echo "${ECHO_T}yes" >&6
20488
20489 cat >>confdefs.h <<\_ACEOF
20490 #define HAVE_HPUX_THREAD_SUPPORT 1
20491 _ACEOF
20492
20493 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
20494 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
20495 else
20496 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
20497 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
20498 fi
20499 else
20500 echo "$as_me:$LINENO: result: no" >&5
20501 echo "${ECHO_T}no" >&6
20502 fi
20503 ;;
20504 solaris*)
20505 # See if thread_db library is around for Solaris thread debugging.
20506 # Note that we must explicitly test for version 1 of the library
20507 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
20508 # the same API.
20509 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
20510 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
20511 if test -f /usr/lib/libthread_db.so.1 ; then
20512 echo "$as_me:$LINENO: result: yes" >&5
20513 echo "${ECHO_T}yes" >&6
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_THREAD_DB_LIB 1
20517 _ACEOF
20518
20519 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
20520 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
20521
20522 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20523 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20524 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20525 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 else
20527 ac_check_lib_save_LIBS=$LIBS
20528 LIBS="-ldl $LIBS"
20529 cat >conftest.$ac_ext <<_ACEOF
20530 /* confdefs.h. */
20531 _ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20535
20536 /* Override any gcc2 internal prototype to avoid an error. */
20537 #ifdef __cplusplus
20538 extern "C"
20539 #endif
20540 /* We use char because int might match the return type of a gcc2
20541 builtin and then its argument prototype would still apply. */
20542 char dlopen ();
20543 int
20544 main ()
20545 {
20546 dlopen ();
20547 ;
20548 return 0;
20549 }
20550 _ACEOF
20551 rm -f conftest.$ac_objext conftest$ac_exeext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20553 (eval $ac_link) 2>conftest.er1
20554 ac_status=$?
20555 grep -v '^ *+' conftest.er1 >conftest.err
20556 rm -f conftest.er1
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag"
20561 || test ! -s conftest.err'
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; } &&
20567 { ac_try='test -s conftest$ac_exeext'
20568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20569 (eval $ac_try) 2>&5
20570 ac_status=$?
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
20573 ac_cv_lib_dl_dlopen=yes
20574 else
20575 echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_cv_lib_dl_dlopen=no
20579 fi
20580 rm -f conftest.err conftest.$ac_objext \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20583 fi
20584 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20585 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20586 if test $ac_cv_lib_dl_dlopen = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_LIBDL 1
20589 _ACEOF
20590
20591 LIBS="-ldl $LIBS"
20592
20593 fi
20594
20595 if test "$GCC" = "yes" ; then
20596 # The GNU linker requires the -export-dynamic option to make
20597 # all symbols visible in the dynamic symbol table.
20598 hold_ldflags=$LDFLAGS
20599 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
20600 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
20601 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
20602 cat >conftest.$ac_ext <<_ACEOF
20603 /* confdefs.h. */
20604 _ACEOF
20605 cat confdefs.h >>conftest.$ac_ext
20606 cat >>conftest.$ac_ext <<_ACEOF
20607 /* end confdefs.h. */
20608
20609 int
20610 main ()
20611 {
20612 int i;
20613 ;
20614 return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>conftest.er1
20620 ac_status=$?
20621 grep -v '^ *+' conftest.er1 >conftest.err
20622 rm -f conftest.er1
20623 cat conftest.err >&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); } &&
20626 { ac_try='test -z "$ac_c_werror_flag"
20627 || test ! -s conftest.err'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 found=yes
20640 else
20641 echo "$as_me: failed program was:" >&5
20642 sed 's/^/| /' conftest.$ac_ext >&5
20643
20644 found=no
20645 fi
20646 rm -f conftest.err conftest.$ac_objext \
20647 conftest$ac_exeext conftest.$ac_ext
20648 LDFLAGS=$hold_ldflags
20649 echo "$as_me:$LINENO: result: $found" >&5
20650 echo "${ECHO_T}$found" >&6
20651 if test $found = yes; then
20652 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
20653 fi
20654 fi
20655 # Sun randomly tweaked the prototypes in <proc_service.h>
20656 # at one point.
20657 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
20658 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
20659 if test "${gdb_cv_proc_service_is_old+set}" = set; then
20660 echo $ECHO_N "(cached) $ECHO_C" >&6
20661 else
20662
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
20670 #include <proc_service.h>
20671 ps_err_e ps_pdwrite
20672 (struct ps_prochandle*, psaddr_t, const void*, size_t);
20673
20674 int
20675 main ()
20676 {
20677
20678 ;
20679 return 0;
20680 }
20681 _ACEOF
20682 rm -f conftest.$ac_objext
20683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20684 (eval $ac_compile) 2>conftest.er1
20685 ac_status=$?
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
20691 { ac_try='test -z "$ac_c_werror_flag"
20692 || test ! -s conftest.err'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; } &&
20698 { ac_try='test -s conftest.$ac_objext'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; }; then
20704 gdb_cv_proc_service_is_old=no
20705 else
20706 echo "$as_me: failed program was:" >&5
20707 sed 's/^/| /' conftest.$ac_ext >&5
20708
20709 gdb_cv_proc_service_is_old=yes
20710 fi
20711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20712
20713 fi
20714
20715 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
20716 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
20717 if test $gdb_cv_proc_service_is_old = yes; then
20718
20719 cat >>confdefs.h <<\_ACEOF
20720 #define PROC_SERVICE_IS_OLD 1
20721 _ACEOF
20722
20723 fi
20724 else
20725 echo "$as_me:$LINENO: result: no" >&5
20726 echo "${ECHO_T}no" >&6
20727 fi
20728 ;;
20729 aix*)
20730 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
20731 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
20732 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734 else
20735 cat >conftest.$ac_ext <<_ACEOF
20736 /* confdefs.h. */
20737 _ACEOF
20738 cat confdefs.h >>conftest.$ac_ext
20739 cat >>conftest.$ac_ext <<_ACEOF
20740 /* end confdefs.h. */
20741 #include <sys/pthdebug.h>
20742 int
20743 main ()
20744 {
20745 #ifndef PTHDB_VERSION_3
20746 #error
20747 #endif
20748 ;
20749 return 0;
20750 }
20751 _ACEOF
20752 rm -f conftest.$ac_objext
20753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20754 (eval $ac_compile) 2>conftest.er1
20755 ac_status=$?
20756 grep -v '^ *+' conftest.er1 >conftest.err
20757 rm -f conftest.er1
20758 cat conftest.err >&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); } &&
20761 { ac_try='test -z "$ac_c_werror_flag"
20762 || test ! -s conftest.err'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest.$ac_objext'
20769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20770 (eval $ac_try) 2>&5
20771 ac_status=$?
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); }; }; then
20774 gdb_cv_have_aix_thread_debug=yes
20775 else
20776 echo "$as_me: failed program was:" >&5
20777 sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 gdb_cv_have_aix_thread_debug=no
20780 fi
20781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20782 fi
20783
20784 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
20785 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
20786 if test $gdb_cv_have_aix_thread_debug = yes; then
20787 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
20788 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
20789 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
20790 fi
20791 ;;
20792 esac
20793
20794 fi
20795
20796 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
20797 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
20798 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
20799 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801 else
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 #include <thread_db.h>
20809 int
20810 main ()
20811 {
20812 int i = TD_NOTALLOC;
20813 ;
20814 return 0;
20815 }
20816 _ACEOF
20817 rm -f conftest.$ac_objext
20818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20819 (eval $ac_compile) 2>conftest.er1
20820 ac_status=$?
20821 grep -v '^ *+' conftest.er1 >conftest.err
20822 rm -f conftest.er1
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); } &&
20826 { ac_try='test -z "$ac_c_werror_flag"
20827 || test ! -s conftest.err'
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); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839 gdb_cv_thread_db_h_has_td_notalloc=yes
20840 else
20841 echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20843
20844 gdb_cv_thread_db_h_has_td_notalloc=no
20845
20846 fi
20847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20848
20849 fi
20850 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
20851 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
20852 fi
20853 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
20854
20855 cat >>confdefs.h <<\_ACEOF
20856 #define THREAD_DB_HAS_TD_NOTALLOC 1
20857 _ACEOF
20858
20859 fi
20860
20861 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
20862 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
20863 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
20864 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 else
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <sys/syscall.h>
20874 int
20875 main ()
20876 {
20877 int i = __NR_tkill;
20878 ;
20879 return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20884 (eval $ac_compile) 2>conftest.er1
20885 ac_status=$?
20886 grep -v '^ *+' conftest.er1 >conftest.err
20887 rm -f conftest.er1
20888 cat conftest.err >&5
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); } &&
20891 { ac_try='test -z "$ac_c_werror_flag"
20892 || test ! -s conftest.err'
20893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20894 (eval $ac_try) 2>&5
20895 ac_status=$?
20896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897 (exit $ac_status); }; } &&
20898 { ac_try='test -s conftest.$ac_objext'
20899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20900 (eval $ac_try) 2>&5
20901 ac_status=$?
20902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20903 (exit $ac_status); }; }; then
20904 gdb_cv_sys_syscall_h_has_tkill=yes
20905 else
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 gdb_cv_sys_syscall_h_has_tkill=no
20910
20911 fi
20912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20913
20914 fi
20915 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
20916 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
20917 fi
20918 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
20919
20920 cat >>confdefs.h <<\_ACEOF
20921 #define HAVE_TKILL_SYSCALL 1
20922 _ACEOF
20923
20924 fi
20925
20926
20927
20928 # Check whether --with-sysroot or --without-sysroot was given.
20929 if test "${with_sysroot+set}" = set; then
20930 withval="$with_sysroot"
20931
20932 case ${with_sysroot} in
20933 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
20934 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
20935 esac
20936
20937 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
20938
20939 if test "x$exec_prefix" = xNONE; then
20940 if test "x$prefix" = xNONE; then
20941 test_prefix=/usr/local
20942 else
20943 test_prefix=$prefix
20944 fi
20945 else
20946 test_prefix=$exec_prefix
20947 fi
20948 case ${TARGET_SYSTEM_ROOT} in
20949 "${test_prefix}"|"${test_prefix}/"*|\
20950 '${exec_prefix}'|'${exec_prefix}/'*)
20951 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
20952 TARGET_SYSTEM_ROOT_DEFINE="$t"
20953 ;;
20954 esac
20955
20956 else
20957
20958 TARGET_SYSTEM_ROOT=
20959 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
20960
20961 fi;
20962
20963
20964
20965 # Check whether --enable-werror or --disable-werror was given.
20966 if test "${enable_werror+set}" = set; then
20967 enableval="$enable_werror"
20968 case "${enableval}" in
20969 yes | y) ERROR_ON_WARNING="yes" ;;
20970 no | n) ERROR_ON_WARNING="no" ;;
20971 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
20972 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
20973 { (exit 1); exit 1; }; } ;;
20974 esac
20975 fi;
20976
20977 # Enable -Werror by default when using gcc
20978 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
20979 ERROR_ON_WARNING=yes
20980 fi
20981
20982 WERROR_CFLAGS=""
20983 if test "${ERROR_ON_WARNING}" = yes ; then
20984 WERROR_CFLAGS="-Werror"
20985 fi
20986
20987 # NOTE: Don't add -Wall or -Wunused, they both include
20988 # -Wunused-parameter which reports bogus warnings.
20989 # NOTE: If you add to this list, remember to update
20990 # gdb/doc/gdbint.texinfo.
20991 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
20992 -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral \
20993 -Wunused-label -Wunused-function -Wno-pointer-sign"
20994
20995 # GCC supports -Wuninitialized only with -O or -On, n != 0.
20996 if test x${CFLAGS+set} = xset; then
20997 case "${CFLAGS}" in
20998 *"-O0"* ) ;;
20999 *"-O"* )
21000 build_warnings="${build_warnings} -Wuninitialized"
21001 ;;
21002 esac
21003 else
21004 build_warnings="${build_warnings} -Wuninitialized"
21005 fi
21006
21007 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
21008 # -Wunused-function -Wunused-variable -Wunused-value
21009 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
21010 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
21011 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
21012 # -Woverloaded-virtual -Winline -Werror"
21013 # Check whether --enable-build-warnings or --disable-build-warnings was given.
21014 if test "${enable_build_warnings+set}" = set; then
21015 enableval="$enable_build_warnings"
21016 case "${enableval}" in
21017 yes) ;;
21018 no) build_warnings="-w";;
21019 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21020 build_warnings="${build_warnings} ${t}";;
21021 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21022 build_warnings="${t} ${build_warnings}";;
21023 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21024 esac
21025 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21026 echo "Setting compiler warning flags = $build_warnings" 6>&1
21027 fi
21028 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
21029 if test "${enable_gdb_build_warnings+set}" = set; then
21030 enableval="$enable_gdb_build_warnings"
21031 case "${enableval}" in
21032 yes) ;;
21033 no) build_warnings="-w";;
21034 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21035 build_warnings="${build_warnings} ${t}";;
21036 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21037 build_warnings="${t} ${build_warnings}";;
21038 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21039 esac
21040 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21041 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21042 fi
21043 fi; WARN_CFLAGS=""
21044 if test "x${build_warnings}" != x -a "x$GCC" = xyes
21045 then
21046 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21047 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
21048 # Separate out the -Werror flag as some files just cannot be
21049 # compiled with it enabled.
21050 for w in ${build_warnings}; do
21051 case $w in
21052 -Werr*) WERROR_CFLAGS=-Werror ;;
21053 *) # Check that GCC accepts it
21054 saved_CFLAGS="$CFLAGS"
21055 CFLAGS="$CFLAGS $w"
21056 cat >conftest.$ac_ext <<_ACEOF
21057 /* confdefs.h. */
21058 _ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062
21063 int
21064 main ()
21065 {
21066
21067 ;
21068 return 0;
21069 }
21070 _ACEOF
21071 rm -f conftest.$ac_objext
21072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21073 (eval $ac_compile) 2>conftest.er1
21074 ac_status=$?
21075 grep -v '^ *+' conftest.er1 >conftest.err
21076 rm -f conftest.er1
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } &&
21080 { ac_try='test -z "$ac_c_werror_flag"
21081 || test ! -s conftest.err'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; } &&
21087 { ac_try='test -s conftest.$ac_objext'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21090 ac_status=$?
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 WARN_CFLAGS="${WARN_CFLAGS} $w"
21094 else
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 fi
21099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21100 CFLAGS="$saved_CFLAGS"
21101 esac
21102 done
21103 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
21104 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
21105 fi
21106
21107
21108
21109 # In the Cygwin environment, we need some additional flags.
21110 echo "$as_me:$LINENO: checking for cygwin" >&5
21111 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
21112 if test "${gdb_cv_os_cygwin+set}" = set; then
21113 echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115 cat >conftest.$ac_ext <<_ACEOF
21116 /* confdefs.h. */
21117 _ACEOF
21118 cat confdefs.h >>conftest.$ac_ext
21119 cat >>conftest.$ac_ext <<_ACEOF
21120 /* end confdefs.h. */
21121
21122 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
21123 lose
21124 #endif
21125 _ACEOF
21126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21127 $EGREP "lose" >/dev/null 2>&1; then
21128 gdb_cv_os_cygwin=yes
21129 else
21130 gdb_cv_os_cygwin=no
21131 fi
21132 rm -f conftest*
21133
21134 fi
21135 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21136 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
21137
21138
21139 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
21140 case ${host} in
21141 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21142 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
21143 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
21144 esac
21145
21146
21147 # libreadline needs libuser32.a in a cygwin environment
21148 WIN32LIBS=
21149 if test x$gdb_cv_os_cygwin = xyes; then
21150 WIN32LIBS="-luser32"
21151 case "${target}" in
21152 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21153 ;;
21154 esac
21155 fi
21156
21157 # The ser-tcp.c module requires sockets.
21158 case ${host} in
21159 *mingw32*)
21160
21161 cat >>confdefs.h <<\_ACEOF
21162 #define USE_WIN32API 1
21163 _ACEOF
21164
21165 WIN32LIBS="$WIN32LIBS -lws2_32"
21166 ;;
21167 esac
21168
21169
21170 # Add any host-specific objects to GDB.
21171 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21172
21173 LIBGUI="../libgui/src/libgui.a"
21174 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21175
21176
21177
21178 WIN32LDAPP=
21179
21180
21181
21182 case "${host}" in
21183 *-*-cygwin*)
21184 configdir="win"
21185 ;;
21186 *)
21187 configdir="unix"
21188 ;;
21189 esac
21190
21191 GDBTKLIBS=
21192 if test "${enable_gdbtk}" = "yes"; then
21193
21194 # Gdbtk must have an absolute path to srcdir in order to run
21195 # properly when not installed.
21196 here=`pwd`
21197 cd ${srcdir}
21198 GDBTK_SRC_DIR=`pwd`
21199 cd $here
21200
21201
21202 #
21203 # Ok, lets find the tcl configuration
21204 # First, look for one uninstalled.
21205 # the alternative search directory is invoked by --with-tclconfig
21206 #
21207
21208 if test x"${no_tcl}" = x ; then
21209 # we reset no_tcl in case something fails here
21210 no_tcl=true
21211
21212 # Check whether --with-tclconfig or --without-tclconfig was given.
21213 if test "${with_tclconfig+set}" = set; then
21214 withval="$with_tclconfig"
21215 with_tclconfig=${withval}
21216 fi;
21217 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21218 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
21219 if test "${ac_cv_c_tclconfig+set}" = set; then
21220 echo $ECHO_N "(cached) $ECHO_C" >&6
21221 else
21222
21223
21224 # First check to see if --with-tclconfig was specified.
21225 if test x"${with_tclconfig}" != x ; then
21226 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21227 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21228 else
21229 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21230 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21231 { (exit 1); exit 1; }; }
21232 fi
21233 fi
21234
21235 # then check for a private Tcl installation
21236 if test x"${ac_cv_c_tclconfig}" = x ; then
21237 for i in \
21238 ../tcl \
21239 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21240 ../../tcl \
21241 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21242 ../../../tcl \
21243 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21244 if test -f "$i/${configdir}/tclConfig.sh" ; then
21245 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21246 break
21247 fi
21248 done
21249 fi
21250 # check in a few common install locations
21251 if test x"${ac_cv_c_tclconfig}" = x ; then
21252 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21253 if test -f "$i/tclConfig.sh" ; then
21254 ac_cv_c_tclconfig=`(cd $i; pwd)`
21255 break
21256 fi
21257 done
21258 fi
21259 # check in a few other private locations
21260 if test x"${ac_cv_c_tclconfig}" = x ; then
21261 for i in \
21262 ${srcdir}/../tcl \
21263 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21264 if test -f "$i/${configdir}/tclConfig.sh" ; then
21265 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21266 break
21267 fi
21268 done
21269 fi
21270
21271 fi
21272
21273 if test x"${ac_cv_c_tclconfig}" = x ; then
21274 TCLCONFIG="# no Tcl configs found"
21275 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21276 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
21277 else
21278 no_tcl=
21279 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
21280 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21281 echo "${ECHO_T}found $TCLCONFIG" >&6
21282 fi
21283 fi
21284
21285 if test -z "${no_tcl}"; then
21286
21287 . $TCLCONFIG
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315 #
21316 # Ok, lets find the tk configuration
21317 # First, look for one uninstalled.
21318 # the alternative search directory is invoked by --with-tkconfig
21319 #
21320
21321 if test x"${no_tk}" = x ; then
21322 # we reset no_tk in case something fails here
21323 no_tk=true
21324
21325 # Check whether --with-tkconfig or --without-tkconfig was given.
21326 if test "${with_tkconfig+set}" = set; then
21327 withval="$with_tkconfig"
21328 with_tkconfig=${withval}
21329 fi;
21330 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21331 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
21332 if test "${ac_cv_c_tkconfig+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335
21336
21337 # First check to see if --with-tkconfig was specified.
21338 if test x"${with_tkconfig}" != x ; then
21339 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21340 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21341 else
21342 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21343 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21344 { (exit 1); exit 1; }; }
21345 fi
21346 fi
21347
21348 # then check for a private Tk library
21349 if test x"${ac_cv_c_tkconfig}" = x ; then
21350 for i in \
21351 ../tk \
21352 `ls -dr ../tk[4-9]* 2>/dev/null` \
21353 ../../tk \
21354 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21355 ../../../tk \
21356 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21357 if test -f "$i/${configdir}/tkConfig.sh" ; then
21358 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21359 break
21360 fi
21361 done
21362 fi
21363 # check in a few common install locations
21364 if test x"${ac_cv_c_tkconfig}" = x ; then
21365 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21366 if test -f "$i/tkConfig.sh" ; then
21367 ac_cv_c_tkconfig=`(cd $i; pwd)`
21368 break
21369 fi
21370 done
21371 fi
21372 # check in a few other private locations
21373 if test x"${ac_cv_c_tkconfig}" = x ; then
21374 for i in \
21375 ${srcdir}/../tk \
21376 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
21377 if test -f "$i/${configdir}/tkConfig.sh" ; then
21378 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
21379 break
21380 fi
21381 done
21382 fi
21383
21384 fi
21385
21386 if test x"${ac_cv_c_tkconfig}" = x ; then
21387 TKCONFIG="# no Tk configs found"
21388 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
21389 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
21390 else
21391 no_tk=
21392 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
21393 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
21394 echo "${ECHO_T}found $TKCONFIG" >&6
21395 fi
21396 fi
21397
21398
21399
21400 # now look for Tcl library stuff
21401
21402 tcldir="../tcl/${configdir}/"
21403
21404 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
21405
21406 # If $no_tk is nonempty, then we can't do Tk, and there is no
21407 # point to doing Tcl.
21408 if test -z "${no_tk}"; then
21409
21410 if test -f "$TKCONFIG" ; then
21411 . $TKCONFIG
21412 fi
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427 #
21428 # Ok, lets find the tcl source trees so we can use the headers
21429 # Warning: transition of version 9 to 10 will break this algorithm
21430 # because 10 sorts before 9. We also look for just tcl. We have to
21431 # be careful that we don't match stuff like tclX by accident.
21432 # the alternative search directory is involked by --with-tclinclude
21433 #
21434
21435 no_tcl=true
21436 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
21437 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
21438
21439 # Check whether --with-tclinclude or --without-tclinclude was given.
21440 if test "${with_tclinclude+set}" = set; then
21441 withval="$with_tclinclude"
21442 with_tclinclude=${withval}
21443 fi;
21444 if test "${ac_cv_c_tclh+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447
21448 # first check to see if --with-tclinclude was specified
21449 if test x"${with_tclinclude}" != x ; then
21450 if test -f ${with_tclinclude}/tclInt.h ; then
21451 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
21452 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
21453 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
21454 else
21455 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
21456 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
21457 { (exit 1); exit 1; }; }
21458 fi
21459 fi
21460
21461 # next check if it came with Tcl configuration file
21462 if test x"${ac_cv_c_tclconfig}" = x ; then
21463 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
21464 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
21465 fi
21466 fi
21467
21468 # next check in private source directory
21469 #
21470 # since ls returns lowest version numbers first, reverse its output
21471 if test x"${ac_cv_c_tclh}" = x ; then
21472 for i in \
21473 ${srcdir}/../tcl \
21474 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
21475 ${srcdir}/../../tcl \
21476 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
21477 ${srcdir}/../../../tcl \
21478 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
21479 if test -f $i/generic/tclInt.h ; then
21480 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21481 break
21482 fi
21483 done
21484 fi
21485 # finally check in a few common install locations
21486 #
21487 # since ls returns lowest version numbers first, reverse its output
21488 if test x"${ac_cv_c_tclh}" = x ; then
21489 for i in \
21490 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
21491 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
21492 /usr/local/src/tcl \
21493 /usr/local/lib/tcl \
21494 ${prefix}/include ; do
21495 if test -f $i/generic/tclInt.h ; then
21496 ac_cv_c_tclh=`(cd $i/generic; pwd)`
21497 break
21498 fi
21499 done
21500 fi
21501 # see if one is installed
21502 if test x"${ac_cv_c_tclh}" = x ; then
21503 if test "${ac_cv_header_tclInt_h+set}" = set; then
21504 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21505 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21506 if test "${ac_cv_header_tclInt_h+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508 fi
21509 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21510 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21511 else
21512 # Is the header compilable?
21513 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
21514 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h. */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21521 $ac_includes_default
21522 #include <tclInt.h>
21523 _ACEOF
21524 rm -f conftest.$ac_objext
21525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21526 (eval $ac_compile) 2>conftest.er1
21527 ac_status=$?
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
21533 { ac_try='test -z "$ac_c_werror_flag"
21534 || test ! -s conftest.err'
21535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21536 (eval $ac_try) 2>&5
21537 ac_status=$?
21538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); }; } &&
21540 { ac_try='test -s conftest.$ac_objext'
21541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21542 (eval $ac_try) 2>&5
21543 ac_status=$?
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); }; }; then
21546 ac_header_compiler=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 ac_header_compiler=no
21552 fi
21553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21555 echo "${ECHO_T}$ac_header_compiler" >&6
21556
21557 # Is the header present?
21558 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
21559 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
21560 cat >conftest.$ac_ext <<_ACEOF
21561 /* confdefs.h. */
21562 _ACEOF
21563 cat confdefs.h >>conftest.$ac_ext
21564 cat >>conftest.$ac_ext <<_ACEOF
21565 /* end confdefs.h. */
21566 #include <tclInt.h>
21567 _ACEOF
21568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } >/dev/null; then
21576 if test -s conftest.err; then
21577 ac_cpp_err=$ac_c_preproc_warn_flag
21578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21579 else
21580 ac_cpp_err=
21581 fi
21582 else
21583 ac_cpp_err=yes
21584 fi
21585 if test -z "$ac_cpp_err"; then
21586 ac_header_preproc=yes
21587 else
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591 ac_header_preproc=no
21592 fi
21593 rm -f conftest.err conftest.$ac_ext
21594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21595 echo "${ECHO_T}$ac_header_preproc" >&6
21596
21597 # So? What about this header?
21598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21599 yes:no: )
21600 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21601 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21602 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
21603 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
21604 ac_header_preproc=yes
21605 ;;
21606 no:yes:* )
21607 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
21608 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
21610 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
21612 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
21614 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
21616 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
21618 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
21619 (
21620 cat <<\_ASBOX
21621 ## ------------------------------------------ ##
21622 ## Report this to the AC_PACKAGE_NAME lists. ##
21623 ## ------------------------------------------ ##
21624 _ASBOX
21625 ) |
21626 sed "s/^/$as_me: WARNING: /" >&2
21627 ;;
21628 esac
21629 echo "$as_me:$LINENO: checking for tclInt.h" >&5
21630 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
21631 if test "${ac_cv_header_tclInt_h+set}" = set; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 else
21634 ac_cv_header_tclInt_h=$ac_header_preproc
21635 fi
21636 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
21637 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
21638
21639 fi
21640 if test $ac_cv_header_tclInt_h = yes; then
21641 ac_cv_c_tclh=installed
21642 else
21643 ac_cv_c_tclh=""
21644 fi
21645
21646
21647 fi
21648
21649 fi
21650
21651 if test x"${ac_cv_c_tclh}" = x ; then
21652 TCLHDIR="# no Tcl private headers found"
21653 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
21654 echo "$as_me: error: Can't find Tcl private headers" >&2;}
21655 { (exit 1); exit 1; }; }
21656 fi
21657 if test x"${ac_cv_c_tclh}" != x ; then
21658 no_tcl=""
21659 if test x"${ac_cv_c_tclh}" = x"installed" ; then
21660 echo "$as_me:$LINENO: result: is installed" >&5
21661 echo "${ECHO_T}is installed" >&6
21662 TCLHDIR=""
21663 else
21664 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
21665 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
21666 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
21667 TCLHDIR="-I${ac_cv_c_tclh}"
21668 fi
21669 fi
21670
21671
21672
21673
21674 #
21675 # Ok, lets find the tk source trees so we can use the headers
21676 # If the directory (presumably symlink) named "tk" exists, use that one
21677 # in preference to any others. Same logic is used when choosing library
21678 # and again with Tcl. The search order is the best place to look first, then in
21679 # decreasing significance. The loop breaks if the trigger file is found.
21680 # Note the gross little conversion here of srcdir by cd'ing to the found
21681 # directory. This converts the path from a relative to an absolute, so
21682 # recursive cache variables for the path will work right. We check all
21683 # the possible paths in one loop rather than many seperate loops to speed
21684 # things up.
21685 # the alternative search directory is involked by --with-tkinclude
21686 #
21687 no_tk=true
21688 echo "$as_me:$LINENO: checking for Tk private headers" >&5
21689 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
21690
21691 # Check whether --with-tkinclude or --without-tkinclude was given.
21692 if test "${with_tkinclude+set}" = set; then
21693 withval="$with_tkinclude"
21694 with_tkinclude=${withval}
21695 fi;
21696 if test "${ac_cv_c_tkh+set}" = set; then
21697 echo $ECHO_N "(cached) $ECHO_C" >&6
21698 else
21699
21700 # first check to see if --with-tkinclude was specified
21701 if test x"${with_tkinclude}" != x ; then
21702 if test -f ${with_tkinclude}/tk.h ; then
21703 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
21704 elif test -f ${with_tkinclude}/generic/tk.h ; then
21705 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
21706 else
21707 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
21708 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
21709 { (exit 1); exit 1; }; }
21710 fi
21711 fi
21712
21713 # next check if it came with Tk configuration file
21714 if test x"${ac_cv_c_tkconfig}" = x ; then
21715 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
21716 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
21717 fi
21718 fi
21719
21720 # next check in private source directory
21721 #
21722 # since ls returns lowest version numbers first, reverse its output
21723 if test x"${ac_cv_c_tkh}" = x ; then
21724 for i in \
21725 ${srcdir}/../tk \
21726 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
21727 ${srcdir}/../../tk \
21728 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
21729 ${srcdir}/../../../tk \
21730 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
21731 if test -f $i/generic/tk.h ; then
21732 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21733 break
21734 fi
21735 done
21736 fi
21737 # finally check in a few common install locations
21738 #
21739 # since ls returns lowest version numbers first, reverse its output
21740 if test x"${ac_cv_c_tkh}" = x ; then
21741 for i in \
21742 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
21743 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
21744 /usr/local/src/tk \
21745 /usr/local/lib/tk \
21746 ${prefix}/include ; do
21747 if test -f $i/generic/tk.h ; then
21748 ac_cv_c_tkh=`(cd $i/generic; pwd)`
21749 break
21750 fi
21751 done
21752 fi
21753 # see if one is installed
21754 if test x"${ac_cv_c_tkh}" = x ; then
21755 if test "${ac_cv_header_tk_h+set}" = set; then
21756 echo "$as_me:$LINENO: checking for tk.h" >&5
21757 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21758 if test "${ac_cv_header_tk_h+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760 fi
21761 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21762 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21763 else
21764 # Is the header compilable?
21765 echo "$as_me:$LINENO: checking tk.h usability" >&5
21766 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
21767 cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h. */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h. */
21773 $ac_includes_default
21774 #include <tk.h>
21775 _ACEOF
21776 rm -f conftest.$ac_objext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21778 (eval $ac_compile) 2>conftest.er1
21779 ac_status=$?
21780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
21785 { ac_try='test -z "$ac_c_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_header_compiler=yes
21799 else
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21802
21803 ac_header_compiler=no
21804 fi
21805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21807 echo "${ECHO_T}$ac_header_compiler" >&6
21808
21809 # Is the header present?
21810 echo "$as_me:$LINENO: checking tk.h presence" >&5
21811 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
21812 cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h. */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 #include <tk.h>
21819 _ACEOF
21820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21822 ac_status=$?
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } >/dev/null; then
21828 if test -s conftest.err; then
21829 ac_cpp_err=$ac_c_preproc_warn_flag
21830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21831 else
21832 ac_cpp_err=
21833 fi
21834 else
21835 ac_cpp_err=yes
21836 fi
21837 if test -z "$ac_cpp_err"; then
21838 ac_header_preproc=yes
21839 else
21840 echo "$as_me: failed program was:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21842
21843 ac_header_preproc=no
21844 fi
21845 rm -f conftest.err conftest.$ac_ext
21846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21847 echo "${ECHO_T}$ac_header_preproc" >&6
21848
21849 # So? What about this header?
21850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21851 yes:no: )
21852 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
21853 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21854 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
21855 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
21856 ac_header_preproc=yes
21857 ;;
21858 no:yes:* )
21859 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
21860 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
21862 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
21864 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
21865 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
21866 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
21867 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
21868 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
21869 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
21870 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
21871 (
21872 cat <<\_ASBOX
21873 ## ------------------------------------------ ##
21874 ## Report this to the AC_PACKAGE_NAME lists. ##
21875 ## ------------------------------------------ ##
21876 _ASBOX
21877 ) |
21878 sed "s/^/$as_me: WARNING: /" >&2
21879 ;;
21880 esac
21881 echo "$as_me:$LINENO: checking for tk.h" >&5
21882 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
21883 if test "${ac_cv_header_tk_h+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886 ac_cv_header_tk_h=$ac_header_preproc
21887 fi
21888 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
21889 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
21890
21891 fi
21892 if test $ac_cv_header_tk_h = yes; then
21893 ac_cv_c_tkh=installed
21894 else
21895 ac_cv_c_tkh=""
21896 fi
21897
21898
21899 fi
21900
21901 fi
21902
21903 if test x"${ac_cv_c_tkh}" != x ; then
21904 no_tk=""
21905 if test x"${ac_cv_c_tkh}" = x"installed" ; then
21906 echo "$as_me:$LINENO: result: is installed" >&5
21907 echo "${ECHO_T}is installed" >&6
21908 TKHDIR=""
21909 else
21910 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
21911 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
21912 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
21913 TKHDIR="-I${ac_cv_c_tkh}"
21914 fi
21915 else
21916 TKHDIR="# no Tk directory found"
21917 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
21918 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
21919 no_tk=true
21920 fi
21921
21922
21923
21924
21925 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
21926 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
21927 if test x"${ac_cv_c_itclh}" = x ; then
21928 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
21929 if test -f $i/generic/itcl.h ; then
21930 ac_cv_c_itclh=`(cd $i/generic; pwd)`
21931 break
21932 fi
21933 done
21934 fi
21935 if test x"${ac_cv_c_itclh}" = x ; then
21936 ITCLHDIR="# no Itcl private headers found"
21937 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
21938 echo "$as_me: error: Can't find Itcl private headers" >&2;}
21939 { (exit 1); exit 1; }; }
21940 fi
21941 if test x"${ac_cv_c_itclh}" != x ; then
21942 ITCLHDIR="-I${ac_cv_c_itclh}"
21943 fi
21944 # should always be here
21945 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
21946
21947 #AC_SUBST(ITCLLIB)
21948
21949
21950 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
21951 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
21952 if test x"${ac_cv_c_itkh}" = x ; then
21953 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
21954 if test -f $i/generic/itk.h ; then
21955 ac_cv_c_itkh=`(cd $i/generic; pwd)`
21956 break
21957 fi
21958 done
21959 fi
21960 if test x"${ac_cv_c_itkh}" = x ; then
21961 ITKHDIR="# no Itk private headers found"
21962 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
21963 echo "$as_me: error: Can't find Itk private headers" >&2;}
21964 { (exit 1); exit 1; }; }
21965 fi
21966 if test x"${ac_cv_c_itkh}" != x ; then
21967 ITKHDIR="-I${ac_cv_c_itkh}"
21968 fi
21969 # should always be here
21970 # ITKLIB="../itcl/itk/unix/libitk.a"
21971
21972 #AC_SUBST(ITKLIB)
21973
21974
21975
21976 # now look for Tk library stuff
21977
21978 tkdir="../tk/${configdir}/"
21979
21980 TK_DEPS="${tkdir}${TK_LIB_FILE}"
21981
21982 # now look for Itcl library stuff
21983
21984
21985 #
21986 # Ok, lets find the itcl configuration
21987 # First, look for one uninstalled.
21988 # the alternative search directory is invoked by --with-itclconfig
21989 #
21990
21991 if test x"${no_itcl}" = x ; then
21992 # we reset no_itcl in case something fails here
21993 no_itcl=true
21994
21995 # Check whether --with-itclconfig or --without-itclconfig was given.
21996 if test "${with_itclconfig+set}" = set; then
21997 withval="$with_itclconfig"
21998 with_itclconfig=${withval}
21999 fi;
22000 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22001 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
22002 if test "${ac_cv_c_itclconfig+set}" = set; then
22003 echo $ECHO_N "(cached) $ECHO_C" >&6
22004 else
22005
22006
22007 # First check to see if --with-itclconfig was specified.
22008 if test x"${with_itclconfig}" != x ; then
22009 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22010 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22011 else
22012 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22013 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22014 { (exit 1); exit 1; }; }
22015 fi
22016 fi
22017
22018 # then check for a private Itcl library
22019 if test x"${ac_cv_c_itclconfig}" = x ; then
22020 for i in \
22021 ../itcl/itcl \
22022 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22023 ../../itcl \
22024 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22025 ../../../itcl \
22026 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22027 if test -f "$i/itclConfig.sh" ; then
22028 ac_cv_c_itclconfig=`(cd $i; pwd)`
22029 break
22030 fi
22031 done
22032 fi
22033 # check in a few common install locations
22034 if test x"${ac_cv_c_itclconfig}" = x ; then
22035 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22036 if test -f "$i/itclConfig.sh" ; then
22037 ac_cv_c_itclconfig=`(cd $i; pwd)`
22038 break
22039 fi
22040 done
22041 fi
22042 # check in a few other private locations
22043 if test x"${ac_cv_c_itclconfig}" = x ; then
22044 for i in \
22045 ${srcdir}/../itcl/itcl \
22046 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22047 if test -f "$i/itclConfig.sh" ; then
22048 ac_cv_c_itclconfig=`(cd $i; pwd)`
22049 break
22050 fi
22051 done
22052 fi
22053
22054 fi
22055
22056 if test x"${ac_cv_c_itclconfig}" = x ; then
22057 ITCLCONFIG="# no Itcl configs found"
22058 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22059 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
22060 else
22061 no_itcl=
22062 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
22063 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22064 echo "${ECHO_T}found $ITCLCONFIG" >&6
22065 fi
22066 fi
22067
22068 if test -z "${no_itcl}"; then
22069
22070 if test -f "$ITCLCONFIG" ; then
22071 . $ITCLCONFIG
22072 fi
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
22086 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
22087 fi
22088
22089
22090 # now look for Itk library stuff
22091
22092 #
22093 # Ok, lets find the itk configuration
22094 # First, look for one uninstalled.
22095 # the alternative search directory is invoked by --with-itkconfig
22096 #
22097
22098 if test x"${no_itk}" = x ; then
22099 # we reset no_itk in case something fails here
22100 no_itk=true
22101
22102 # Check whether --with-itkconfig or --without-itkconfig was given.
22103 if test "${with_itkconfig+set}" = set; then
22104 withval="$with_itkconfig"
22105 with_itkconfig=${withval}
22106 fi;
22107 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22108 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
22109 if test "${ac_cv_c_itkconfig+set}" = set; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112
22113
22114 # First check to see if --with-itkconfig was specified.
22115 if test x"${with_itkconfig}" != x ; then
22116 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22117 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22118 else
22119 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22120 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22121 { (exit 1); exit 1; }; }
22122 fi
22123 fi
22124
22125 # then check for a private Itk library
22126 if test x"${ac_cv_c_itkconfig}" = x ; then
22127 for i in \
22128 ../itcl/itk \
22129 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22130 ../../itk \
22131 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22132 ../../../itk \
22133 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22134 if test -f "$i/itkConfig.sh" ; then
22135 ac_cv_c_itkconfig=`(cd $i; pwd)`
22136 break
22137 fi
22138 done
22139 fi
22140 # check in a few common install locations
22141 if test x"${ac_cv_c_itkconfig}" = x ; then
22142 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22143 if test -f "$i/itkConfig.sh" ; then
22144 ac_cv_c_itkconfig=`(cd $i; pwd)`
22145 break
22146 fi
22147 done
22148 fi
22149 # check in a few other private locations
22150 if test x"${ac_cv_c_itkconfig}" = x ; then
22151 for i in \
22152 ${srcdir}/../itcl/itk \
22153 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22154 if test -f "$i/itkConfig.sh" ; then
22155 ac_cv_c_itkconfig=`(cd $i; pwd)`
22156 break
22157 fi
22158 done
22159 fi
22160
22161 fi
22162
22163 if test x"${ac_cv_c_itkconfig}" = x ; then
22164 ITKCONFIG="# no Itk configs found"
22165 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22166 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
22167 else
22168 no_itk=
22169 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
22170 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22171 echo "${ECHO_T}found $ITKCONFIG" >&6
22172 fi
22173 fi
22174
22175
22176 if test -z "${no_itcl}"; then
22177
22178 if test -f "$ITKCONFIG" ; then
22179 . $ITKCONFIG
22180 fi
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193 ITKLIB="${ITK_BUILD_LIB_SPEC}"
22194 ITK_DEPS="${ITK_LIB_FULL_PATH}"
22195 fi
22196
22197 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
22198
22199 # Include some libraries that Tcl and Tk want.
22200 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
22201 # Yes, the ordering seems wrong here. But it isn't.
22202 # TK_LIBS is the list of libraries that need to be linked
22203 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22204 # were in LIBS then any link tests after this point would
22205 # try to include things like `$(LIBGUI)', which wouldn't work.
22206 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
22207
22208 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22209 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22210 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
22211 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22212 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22213 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22214 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
22215
22216 if test x$gdb_cv_os_cygwin = xyes; then
22217 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22218 WIN32LDAPP="-Wl,--subsystem,console"
22219 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22220 fi
22221 fi
22222 fi
22223
22224
22225
22226 subdirs="$subdirs gdbtk"
22227
22228 fi
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243 echo "$as_me:$LINENO: checking for X" >&5
22244 echo $ECHO_N "checking for X... $ECHO_C" >&6
22245
22246
22247 # Check whether --with-x or --without-x was given.
22248 if test "${with_x+set}" = set; then
22249 withval="$with_x"
22250
22251 fi;
22252 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22253 if test "x$with_x" = xno; then
22254 # The user explicitly disabled X.
22255 have_x=disabled
22256 else
22257 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22258 # Both variables are already set.
22259 have_x=yes
22260 else
22261 if test "${ac_cv_have_x+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 else
22264 # One or both of the vars are not set, and there is no cached value.
22265 ac_x_includes=no ac_x_libraries=no
22266 rm -fr conftest.dir
22267 if mkdir conftest.dir; then
22268 cd conftest.dir
22269 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22270 cat >Imakefile <<'_ACEOF'
22271 acfindx:
22272 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22273 _ACEOF
22274 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22275 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22276 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22277 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22278 for ac_extension in a so sl; do
22279 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22280 test -f $ac_im_libdir/libX11.$ac_extension; then
22281 ac_im_usrlibdir=$ac_im_libdir; break
22282 fi
22283 done
22284 # Screen out bogus values from the imake configuration. They are
22285 # bogus both because they are the default anyway, and because
22286 # using them would break gcc on systems where it needs fixed includes.
22287 case $ac_im_incroot in
22288 /usr/include) ;;
22289 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22290 esac
22291 case $ac_im_usrlibdir in
22292 /usr/lib | /lib) ;;
22293 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22294 esac
22295 fi
22296 cd ..
22297 rm -fr conftest.dir
22298 fi
22299
22300 # Standard set of common directories for X headers.
22301 # Check X11 before X11Rn because it is often a symlink to the current release.
22302 ac_x_header_dirs='
22303 /usr/X11/include
22304 /usr/X11R6/include
22305 /usr/X11R5/include
22306 /usr/X11R4/include
22307
22308 /usr/include/X11
22309 /usr/include/X11R6
22310 /usr/include/X11R5
22311 /usr/include/X11R4
22312
22313 /usr/local/X11/include
22314 /usr/local/X11R6/include
22315 /usr/local/X11R5/include
22316 /usr/local/X11R4/include
22317
22318 /usr/local/include/X11
22319 /usr/local/include/X11R6
22320 /usr/local/include/X11R5
22321 /usr/local/include/X11R4
22322
22323 /usr/X386/include
22324 /usr/x386/include
22325 /usr/XFree86/include/X11
22326
22327 /usr/include
22328 /usr/local/include
22329 /usr/unsupported/include
22330 /usr/athena/include
22331 /usr/local/x11r5/include
22332 /usr/lpp/Xamples/include
22333
22334 /usr/openwin/include
22335 /usr/openwin/share/include'
22336
22337 if test "$ac_x_includes" = no; then
22338 # Guess where to find include files, by looking for Intrinsic.h.
22339 # First, try using that file with no special directory specified.
22340 cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h. */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 #include <X11/Intrinsic.h>
22347 _ACEOF
22348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } >/dev/null; then
22356 if test -s conftest.err; then
22357 ac_cpp_err=$ac_c_preproc_warn_flag
22358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22359 else
22360 ac_cpp_err=
22361 fi
22362 else
22363 ac_cpp_err=yes
22364 fi
22365 if test -z "$ac_cpp_err"; then
22366 # We can compile using X headers with no special include directory.
22367 ac_x_includes=
22368 else
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372 for ac_dir in $ac_x_header_dirs; do
22373 if test -r "$ac_dir/X11/Intrinsic.h"; then
22374 ac_x_includes=$ac_dir
22375 break
22376 fi
22377 done
22378 fi
22379 rm -f conftest.err conftest.$ac_ext
22380 fi # $ac_x_includes = no
22381
22382 if test "$ac_x_libraries" = no; then
22383 # Check for the libraries.
22384 # See if we find them without any special options.
22385 # Don't add to $LIBS permanently.
22386 ac_save_LIBS=$LIBS
22387 LIBS="-lXt $LIBS"
22388 cat >conftest.$ac_ext <<_ACEOF
22389 /* confdefs.h. */
22390 _ACEOF
22391 cat confdefs.h >>conftest.$ac_ext
22392 cat >>conftest.$ac_ext <<_ACEOF
22393 /* end confdefs.h. */
22394 #include <X11/Intrinsic.h>
22395 int
22396 main ()
22397 {
22398 XtMalloc (0)
22399 ;
22400 return 0;
22401 }
22402 _ACEOF
22403 rm -f conftest.$ac_objext conftest$ac_exeext
22404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22405 (eval $ac_link) 2>conftest.er1
22406 ac_status=$?
22407 grep -v '^ *+' conftest.er1 >conftest.err
22408 rm -f conftest.er1
22409 cat conftest.err >&5
22410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22411 (exit $ac_status); } &&
22412 { ac_try='test -z "$ac_c_werror_flag"
22413 || test ! -s conftest.err'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22416 ac_status=$?
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest$ac_exeext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22422 ac_status=$?
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 LIBS=$ac_save_LIBS
22426 # We can link X programs with no special library path.
22427 ac_x_libraries=
22428 else
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22431
22432 LIBS=$ac_save_LIBS
22433 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22434 do
22435 # Don't even attempt the hair of trying to link an X program!
22436 for ac_extension in a so sl; do
22437 if test -r $ac_dir/libXt.$ac_extension; then
22438 ac_x_libraries=$ac_dir
22439 break 2
22440 fi
22441 done
22442 done
22443 fi
22444 rm -f conftest.err conftest.$ac_objext \
22445 conftest$ac_exeext conftest.$ac_ext
22446 fi # $ac_x_libraries = no
22447
22448 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22449 # Didn't find X anywhere. Cache the known absence of X.
22450 ac_cv_have_x="have_x=no"
22451 else
22452 # Record where we found X for the cache.
22453 ac_cv_have_x="have_x=yes \
22454 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22455 fi
22456 fi
22457
22458 fi
22459 eval "$ac_cv_have_x"
22460 fi # $with_x != no
22461
22462 if test "$have_x" != yes; then
22463 echo "$as_me:$LINENO: result: $have_x" >&5
22464 echo "${ECHO_T}$have_x" >&6
22465 no_x=yes
22466 else
22467 # If each of the values was on the command line, it overrides each guess.
22468 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22469 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22470 # Update the cache value to reflect the command line values.
22471 ac_cv_have_x="have_x=yes \
22472 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22473 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22474 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22475 fi
22476
22477
22478 # Check whether we should enable the TUI, but only do so if we really
22479 # can.
22480 if test x"$enable_tui" = xyes; then
22481 if test -d $srcdir/tui; then
22482 if test "$ac_cv_search_waddstr" != no; then
22483 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
22484 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
22485 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
22486 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
22487 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
22488 CONFIG_ALL="${CONFIG_ALL} all-tui"
22489 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
22490 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
22491 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
22492 else
22493 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
22494 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
22495 fi
22496 fi
22497 fi
22498
22499 # Unlike the sim directory, whether a simulator is linked is controlled by
22500 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
22501 # This code just checks for a few cases where we'd like to ignore those
22502 # definitions, even when they're present in the '.mt' file. These cases
22503 # are when --disable-sim is specified, or if the simulator directory is
22504 # not part of the source tree.
22505 #
22506 # Check whether --enable-sim or --disable-sim was given.
22507 if test "${enable_sim+set}" = set; then
22508 enableval="$enable_sim"
22509 echo "enable_sim = $enable_sim";
22510 echo "enableval = ${enableval}";
22511 case "${enableval}" in
22512 yes) ignore_sim=false ;;
22513 no) ignore_sim=true ;;
22514 *) ignore_sim=false ;;
22515 esac
22516 else
22517 ignore_sim=false
22518 fi;
22519
22520 if test ! -d "${srcdir}/../sim"; then
22521 ignore_sim=true
22522 fi
22523
22524 if test "${ignore_sim}" = "true"; then
22525 IGNORE_SIM="SIM="
22526 IGNORE_SIM_OBS="SIM_OBS="
22527 else
22528 IGNORE_SIM=""
22529 IGNORE_SIM_OBS=""
22530
22531 cat >>confdefs.h <<\_ACEOF
22532 #define WITH_SIM 1
22533 _ACEOF
22534
22535 fi
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550 # List of host floatformats.
22551
22552 cat >>confdefs.h <<_ACEOF
22553 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
22554 _ACEOF
22555
22556
22557 cat >>confdefs.h <<_ACEOF
22558 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
22559 _ACEOF
22560
22561
22562 cat >>confdefs.h <<_ACEOF
22563 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
22564 _ACEOF
22565
22566
22567 # target_subdir is used by the testsuite to find the target libraries.
22568 target_subdir=
22569 if test "${host}" != "${target}"; then
22570 target_subdir="${target_alias}/"
22571 fi
22572
22573
22574 frags=
22575 if test "${target}" = "${host}"; then
22576 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
22577 if test ! -f ${host_makefile_frag}; then
22578 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
22579 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
22580 { (exit 1); exit 1; }; }
22581 fi
22582 frags="$frags $host_makefile_frag"
22583 else
22584 host_makefile_frag=/dev/null
22585 fi
22586
22587 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
22588 if test ! -f ${target_makefile_frag}; then
22589 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
22590 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
22591 { (exit 1); exit 1; }; }
22592 fi
22593 frags="$frags $target_makefile_frag"
22594
22595
22596
22597
22598
22599 hostfile=`sed -n '
22600 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22601 ' ${host_makefile_frag}`
22602
22603 targetfile=`sed -n '
22604 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22605 ' ${target_makefile_frag}`
22606
22607 if test "${target}" = "${host}"; then
22608 # We pick this up from the host configuration file (.mh) because we
22609 # do not have a native configuration Makefile fragment.
22610 nativefile=`sed -n '
22611 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
22612 ' ${host_makefile_frag}`
22613 fi
22614
22615
22616 if test x"${gdb_osabi}" != x ; then
22617
22618 cat >>confdefs.h <<_ACEOF
22619 #define GDB_OSABI_DEFAULT $gdb_osabi
22620 _ACEOF
22621
22622 fi
22623
22624 # Enable multi-ice-gdb-server.
22625 # Check whether --enable-multi-ice or --disable-multi-ice was given.
22626 if test "${enable_multi_ice+set}" = set; then
22627 enableval="$enable_multi_ice"
22628 case $enableval in
22629 yes | no)
22630 ;;
22631 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
22632 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
22633 { (exit 1); exit 1; }; } ;;
22634 esac
22635 fi;
22636 if test "x$enable_multi_ice" = xyes; then
22637
22638
22639 subdirs="$subdirs multi-ice"
22640
22641 fi
22642
22643 # We only build gdbserver automatically if host and target are the same.
22644 if test "x$target" = "x$host"; then
22645 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
22646 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
22647 if test "x$build_gdbserver" = xyes; then
22648 echo "$as_me:$LINENO: result: yes" >&5
22649 echo "${ECHO_T}yes" >&6
22650
22651
22652 subdirs="$subdirs gdbserver"
22653
22654 else
22655 echo "$as_me:$LINENO: result: no" >&5
22656 echo "${ECHO_T}no" >&6
22657 fi
22658 fi
22659
22660 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
22661 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
22662 # to an empty version.
22663
22664 files=
22665 links=
22666
22667 rm -f xm.h
22668 xm_h=""
22669 if test "${hostfile}" != ""; then
22670 xm_h=xm.h
22671 case "${hostfile}" in
22672 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
22673 * ) GDB_XM_FILE="${hostfile}"
22674 esac
22675 files="${files} ${GDB_XM_FILE}"
22676 links="${links} xm.h"
22677
22678 cat >>confdefs.h <<_ACEOF
22679 #define GDB_XM_FILE "${GDB_XM_FILE}"
22680 _ACEOF
22681
22682 fi
22683
22684
22685 rm -f tm.h
22686 tm_h=""
22687 if test "${targetfile}" != ""; then
22688 tm_h=tm.h
22689 case "${targetfile}" in
22690 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
22691 * ) GDB_TM_FILE="${targetfile}"
22692 esac
22693 files="${files} ${GDB_TM_FILE}"
22694 links="${links} tm.h"
22695
22696 cat >>confdefs.h <<_ACEOF
22697 #define GDB_TM_FILE "${GDB_TM_FILE}"
22698 _ACEOF
22699
22700 fi
22701
22702
22703 rm -f nm.h
22704 nm_h=""
22705 if test "${nativefile}" != ""; then
22706 nm_h=nm.h
22707 case "${nativefile}" in
22708 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
22709 * ) GDB_NM_FILE="${nativefile}"
22710 esac
22711 files="${files} ${GDB_NM_FILE}"
22712 links="${links} nm.h"
22713
22714 cat >>confdefs.h <<_ACEOF
22715 #define GDB_NM_FILE "${GDB_NM_FILE}"
22716 _ACEOF
22717
22718 fi
22719
22720
22721 ac_sources="$files"
22722 ac_dests="$links"
22723 while test -n "$ac_sources"; do
22724 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22725 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22726 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22727 done
22728 ac_config_links="$ac_config_links $ac_config_links_1"
22729
22730
22731
22732
22733
22734
22735 cat >>confdefs.h <<\_ACEOF
22736 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
22737 _ACEOF
22738
22739
22740
22741
22742
22743 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
22744 if test "${with_libiconv_prefix+set}" = set; then
22745 withval="$with_libiconv_prefix"
22746
22747 for dir in `echo "$withval" | tr : ' '`; do
22748 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
22749 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
22750 done
22751
22752 fi;
22753
22754 echo "$as_me:$LINENO: checking for iconv" >&5
22755 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22756 if test "${am_cv_func_iconv+set}" = set; then
22757 echo $ECHO_N "(cached) $ECHO_C" >&6
22758 else
22759
22760 am_cv_func_iconv="no, consider installing GNU libiconv"
22761 am_cv_lib_iconv=no
22762 cat >conftest.$ac_ext <<_ACEOF
22763 /* confdefs.h. */
22764 _ACEOF
22765 cat confdefs.h >>conftest.$ac_ext
22766 cat >>conftest.$ac_ext <<_ACEOF
22767 /* end confdefs.h. */
22768 #include <stdlib.h>
22769 #include <iconv.h>
22770 int
22771 main ()
22772 {
22773 iconv_t cd = iconv_open("","");
22774 iconv(cd,NULL,NULL,NULL,NULL);
22775 iconv_close(cd);
22776 ;
22777 return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22782 (eval $ac_link) 2>conftest.er1
22783 ac_status=$?
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
22787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } &&
22789 { ac_try='test -z "$ac_c_werror_flag"
22790 || test ! -s conftest.err'
22791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22792 (eval $ac_try) 2>&5
22793 ac_status=$?
22794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); }; } &&
22796 { ac_try='test -s conftest$ac_exeext'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 am_cv_func_iconv=yes
22803 else
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22806
22807 fi
22808 rm -f conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
22810 if test "$am_cv_func_iconv" != yes; then
22811 am_save_LIBS="$LIBS"
22812 LIBS="$LIBS -liconv"
22813 cat >conftest.$ac_ext <<_ACEOF
22814 /* confdefs.h. */
22815 _ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <stdlib.h>
22820 #include <iconv.h>
22821 int
22822 main ()
22823 {
22824 iconv_t cd = iconv_open("","");
22825 iconv(cd,NULL,NULL,NULL,NULL);
22826 iconv_close(cd);
22827 ;
22828 return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22833 (eval $ac_link) 2>conftest.er1
22834 ac_status=$?
22835 grep -v '^ *+' conftest.er1 >conftest.err
22836 rm -f conftest.er1
22837 cat conftest.err >&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); } &&
22840 { ac_try='test -z "$ac_c_werror_flag"
22841 || test ! -s conftest.err'
22842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22843 (eval $ac_try) 2>&5
22844 ac_status=$?
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); }; } &&
22847 { ac_try='test -s conftest$ac_exeext'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; }; then
22853 am_cv_lib_iconv=yes
22854 am_cv_func_iconv=yes
22855 else
22856 echo "$as_me: failed program was:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22858
22859 fi
22860 rm -f conftest.err conftest.$ac_objext \
22861 conftest$ac_exeext conftest.$ac_ext
22862 LIBS="$am_save_LIBS"
22863 fi
22864
22865 fi
22866 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22867 echo "${ECHO_T}$am_cv_func_iconv" >&6
22868 if test "$am_cv_func_iconv" = yes; then
22869
22870 cat >>confdefs.h <<\_ACEOF
22871 #define HAVE_ICONV 1
22872 _ACEOF
22873
22874 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22875 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22876 if test "${am_cv_proto_iconv+set}" = set; then
22877 echo $ECHO_N "(cached) $ECHO_C" >&6
22878 else
22879
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886
22887 #include <stdlib.h>
22888 #include <iconv.h>
22889 extern
22890 #ifdef __cplusplus
22891 "C"
22892 #endif
22893 #if defined(__STDC__) || defined(__cplusplus)
22894 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22895 #else
22896 size_t iconv();
22897 #endif
22898
22899 int
22900 main ()
22901 {
22902
22903 ;
22904 return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext
22908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22909 (eval $ac_compile) 2>conftest.er1
22910 ac_status=$?
22911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } &&
22916 { ac_try='test -z "$ac_c_werror_flag"
22917 || test ! -s conftest.err'
22918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22919 (eval $ac_try) 2>&5
22920 ac_status=$?
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); }; } &&
22923 { ac_try='test -s conftest.$ac_objext'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; }; then
22929 am_cv_proto_iconv_arg1=""
22930 else
22931 echo "$as_me: failed program was:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22933
22934 am_cv_proto_iconv_arg1="const"
22935 fi
22936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22937 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);"
22938 fi
22939
22940 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22941 echo "$as_me:$LINENO: result: ${ac_t:-
22942 }$am_cv_proto_iconv" >&5
22943 echo "${ECHO_T}${ac_t:-
22944 }$am_cv_proto_iconv" >&6
22945
22946 cat >>confdefs.h <<_ACEOF
22947 #define ICONV_CONST $am_cv_proto_iconv_arg1
22948 _ACEOF
22949
22950 fi
22951 LIBICONV=
22952 if test "$am_cv_lib_iconv" = yes; then
22953 LIBICONV="-liconv"
22954 fi
22955
22956
22957
22958 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
22959 ac_config_commands="$ac_config_commands default"
22960 cat >confcache <<\_ACEOF
22961 # This file is a shell script that caches the results of configure
22962 # tests run on this system so they can be shared between configure
22963 # scripts and configure runs, see configure's option --config-cache.
22964 # It is not useful on other systems. If it contains results you don't
22965 # want to keep, you may remove or edit it.
22966 #
22967 # config.status only pays attention to the cache file if you give it
22968 # the --recheck option to rerun configure.
22969 #
22970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22972 # following values.
22973
22974 _ACEOF
22975
22976 # The following way of writing the cache mishandles newlines in values,
22977 # but we know of no workaround that is simple, portable, and efficient.
22978 # So, don't put newlines in cache variables' values.
22979 # Ultrix sh set writes to stderr and can't be redirected directly,
22980 # and sets the high bit in the cache file unless we assign to the vars.
22981 {
22982 (set) 2>&1 |
22983 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22984 *ac_space=\ *)
22985 # `set' does not quote correctly, so add quotes (double-quote
22986 # substitution turns \\\\ into \\, and sed turns \\ into \).
22987 sed -n \
22988 "s/'/'\\\\''/g;
22989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22990 ;;
22991 *)
22992 # `set' quotes correctly as required by POSIX, so do not add quotes.
22993 sed -n \
22994 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22995 ;;
22996 esac;
22997 } |
22998 sed '
22999 t clear
23000 : clear
23001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23002 t end
23003 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23004 : end' >>confcache
23005 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23006 if test -w $cache_file; then
23007 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23008 cat confcache >$cache_file
23009 else
23010 echo "not updating unwritable cache $cache_file"
23011 fi
23012 fi
23013 rm -f confcache
23014
23015 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23016 # Let make expand exec_prefix.
23017 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23018
23019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23021 # trailing colons and then remove the whole line if VPATH becomes empty
23022 # (actually we leave an empty line to preserve line numbers).
23023 if test "x$srcdir" = x.; then
23024 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23025 s/:*\$(srcdir):*/:/;
23026 s/:*\${srcdir}:*/:/;
23027 s/:*@srcdir@:*/:/;
23028 s/^\([^=]*=[ ]*\):*/\1/;
23029 s/:*$//;
23030 s/^[^=]*=[ ]*$//;
23031 }'
23032 fi
23033
23034 DEFS=-DHAVE_CONFIG_H
23035
23036 ac_libobjs=
23037 ac_ltlibobjs=
23038 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23039 # 1. Remove the extension, and $U if already installed.
23040 ac_i=`echo "$ac_i" |
23041 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23042 # 2. Add them.
23043 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23044 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23045 done
23046 LIBOBJS=$ac_libobjs
23047
23048 LTLIBOBJS=$ac_ltlibobjs
23049
23050
23051 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23052 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23053 Usually this means the macro was only invoked conditionally." >&5
23054 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23055 Usually this means the macro was only invoked conditionally." >&2;}
23056 { (exit 1); exit 1; }; }
23057 fi
23058
23059 : ${CONFIG_STATUS=./config.status}
23060 ac_clean_files_save=$ac_clean_files
23061 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23062 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23063 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23064 cat >$CONFIG_STATUS <<_ACEOF
23065 #! $SHELL
23066 # Generated by $as_me.
23067 # Run this file to recreate the current configuration.
23068 # Compiler output produced by configure, useful for debugging
23069 # configure, is in config.log if it exists.
23070
23071 debug=false
23072 ac_cs_recheck=false
23073 ac_cs_silent=false
23074 SHELL=\${CONFIG_SHELL-$SHELL}
23075 _ACEOF
23076
23077 cat >>$CONFIG_STATUS <<\_ACEOF
23078 ## --------------------- ##
23079 ## M4sh Initialization. ##
23080 ## --------------------- ##
23081
23082 # Be Bourne compatible
23083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23084 emulate sh
23085 NULLCMD=:
23086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23087 # is contrary to our usage. Disable this feature.
23088 alias -g '${1+"$@"}'='"$@"'
23089 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23090 set -o posix
23091 fi
23092 DUALCASE=1; export DUALCASE # for MKS sh
23093
23094 # Support unset when possible.
23095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23096 as_unset=unset
23097 else
23098 as_unset=false
23099 fi
23100
23101
23102 # Work around bugs in pre-3.0 UWIN ksh.
23103 $as_unset ENV MAIL MAILPATH
23104 PS1='$ '
23105 PS2='> '
23106 PS4='+ '
23107
23108 # NLS nuisances.
23109 for as_var in \
23110 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23111 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23112 LC_TELEPHONE LC_TIME
23113 do
23114 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23115 eval $as_var=C; export $as_var
23116 else
23117 $as_unset $as_var
23118 fi
23119 done
23120
23121 # Required to use basename.
23122 if expr a : '\(a\)' >/dev/null 2>&1; then
23123 as_expr=expr
23124 else
23125 as_expr=false
23126 fi
23127
23128 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23129 as_basename=basename
23130 else
23131 as_basename=false
23132 fi
23133
23134
23135 # Name of the executable.
23136 as_me=`$as_basename "$0" ||
23137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23138 X"$0" : 'X\(//\)$' \| \
23139 X"$0" : 'X\(/\)$' \| \
23140 . : '\(.\)' 2>/dev/null ||
23141 echo X/"$0" |
23142 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23143 /^X\/\(\/\/\)$/{ s//\1/; q; }
23144 /^X\/\(\/\).*/{ s//\1/; q; }
23145 s/.*/./; q'`
23146
23147
23148 # PATH needs CR, and LINENO needs CR and PATH.
23149 # Avoid depending upon Character Ranges.
23150 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23151 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23152 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23153 as_cr_digits='0123456789'
23154 as_cr_alnum=$as_cr_Letters$as_cr_digits
23155
23156 # The user is always right.
23157 if test "${PATH_SEPARATOR+set}" != set; then
23158 echo "#! /bin/sh" >conf$$.sh
23159 echo "exit 0" >>conf$$.sh
23160 chmod +x conf$$.sh
23161 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23162 PATH_SEPARATOR=';'
23163 else
23164 PATH_SEPARATOR=:
23165 fi
23166 rm -f conf$$.sh
23167 fi
23168
23169
23170 as_lineno_1=$LINENO
23171 as_lineno_2=$LINENO
23172 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23173 test "x$as_lineno_1" != "x$as_lineno_2" &&
23174 test "x$as_lineno_3" = "x$as_lineno_2" || {
23175 # Find who we are. Look in the path if we contain no path at all
23176 # relative or not.
23177 case $0 in
23178 *[\\/]* ) as_myself=$0 ;;
23179 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23180 for as_dir in $PATH
23181 do
23182 IFS=$as_save_IFS
23183 test -z "$as_dir" && as_dir=.
23184 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23185 done
23186
23187 ;;
23188 esac
23189 # We did not find ourselves, most probably we were run as `sh COMMAND'
23190 # in which case we are not to be found in the path.
23191 if test "x$as_myself" = x; then
23192 as_myself=$0
23193 fi
23194 if test ! -f "$as_myself"; then
23195 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23196 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23197 { (exit 1); exit 1; }; }
23198 fi
23199 case $CONFIG_SHELL in
23200 '')
23201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23202 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23203 do
23204 IFS=$as_save_IFS
23205 test -z "$as_dir" && as_dir=.
23206 for as_base in sh bash ksh sh5; do
23207 case $as_dir in
23208 /*)
23209 if ("$as_dir/$as_base" -c '
23210 as_lineno_1=$LINENO
23211 as_lineno_2=$LINENO
23212 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23213 test "x$as_lineno_1" != "x$as_lineno_2" &&
23214 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23215 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23216 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23217 CONFIG_SHELL=$as_dir/$as_base
23218 export CONFIG_SHELL
23219 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23220 fi;;
23221 esac
23222 done
23223 done
23224 ;;
23225 esac
23226
23227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23228 # uniformly replaced by the line number. The first 'sed' inserts a
23229 # line-number line before each line; the second 'sed' does the real
23230 # work. The second script uses 'N' to pair each line-number line
23231 # with the numbered line, and appends trailing '-' during
23232 # substitution so that $LINENO is not a special case at line end.
23233 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23234 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23235 sed '=' <$as_myself |
23236 sed '
23237 N
23238 s,$,-,
23239 : loop
23240 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23241 t loop
23242 s,-$,,
23243 s,^['$as_cr_digits']*\n,,
23244 ' >$as_me.lineno &&
23245 chmod +x $as_me.lineno ||
23246 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23247 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23248 { (exit 1); exit 1; }; }
23249
23250 # Don't try to exec as it changes $[0], causing all sort of problems
23251 # (the dirname of $[0] is not the place where we might find the
23252 # original and so on. Autoconf is especially sensible to this).
23253 . ./$as_me.lineno
23254 # Exit status is that of the last command.
23255 exit
23256 }
23257
23258
23259 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23260 *c*,-n*) ECHO_N= ECHO_C='
23261 ' ECHO_T=' ' ;;
23262 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23263 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23264 esac
23265
23266 if expr a : '\(a\)' >/dev/null 2>&1; then
23267 as_expr=expr
23268 else
23269 as_expr=false
23270 fi
23271
23272 rm -f conf$$ conf$$.exe conf$$.file
23273 echo >conf$$.file
23274 if ln -s conf$$.file conf$$ 2>/dev/null; then
23275 # We could just check for DJGPP; but this test a) works b) is more generic
23276 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23277 if test -f conf$$.exe; then
23278 # Don't use ln at all; we don't have any links
23279 as_ln_s='cp -p'
23280 else
23281 as_ln_s='ln -s'
23282 fi
23283 elif ln conf$$.file conf$$ 2>/dev/null; then
23284 as_ln_s=ln
23285 else
23286 as_ln_s='cp -p'
23287 fi
23288 rm -f conf$$ conf$$.exe conf$$.file
23289
23290 if mkdir -p . 2>/dev/null; then
23291 as_mkdir_p=:
23292 else
23293 test -d ./-p && rmdir ./-p
23294 as_mkdir_p=false
23295 fi
23296
23297 as_executable_p="test -f"
23298
23299 # Sed expression to map a string onto a valid CPP name.
23300 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23301
23302 # Sed expression to map a string onto a valid variable name.
23303 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23304
23305
23306 # IFS
23307 # We need space, tab and new line, in precisely that order.
23308 as_nl='
23309 '
23310 IFS=" $as_nl"
23311
23312 # CDPATH.
23313 $as_unset CDPATH
23314
23315 exec 6>&1
23316
23317 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23318 # report actual input values of CONFIG_FILES etc. instead of their
23319 # values after options handling. Logging --version etc. is OK.
23320 exec 5>>config.log
23321 {
23322 echo
23323 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23324 ## Running $as_me. ##
23325 _ASBOX
23326 } >&5
23327 cat >&5 <<_CSEOF
23328
23329 This file was extended by $as_me, which was
23330 generated by GNU Autoconf 2.59. Invocation command line was
23331
23332 CONFIG_FILES = $CONFIG_FILES
23333 CONFIG_HEADERS = $CONFIG_HEADERS
23334 CONFIG_LINKS = $CONFIG_LINKS
23335 CONFIG_COMMANDS = $CONFIG_COMMANDS
23336 $ $0 $@
23337
23338 _CSEOF
23339 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23340 echo >&5
23341 _ACEOF
23342
23343 # Files that config.status was made for.
23344 if test -n "$ac_config_files"; then
23345 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23346 fi
23347
23348 if test -n "$ac_config_headers"; then
23349 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23350 fi
23351
23352 if test -n "$ac_config_links"; then
23353 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23354 fi
23355
23356 if test -n "$ac_config_commands"; then
23357 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23358 fi
23359
23360 cat >>$CONFIG_STATUS <<\_ACEOF
23361
23362 ac_cs_usage="\
23363 \`$as_me' instantiates files from templates according to the
23364 current configuration.
23365
23366 Usage: $0 [OPTIONS] [FILE]...
23367
23368 -h, --help print this help, then exit
23369 -V, --version print version number, then exit
23370 -q, --quiet do not print progress messages
23371 -d, --debug don't remove temporary files
23372 --recheck update $as_me by reconfiguring in the same conditions
23373 --file=FILE[:TEMPLATE]
23374 instantiate the configuration file FILE
23375 --header=FILE[:TEMPLATE]
23376 instantiate the configuration header FILE
23377
23378 Configuration files:
23379 $config_files
23380
23381 Configuration headers:
23382 $config_headers
23383
23384 Configuration links:
23385 $config_links
23386
23387 Configuration commands:
23388 $config_commands
23389
23390 Report bugs to <bug-autoconf@gnu.org>."
23391 _ACEOF
23392
23393 cat >>$CONFIG_STATUS <<_ACEOF
23394 ac_cs_version="\\
23395 config.status
23396 configured by $0, generated by GNU Autoconf 2.59,
23397 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23398
23399 Copyright (C) 2003 Free Software Foundation, Inc.
23400 This config.status script is free software; the Free Software Foundation
23401 gives unlimited permission to copy, distribute and modify it."
23402 srcdir=$srcdir
23403 INSTALL="$INSTALL"
23404 _ACEOF
23405
23406 cat >>$CONFIG_STATUS <<\_ACEOF
23407 # If no file are specified by the user, then we need to provide default
23408 # value. By we need to know if files were specified by the user.
23409 ac_need_defaults=:
23410 while test $# != 0
23411 do
23412 case $1 in
23413 --*=*)
23414 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23415 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23416 ac_shift=:
23417 ;;
23418 -*)
23419 ac_option=$1
23420 ac_optarg=$2
23421 ac_shift=shift
23422 ;;
23423 *) # This is not an option, so the user has probably given explicit
23424 # arguments.
23425 ac_option=$1
23426 ac_need_defaults=false;;
23427 esac
23428
23429 case $ac_option in
23430 # Handling of the options.
23431 _ACEOF
23432 cat >>$CONFIG_STATUS <<\_ACEOF
23433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23434 ac_cs_recheck=: ;;
23435 --version | --vers* | -V )
23436 echo "$ac_cs_version"; exit 0 ;;
23437 --he | --h)
23438 # Conflict between --help and --header
23439 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23440 Try \`$0 --help' for more information." >&5
23441 echo "$as_me: error: ambiguous option: $1
23442 Try \`$0 --help' for more information." >&2;}
23443 { (exit 1); exit 1; }; };;
23444 --help | --hel | -h )
23445 echo "$ac_cs_usage"; exit 0 ;;
23446 --debug | --d* | -d )
23447 debug=: ;;
23448 --file | --fil | --fi | --f )
23449 $ac_shift
23450 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23451 ac_need_defaults=false;;
23452 --header | --heade | --head | --hea )
23453 $ac_shift
23454 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23455 ac_need_defaults=false;;
23456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23458 ac_cs_silent=: ;;
23459
23460 # This is an error.
23461 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23462 Try \`$0 --help' for more information." >&5
23463 echo "$as_me: error: unrecognized option: $1
23464 Try \`$0 --help' for more information." >&2;}
23465 { (exit 1); exit 1; }; } ;;
23466
23467 *) ac_config_targets="$ac_config_targets $1" ;;
23468
23469 esac
23470 shift
23471 done
23472
23473 ac_configure_extra_args=
23474
23475 if $ac_cs_silent; then
23476 exec 6>/dev/null
23477 ac_configure_extra_args="$ac_configure_extra_args --silent"
23478 fi
23479
23480 _ACEOF
23481 cat >>$CONFIG_STATUS <<_ACEOF
23482 if \$ac_cs_recheck; then
23483 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23484 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23485 fi
23486
23487 _ACEOF
23488
23489 cat >>$CONFIG_STATUS <<_ACEOF
23490 #
23491 # INIT-COMMANDS section.
23492 #
23493
23494
23495 GCC="$GCC"
23496 CC="$CC"
23497 acx_cv_header_stdint="$acx_cv_header_stdint"
23498 acx_cv_type_int8_t="$acx_cv_type_int8_t"
23499 acx_cv_type_int16_t="$acx_cv_type_int16_t"
23500 acx_cv_type_int32_t="$acx_cv_type_int32_t"
23501 acx_cv_type_int64_t="$acx_cv_type_int64_t"
23502 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
23503 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
23504 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
23505 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
23506 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
23507 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
23508 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
23509 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
23510 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
23511
23512
23513 gdb_host_cpu=$gdb_host_cpu
23514 gdb_target_cpu=$gdb_target_cpu
23515 nativefile=$nativefile
23516
23517
23518 _ACEOF
23519
23520
23521
23522 cat >>$CONFIG_STATUS <<\_ACEOF
23523 for ac_config_target in $ac_config_targets
23524 do
23525 case "$ac_config_target" in
23526 # Handling of arguments.
23527 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23528 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
23529 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
23530 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
23531 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23532 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
23533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23535 { (exit 1); exit 1; }; };;
23536 esac
23537 done
23538
23539 # If the user did not use the arguments to specify the items to instantiate,
23540 # then the envvar interface is used. Set only those that are not.
23541 # We use the long form for the default assignment because of an extremely
23542 # bizarre bug on SunOS 4.1.3.
23543 if $ac_need_defaults; then
23544 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23545 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23546 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
23547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23548 fi
23549
23550 # Have a temporary directory for convenience. Make it in the build tree
23551 # simply because there is no reason to put it here, and in addition,
23552 # creating and moving files from /tmp can sometimes cause problems.
23553 # Create a temporary directory, and hook for its removal unless debugging.
23554 $debug ||
23555 {
23556 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23557 trap '{ (exit 1); exit 1; }' 1 2 13 15
23558 }
23559
23560 # Create a (secure) tmp directory for tmp files.
23561
23562 {
23563 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23564 test -n "$tmp" && test -d "$tmp"
23565 } ||
23566 {
23567 tmp=./confstat$$-$RANDOM
23568 (umask 077 && mkdir $tmp)
23569 } ||
23570 {
23571 echo "$me: cannot create a temporary directory in ." >&2
23572 { (exit 1); exit 1; }
23573 }
23574
23575 _ACEOF
23576
23577 cat >>$CONFIG_STATUS <<_ACEOF
23578
23579 #
23580 # CONFIG_FILES section.
23581 #
23582
23583 # No need to generate the scripts if there are no CONFIG_FILES.
23584 # This happens for instance when ./config.status config.h
23585 if test -n "\$CONFIG_FILES"; then
23586 # Protect against being on the right side of a sed subst in config.status.
23587 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23588 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23589 s,@SHELL@,$SHELL,;t t
23590 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23591 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23592 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23593 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23594 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23595 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23596 s,@exec_prefix@,$exec_prefix,;t t
23597 s,@prefix@,$prefix,;t t
23598 s,@program_transform_name@,$program_transform_name,;t t
23599 s,@bindir@,$bindir,;t t
23600 s,@sbindir@,$sbindir,;t t
23601 s,@libexecdir@,$libexecdir,;t t
23602 s,@datadir@,$datadir,;t t
23603 s,@sysconfdir@,$sysconfdir,;t t
23604 s,@sharedstatedir@,$sharedstatedir,;t t
23605 s,@localstatedir@,$localstatedir,;t t
23606 s,@libdir@,$libdir,;t t
23607 s,@includedir@,$includedir,;t t
23608 s,@oldincludedir@,$oldincludedir,;t t
23609 s,@infodir@,$infodir,;t t
23610 s,@mandir@,$mandir,;t t
23611 s,@build_alias@,$build_alias,;t t
23612 s,@host_alias@,$host_alias,;t t
23613 s,@target_alias@,$target_alias,;t t
23614 s,@DEFS@,$DEFS,;t t
23615 s,@ECHO_C@,$ECHO_C,;t t
23616 s,@ECHO_N@,$ECHO_N,;t t
23617 s,@ECHO_T@,$ECHO_T,;t t
23618 s,@LIBS@,$LIBS,;t t
23619 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
23620 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
23621 s,@MAINT@,$MAINT,;t t
23622 s,@CC@,$CC,;t t
23623 s,@CFLAGS@,$CFLAGS,;t t
23624 s,@LDFLAGS@,$LDFLAGS,;t t
23625 s,@CPPFLAGS@,$CPPFLAGS,;t t
23626 s,@ac_ct_CC@,$ac_ct_CC,;t t
23627 s,@EXEEXT@,$EXEEXT,;t t
23628 s,@OBJEXT@,$OBJEXT,;t t
23629 s,@CPP@,$CPP,;t t
23630 s,@EGREP@,$EGREP,;t t
23631 s,@build@,$build,;t t
23632 s,@build_cpu@,$build_cpu,;t t
23633 s,@build_vendor@,$build_vendor,;t t
23634 s,@build_os@,$build_os,;t t
23635 s,@host@,$host,;t t
23636 s,@host_cpu@,$host_cpu,;t t
23637 s,@host_vendor@,$host_vendor,;t t
23638 s,@host_os@,$host_os,;t t
23639 s,@target@,$target,;t t
23640 s,@target_cpu@,$target_cpu,;t t
23641 s,@target_vendor@,$target_vendor,;t t
23642 s,@target_os@,$target_os,;t t
23643 s,@USE_NLS@,$USE_NLS,;t t
23644 s,@LIBINTL@,$LIBINTL,;t t
23645 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
23646 s,@INCINTL@,$INCINTL,;t t
23647 s,@XGETTEXT@,$XGETTEXT,;t t
23648 s,@GMSGFMT@,$GMSGFMT,;t t
23649 s,@POSUB@,$POSUB,;t t
23650 s,@CATALOGS@,$CATALOGS,;t t
23651 s,@DATADIRNAME@,$DATADIRNAME,;t t
23652 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
23653 s,@GENCAT@,$GENCAT,;t t
23654 s,@CATOBJEXT@,$CATOBJEXT,;t t
23655 s,@localedir@,$localedir,;t t
23656 s,@PACKAGE@,$PACKAGE,;t t
23657 s,@subdirs@,$subdirs,;t t
23658 s,@AWK@,$AWK,;t t
23659 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23660 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23661 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23662 s,@LN_S@,$LN_S,;t t
23663 s,@RANLIB@,$RANLIB,;t t
23664 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23665 s,@YACC@,$YACC,;t t
23666 s,@AR@,$AR,;t t
23667 s,@ac_ct_AR@,$ac_ct_AR,;t t
23668 s,@DLLTOOL@,$DLLTOOL,;t t
23669 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
23670 s,@WINDRES@,$WINDRES,;t t
23671 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
23672 s,@MIG@,$MIG,;t t
23673 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
23674 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
23675 s,@LIBEXPAT@,$LIBEXPAT,;t t
23676 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
23677 s,@ALLOCA@,$ALLOCA,;t t
23678 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
23679 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
23680 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
23681 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
23682 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
23683 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
23684 s,@WIN32LIBS@,$WIN32LIBS,;t t
23685 s,@LIBGUI@,$LIBGUI,;t t
23686 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
23687 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
23688 s,@TCL_VERSION@,$TCL_VERSION,;t t
23689 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
23690 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
23691 s,@TCL_CC@,$TCL_CC,;t t
23692 s,@TCL_DEFS@,$TCL_DEFS,;t t
23693 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
23694 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
23695 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
23696 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
23697 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
23698 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
23699 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
23700 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
23701 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
23702 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
23703 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
23704 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
23705 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
23706 s,@TK_VERSION@,$TK_VERSION,;t t
23707 s,@TK_DEFS@,$TK_DEFS,;t t
23708 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
23709 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
23710 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
23711 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
23712 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
23713 s,@TCLHDIR@,$TCLHDIR,;t t
23714 s,@TKHDIR@,$TKHDIR,;t t
23715 s,@ITCLHDIR@,$ITCLHDIR,;t t
23716 s,@ITKHDIR@,$ITKHDIR,;t t
23717 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
23718 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
23719 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
23720 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
23721 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
23722 s,@ITK_VERSION@,$ITK_VERSION,;t t
23723 s,@ITK_DEFS@,$ITK_DEFS,;t t
23724 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
23725 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
23726 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
23727 s,@X_CFLAGS@,$X_CFLAGS,;t t
23728 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
23729 s,@X_LIBS@,$X_LIBS,;t t
23730 s,@TCL_DEPS@,$TCL_DEPS,;t t
23731 s,@TK_DEPS@,$TK_DEPS,;t t
23732 s,@ITCLLIB@,$ITCLLIB,;t t
23733 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
23734 s,@ITKLIB@,$ITKLIB,;t t
23735 s,@ITK_DEPS@,$ITK_DEPS,;t t
23736 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
23737 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
23738 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
23739 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
23740 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
23741 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
23742 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
23743 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
23744 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
23745 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
23746 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
23747 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
23748 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
23749 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
23750 s,@target_subdir@,$target_subdir,;t t
23751 s,@frags@,$frags,;t t
23752 s,@xm_h@,$xm_h,;t t
23753 s,@tm_h@,$tm_h,;t t
23754 s,@nm_h@,$nm_h,;t t
23755 s,@LIBICONV@,$LIBICONV,;t t
23756 s,@LIBOBJS@,$LIBOBJS,;t t
23757 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
23758 /@host_makefile_frag@/r $host_makefile_frag
23759 s,@host_makefile_frag@,,;t t
23760 /@target_makefile_frag@/r $target_makefile_frag
23761 s,@target_makefile_frag@,,;t t
23762 CEOF
23763
23764 _ACEOF
23765
23766 cat >>$CONFIG_STATUS <<\_ACEOF
23767 # Split the substitutions into bite-sized pieces for seds with
23768 # small command number limits, like on Digital OSF/1 and HP-UX.
23769 ac_max_sed_lines=48
23770 ac_sed_frag=1 # Number of current file.
23771 ac_beg=1 # First line for current file.
23772 ac_end=$ac_max_sed_lines # Line after last line for current file.
23773 ac_more_lines=:
23774 ac_sed_cmds=
23775 while $ac_more_lines; do
23776 if test $ac_beg -gt 1; then
23777 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23778 else
23779 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23780 fi
23781 if test ! -s $tmp/subs.frag; then
23782 ac_more_lines=false
23783 else
23784 # The purpose of the label and of the branching condition is to
23785 # speed up the sed processing (if there are no `@' at all, there
23786 # is no need to browse any of the substitutions).
23787 # These are the two extra sed commands mentioned above.
23788 (echo ':t
23789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23790 if test -z "$ac_sed_cmds"; then
23791 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23792 else
23793 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23794 fi
23795 ac_sed_frag=`expr $ac_sed_frag + 1`
23796 ac_beg=$ac_end
23797 ac_end=`expr $ac_end + $ac_max_sed_lines`
23798 fi
23799 done
23800 if test -z "$ac_sed_cmds"; then
23801 ac_sed_cmds=cat
23802 fi
23803 fi # test -n "$CONFIG_FILES"
23804
23805 _ACEOF
23806 cat >>$CONFIG_STATUS <<\_ACEOF
23807 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23809 case $ac_file in
23810 - | *:- | *:-:* ) # input from stdin
23811 cat >$tmp/stdin
23812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23816 * ) ac_file_in=$ac_file.in ;;
23817 esac
23818
23819 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23820 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23822 X"$ac_file" : 'X\(//\)[^/]' \| \
23823 X"$ac_file" : 'X\(//\)$' \| \
23824 X"$ac_file" : 'X\(/\)' \| \
23825 . : '\(.\)' 2>/dev/null ||
23826 echo X"$ac_file" |
23827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23828 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23829 /^X\(\/\/\)$/{ s//\1/; q; }
23830 /^X\(\/\).*/{ s//\1/; q; }
23831 s/.*/./; q'`
23832 { if $as_mkdir_p; then
23833 mkdir -p "$ac_dir"
23834 else
23835 as_dir="$ac_dir"
23836 as_dirs=
23837 while test ! -d "$as_dir"; do
23838 as_dirs="$as_dir $as_dirs"
23839 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23840 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23841 X"$as_dir" : 'X\(//\)[^/]' \| \
23842 X"$as_dir" : 'X\(//\)$' \| \
23843 X"$as_dir" : 'X\(/\)' \| \
23844 . : '\(.\)' 2>/dev/null ||
23845 echo X"$as_dir" |
23846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23848 /^X\(\/\/\)$/{ s//\1/; q; }
23849 /^X\(\/\).*/{ s//\1/; q; }
23850 s/.*/./; q'`
23851 done
23852 test ! -n "$as_dirs" || mkdir $as_dirs
23853 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23854 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23855 { (exit 1); exit 1; }; }; }
23856
23857 ac_builddir=.
23858
23859 if test "$ac_dir" != .; then
23860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23861 # A "../" for each directory in $ac_dir_suffix.
23862 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23863 else
23864 ac_dir_suffix= ac_top_builddir=
23865 fi
23866
23867 case $srcdir in
23868 .) # No --srcdir option. We are building in place.
23869 ac_srcdir=.
23870 if test -z "$ac_top_builddir"; then
23871 ac_top_srcdir=.
23872 else
23873 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23874 fi ;;
23875 [\\/]* | ?:[\\/]* ) # Absolute path.
23876 ac_srcdir=$srcdir$ac_dir_suffix;
23877 ac_top_srcdir=$srcdir ;;
23878 *) # Relative path.
23879 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23880 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23881 esac
23882
23883 # Do not use `cd foo && pwd` to compute absolute paths, because
23884 # the directories may not exist.
23885 case `pwd` in
23886 .) ac_abs_builddir="$ac_dir";;
23887 *)
23888 case "$ac_dir" in
23889 .) ac_abs_builddir=`pwd`;;
23890 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23891 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23892 esac;;
23893 esac
23894 case $ac_abs_builddir in
23895 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23896 *)
23897 case ${ac_top_builddir}. in
23898 .) ac_abs_top_builddir=$ac_abs_builddir;;
23899 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23900 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23901 esac;;
23902 esac
23903 case $ac_abs_builddir in
23904 .) ac_abs_srcdir=$ac_srcdir;;
23905 *)
23906 case $ac_srcdir in
23907 .) ac_abs_srcdir=$ac_abs_builddir;;
23908 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23909 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23910 esac;;
23911 esac
23912 case $ac_abs_builddir in
23913 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23914 *)
23915 case $ac_top_srcdir in
23916 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23917 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23918 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23919 esac;;
23920 esac
23921
23922
23923 case $INSTALL in
23924 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23925 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23926 esac
23927
23928 if test x"$ac_file" != x-; then
23929 { echo "$as_me:$LINENO: creating $ac_file" >&5
23930 echo "$as_me: creating $ac_file" >&6;}
23931 rm -f "$ac_file"
23932 fi
23933 # Let's still pretend it is `configure' which instantiates (i.e., don't
23934 # use $as_me), people would be surprised to read:
23935 # /* config.h. Generated by config.status. */
23936 if test x"$ac_file" = x-; then
23937 configure_input=
23938 else
23939 configure_input="$ac_file. "
23940 fi
23941 configure_input=$configure_input"Generated from `echo $ac_file_in |
23942 sed 's,.*/,,'` by configure."
23943
23944 # First look for the input files in the build tree, otherwise in the
23945 # src tree.
23946 ac_file_inputs=`IFS=:
23947 for f in $ac_file_in; do
23948 case $f in
23949 -) echo $tmp/stdin ;;
23950 [\\/$]*)
23951 # Absolute (can't be DOS-style, as IFS=:)
23952 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23953 echo "$as_me: error: cannot find input file: $f" >&2;}
23954 { (exit 1); exit 1; }; }
23955 echo "$f";;
23956 *) # Relative
23957 if test -f "$f"; then
23958 # Build tree
23959 echo "$f"
23960 elif test -f "$srcdir/$f"; then
23961 # Source tree
23962 echo "$srcdir/$f"
23963 else
23964 # /dev/null tree
23965 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23966 echo "$as_me: error: cannot find input file: $f" >&2;}
23967 { (exit 1); exit 1; }; }
23968 fi;;
23969 esac
23970 done` || { (exit 1); exit 1; }
23971 _ACEOF
23972 cat >>$CONFIG_STATUS <<_ACEOF
23973 sed "$ac_vpsub
23974 $extrasub
23975 _ACEOF
23976 cat >>$CONFIG_STATUS <<\_ACEOF
23977 :t
23978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23979 s,@configure_input@,$configure_input,;t t
23980 s,@srcdir@,$ac_srcdir,;t t
23981 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23982 s,@top_srcdir@,$ac_top_srcdir,;t t
23983 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23984 s,@builddir@,$ac_builddir,;t t
23985 s,@abs_builddir@,$ac_abs_builddir,;t t
23986 s,@top_builddir@,$ac_top_builddir,;t t
23987 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23988 s,@INSTALL@,$ac_INSTALL,;t t
23989 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23990 rm -f $tmp/stdin
23991 if test x"$ac_file" != x-; then
23992 mv $tmp/out $ac_file
23993 else
23994 cat $tmp/out
23995 rm -f $tmp/out
23996 fi
23997
23998 done
23999 _ACEOF
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001
24002 #
24003 # CONFIG_HEADER section.
24004 #
24005
24006 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24007 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24008 #
24009 # ac_d sets the value in "#define NAME VALUE" lines.
24010 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24011 ac_dB='[ ].*$,\1#\2'
24012 ac_dC=' '
24013 ac_dD=',;t'
24014 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24015 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24016 ac_uB='$,\1#\2define\3'
24017 ac_uC=' '
24018 ac_uD=',;t'
24019
24020 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24021 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24022 case $ac_file in
24023 - | *:- | *:-:* ) # input from stdin
24024 cat >$tmp/stdin
24025 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24026 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24027 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24028 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24029 * ) ac_file_in=$ac_file.in ;;
24030 esac
24031
24032 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24033 echo "$as_me: creating $ac_file" >&6;}
24034
24035 # First look for the input files in the build tree, otherwise in the
24036 # src tree.
24037 ac_file_inputs=`IFS=:
24038 for f in $ac_file_in; do
24039 case $f in
24040 -) echo $tmp/stdin ;;
24041 [\\/$]*)
24042 # Absolute (can't be DOS-style, as IFS=:)
24043 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24044 echo "$as_me: error: cannot find input file: $f" >&2;}
24045 { (exit 1); exit 1; }; }
24046 # Do quote $f, to prevent DOS paths from being IFS'd.
24047 echo "$f";;
24048 *) # Relative
24049 if test -f "$f"; then
24050 # Build tree
24051 echo "$f"
24052 elif test -f "$srcdir/$f"; then
24053 # Source tree
24054 echo "$srcdir/$f"
24055 else
24056 # /dev/null tree
24057 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24058 echo "$as_me: error: cannot find input file: $f" >&2;}
24059 { (exit 1); exit 1; }; }
24060 fi;;
24061 esac
24062 done` || { (exit 1); exit 1; }
24063 # Remove the trailing spaces.
24064 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24065
24066 _ACEOF
24067
24068 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24069 # `conftest.undefs', that substitutes the proper values into
24070 # config.h.in to produce config.h. The first handles `#define'
24071 # templates, and the second `#undef' templates.
24072 # And first: Protect against being on the right side of a sed subst in
24073 # config.status. Protect against being in an unquoted here document
24074 # in config.status.
24075 rm -f conftest.defines conftest.undefs
24076 # Using a here document instead of a string reduces the quoting nightmare.
24077 # Putting comments in sed scripts is not portable.
24078 #
24079 # `end' is used to avoid that the second main sed command (meant for
24080 # 0-ary CPP macros) applies to n-ary macro definitions.
24081 # See the Autoconf documentation for `clear'.
24082 cat >confdef2sed.sed <<\_ACEOF
24083 s/[\\&,]/\\&/g
24084 s,[\\$`],\\&,g
24085 t clear
24086 : clear
24087 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24088 t end
24089 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24090 : end
24091 _ACEOF
24092 # If some macros were called several times there might be several times
24093 # the same #defines, which is useless. Nevertheless, we may not want to
24094 # sort them, since we want the *last* AC-DEFINE to be honored.
24095 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24096 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24097 rm -f confdef2sed.sed
24098
24099 # This sed command replaces #undef with comments. This is necessary, for
24100 # example, in the case of _POSIX_SOURCE, which is predefined and required
24101 # on some systems where configure will not decide to define it.
24102 cat >>conftest.undefs <<\_ACEOF
24103 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24104 _ACEOF
24105
24106 # Break up conftest.defines because some shells have a limit on the size
24107 # of here documents, and old seds have small limits too (100 cmds).
24108 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24109 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24110 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24111 echo ' :' >>$CONFIG_STATUS
24112 rm -f conftest.tail
24113 while grep . conftest.defines >/dev/null
24114 do
24115 # Write a limited-size here document to $tmp/defines.sed.
24116 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24117 # Speed up: don't consider the non `#define' lines.
24118 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24119 # Work around the forget-to-reset-the-flag bug.
24120 echo 't clr' >>$CONFIG_STATUS
24121 echo ': clr' >>$CONFIG_STATUS
24122 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24123 echo 'CEOF
24124 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24125 rm -f $tmp/in
24126 mv $tmp/out $tmp/in
24127 ' >>$CONFIG_STATUS
24128 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24129 rm -f conftest.defines
24130 mv conftest.tail conftest.defines
24131 done
24132 rm -f conftest.defines
24133 echo ' fi # grep' >>$CONFIG_STATUS
24134 echo >>$CONFIG_STATUS
24135
24136 # Break up conftest.undefs because some shells have a limit on the size
24137 # of here documents, and old seds have small limits too (100 cmds).
24138 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24139 rm -f conftest.tail
24140 while grep . conftest.undefs >/dev/null
24141 do
24142 # Write a limited-size here document to $tmp/undefs.sed.
24143 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24144 # Speed up: don't consider the non `#undef'
24145 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24146 # Work around the forget-to-reset-the-flag bug.
24147 echo 't clr' >>$CONFIG_STATUS
24148 echo ': clr' >>$CONFIG_STATUS
24149 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24150 echo 'CEOF
24151 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24152 rm -f $tmp/in
24153 mv $tmp/out $tmp/in
24154 ' >>$CONFIG_STATUS
24155 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24156 rm -f conftest.undefs
24157 mv conftest.tail conftest.undefs
24158 done
24159 rm -f conftest.undefs
24160
24161 cat >>$CONFIG_STATUS <<\_ACEOF
24162 # Let's still pretend it is `configure' which instantiates (i.e., don't
24163 # use $as_me), people would be surprised to read:
24164 # /* config.h. Generated by config.status. */
24165 if test x"$ac_file" = x-; then
24166 echo "/* Generated by configure. */" >$tmp/config.h
24167 else
24168 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24169 fi
24170 cat $tmp/in >>$tmp/config.h
24171 rm -f $tmp/in
24172 if test x"$ac_file" != x-; then
24173 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24174 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24175 echo "$as_me: $ac_file is unchanged" >&6;}
24176 else
24177 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24178 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24179 X"$ac_file" : 'X\(//\)[^/]' \| \
24180 X"$ac_file" : 'X\(//\)$' \| \
24181 X"$ac_file" : 'X\(/\)' \| \
24182 . : '\(.\)' 2>/dev/null ||
24183 echo X"$ac_file" |
24184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24186 /^X\(\/\/\)$/{ s//\1/; q; }
24187 /^X\(\/\).*/{ s//\1/; q; }
24188 s/.*/./; q'`
24189 { if $as_mkdir_p; then
24190 mkdir -p "$ac_dir"
24191 else
24192 as_dir="$ac_dir"
24193 as_dirs=
24194 while test ! -d "$as_dir"; do
24195 as_dirs="$as_dir $as_dirs"
24196 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24198 X"$as_dir" : 'X\(//\)[^/]' \| \
24199 X"$as_dir" : 'X\(//\)$' \| \
24200 X"$as_dir" : 'X\(/\)' \| \
24201 . : '\(.\)' 2>/dev/null ||
24202 echo X"$as_dir" |
24203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24204 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24205 /^X\(\/\/\)$/{ s//\1/; q; }
24206 /^X\(\/\).*/{ s//\1/; q; }
24207 s/.*/./; q'`
24208 done
24209 test ! -n "$as_dirs" || mkdir $as_dirs
24210 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24211 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24212 { (exit 1); exit 1; }; }; }
24213
24214 rm -f $ac_file
24215 mv $tmp/config.h $ac_file
24216 fi
24217 else
24218 cat $tmp/config.h
24219 rm -f $tmp/config.h
24220 fi
24221 done
24222 _ACEOF
24223 cat >>$CONFIG_STATUS <<\_ACEOF
24224
24225 #
24226 # CONFIG_LINKS section.
24227 #
24228
24229 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24230 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24231 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24232
24233 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24234 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24235
24236 if test ! -r $srcdir/$ac_source; then
24237 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24238 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24239 { (exit 1); exit 1; }; }
24240 fi
24241 rm -f $ac_dest
24242
24243 # Make relative symlinks.
24244 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24245 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24246 X"$ac_dest" : 'X\(//\)[^/]' \| \
24247 X"$ac_dest" : 'X\(//\)$' \| \
24248 X"$ac_dest" : 'X\(/\)' \| \
24249 . : '\(.\)' 2>/dev/null ||
24250 echo X"$ac_dest" |
24251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24253 /^X\(\/\/\)$/{ s//\1/; q; }
24254 /^X\(\/\).*/{ s//\1/; q; }
24255 s/.*/./; q'`
24256 { if $as_mkdir_p; then
24257 mkdir -p "$ac_dest_dir"
24258 else
24259 as_dir="$ac_dest_dir"
24260 as_dirs=
24261 while test ! -d "$as_dir"; do
24262 as_dirs="$as_dir $as_dirs"
24263 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24265 X"$as_dir" : 'X\(//\)[^/]' \| \
24266 X"$as_dir" : 'X\(//\)$' \| \
24267 X"$as_dir" : 'X\(/\)' \| \
24268 . : '\(.\)' 2>/dev/null ||
24269 echo X"$as_dir" |
24270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24272 /^X\(\/\/\)$/{ s//\1/; q; }
24273 /^X\(\/\).*/{ s//\1/; q; }
24274 s/.*/./; q'`
24275 done
24276 test ! -n "$as_dirs" || mkdir $as_dirs
24277 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24278 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24279 { (exit 1); exit 1; }; }; }
24280
24281 ac_builddir=.
24282
24283 if test "$ac_dest_dir" != .; then
24284 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24285 # A "../" for each directory in $ac_dir_suffix.
24286 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24287 else
24288 ac_dir_suffix= ac_top_builddir=
24289 fi
24290
24291 case $srcdir in
24292 .) # No --srcdir option. We are building in place.
24293 ac_srcdir=.
24294 if test -z "$ac_top_builddir"; then
24295 ac_top_srcdir=.
24296 else
24297 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24298 fi ;;
24299 [\\/]* | ?:[\\/]* ) # Absolute path.
24300 ac_srcdir=$srcdir$ac_dir_suffix;
24301 ac_top_srcdir=$srcdir ;;
24302 *) # Relative path.
24303 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24304 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24305 esac
24306
24307 # Do not use `cd foo && pwd` to compute absolute paths, because
24308 # the directories may not exist.
24309 case `pwd` in
24310 .) ac_abs_builddir="$ac_dest_dir";;
24311 *)
24312 case "$ac_dest_dir" in
24313 .) ac_abs_builddir=`pwd`;;
24314 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24315 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24316 esac;;
24317 esac
24318 case $ac_abs_builddir in
24319 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24320 *)
24321 case ${ac_top_builddir}. in
24322 .) ac_abs_top_builddir=$ac_abs_builddir;;
24323 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24324 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24325 esac;;
24326 esac
24327 case $ac_abs_builddir in
24328 .) ac_abs_srcdir=$ac_srcdir;;
24329 *)
24330 case $ac_srcdir in
24331 .) ac_abs_srcdir=$ac_abs_builddir;;
24332 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24333 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24334 esac;;
24335 esac
24336 case $ac_abs_builddir in
24337 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24338 *)
24339 case $ac_top_srcdir in
24340 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24341 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24342 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24343 esac;;
24344 esac
24345
24346
24347 case $srcdir in
24348 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24349 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24350 esac
24351
24352 # Try a symlink, then a hard link, then a copy.
24353 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24354 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24355 cp -p $srcdir/$ac_source $ac_dest ||
24356 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24357 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24358 { (exit 1); exit 1; }; }
24359 done
24360 _ACEOF
24361 cat >>$CONFIG_STATUS <<\_ACEOF
24362
24363 #
24364 # CONFIG_COMMANDS section.
24365 #
24366 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24367 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24368 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24369 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24370 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24371 X"$ac_dest" : 'X\(//\)[^/]' \| \
24372 X"$ac_dest" : 'X\(//\)$' \| \
24373 X"$ac_dest" : 'X\(/\)' \| \
24374 . : '\(.\)' 2>/dev/null ||
24375 echo X"$ac_dest" |
24376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24378 /^X\(\/\/\)$/{ s//\1/; q; }
24379 /^X\(\/\).*/{ s//\1/; q; }
24380 s/.*/./; q'`
24381 { if $as_mkdir_p; then
24382 mkdir -p "$ac_dir"
24383 else
24384 as_dir="$ac_dir"
24385 as_dirs=
24386 while test ! -d "$as_dir"; do
24387 as_dirs="$as_dir $as_dirs"
24388 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24389 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24390 X"$as_dir" : 'X\(//\)[^/]' \| \
24391 X"$as_dir" : 'X\(//\)$' \| \
24392 X"$as_dir" : 'X\(/\)' \| \
24393 . : '\(.\)' 2>/dev/null ||
24394 echo X"$as_dir" |
24395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24397 /^X\(\/\/\)$/{ s//\1/; q; }
24398 /^X\(\/\).*/{ s//\1/; q; }
24399 s/.*/./; q'`
24400 done
24401 test ! -n "$as_dirs" || mkdir $as_dirs
24402 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24403 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24404 { (exit 1); exit 1; }; }; }
24405
24406 ac_builddir=.
24407
24408 if test "$ac_dir" != .; then
24409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24410 # A "../" for each directory in $ac_dir_suffix.
24411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24412 else
24413 ac_dir_suffix= ac_top_builddir=
24414 fi
24415
24416 case $srcdir in
24417 .) # No --srcdir option. We are building in place.
24418 ac_srcdir=.
24419 if test -z "$ac_top_builddir"; then
24420 ac_top_srcdir=.
24421 else
24422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24423 fi ;;
24424 [\\/]* | ?:[\\/]* ) # Absolute path.
24425 ac_srcdir=$srcdir$ac_dir_suffix;
24426 ac_top_srcdir=$srcdir ;;
24427 *) # Relative path.
24428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24430 esac
24431
24432 # Do not use `cd foo && pwd` to compute absolute paths, because
24433 # the directories may not exist.
24434 case `pwd` in
24435 .) ac_abs_builddir="$ac_dir";;
24436 *)
24437 case "$ac_dir" in
24438 .) ac_abs_builddir=`pwd`;;
24439 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24440 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24441 esac;;
24442 esac
24443 case $ac_abs_builddir in
24444 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24445 *)
24446 case ${ac_top_builddir}. in
24447 .) ac_abs_top_builddir=$ac_abs_builddir;;
24448 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24449 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24450 esac;;
24451 esac
24452 case $ac_abs_builddir in
24453 .) ac_abs_srcdir=$ac_srcdir;;
24454 *)
24455 case $ac_srcdir in
24456 .) ac_abs_srcdir=$ac_abs_builddir;;
24457 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24458 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24459 esac;;
24460 esac
24461 case $ac_abs_builddir in
24462 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24463 *)
24464 case $ac_top_srcdir in
24465 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24466 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24467 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24468 esac;;
24469 esac
24470
24471
24472 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24473 echo "$as_me: executing $ac_dest commands" >&6;}
24474 case $ac_dest in
24475 gdb_stdint.h )
24476 if test "$GCC" = yes; then
24477 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
24478 else
24479 echo "/* generated for $CC */" > tmp-stdint.h
24480 fi
24481
24482 sed 's/^ *//' >> tmp-stdint.h <<EOF
24483
24484 #ifndef GCC_GENERATED_STDINT_H
24485 #define GCC_GENERATED_STDINT_H 1
24486
24487 #include <sys/types.h>
24488 EOF
24489
24490 if test "$acx_cv_header_stdint" != stdint.h; then
24491 echo "#include <stddef.h>" >> tmp-stdint.h
24492 fi
24493 if test "$acx_cv_header_stdint" != stddef.h; then
24494 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
24495 fi
24496
24497 sed 's/^ *//' >> tmp-stdint.h <<EOF
24498 /* glibc uses these symbols as guards to prevent redefinitions. */
24499 #ifdef __int8_t_defined
24500 #define _INT8_T
24501 #define _INT16_T
24502 #define _INT32_T
24503 #endif
24504 #ifdef __uint32_t_defined
24505 #define _UINT32_T
24506 #endif
24507
24508 EOF
24509
24510 # ----------------- done header, emit basic int types -------------
24511 if test "$acx_cv_header_stdint" = stddef.h; then
24512 sed 's/^ *//' >> tmp-stdint.h <<EOF
24513
24514 #ifndef _UINT8_T
24515 #define _UINT8_T
24516 typedef unsigned $acx_cv_type_int8_t uint8_t;
24517 #endif
24518
24519 #ifndef _UINT16_T
24520 #define _UINT16_T
24521 typedef unsigned $acx_cv_type_int16_t uint16_t;
24522 #endif
24523
24524 #ifndef _UINT32_T
24525 #define _UINT32_T
24526 typedef unsigned $acx_cv_type_int32_t uint32_t;
24527 #endif
24528
24529 #ifndef _INT8_T
24530 #define _INT8_T
24531 typedef $acx_cv_type_int8_t int8_t;
24532 #endif
24533
24534 #ifndef _INT16_T
24535 #define _INT16_T
24536 typedef $acx_cv_type_int16_t int16_t;
24537 #endif
24538
24539 #ifndef _INT32_T
24540 #define _INT32_T
24541 typedef $acx_cv_type_int32_t int32_t;
24542 #endif
24543 EOF
24544 elif test "$ac_cv_type_u_int32_t" = yes; then
24545 sed 's/^ *//' >> tmp-stdint.h <<EOF
24546
24547 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
24548 #ifndef _INT8_T
24549 #define _INT8_T
24550 #endif
24551 #ifndef _INT16_T
24552 #define _INT16_T
24553 #endif
24554 #ifndef _INT32_T
24555 #define _INT32_T
24556 #endif
24557
24558 #ifndef _UINT8_T
24559 #define _UINT8_T
24560 typedef u_int8_t uint8_t;
24561 #endif
24562
24563 #ifndef _UINT16_T
24564 #define _UINT16_T
24565 typedef u_int16_t uint16_t;
24566 #endif
24567
24568 #ifndef _UINT32_T
24569 #define _UINT32_T
24570 typedef u_int32_t uint32_t;
24571 #endif
24572 EOF
24573 else
24574 sed 's/^ *//' >> tmp-stdint.h <<EOF
24575
24576 /* Some systems have guard macros to prevent redefinitions, define them. */
24577 #ifndef _INT8_T
24578 #define _INT8_T
24579 #endif
24580 #ifndef _INT16_T
24581 #define _INT16_T
24582 #endif
24583 #ifndef _INT32_T
24584 #define _INT32_T
24585 #endif
24586 #ifndef _UINT8_T
24587 #define _UINT8_T
24588 #endif
24589 #ifndef _UINT16_T
24590 #define _UINT16_T
24591 #endif
24592 #ifndef _UINT32_T
24593 #define _UINT32_T
24594 #endif
24595 EOF
24596 fi
24597
24598 # ------------- done basic int types, emit int64_t types ------------
24599 if test "$ac_cv_type_uint64_t" = yes; then
24600 sed 's/^ *//' >> tmp-stdint.h <<EOF
24601
24602 /* system headers have good uint64_t and int64_t */
24603 #ifndef _INT64_T
24604 #define _INT64_T
24605 #endif
24606 #ifndef _UINT64_T
24607 #define _UINT64_T
24608 #endif
24609 EOF
24610 elif test "$ac_cv_type_u_int64_t" = yes; then
24611 sed 's/^ *//' >> tmp-stdint.h <<EOF
24612
24613 /* system headers have an u_int64_t (and int64_t) */
24614 #ifndef _INT64_T
24615 #define _INT64_T
24616 #endif
24617 #ifndef _UINT64_T
24618 #define _UINT64_T
24619 typedef u_int64_t uint64_t;
24620 #endif
24621 EOF
24622 elif test -n "$acx_cv_type_int64_t"; then
24623 sed 's/^ *//' >> tmp-stdint.h <<EOF
24624
24625 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
24626 #ifndef _INT64_T
24627 #define _INT64_T
24628 typedef $acx_cv_type_int64_t int64_t;
24629 #endif
24630 #ifndef _UINT64_T
24631 #define _UINT64_T
24632 typedef unsigned $acx_cv_type_int64_t uint64_t;
24633 #endif
24634 EOF
24635 else
24636 sed 's/^ *//' >> tmp-stdint.h <<EOF
24637
24638 /* some common heuristics for int64_t, using compiler-specific tests */
24639 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
24640 #ifndef _INT64_T
24641 #define _INT64_T
24642 typedef long long int64_t;
24643 #endif
24644 #ifndef _UINT64_T
24645 #define _UINT64_T
24646 typedef unsigned long long uint64_t;
24647 #endif
24648
24649 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
24650 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
24651 does not implement __extension__. But that compiler doesn't define
24652 __GNUC_MINOR__. */
24653 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
24654 # define __extension__
24655 # endif
24656
24657 # ifndef _INT64_T
24658 # define _INT64_T
24659 __extension__ typedef long long int64_t;
24660 # endif
24661 # ifndef _UINT64_T
24662 # define _UINT64_T
24663 __extension__ typedef unsigned long long uint64_t;
24664 # endif
24665
24666 #elif !defined __STRICT_ANSI__
24667 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
24668
24669 # ifndef _INT64_T
24670 # define _INT64_T
24671 typedef __int64 int64_t;
24672 # endif
24673 # ifndef _UINT64_T
24674 # define _UINT64_T
24675 typedef unsigned __int64 uint64_t;
24676 # endif
24677 # endif /* compiler */
24678
24679 #endif /* ANSI version */
24680 EOF
24681 fi
24682
24683 # ------------- done int64_t types, emit intptr types ------------
24684 if test "$ac_cv_type_uintptr_t" != yes; then
24685 sed 's/^ *//' >> tmp-stdint.h <<EOF
24686
24687 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
24688 typedef u$acx_cv_type_intptr_t uintptr_t;
24689 typedef $acx_cv_type_intptr_t intptr_t;
24690 EOF
24691 fi
24692
24693 # ------------- done intptr types, emit int_least types ------------
24694 if test "$ac_cv_type_int_least32_t" != yes; then
24695 sed 's/^ *//' >> tmp-stdint.h <<EOF
24696
24697 /* Define int_least types */
24698 typedef int8_t int_least8_t;
24699 typedef int16_t int_least16_t;
24700 typedef int32_t int_least32_t;
24701 #ifdef _INT64_T
24702 typedef int64_t int_least64_t;
24703 #endif
24704
24705 typedef uint8_t uint_least8_t;
24706 typedef uint16_t uint_least16_t;
24707 typedef uint32_t uint_least32_t;
24708 #ifdef _UINT64_T
24709 typedef uint64_t uint_least64_t;
24710 #endif
24711 EOF
24712 fi
24713
24714 # ------------- done intptr types, emit int_fast types ------------
24715 if test "$ac_cv_type_int_fast32_t" != yes; then
24716 sed 's/^ *//' >> tmp-stdint.h <<EOF
24717
24718 /* Define int_fast types. short is often slow */
24719 typedef int8_t int_fast8_t;
24720 typedef int int_fast16_t;
24721 typedef int32_t int_fast32_t;
24722 #ifdef _INT64_T
24723 typedef int64_t int_fast64_t;
24724 #endif
24725
24726 typedef uint8_t uint_fast8_t;
24727 typedef unsigned int uint_fast16_t;
24728 typedef uint32_t uint_fast32_t;
24729 #ifdef _UINT64_T
24730 typedef uint64_t uint_fast64_t;
24731 #endif
24732 EOF
24733 fi
24734
24735 if test "$ac_cv_type_uintmax_t" != yes; then
24736 sed 's/^ *//' >> tmp-stdint.h <<EOF
24737
24738 /* Define intmax based on what we found */
24739 #ifdef _INT64_T
24740 typedef int64_t intmax_t;
24741 #else
24742 typedef long intmax_t;
24743 #endif
24744 #ifdef _UINT64_T
24745 typedef uint64_t uintmax_t;
24746 #else
24747 typedef unsigned long uintmax_t;
24748 #endif
24749 EOF
24750 fi
24751
24752 sed 's/^ *//' >> tmp-stdint.h <<EOF
24753
24754 #endif /* GCC_GENERATED_STDINT_H */
24755 EOF
24756
24757 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
24758 rm -f tmp-stdint.h
24759 else
24760 mv -f tmp-stdint.h gdb_stdint.h
24761 fi
24762
24763 ;;
24764 default )
24765
24766 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
24767 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
24768 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
24769 mv -f Makefile.tmp Makefile
24770
24771
24772 case x$CONFIG_HEADERS in
24773 xconfig.h:config.in)
24774 echo > stamp-h ;;
24775 esac
24776 ;;
24777 esac
24778 done
24779 _ACEOF
24780
24781 cat >>$CONFIG_STATUS <<\_ACEOF
24782
24783 { (exit 0); exit 0; }
24784 _ACEOF
24785 chmod +x $CONFIG_STATUS
24786 ac_clean_files=$ac_clean_files_save
24787
24788
24789 # configure is writing to config.log, and then calls config.status.
24790 # config.status does its own redirection, appending to config.log.
24791 # Unfortunately, on DOS this fails, as config.log is still kept open
24792 # by configure, so config.status won't be able to write to it; its
24793 # output is simply discarded. So we exec the FD to /dev/null,
24794 # effectively closing config.log, so it can be properly (re)opened and
24795 # appended to by config.status. When coming back to configure, we
24796 # need to make the FD available again.
24797 if test "$no_create" != yes; then
24798 ac_cs_success=:
24799 ac_config_status_args=
24800 test "$silent" = yes &&
24801 ac_config_status_args="$ac_config_status_args --quiet"
24802 exec 5>/dev/null
24803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24804 exec 5>>config.log
24805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24806 # would make configure fail if this is the last instruction.
24807 $ac_cs_success || { (exit 1); exit 1; }
24808 fi
24809
24810 #
24811 # CONFIG_SUBDIRS section.
24812 #
24813 if test "$no_recursion" != yes; then
24814
24815 # Remove --cache-file and --srcdir arguments so they do not pile up.
24816 ac_sub_configure_args=
24817 ac_prev=
24818 for ac_arg in $ac_configure_args; do
24819 if test -n "$ac_prev"; then
24820 ac_prev=
24821 continue
24822 fi
24823 case $ac_arg in
24824 -cache-file | --cache-file | --cache-fil | --cache-fi \
24825 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24826 ac_prev=cache_file ;;
24827 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24828 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24829 | --c=*)
24830 ;;
24831 --config-cache | -C)
24832 ;;
24833 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24834 ac_prev=srcdir ;;
24835 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24836 ;;
24837 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24838 ac_prev=prefix ;;
24839 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24840 ;;
24841 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24842 esac
24843 done
24844
24845 # Always prepend --prefix to ensure using the same prefix
24846 # in subdir configurations.
24847 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24848
24849 ac_popdir=`pwd`
24850 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24851
24852 # Do not complain, so a configure script can configure whichever
24853 # parts of a large source tree are present.
24854 test -d $srcdir/$ac_dir || continue
24855
24856 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24857 echo "$as_me: configuring in $ac_dir" >&6;}
24858 { if $as_mkdir_p; then
24859 mkdir -p "$ac_dir"
24860 else
24861 as_dir="$ac_dir"
24862 as_dirs=
24863 while test ! -d "$as_dir"; do
24864 as_dirs="$as_dir $as_dirs"
24865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24867 X"$as_dir" : 'X\(//\)[^/]' \| \
24868 X"$as_dir" : 'X\(//\)$' \| \
24869 X"$as_dir" : 'X\(/\)' \| \
24870 . : '\(.\)' 2>/dev/null ||
24871 echo X"$as_dir" |
24872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24874 /^X\(\/\/\)$/{ s//\1/; q; }
24875 /^X\(\/\).*/{ s//\1/; q; }
24876 s/.*/./; q'`
24877 done
24878 test ! -n "$as_dirs" || mkdir $as_dirs
24879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24881 { (exit 1); exit 1; }; }; }
24882
24883 ac_builddir=.
24884
24885 if test "$ac_dir" != .; then
24886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24887 # A "../" for each directory in $ac_dir_suffix.
24888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24889 else
24890 ac_dir_suffix= ac_top_builddir=
24891 fi
24892
24893 case $srcdir in
24894 .) # No --srcdir option. We are building in place.
24895 ac_srcdir=.
24896 if test -z "$ac_top_builddir"; then
24897 ac_top_srcdir=.
24898 else
24899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24900 fi ;;
24901 [\\/]* | ?:[\\/]* ) # Absolute path.
24902 ac_srcdir=$srcdir$ac_dir_suffix;
24903 ac_top_srcdir=$srcdir ;;
24904 *) # Relative path.
24905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24907 esac
24908
24909 # Do not use `cd foo && pwd` to compute absolute paths, because
24910 # the directories may not exist.
24911 case `pwd` in
24912 .) ac_abs_builddir="$ac_dir";;
24913 *)
24914 case "$ac_dir" in
24915 .) ac_abs_builddir=`pwd`;;
24916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24918 esac;;
24919 esac
24920 case $ac_abs_builddir in
24921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24922 *)
24923 case ${ac_top_builddir}. in
24924 .) ac_abs_top_builddir=$ac_abs_builddir;;
24925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24927 esac;;
24928 esac
24929 case $ac_abs_builddir in
24930 .) ac_abs_srcdir=$ac_srcdir;;
24931 *)
24932 case $ac_srcdir in
24933 .) ac_abs_srcdir=$ac_abs_builddir;;
24934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24936 esac;;
24937 esac
24938 case $ac_abs_builddir in
24939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24940 *)
24941 case $ac_top_srcdir in
24942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24945 esac;;
24946 esac
24947
24948
24949 cd $ac_dir
24950
24951 # Check for guested configure; otherwise get Cygnus style configure.
24952 if test -f $ac_srcdir/configure.gnu; then
24953 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24954 elif test -f $ac_srcdir/configure; then
24955 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24956 elif test -f $ac_srcdir/configure.in; then
24957 ac_sub_configure=$ac_configure
24958 else
24959 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24961 ac_sub_configure=
24962 fi
24963
24964 # The recursion is here.
24965 if test -n "$ac_sub_configure"; then
24966 # Make the cache file name correct relative to the subdirectory.
24967 case $cache_file in
24968 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24969 *) # Relative path.
24970 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24971 esac
24972
24973 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24974 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24975 # The eval makes quoting arguments work.
24976 eval $ac_sub_configure $ac_sub_configure_args \
24977 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24978 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24979 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24980 { (exit 1); exit 1; }; }
24981 fi
24982
24983 cd $ac_popdir
24984 done
24985 fi
24986
24987
24988 exit 0
This page took 1.132026 seconds and 4 git commands to generate.