* configure.ac: Remove extra check for ranlib.
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subdirs_all="$ac_subdirs_all doc testsuite"
313 ac_subdirs_all="$ac_subdirs_all gdbtk"
314 ac_subdirs_all="$ac_subdirs_all multi-ice"
315 ac_subdirs_all="$ac_subdirs_all gdbserver"
316 ac_subdirs_all="$ac_subdirs_all rdi-share"
317 ac_subdirs_all="$ac_subdirs_all nlm"
318 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SET_MAKE RANLIB ac_ct_RANLIB ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
319 ac_subst_files='host_makefile_frag target_makefile_frag'
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
837
838 cat <<\_ACEOF
839
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-nls do not use Native Language Support
866 --disable-gdbcli disable command-line interface (CLI)
867 --disable-gdbmi disable machine-interface (MI)
868 --enable-tui enable full-screen terminal user interface (TUI)
869 --enable-gdbtk enable gdbtk graphical user interface (GUI)
870 --enable-profiling enable profiling of GDB
871 --enable-build-warnings Enable build-time compiler warnings if gcc is used
872 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
873 --enable-sim Link gdb with simulator
874 --enable-multi-ice build the multi-ice-gdb-server
875
876 Optional Packages:
877 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
878 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
879 --with-included-gettext use the GNU gettext library included here
880 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
881 --with-libunwind Use libunwind frame unwinding support
882 --without-included-regex don't use included regex; this is the default
883 on systems with version 2 of the GNU C library
884 (use with caution on other system)
885 --with-sysroot=DIR Search for usr/lib et al within DIR.
886 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
887 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
888 --with-tclinclude=DIR Directory where tcl private headers are
889 --with-tkinclude=DIR Directory where tk private headers are
890 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
891 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
892 --with-x use the X Window System
893 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
902 CPP C preprocessor
903
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
906
907 _ACEOF
908 fi
909
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
912 ac_popdir=`pwd`
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
915 ac_builddir=.
916
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 else
922 ac_dir_suffix= ac_top_builddir=
923 fi
924
925 case $srcdir in
926 .) # No --srcdir option. We are building in place.
927 ac_srcdir=.
928 if test -z "$ac_top_builddir"; then
929 ac_top_srcdir=.
930 else
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 fi ;;
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
936 *) # Relative path.
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 esac
940
941 # Do not use `cd foo && pwd` to compute absolute paths, because
942 # the directories may not exist.
943 case `pwd` in
944 .) ac_abs_builddir="$ac_dir";;
945 *)
946 case "$ac_dir" in
947 .) ac_abs_builddir=`pwd`;;
948 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
949 *) ac_abs_builddir=`pwd`/"$ac_dir";;
950 esac;;
951 esac
952 case $ac_abs_builddir in
953 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 *)
955 case ${ac_top_builddir}. in
956 .) ac_abs_top_builddir=$ac_abs_builddir;;
957 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
958 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
959 esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_srcdir=$ac_srcdir;;
963 *)
964 case $ac_srcdir in
965 .) ac_abs_srcdir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
967 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 *)
973 case $ac_top_srcdir in
974 .) ac_abs_top_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
976 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
977 esac;;
978 esac
979
980 cd $ac_dir
981 # Check for guested configure; otherwise get Cygnus style configure.
982 if test -f $ac_srcdir/configure.gnu; then
983 echo
984 $SHELL $ac_srcdir/configure.gnu --help=recursive
985 elif test -f $ac_srcdir/configure; then
986 echo
987 $SHELL $ac_srcdir/configure --help=recursive
988 elif test -f $ac_srcdir/configure.ac ||
989 test -f $ac_srcdir/configure.in; then
990 echo
991 $ac_configure --help
992 else
993 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
994 fi
995 cd $ac_popdir
996 done
997 fi
998
999 test -n "$ac_init_help" && exit 0
1000 if $ac_init_version; then
1001 cat <<\_ACEOF
1002
1003 Copyright (C) 2003 Free Software Foundation, Inc.
1004 This configure script is free software; the Free Software Foundation
1005 gives unlimited permission to copy, distribute and modify it.
1006 _ACEOF
1007 exit 0
1008 fi
1009 exec 5>config.log
1010 cat >&5 <<_ACEOF
1011 This file contains any messages produced by compilers while
1012 running configure, to aid debugging if configure makes a mistake.
1013
1014 It was created by $as_me, which was
1015 generated by GNU Autoconf 2.59. Invocation command line was
1016
1017 $ $0 $@
1018
1019 _ACEOF
1020 {
1021 cat <<_ASUNAME
1022 ## --------- ##
1023 ## Platform. ##
1024 ## --------- ##
1025
1026 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1027 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1028 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1029 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1030 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1031
1032 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1033 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1034
1035 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1036 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1037 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1038 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1039 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1040 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1041 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1042
1043 _ASUNAME
1044
1045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1046 for as_dir in $PATH
1047 do
1048 IFS=$as_save_IFS
1049 test -z "$as_dir" && as_dir=.
1050 echo "PATH: $as_dir"
1051 done
1052
1053 } >&5
1054
1055 cat >&5 <<_ACEOF
1056
1057
1058 ## ----------- ##
1059 ## Core tests. ##
1060 ## ----------- ##
1061
1062 _ACEOF
1063
1064
1065 # Keep a trace of the command line.
1066 # Strip out --no-create and --no-recursion so they do not pile up.
1067 # Strip out --silent because we don't want to record it for future runs.
1068 # Also quote any args containing shell meta-characters.
1069 # Make two passes to allow for proper duplicate-argument suppression.
1070 ac_configure_args=
1071 ac_configure_args0=
1072 ac_configure_args1=
1073 ac_sep=
1074 ac_must_keep_next=false
1075 for ac_pass in 1 2
1076 do
1077 for ac_arg
1078 do
1079 case $ac_arg in
1080 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 continue ;;
1084 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1085 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1086 esac
1087 case $ac_pass in
1088 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 2)
1090 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1091 if test $ac_must_keep_next = true; then
1092 ac_must_keep_next=false # Got value, back to normal.
1093 else
1094 case $ac_arg in
1095 *=* | --config-cache | -C | -disable-* | --disable-* \
1096 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1097 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1098 | -with-* | --with-* | -without-* | --without-* | --x)
1099 case "$ac_configure_args0 " in
1100 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1101 esac
1102 ;;
1103 -* ) ac_must_keep_next=true ;;
1104 esac
1105 fi
1106 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1107 # Get rid of the leading space.
1108 ac_sep=" "
1109 ;;
1110 esac
1111 done
1112 done
1113 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1114 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115
1116 # When interrupted or exit'd, cleanup temporary files, and complete
1117 # config.log. We remove comments because anyway the quotes in there
1118 # would cause problems or look ugly.
1119 # WARNING: Be sure not to use single quotes in there, as some shells,
1120 # such as our DU 5.0 friend, will then `close' the trap.
1121 trap 'exit_status=$?
1122 # Save into config.log some information that might help in debugging.
1123 {
1124 echo
1125
1126 cat <<\_ASBOX
1127 ## ---------------- ##
1128 ## Cache variables. ##
1129 ## ---------------- ##
1130 _ASBOX
1131 echo
1132 # The following way of writing the cache mishandles newlines in values,
1133 {
1134 (set) 2>&1 |
1135 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1136 *ac_space=\ *)
1137 sed -n \
1138 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1140 ;;
1141 *)
1142 sed -n \
1143 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ;;
1145 esac;
1146 }
1147 echo
1148
1149 cat <<\_ASBOX
1150 ## ----------------- ##
1151 ## Output variables. ##
1152 ## ----------------- ##
1153 _ASBOX
1154 echo
1155 for ac_var in $ac_subst_vars
1156 do
1157 eval ac_val=$`echo $ac_var`
1158 echo "$ac_var='"'"'$ac_val'"'"'"
1159 done | sort
1160 echo
1161
1162 if test -n "$ac_subst_files"; then
1163 cat <<\_ASBOX
1164 ## ------------- ##
1165 ## Output files. ##
1166 ## ------------- ##
1167 _ASBOX
1168 echo
1169 for ac_var in $ac_subst_files
1170 do
1171 eval ac_val=$`echo $ac_var`
1172 echo "$ac_var='"'"'$ac_val'"'"'"
1173 done | sort
1174 echo
1175 fi
1176
1177 if test -s confdefs.h; then
1178 cat <<\_ASBOX
1179 ## ----------- ##
1180 ## confdefs.h. ##
1181 ## ----------- ##
1182 _ASBOX
1183 echo
1184 sed "/^$/d" confdefs.h | sort
1185 echo
1186 fi
1187 test "$ac_signal" != 0 &&
1188 echo "$as_me: caught signal $ac_signal"
1189 echo "$as_me: exit $exit_status"
1190 } >&5
1191 rm -f core *.core &&
1192 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1193 exit $exit_status
1194 ' 0
1195 for ac_signal in 1 2 13 15; do
1196 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1197 done
1198 ac_signal=0
1199
1200 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1201 rm -rf conftest* confdefs.h
1202 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1203 echo >confdefs.h
1204
1205 # Predefined preprocessor variables.
1206
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_NAME "$PACKAGE_NAME"
1209 _ACEOF
1210
1211
1212 cat >>confdefs.h <<_ACEOF
1213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1214 _ACEOF
1215
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_STRING "$PACKAGE_STRING"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1229 _ACEOF
1230
1231
1232 # Let the site file select an alternate cache file if it wants to.
1233 # Prefer explicitly selected file to automatically selected ones.
1234 if test -z "$CONFIG_SITE"; then
1235 if test "x$prefix" != xNONE; then
1236 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 else
1238 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1239 fi
1240 fi
1241 for ac_site_file in $CONFIG_SITE; do
1242 if test -r "$ac_site_file"; then
1243 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1244 echo "$as_me: loading site script $ac_site_file" >&6;}
1245 sed 's/^/| /' "$ac_site_file" >&5
1246 . "$ac_site_file"
1247 fi
1248 done
1249
1250 if test -r "$cache_file"; then
1251 # Some versions of bash will fail to source /dev/null (special
1252 # files actually), so we avoid doing that.
1253 if test -f "$cache_file"; then
1254 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1255 echo "$as_me: loading cache $cache_file" >&6;}
1256 case $cache_file in
1257 [\\/]* | ?:[\\/]* ) . $cache_file;;
1258 *) . ./$cache_file;;
1259 esac
1260 fi
1261 else
1262 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1263 echo "$as_me: creating cache $cache_file" >&6;}
1264 >$cache_file
1265 fi
1266
1267 # Check that the precious variables saved in the cache have kept the same
1268 # value.
1269 ac_cache_corrupted=false
1270 for ac_var in `(set) 2>&1 |
1271 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1273 eval ac_new_set=\$ac_env_${ac_var}_set
1274 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1275 eval ac_new_val="\$ac_env_${ac_var}_value"
1276 case $ac_old_set,$ac_new_set in
1277 set,)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,set)
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1285 ,);;
1286 *)
1287 if test "x$ac_old_val" != "x$ac_new_val"; then
1288 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1289 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1290 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1291 echo "$as_me: former value: $ac_old_val" >&2;}
1292 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1293 echo "$as_me: current value: $ac_new_val" >&2;}
1294 ac_cache_corrupted=:
1295 fi;;
1296 esac
1297 # Pass precious variables to config.status.
1298 if test "$ac_new_set" = set; then
1299 case $ac_new_val in
1300 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1301 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1302 *) ac_arg=$ac_var=$ac_new_val ;;
1303 esac
1304 case " $ac_configure_args " in
1305 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1306 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1307 esac
1308 fi
1309 done
1310 if $ac_cache_corrupted; then
1311 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1312 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1313 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1314 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1315 { (exit 1); exit 1; }; }
1316 fi
1317
1318 ac_ext=c
1319 ac_cpp='$CPP $CPPFLAGS'
1320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342 ac_config_headers="$ac_config_headers config.h:config.in"
1343
1344 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1345 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1346 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1347 if test "${enable_maintainer_mode+set}" = set; then
1348 enableval="$enable_maintainer_mode"
1349 USE_MAINTAINER_MODE=$enableval
1350 else
1351 USE_MAINTAINER_MODE=no
1352 fi;
1353 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1354 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1355
1356
1357 if test $USE_MAINTAINER_MODE = yes; then
1358 MAINTAINER_MODE_TRUE=
1359 MAINTAINER_MODE_FALSE='#'
1360 else
1361 MAINTAINER_MODE_TRUE='#'
1362 MAINTAINER_MODE_FALSE=
1363 fi
1364
1365 MAINT=$MAINTAINER_MODE_TRUE
1366
1367
1368
1369 ac_ext=c
1370 ac_cpp='$CPP $CPPFLAGS'
1371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1374 if test -n "$ac_tool_prefix"; then
1375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377 echo "$as_me:$LINENO: checking for $ac_word" >&5
1378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379 if test "${ac_cv_prog_CC+set}" = set; then
1380 echo $ECHO_N "(cached) $ECHO_C" >&6
1381 else
1382 if test -n "$CC"; then
1383 ac_cv_prog_CC="$CC" # Let the user override the test.
1384 else
1385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1386 for as_dir in $PATH
1387 do
1388 IFS=$as_save_IFS
1389 test -z "$as_dir" && as_dir=.
1390 for ac_exec_ext in '' $ac_executable_extensions; do
1391 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1394 break 2
1395 fi
1396 done
1397 done
1398
1399 fi
1400 fi
1401 CC=$ac_cv_prog_CC
1402 if test -n "$CC"; then
1403 echo "$as_me:$LINENO: result: $CC" >&5
1404 echo "${ECHO_T}$CC" >&6
1405 else
1406 echo "$as_me:$LINENO: result: no" >&5
1407 echo "${ECHO_T}no" >&6
1408 fi
1409
1410 fi
1411 if test -z "$ac_cv_prog_CC"; then
1412 ac_ct_CC=$CC
1413 # Extract the first word of "gcc", so it can be a program name with args.
1414 set dummy gcc; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 if test -n "$ac_ct_CC"; then
1421 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_ac_ct_CC="gcc"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434 done
1435 done
1436
1437 fi
1438 fi
1439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1440 if test -n "$ac_ct_CC"; then
1441 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1442 echo "${ECHO_T}$ac_ct_CC" >&6
1443 else
1444 echo "$as_me:$LINENO: result: no" >&5
1445 echo "${ECHO_T}no" >&6
1446 fi
1447
1448 CC=$ac_ct_CC
1449 else
1450 CC="$ac_cv_prog_CC"
1451 fi
1452
1453 if test -z "$CC"; then
1454 if test -n "$ac_tool_prefix"; then
1455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1456 set dummy ${ac_tool_prefix}cc; ac_word=$2
1457 echo "$as_me:$LINENO: checking for $ac_word" >&5
1458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1459 if test "${ac_cv_prog_CC+set}" = set; then
1460 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464 else
1465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 for as_dir in $PATH
1467 do
1468 IFS=$as_save_IFS
1469 test -z "$as_dir" && as_dir=.
1470 for ac_exec_ext in '' $ac_executable_extensions; do
1471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1472 ac_cv_prog_CC="${ac_tool_prefix}cc"
1473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1474 break 2
1475 fi
1476 done
1477 done
1478
1479 fi
1480 fi
1481 CC=$ac_cv_prog_CC
1482 if test -n "$CC"; then
1483 echo "$as_me:$LINENO: result: $CC" >&5
1484 echo "${ECHO_T}$CC" >&6
1485 else
1486 echo "$as_me:$LINENO: result: no" >&5
1487 echo "${ECHO_T}no" >&6
1488 fi
1489
1490 fi
1491 if test -z "$ac_cv_prog_CC"; then
1492 ac_ct_CC=$CC
1493 # Extract the first word of "cc", so it can be a program name with args.
1494 set dummy cc; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 else
1500 if test -n "$ac_ct_CC"; then
1501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1502 else
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1504 for as_dir in $PATH
1505 do
1506 IFS=$as_save_IFS
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_ac_ct_CC="cc"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 break 2
1513 fi
1514 done
1515 done
1516
1517 fi
1518 fi
1519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1520 if test -n "$ac_ct_CC"; then
1521 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1522 echo "${ECHO_T}$ac_ct_CC" >&6
1523 else
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528 CC=$ac_ct_CC
1529 else
1530 CC="$ac_cv_prog_CC"
1531 fi
1532
1533 fi
1534 if test -z "$CC"; then
1535 # Extract the first word of "cc", so it can be a program name with args.
1536 set dummy cc; ac_word=$2
1537 echo "$as_me:$LINENO: checking for $ac_word" >&5
1538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1539 if test "${ac_cv_prog_CC+set}" = set; then
1540 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542 if test -n "$CC"; then
1543 ac_cv_prog_CC="$CC" # Let the user override the test.
1544 else
1545 ac_prog_rejected=no
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549 IFS=$as_save_IFS
1550 test -z "$as_dir" && as_dir=.
1551 for ac_exec_ext in '' $ac_executable_extensions; do
1552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1554 ac_prog_rejected=yes
1555 continue
1556 fi
1557 ac_cv_prog_CC="cc"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561 done
1562 done
1563
1564 if test $ac_prog_rejected = yes; then
1565 # We found a bogon in the path, so make sure we never use it.
1566 set dummy $ac_cv_prog_CC
1567 shift
1568 if test $# != 0; then
1569 # We chose a different compiler from the bogus one.
1570 # However, it has the same basename, so the bogon will be chosen
1571 # first if we set CC to just the basename; use the full file name.
1572 shift
1573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1574 fi
1575 fi
1576 fi
1577 fi
1578 CC=$ac_cv_prog_CC
1579 if test -n "$CC"; then
1580 echo "$as_me:$LINENO: result: $CC" >&5
1581 echo "${ECHO_T}$CC" >&6
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 fi
1586
1587 fi
1588 if test -z "$CC"; then
1589 if test -n "$ac_tool_prefix"; then
1590 for ac_prog in cl
1591 do
1592 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1594 echo "$as_me:$LINENO: checking for $ac_word" >&5
1595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1596 if test "${ac_cv_prog_CC+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 if test -n "$CC"; then
1600 ac_cv_prog_CC="$CC" # Let the user override the test.
1601 else
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1611 break 2
1612 fi
1613 done
1614 done
1615
1616 fi
1617 fi
1618 CC=$ac_cv_prog_CC
1619 if test -n "$CC"; then
1620 echo "$as_me:$LINENO: result: $CC" >&5
1621 echo "${ECHO_T}$CC" >&6
1622 else
1623 echo "$as_me:$LINENO: result: no" >&5
1624 echo "${ECHO_T}no" >&6
1625 fi
1626
1627 test -n "$CC" && break
1628 done
1629 fi
1630 if test -z "$CC"; then
1631 ac_ct_CC=$CC
1632 for ac_prog in cl
1633 do
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635 set dummy $ac_prog; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="$ac_prog"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1654 fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669 test -n "$ac_ct_CC" && break
1670 done
1671
1672 CC=$ac_ct_CC
1673 fi
1674
1675 fi
1676
1677
1678 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1679 See \`config.log' for more details." >&5
1680 echo "$as_me: error: no acceptable C compiler found in \$PATH
1681 See \`config.log' for more details." >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684 # Provide some information about the compiler.
1685 echo "$as_me:$LINENO:" \
1686 "checking for C compiler version" >&5
1687 ac_compiler=`set X $ac_compile; echo $2`
1688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1689 (eval $ac_compiler --version </dev/null >&5) 2>&5
1690 ac_status=$?
1691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1694 (eval $ac_compiler -v </dev/null >&5) 2>&5
1695 ac_status=$?
1696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1697 (exit $ac_status); }
1698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1699 (eval $ac_compiler -V </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703
1704 cat >conftest.$ac_ext <<_ACEOF
1705 /* confdefs.h. */
1706 _ACEOF
1707 cat confdefs.h >>conftest.$ac_ext
1708 cat >>conftest.$ac_ext <<_ACEOF
1709 /* end confdefs.h. */
1710
1711 int
1712 main ()
1713 {
1714
1715 ;
1716 return 0;
1717 }
1718 _ACEOF
1719 ac_clean_files_save=$ac_clean_files
1720 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1721 # Try to create an executable without -o first, disregard a.out.
1722 # It will help us diagnose broken compilers, and finding out an intuition
1723 # of exeext.
1724 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1725 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1726 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1727 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1728 (eval $ac_link_default) 2>&5
1729 ac_status=$?
1730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731 (exit $ac_status); }; then
1732 # Find the output, starting from the most likely. This scheme is
1733 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1734 # resort.
1735
1736 # Be careful to initialize this variable, since it used to be cached.
1737 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1738 ac_cv_exeext=
1739 # b.out is created by i960 compilers.
1740 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1741 do
1742 test -f "$ac_file" || continue
1743 case $ac_file in
1744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1745 ;;
1746 conftest.$ac_ext )
1747 # This is the source file.
1748 ;;
1749 [ab].out )
1750 # We found the default executable, but exeext='' is most
1751 # certainly right.
1752 break;;
1753 *.* )
1754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1755 # FIXME: I believe we export ac_cv_exeext for Libtool,
1756 # but it would be cool to find out if it's true. Does anybody
1757 # maintain Libtool? --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * )
1761 break;;
1762 esac
1763 done
1764 else
1765 echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1767
1768 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1769 See \`config.log' for more details." >&5
1770 echo "$as_me: error: C compiler cannot create executables
1771 See \`config.log' for more details." >&2;}
1772 { (exit 77); exit 77; }; }
1773 fi
1774
1775 ac_exeext=$ac_cv_exeext
1776 echo "$as_me:$LINENO: result: $ac_file" >&5
1777 echo "${ECHO_T}$ac_file" >&6
1778
1779 # Check the compiler produces executables we can run. If not, either
1780 # the compiler is broken, or we cross compile.
1781 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1782 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1783 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1784 # If not cross compiling, check that we can run a simple program.
1785 if test "$cross_compiling" != yes; then
1786 if { ac_try='./$ac_file'
1787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1788 (eval $ac_try) 2>&5
1789 ac_status=$?
1790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1791 (exit $ac_status); }; }; then
1792 cross_compiling=no
1793 else
1794 if test "$cross_compiling" = maybe; then
1795 cross_compiling=yes
1796 else
1797 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1798 If you meant to cross compile, use \`--host'.
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: cannot run C compiled programs.
1801 If you meant to cross compile, use \`--host'.
1802 See \`config.log' for more details." >&2;}
1803 { (exit 1); exit 1; }; }
1804 fi
1805 fi
1806 fi
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1809
1810 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1811 ac_clean_files=$ac_clean_files_save
1812 # Check the compiler produces executables we can run. If not, either
1813 # the compiler is broken, or we cross compile.
1814 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1815 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1816 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1817 echo "${ECHO_T}$cross_compiling" >&6
1818
1819 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1820 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1822 (eval $ac_link) 2>&5
1823 ac_status=$?
1824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1825 (exit $ac_status); }; then
1826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1828 # work properly (i.e., refer to `conftest.exe'), while it won't with
1829 # `rm'.
1830 for ac_file in conftest.exe conftest conftest.*; do
1831 test -f "$ac_file" || continue
1832 case $ac_file in
1833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1835 export ac_cv_exeext
1836 break;;
1837 * ) break;;
1838 esac
1839 done
1840 else
1841 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1844 See \`config.log' for more details." >&2;}
1845 { (exit 1); exit 1; }; }
1846 fi
1847
1848 rm -f conftest$ac_cv_exeext
1849 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1850 echo "${ECHO_T}$ac_cv_exeext" >&6
1851
1852 rm -f conftest.$ac_ext
1853 EXEEXT=$ac_cv_exeext
1854 ac_exeext=$EXEEXT
1855 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1856 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1857 if test "${ac_cv_objext+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 else
1860 cat >conftest.$ac_ext <<_ACEOF
1861 /* confdefs.h. */
1862 _ACEOF
1863 cat confdefs.h >>conftest.$ac_ext
1864 cat >>conftest.$ac_ext <<_ACEOF
1865 /* end confdefs.h. */
1866
1867 int
1868 main ()
1869 {
1870
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 rm -f conftest.o conftest.obj
1876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1877 (eval $ac_compile) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1882 case $ac_file in
1883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1885 break;;
1886 esac
1887 done
1888 else
1889 echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1893 See \`config.log' for more details." >&5
1894 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1895 See \`config.log' for more details." >&2;}
1896 { (exit 1); exit 1; }; }
1897 fi
1898
1899 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1900 fi
1901 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1902 echo "${ECHO_T}$ac_cv_objext" >&6
1903 OBJEXT=$ac_cv_objext
1904 ac_objext=$OBJEXT
1905 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1906 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1907 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 else
1910 cat >conftest.$ac_ext <<_ACEOF
1911 /* confdefs.h. */
1912 _ACEOF
1913 cat confdefs.h >>conftest.$ac_ext
1914 cat >>conftest.$ac_ext <<_ACEOF
1915 /* end confdefs.h. */
1916
1917 int
1918 main ()
1919 {
1920 #ifndef __GNUC__
1921 choke me
1922 #endif
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 rm -f conftest.$ac_objext
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1931 ac_status=$?
1932 grep -v '^ *+' conftest.er1 >conftest.err
1933 rm -f conftest.er1
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 (eval $ac_try) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946 (eval $ac_try) 2>&5
1947 ac_status=$?
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1950 ac_compiler_gnu=yes
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_compiler_gnu=no
1956 fi
1957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1959
1960 fi
1961 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1962 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1963 GCC=`test $ac_compiler_gnu = yes && echo yes`
1964 ac_test_CFLAGS=${CFLAGS+set}
1965 ac_save_CFLAGS=$CFLAGS
1966 CFLAGS="-g"
1967 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1968 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1969 if test "${ac_cv_prog_cc_g+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 cat >conftest.$ac_ext <<_ACEOF
1973 /* confdefs.h. */
1974 _ACEOF
1975 cat confdefs.h >>conftest.$ac_ext
1976 cat >>conftest.$ac_ext <<_ACEOF
1977 /* end confdefs.h. */
1978
1979 int
1980 main ()
1981 {
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>conftest.er1
1990 ac_status=$?
1991 grep -v '^ *+' conftest.er1 >conftest.err
1992 rm -f conftest.er1
1993 cat conftest.err >&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); } &&
1996 { ac_try='test -z "$ac_c_werror_flag"
1997 || test ! -s conftest.err'
1998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1999 (eval $ac_try) 2>&5
2000 ac_status=$?
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); }; } &&
2003 { ac_try='test -s conftest.$ac_objext'
2004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2005 (eval $ac_try) 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }; }; then
2009 ac_cv_prog_cc_g=yes
2010 else
2011 echo "$as_me: failed program was:" >&5
2012 sed 's/^/| /' conftest.$ac_ext >&5
2013
2014 ac_cv_prog_cc_g=no
2015 fi
2016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2020 if test "$ac_test_CFLAGS" = set; then
2021 CFLAGS=$ac_save_CFLAGS
2022 elif test $ac_cv_prog_cc_g = yes; then
2023 if test "$GCC" = yes; then
2024 CFLAGS="-g -O2"
2025 else
2026 CFLAGS="-g"
2027 fi
2028 else
2029 if test "$GCC" = yes; then
2030 CFLAGS="-O2"
2031 else
2032 CFLAGS=
2033 fi
2034 fi
2035 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2036 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2037 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 ac_cv_prog_cc_stdc=no
2041 ac_save_CC=$CC
2042 cat >conftest.$ac_ext <<_ACEOF
2043 /* confdefs.h. */
2044 _ACEOF
2045 cat confdefs.h >>conftest.$ac_ext
2046 cat >>conftest.$ac_ext <<_ACEOF
2047 /* end confdefs.h. */
2048 #include <stdarg.h>
2049 #include <stdio.h>
2050 #include <sys/types.h>
2051 #include <sys/stat.h>
2052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2053 struct buf { int x; };
2054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2055 static char *e (p, i)
2056 char **p;
2057 int i;
2058 {
2059 return p[i];
2060 }
2061 static char *f (char * (*g) (char **, int), char **p, ...)
2062 {
2063 char *s;
2064 va_list v;
2065 va_start (v,p);
2066 s = g (p, va_arg (v,int));
2067 va_end (v);
2068 return s;
2069 }
2070
2071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2072 function prototypes and stuff, but not '\xHH' hex character constants.
2073 These don't provoke an error unfortunately, instead are silently treated
2074 as 'x'. The following induces an error, until -std1 is added to get
2075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2076 array size at least. It's necessary to write '\x00'==0 to get something
2077 that's true only with -std1. */
2078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2079
2080 int test (int i, double x);
2081 struct s1 {int (*f) (int a);};
2082 struct s2 {int (*f) (double a);};
2083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2084 int argc;
2085 char **argv;
2086 int
2087 main ()
2088 {
2089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 # Don't try gcc -ansi; that turns off useful extensions and
2095 # breaks some systems' header files.
2096 # AIX -qlanglvl=ansi
2097 # Ultrix and OSF/1 -std1
2098 # HP-UX 10.20 and later -Ae
2099 # HP-UX older versions -Aa -D_HPUX_SOURCE
2100 # SVR4 -Xc -D__EXTENSIONS__
2101 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2102 do
2103 CC="$ac_save_CC $ac_arg"
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>conftest.er1
2107 ac_status=$?
2108 grep -v '^ *+' conftest.er1 >conftest.err
2109 rm -f conftest.er1
2110 cat conftest.err >&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); } &&
2113 { ac_try='test -z "$ac_c_werror_flag"
2114 || test ! -s conftest.err'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; } &&
2120 { ac_try='test -s conftest.$ac_objext'
2121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2122 (eval $ac_try) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; }; then
2126 ac_cv_prog_cc_stdc=$ac_arg
2127 break
2128 else
2129 echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.$ac_ext >&5
2131
2132 fi
2133 rm -f conftest.err conftest.$ac_objext
2134 done
2135 rm -f conftest.$ac_ext conftest.$ac_objext
2136 CC=$ac_save_CC
2137
2138 fi
2139
2140 case "x$ac_cv_prog_cc_stdc" in
2141 x|xno)
2142 echo "$as_me:$LINENO: result: none needed" >&5
2143 echo "${ECHO_T}none needed" >&6 ;;
2144 *)
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2147 CC="$CC $ac_cv_prog_cc_stdc" ;;
2148 esac
2149
2150 # Some people use a C++ compiler to compile C. Since we use `exit',
2151 # in C++ we need to declare it. In case someone uses the same compiler
2152 # for both compiling C and C++ we need to have the C++ compiler decide
2153 # the declaration of exit, since it's the most demanding environment.
2154 cat >conftest.$ac_ext <<_ACEOF
2155 #ifndef __cplusplus
2156 choke me
2157 #endif
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>conftest.er1
2162 ac_status=$?
2163 grep -v '^ *+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); } &&
2168 { ac_try='test -z "$ac_c_werror_flag"
2169 || test ! -s conftest.err'
2170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171 (eval $ac_try) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; } &&
2175 { ac_try='test -s conftest.$ac_objext'
2176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177 (eval $ac_try) 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; }; then
2181 for ac_declaration in \
2182 '' \
2183 'extern "C" void std::exit (int) throw (); using std::exit;' \
2184 'extern "C" void std::exit (int); using std::exit;' \
2185 'extern "C" void exit (int) throw ();' \
2186 'extern "C" void exit (int);' \
2187 'void exit (int);'
2188 do
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h. */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2195 $ac_declaration
2196 #include <stdlib.h>
2197 int
2198 main ()
2199 {
2200 exit (42);
2201 ;
2202 return 0;
2203 }
2204 _ACEOF
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2208 ac_status=$?
2209 grep -v '^ *+' conftest.er1 >conftest.err
2210 rm -f conftest.er1
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag"
2215 || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 (eval $ac_try) 2>&5
2224 ac_status=$?
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 :
2228 else
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 continue
2233 fi
2234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h. */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h. */
2241 $ac_declaration
2242 int
2243 main ()
2244 {
2245 exit (42);
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 break
2273 else
2274 echo "$as_me: failed program was:" >&5
2275 sed 's/^/| /' conftest.$ac_ext >&5
2276
2277 fi
2278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2279 done
2280 rm -f conftest*
2281 if test -n "$ac_declaration"; then
2282 echo '#ifdef __cplusplus' >>confdefs.h
2283 echo $ac_declaration >>confdefs.h
2284 echo '#endif' >>confdefs.h
2285 fi
2286
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 fi
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299 cat >>confdefs.h <<\_ACEOF
2300 #define _GNU_SOURCE 1
2301 _ACEOF
2302
2303
2304
2305 ac_ext=c
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2312 # On Suns, sometimes $CPP names a directory.
2313 if test -n "$CPP" && test -d "$CPP"; then
2314 CPP=
2315 fi
2316 if test -z "$CPP"; then
2317 if test "${ac_cv_prog_CPP+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320 # Double quotes because CPP needs to be expanded
2321 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2322 do
2323 ac_preproc_ok=false
2324 for ac_c_preproc_warn_flag in '' yes
2325 do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333 /* confdefs.h. */
2334 _ACEOF
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2338 #ifdef __STDC__
2339 # include <limits.h>
2340 #else
2341 # include <assert.h>
2342 #endif
2343 Syntax error
2344 _ACEOF
2345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
2359 else
2360 ac_cpp_err=yes
2361 fi
2362 if test -z "$ac_cpp_err"; then
2363 :
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369 continue
2370 fi
2371 rm -f conftest.err conftest.$ac_ext
2372
2373 # OK, works on sane cases. Now check whether non-existent headers
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <ac_nonexistent.h>
2382 _ACEOF
2383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
2397 else
2398 ac_cpp_err=yes
2399 fi
2400 if test -z "$ac_cpp_err"; then
2401 # Broken: success on invalid input.
2402 continue
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Passes both tests.
2408 ac_preproc_ok=:
2409 break
2410 fi
2411 rm -f conftest.err conftest.$ac_ext
2412
2413 done
2414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415 rm -f conftest.err conftest.$ac_ext
2416 if $ac_preproc_ok; then
2417 break
2418 fi
2419
2420 done
2421 ac_cv_prog_CPP=$CPP
2422
2423 fi
2424 CPP=$ac_cv_prog_CPP
2425 else
2426 ac_cv_prog_CPP=$CPP
2427 fi
2428 echo "$as_me:$LINENO: result: $CPP" >&5
2429 echo "${ECHO_T}$CPP" >&6
2430 ac_preproc_ok=false
2431 for ac_c_preproc_warn_flag in '' yes
2432 do
2433 # Use a header file that comes with gcc, so configuring glibc
2434 # with a fresh cross-compiler works.
2435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2436 # <limits.h> exists even on freestanding compilers.
2437 # On the NeXT, cc -E runs the code through the compiler's parser,
2438 # not just through cpp. "Syntax error" is here to catch this case.
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2445 #ifdef __STDC__
2446 # include <limits.h>
2447 #else
2448 # include <assert.h>
2449 #endif
2450 Syntax error
2451 _ACEOF
2452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2454 ac_status=$?
2455 grep -v '^ *+' conftest.er1 >conftest.err
2456 rm -f conftest.er1
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } >/dev/null; then
2460 if test -s conftest.err; then
2461 ac_cpp_err=$ac_c_preproc_warn_flag
2462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2463 else
2464 ac_cpp_err=
2465 fi
2466 else
2467 ac_cpp_err=yes
2468 fi
2469 if test -z "$ac_cpp_err"; then
2470 :
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 # Broken: fails on valid input.
2476 continue
2477 fi
2478 rm -f conftest.err conftest.$ac_ext
2479
2480 # OK, works on sane cases. Now check whether non-existent headers
2481 # can be detected and how.
2482 cat >conftest.$ac_ext <<_ACEOF
2483 /* confdefs.h. */
2484 _ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2488 #include <ac_nonexistent.h>
2489 _ACEOF
2490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2492 ac_status=$?
2493 grep -v '^ *+' conftest.er1 >conftest.err
2494 rm -f conftest.er1
2495 cat conftest.err >&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); } >/dev/null; then
2498 if test -s conftest.err; then
2499 ac_cpp_err=$ac_c_preproc_warn_flag
2500 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2501 else
2502 ac_cpp_err=
2503 fi
2504 else
2505 ac_cpp_err=yes
2506 fi
2507 if test -z "$ac_cpp_err"; then
2508 # Broken: success on invalid input.
2509 continue
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 # Passes both tests.
2515 ac_preproc_ok=:
2516 break
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519
2520 done
2521 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2522 rm -f conftest.err conftest.$ac_ext
2523 if $ac_preproc_ok; then
2524 :
2525 else
2526 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2527 See \`config.log' for more details." >&5
2528 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2531 fi
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540 echo "$as_me:$LINENO: checking for egrep" >&5
2541 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2542 if test "${ac_cv_prog_egrep+set}" = set; then
2543 echo $ECHO_N "(cached) $ECHO_C" >&6
2544 else
2545 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2546 then ac_cv_prog_egrep='grep -E'
2547 else ac_cv_prog_egrep='egrep'
2548 fi
2549 fi
2550 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2551 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2552 EGREP=$ac_cv_prog_egrep
2553
2554
2555
2556 echo "$as_me:$LINENO: checking for AIX" >&5
2557 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h. */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2564 #ifdef _AIX
2565 yes
2566 #endif
2567
2568 _ACEOF
2569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2570 $EGREP "yes" >/dev/null 2>&1; then
2571 echo "$as_me:$LINENO: result: yes" >&5
2572 echo "${ECHO_T}yes" >&6
2573 cat >>confdefs.h <<\_ACEOF
2574 #define _ALL_SOURCE 1
2575 _ACEOF
2576
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 fi
2581 rm -f conftest*
2582
2583
2584 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2585 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2586 if test "${ac_cv_search_strerror+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589 ac_func_search_save_LIBS=$LIBS
2590 ac_cv_search_strerror=no
2591 cat >conftest.$ac_ext <<_ACEOF
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597
2598 /* Override any gcc2 internal prototype to avoid an error. */
2599 #ifdef __cplusplus
2600 extern "C"
2601 #endif
2602 /* We use char because int might match the return type of a gcc2
2603 builtin and then its argument prototype would still apply. */
2604 char strerror ();
2605 int
2606 main ()
2607 {
2608 strerror ();
2609 ;
2610 return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext conftest$ac_exeext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2615 (eval $ac_link) 2>conftest.er1
2616 ac_status=$?
2617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest$ac_exeext'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_cv_search_strerror="none required"
2636 else
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 fi
2641 rm -f conftest.err conftest.$ac_objext \
2642 conftest$ac_exeext conftest.$ac_ext
2643 if test "$ac_cv_search_strerror" = no; then
2644 for ac_lib in cposix; do
2645 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652
2653 /* Override any gcc2 internal prototype to avoid an error. */
2654 #ifdef __cplusplus
2655 extern "C"
2656 #endif
2657 /* We use char because int might match the return type of a gcc2
2658 builtin and then its argument prototype would still apply. */
2659 char strerror ();
2660 int
2661 main ()
2662 {
2663 strerror ();
2664 ;
2665 return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext conftest$ac_exeext
2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670 (eval $ac_link) 2>conftest.er1
2671 ac_status=$?
2672 grep -v '^ *+' conftest.er1 >conftest.err
2673 rm -f conftest.er1
2674 cat conftest.err >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); } &&
2677 { ac_try='test -z "$ac_c_werror_flag"
2678 || test ! -s conftest.err'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680 (eval $ac_try) 2>&5
2681 ac_status=$?
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; } &&
2684 { ac_try='test -s conftest$ac_exeext'
2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686 (eval $ac_try) 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 ac_cv_search_strerror="-l$ac_lib"
2691 break
2692 else
2693 echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696 fi
2697 rm -f conftest.err conftest.$ac_objext \
2698 conftest$ac_exeext conftest.$ac_ext
2699 done
2700 fi
2701 LIBS=$ac_func_search_save_LIBS
2702 fi
2703 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2704 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2705 if test "$ac_cv_search_strerror" != no; then
2706 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2707
2708 fi
2709
2710
2711
2712
2713 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2714 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2715 if test "${am_cv_prog_cc_stdc+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718 am_cv_prog_cc_stdc=no
2719 ac_save_CC="$CC"
2720 # Don't try gcc -ansi; that turns off useful extensions and
2721 # breaks some systems' header files.
2722 # AIX -qlanglvl=ansi
2723 # Ultrix and OSF/1 -std1
2724 # HP-UX 10.20 and later -Ae
2725 # HP-UX older versions -Aa -D_HPUX_SOURCE
2726 # SVR4 -Xc -D__EXTENSIONS__
2727 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2728 do
2729 CC="$ac_save_CC $ac_arg"
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h. */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h. */
2736 #include <stdarg.h>
2737 #include <stdio.h>
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2744 char **p;
2745 int i;
2746 {
2747 return p[i];
2748 }
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2750 {
2751 char *s;
2752 va_list v;
2753 va_start (v,p);
2754 s = g (p, va_arg (v,int));
2755 va_end (v);
2756 return s;
2757 }
2758 int test (int i, double x);
2759 struct s1 {int (*f) (int a);};
2760 struct s2 {int (*f) (double a);};
2761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2762 int argc;
2763 char **argv;
2764
2765 int
2766 main ()
2767 {
2768
2769 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2770
2771 ;
2772 return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793 (eval $ac_try) 2>&5
2794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 am_cv_prog_cc_stdc="$ac_arg"; break
2798 else
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802 fi
2803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2804 done
2805 CC="$ac_save_CC"
2806
2807 fi
2808
2809 if test -z "$am_cv_prog_cc_stdc"; then
2810 echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6
2812 else
2813 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2815 fi
2816 case "x$am_cv_prog_cc_stdc" in
2817 x|xno) ;;
2818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2819 esac
2820
2821
2822 ac_aux_dir=
2823 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2824 if test -f $ac_dir/install-sh; then
2825 ac_aux_dir=$ac_dir
2826 ac_install_sh="$ac_aux_dir/install-sh -c"
2827 break
2828 elif test -f $ac_dir/install.sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install.sh -c"
2831 break
2832 elif test -f $ac_dir/shtool; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/shtool install -c"
2835 break
2836 fi
2837 done
2838 if test -z "$ac_aux_dir"; then
2839 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2840 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2841 { (exit 1); exit 1; }; }
2842 fi
2843 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2844 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2845 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2846
2847 # Make sure we can run config.sub.
2848 $ac_config_sub sun4 >/dev/null 2>&1 ||
2849 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2850 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2851 { (exit 1); exit 1; }; }
2852
2853 echo "$as_me:$LINENO: checking build system type" >&5
2854 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2855 if test "${ac_cv_build+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858 ac_cv_build_alias=$build_alias
2859 test -z "$ac_cv_build_alias" &&
2860 ac_cv_build_alias=`$ac_config_guess`
2861 test -z "$ac_cv_build_alias" &&
2862 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2863 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2864 { (exit 1); exit 1; }; }
2865 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2866 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2867 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2868 { (exit 1); exit 1; }; }
2869
2870 fi
2871 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2872 echo "${ECHO_T}$ac_cv_build" >&6
2873 build=$ac_cv_build
2874 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2875 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2876 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2877
2878
2879 echo "$as_me:$LINENO: checking host system type" >&5
2880 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2881 if test "${ac_cv_host+set}" = set; then
2882 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 else
2884 ac_cv_host_alias=$host_alias
2885 test -z "$ac_cv_host_alias" &&
2886 ac_cv_host_alias=$ac_cv_build_alias
2887 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2888 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2889 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2890 { (exit 1); exit 1; }; }
2891
2892 fi
2893 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2894 echo "${ECHO_T}$ac_cv_host" >&6
2895 host=$ac_cv_host
2896 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2897 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2898 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2899
2900
2901 echo "$as_me:$LINENO: checking target system type" >&5
2902 echo $ECHO_N "checking target system type... $ECHO_C" >&6
2903 if test "${ac_cv_target+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 ac_cv_target_alias=$target_alias
2907 test "x$ac_cv_target_alias" = "x" &&
2908 ac_cv_target_alias=$ac_cv_host_alias
2909 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2910 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2911 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
2912 { (exit 1); exit 1; }; }
2913
2914 fi
2915 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2916 echo "${ECHO_T}$ac_cv_target" >&6
2917 target=$ac_cv_target
2918 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2919 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2920 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2921
2922
2923 # The aliases save the names the user supplied, while $host etc.
2924 # will get canonicalized.
2925 test -n "$target_alias" &&
2926 test "$program_prefix$program_suffix$program_transform_name" = \
2927 NONENONEs,x,x, &&
2928 program_prefix=${target_alias}-
2929
2930
2931 CONFIG_OBS=
2932 CONFIG_DEPS=
2933 CONFIG_SRCS=
2934 ENABLE_CFLAGS=
2935
2936 CONFIG_ALL=
2937 CONFIG_CLEAN=
2938 CONFIG_INSTALL=
2939 CONFIG_UNINSTALL=
2940
2941
2942 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2943 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2944 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2945 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 else
2948 cat >conftest.make <<\_ACEOF
2949 all:
2950 @echo 'ac_maketemp="$(MAKE)"'
2951 _ACEOF
2952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2953 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2954 if test -n "$ac_maketemp"; then
2955 eval ac_cv_prog_make_${ac_make}_set=yes
2956 else
2957 eval ac_cv_prog_make_${ac_make}_set=no
2958 fi
2959 rm -f conftest.make
2960 fi
2961 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2962 echo "$as_me:$LINENO: result: yes" >&5
2963 echo "${ECHO_T}yes" >&6
2964 SET_MAKE=
2965 else
2966 echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968 SET_MAKE="MAKE=${MAKE-make}"
2969 fi
2970
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2974 echo "$as_me:$LINENO: checking for $ac_word" >&5
2975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2976 if test "${ac_cv_prog_RANLIB+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979 if test -n "$RANLIB"; then
2980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2981 else
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 for as_dir in $PATH
2984 do
2985 IFS=$as_save_IFS
2986 test -z "$as_dir" && as_dir=.
2987 for ac_exec_ext in '' $ac_executable_extensions; do
2988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2989 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 break 2
2992 fi
2993 done
2994 done
2995
2996 fi
2997 fi
2998 RANLIB=$ac_cv_prog_RANLIB
2999 if test -n "$RANLIB"; then
3000 echo "$as_me:$LINENO: result: $RANLIB" >&5
3001 echo "${ECHO_T}$RANLIB" >&6
3002 else
3003 echo "$as_me:$LINENO: result: no" >&5
3004 echo "${ECHO_T}no" >&6
3005 fi
3006
3007 fi
3008 if test -z "$ac_cv_prog_RANLIB"; then
3009 ac_ct_RANLIB=$RANLIB
3010 # Extract the first word of "ranlib", so it can be a program name with args.
3011 set dummy ranlib; ac_word=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017 if test -n "$ac_ct_RANLIB"; then
3018 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_RANLIB="ranlib"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3030 fi
3031 done
3032 done
3033
3034 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3035 fi
3036 fi
3037 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3038 if test -n "$ac_ct_RANLIB"; then
3039 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3040 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3041 else
3042 echo "$as_me:$LINENO: result: no" >&5
3043 echo "${ECHO_T}no" >&6
3044 fi
3045
3046 RANLIB=$ac_ct_RANLIB
3047 else
3048 RANLIB="$ac_cv_prog_RANLIB"
3049 fi
3050
3051 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3053 if test "${ac_cv_header_stdc+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 else
3056 cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h. */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <stdlib.h>
3063 #include <stdarg.h>
3064 #include <string.h>
3065 #include <float.h>
3066
3067 int
3068 main ()
3069 {
3070
3071 ;
3072 return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_header_stdc=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3101
3102 ac_cv_header_stdc=no
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105
3106 if test $ac_cv_header_stdc = yes; then
3107 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3108 cat >conftest.$ac_ext <<_ACEOF
3109 /* confdefs.h. */
3110 _ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3114 #include <string.h>
3115
3116 _ACEOF
3117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3118 $EGREP "memchr" >/dev/null 2>&1; then
3119 :
3120 else
3121 ac_cv_header_stdc=no
3122 fi
3123 rm -f conftest*
3124
3125 fi
3126
3127 if test $ac_cv_header_stdc = yes; then
3128 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3129 cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h. */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3135 #include <stdlib.h>
3136
3137 _ACEOF
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 $EGREP "free" >/dev/null 2>&1; then
3140 :
3141 else
3142 ac_cv_header_stdc=no
3143 fi
3144 rm -f conftest*
3145
3146 fi
3147
3148 if test $ac_cv_header_stdc = yes; then
3149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3150 if test "$cross_compiling" = yes; then
3151 :
3152 else
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #include <ctype.h>
3160 #if ((' ' & 0x0FF) == 0x020)
3161 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3162 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3163 #else
3164 # define ISLOWER(c) \
3165 (('a' <= (c) && (c) <= 'i') \
3166 || ('j' <= (c) && (c) <= 'r') \
3167 || ('s' <= (c) && (c) <= 'z'))
3168 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3169 #endif
3170
3171 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3172 int
3173 main ()
3174 {
3175 int i;
3176 for (i = 0; i < 256; i++)
3177 if (XOR (islower (i), ISLOWER (i))
3178 || toupper (i) != TOUPPER (i))
3179 exit(2);
3180 exit (0);
3181 }
3182 _ACEOF
3183 rm -f conftest$ac_exeext
3184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3185 (eval $ac_link) 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3190 (eval $ac_try) 2>&5
3191 ac_status=$?
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; }; then
3194 :
3195 else
3196 echo "$as_me: program exited with status $ac_status" >&5
3197 echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3199
3200 ( exit $ac_status )
3201 ac_cv_header_stdc=no
3202 fi
3203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3204 fi
3205 fi
3206 fi
3207 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3208 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3209 if test $ac_cv_header_stdc = yes; then
3210
3211 cat >>confdefs.h <<\_ACEOF
3212 #define STDC_HEADERS 1
3213 _ACEOF
3214
3215 fi
3216
3217 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3218 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3219 if test "${ac_cv_c_const+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 else
3222 cat >conftest.$ac_ext <<_ACEOF
3223 /* confdefs.h. */
3224 _ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3228
3229 int
3230 main ()
3231 {
3232 /* FIXME: Include the comments suggested by Paul. */
3233 #ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
3257 *t++ = 0;
3258 }
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3263 }
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3268 }
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3273 }
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3276 }
3277 #endif
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285 (eval $ac_compile) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } &&
3292 { ac_try='test -z "$ac_c_werror_flag"
3293 || test ! -s conftest.err'
3294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 (eval $ac_try) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 ac_cv_c_const=yes
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 ac_cv_c_const=no
3311 fi
3312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313 fi
3314 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3315 echo "${ECHO_T}$ac_cv_c_const" >&6
3316 if test $ac_cv_c_const = no; then
3317
3318 cat >>confdefs.h <<\_ACEOF
3319 #define const
3320 _ACEOF
3321
3322 fi
3323
3324 echo "$as_me:$LINENO: checking for inline" >&5
3325 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3326 if test "${ac_cv_c_inline+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 ac_cv_c_inline=no
3330 for ac_kw in inline __inline__ __inline; do
3331 cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h. */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3337 #ifndef __cplusplus
3338 typedef int foo_t;
3339 static $ac_kw foo_t static_foo () {return 0; }
3340 $ac_kw foo_t foo () {return 0; }
3341 #endif
3342
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag"
3354 || test ! -s conftest.err'
3355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; } &&
3360 { ac_try='test -s conftest.$ac_objext'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; }; then
3366 ac_cv_c_inline=$ac_kw; break
3367 else
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 fi
3372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3373 done
3374
3375 fi
3376 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3377 echo "${ECHO_T}$ac_cv_c_inline" >&6
3378
3379
3380 case $ac_cv_c_inline in
3381 inline | yes) ;;
3382 *)
3383 case $ac_cv_c_inline in
3384 no) ac_val=;;
3385 *) ac_val=$ac_cv_c_inline;;
3386 esac
3387 cat >>confdefs.h <<_ACEOF
3388 #ifndef __cplusplus
3389 #define inline $ac_val
3390 #endif
3391 _ACEOF
3392 ;;
3393 esac
3394
3395 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407 do
3408 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409 echo "$as_me:$LINENO: checking for $ac_header" >&5
3410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414 cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h. */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 $ac_includes_default
3421
3422 #include <$ac_header>
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447 else
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3450
3451 eval "$as_ac_Header=no"
3452 fi
3453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454 fi
3455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460 _ACEOF
3461
3462 fi
3463
3464 done
3465
3466
3467 echo "$as_me:$LINENO: checking for off_t" >&5
3468 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3469 if test "${ac_cv_type_off_t+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 $ac_includes_default
3479 int
3480 main ()
3481 {
3482 if ((off_t *) 0)
3483 return 0;
3484 if (sizeof (off_t))
3485 return 0;
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest.$ac_objext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492 (eval $ac_compile) 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } &&
3499 { ac_try='test -z "$ac_c_werror_flag"
3500 || test ! -s conftest.err'
3501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502 (eval $ac_try) 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }; } &&
3506 { ac_try='test -s conftest.$ac_objext'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3512 ac_cv_type_off_t=yes
3513 else
3514 echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 ac_cv_type_off_t=no
3518 fi
3519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3522 echo "${ECHO_T}$ac_cv_type_off_t" >&6
3523 if test $ac_cv_type_off_t = yes; then
3524 :
3525 else
3526
3527 cat >>confdefs.h <<_ACEOF
3528 #define off_t long
3529 _ACEOF
3530
3531 fi
3532
3533 echo "$as_me:$LINENO: checking for size_t" >&5
3534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3535 if test "${ac_cv_type_size_t+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 cat >conftest.$ac_ext <<_ACEOF
3539 /* confdefs.h. */
3540 _ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3544 $ac_includes_default
3545 int
3546 main ()
3547 {
3548 if ((size_t *) 0)
3549 return 0;
3550 if (sizeof (size_t))
3551 return 0;
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>conftest.er1
3559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } &&
3565 { ac_try='test -z "$ac_c_werror_flag"
3566 || test ! -s conftest.err'
3567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }; } &&
3572 { ac_try='test -s conftest.$ac_objext'
3573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574 (eval $ac_try) 2>&5
3575 ac_status=$?
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); }; }; then
3578 ac_cv_type_size_t=yes
3579 else
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 ac_cv_type_size_t=no
3584 fi
3585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3588 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3589 if test $ac_cv_type_size_t = yes; then
3590 :
3591 else
3592
3593 cat >>confdefs.h <<_ACEOF
3594 #define size_t unsigned
3595 _ACEOF
3596
3597 fi
3598
3599 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3600 # for constant arguments. Useless!
3601 echo "$as_me:$LINENO: checking for working alloca.h" >&5
3602 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3603 if test "${ac_cv_working_alloca_h+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 cat >conftest.$ac_ext <<_ACEOF
3607 /* confdefs.h. */
3608 _ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3612 #include <alloca.h>
3613 int
3614 main ()
3615 {
3616 char *p = (char *) alloca (2 * sizeof (int));
3617 ;
3618 return 0;
3619 }
3620 _ACEOF
3621 rm -f conftest.$ac_objext conftest$ac_exeext
3622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3623 (eval $ac_link) 2>conftest.er1
3624 ac_status=$?
3625 grep -v '^ *+' conftest.er1 >conftest.err
3626 rm -f conftest.er1
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_c_werror_flag"
3631 || test ! -s conftest.err'
3632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633 (eval $ac_try) 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; } &&
3637 { ac_try='test -s conftest$ac_exeext'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_working_alloca_h=yes
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648 ac_cv_working_alloca_h=no
3649 fi
3650 rm -f conftest.err conftest.$ac_objext \
3651 conftest$ac_exeext conftest.$ac_ext
3652 fi
3653 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
3654 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
3655 if test $ac_cv_working_alloca_h = yes; then
3656
3657 cat >>confdefs.h <<\_ACEOF
3658 #define HAVE_ALLOCA_H 1
3659 _ACEOF
3660
3661 fi
3662
3663 echo "$as_me:$LINENO: checking for alloca" >&5
3664 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
3665 if test "${ac_cv_func_alloca_works+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668 cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h. */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #ifdef __GNUC__
3675 # define alloca __builtin_alloca
3676 #else
3677 # ifdef _MSC_VER
3678 # include <malloc.h>
3679 # define alloca _alloca
3680 # else
3681 # if HAVE_ALLOCA_H
3682 # include <alloca.h>
3683 # else
3684 # ifdef _AIX
3685 #pragma alloca
3686 # else
3687 # ifndef alloca /* predefined by HP cc +Olibcalls */
3688 char *alloca ();
3689 # endif
3690 # endif
3691 # endif
3692 # endif
3693 #endif
3694
3695 int
3696 main ()
3697 {
3698 char *p = (char *) alloca (1);
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 rm -f conftest.$ac_objext conftest$ac_exeext
3704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705 (eval $ac_link) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag"
3713 || test ! -s conftest.err'
3714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715 (eval $ac_try) 2>&5
3716 ac_status=$?
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); }; } &&
3719 { ac_try='test -s conftest$ac_exeext'
3720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721 (eval $ac_try) 2>&5
3722 ac_status=$?
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; }; then
3725 ac_cv_func_alloca_works=yes
3726 else
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 ac_cv_func_alloca_works=no
3731 fi
3732 rm -f conftest.err conftest.$ac_objext \
3733 conftest$ac_exeext conftest.$ac_ext
3734 fi
3735 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
3736 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
3737
3738 if test $ac_cv_func_alloca_works = yes; then
3739
3740 cat >>confdefs.h <<\_ACEOF
3741 #define HAVE_ALLOCA 1
3742 _ACEOF
3743
3744 else
3745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3746 # that cause trouble. Some versions do not even contain alloca or
3747 # contain a buggy version. If you still want to use their alloca,
3748 # use ar to extract alloca.o from them instead of compiling alloca.c.
3749
3750 ALLOCA=alloca.$ac_objext
3751
3752 cat >>confdefs.h <<\_ACEOF
3753 #define C_ALLOCA 1
3754 _ACEOF
3755
3756
3757 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
3758 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
3759 if test "${ac_cv_os_cray+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 cat >conftest.$ac_ext <<_ACEOF
3763 /* confdefs.h. */
3764 _ACEOF
3765 cat confdefs.h >>conftest.$ac_ext
3766 cat >>conftest.$ac_ext <<_ACEOF
3767 /* end confdefs.h. */
3768 #if defined(CRAY) && ! defined(CRAY2)
3769 webecray
3770 #else
3771 wenotbecray
3772 #endif
3773
3774 _ACEOF
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 $EGREP "webecray" >/dev/null 2>&1; then
3777 ac_cv_os_cray=yes
3778 else
3779 ac_cv_os_cray=no
3780 fi
3781 rm -f conftest*
3782
3783 fi
3784 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
3785 echo "${ECHO_T}$ac_cv_os_cray" >&6
3786 if test $ac_cv_os_cray = yes; then
3787 for ac_func in _getb67 GETB67 getb67; do
3788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3789 echo "$as_me:$LINENO: checking for $ac_func" >&5
3790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3791 if eval "test \"\${$as_ac_var+set}\" = set"; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 cat >conftest.$ac_ext <<_ACEOF
3795 /* confdefs.h. */
3796 _ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3802 #define $ac_func innocuous_$ac_func
3803
3804 /* System header to define __stub macros and hopefully few prototypes,
3805 which can conflict with char $ac_func (); below.
3806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 <limits.h> exists even on freestanding compilers. */
3808
3809 #ifdef __STDC__
3810 # include <limits.h>
3811 #else
3812 # include <assert.h>
3813 #endif
3814
3815 #undef $ac_func
3816
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 #ifdef __cplusplus
3819 extern "C"
3820 {
3821 #endif
3822 /* We use char because int might match the return type of a gcc2
3823 builtin and then its argument prototype would still apply. */
3824 char $ac_func ();
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3829 choke me
3830 #else
3831 char (*f) () = $ac_func;
3832 #endif
3833 #ifdef __cplusplus
3834 }
3835 #endif
3836
3837 int
3838 main ()
3839 {
3840 return f != $ac_func;
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } &&
3854 { ac_try='test -z "$ac_c_werror_flag"
3855 || test ! -s conftest.err'
3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857 (eval $ac_try) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest$ac_exeext'
3862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863 (eval $ac_try) 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 eval "$as_ac_var=yes"
3868 else
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 eval "$as_ac_var=no"
3873 fi
3874 rm -f conftest.err conftest.$ac_objext \
3875 conftest$ac_exeext conftest.$ac_ext
3876 fi
3877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3879 if test `eval echo '${'$as_ac_var'}'` = yes; then
3880
3881 cat >>confdefs.h <<_ACEOF
3882 #define CRAY_STACKSEG_END $ac_func
3883 _ACEOF
3884
3885 break
3886 fi
3887
3888 done
3889 fi
3890
3891 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
3892 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
3893 if test "${ac_cv_c_stack_direction+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 else
3896 if test "$cross_compiling" = yes; then
3897 ac_cv_c_stack_direction=0
3898 else
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905 int
3906 find_stack_direction ()
3907 {
3908 static char *addr = 0;
3909 auto char dummy;
3910 if (addr == 0)
3911 {
3912 addr = &dummy;
3913 return find_stack_direction ();
3914 }
3915 else
3916 return (&dummy > addr) ? 1 : -1;
3917 }
3918
3919 int
3920 main ()
3921 {
3922 exit (find_stack_direction () < 0);
3923 }
3924 _ACEOF
3925 rm -f conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>&5
3928 ac_status=$?
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932 (eval $ac_try) 2>&5
3933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); }; }; then
3936 ac_cv_c_stack_direction=1
3937 else
3938 echo "$as_me: program exited with status $ac_status" >&5
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3941
3942 ( exit $ac_status )
3943 ac_cv_c_stack_direction=-1
3944 fi
3945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3946 fi
3947 fi
3948 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
3949 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
3950
3951 cat >>confdefs.h <<_ACEOF
3952 #define STACK_DIRECTION $ac_cv_c_stack_direction
3953 _ACEOF
3954
3955
3956 fi
3957
3958
3959
3960 for ac_header in stdlib.h unistd.h
3961 do
3962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo "$as_me:$LINENO: checking for $ac_header" >&5
3965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 fi
3969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3971 else
3972 # Is the header compilable?
3973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 $ac_includes_default
3982 #include <$ac_header>
3983 _ACEOF
3984 rm -f conftest.$ac_objext
3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3986 (eval $ac_compile) 2>conftest.er1
3987 ac_status=$?
3988 grep -v '^ *+' conftest.er1 >conftest.err
3989 rm -f conftest.er1
3990 cat conftest.err >&5
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -z "$ac_c_werror_flag"
3994 || test ! -s conftest.err'
3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3996 (eval $ac_try) 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002 (eval $ac_try) 2>&5
4003 ac_status=$?
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); }; }; then
4006 ac_header_compiler=yes
4007 else
4008 echo "$as_me: failed program was:" >&5
4009 sed 's/^/| /' conftest.$ac_ext >&5
4010
4011 ac_header_compiler=no
4012 fi
4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4015 echo "${ECHO_T}$ac_header_compiler" >&6
4016
4017 # Is the header present?
4018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h. */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h. */
4026 #include <$ac_header>
4027 _ACEOF
4028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null; then
4036 if test -s conftest.err; then
4037 ac_cpp_err=$ac_c_preproc_warn_flag
4038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4039 else
4040 ac_cpp_err=
4041 fi
4042 else
4043 ac_cpp_err=yes
4044 fi
4045 if test -z "$ac_cpp_err"; then
4046 ac_header_preproc=yes
4047 else
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051 ac_header_preproc=no
4052 fi
4053 rm -f conftest.err conftest.$ac_ext
4054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4055 echo "${ECHO_T}$ac_header_preproc" >&6
4056
4057 # So? What about this header?
4058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4059 yes:no: )
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4064 ac_header_preproc=yes
4065 ;;
4066 no:yes:* )
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4079 (
4080 cat <<\_ASBOX
4081 ## ------------------------------------------ ##
4082 ## Report this to the AC_PACKAGE_NAME lists. ##
4083 ## ------------------------------------------ ##
4084 _ASBOX
4085 ) |
4086 sed "s/^/$as_me: WARNING: /" >&2
4087 ;;
4088 esac
4089 echo "$as_me:$LINENO: checking for $ac_header" >&5
4090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 eval "$as_ac_Header=\$ac_header_preproc"
4095 fi
4096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4098
4099 fi
4100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103 _ACEOF
4104
4105 fi
4106
4107 done
4108
4109
4110 for ac_func in getpagesize
4111 do
4112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4113 echo "$as_me:$LINENO: checking for $ac_func" >&5
4114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4115 if eval "test \"\${$as_ac_var+set}\" = set"; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126 #define $ac_func innocuous_$ac_func
4127
4128 /* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char $ac_func (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133 #ifdef __STDC__
4134 # include <limits.h>
4135 #else
4136 # include <assert.h>
4137 #endif
4138
4139 #undef $ac_func
4140
4141 /* Override any gcc2 internal prototype to avoid an error. */
4142 #ifdef __cplusplus
4143 extern "C"
4144 {
4145 #endif
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4148 char $ac_func ();
4149 /* The GNU C library defines this for functions which it implements
4150 to always fail with ENOSYS. Some functions are actually named
4151 something starting with __ and the normal name is an alias. */
4152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4153 choke me
4154 #else
4155 char (*f) () = $ac_func;
4156 #endif
4157 #ifdef __cplusplus
4158 }
4159 #endif
4160
4161 int
4162 main ()
4163 {
4164 return f != $ac_func;
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 eval "$as_ac_var=yes"
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4195
4196 eval "$as_ac_var=no"
4197 fi
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200 fi
4201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4203 if test `eval echo '${'$as_ac_var'}'` = yes; then
4204 cat >>confdefs.h <<_ACEOF
4205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4206 _ACEOF
4207
4208 fi
4209 done
4210
4211 echo "$as_me:$LINENO: checking for working mmap" >&5
4212 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216 if test "$cross_compiling" = yes; then
4217 ac_cv_func_mmap_fixed_mapped=no
4218 else
4219 cat >conftest.$ac_ext <<_ACEOF
4220 /* confdefs.h. */
4221 _ACEOF
4222 cat confdefs.h >>conftest.$ac_ext
4223 cat >>conftest.$ac_ext <<_ACEOF
4224 /* end confdefs.h. */
4225 $ac_includes_default
4226 /* malloc might have been renamed as rpl_malloc. */
4227 #undef malloc
4228
4229 /* Thanks to Mike Haertel and Jim Avera for this test.
4230 Here is a matrix of mmap possibilities:
4231 mmap private not fixed
4232 mmap private fixed at somewhere currently unmapped
4233 mmap private fixed at somewhere already mapped
4234 mmap shared not fixed
4235 mmap shared fixed at somewhere currently unmapped
4236 mmap shared fixed at somewhere already mapped
4237 For private mappings, we should verify that changes cannot be read()
4238 back from the file, nor mmap's back from the file at a different
4239 address. (There have been systems where private was not correctly
4240 implemented like the infamous i386 svr4.0, and systems where the
4241 VM page cache was not coherent with the file system buffer cache
4242 like early versions of FreeBSD and possibly contemporary NetBSD.)
4243 For shared mappings, we should conversely verify that changes get
4244 propagated back to all the places they're supposed to be.
4245
4246 Grep wants private fixed already mapped.
4247 The main things grep needs to know about mmap are:
4248 * does it exist and is it safe to write into the mmap'd area
4249 * how to use it (BSD variants) */
4250
4251 #include <fcntl.h>
4252 #include <sys/mman.h>
4253
4254 #if !STDC_HEADERS && !HAVE_STDLIB_H
4255 char *malloc ();
4256 #endif
4257
4258 /* This mess was copied from the GNU getpagesize.h. */
4259 #if !HAVE_GETPAGESIZE
4260 /* Assume that all systems that can run configure have sys/param.h. */
4261 # if !HAVE_SYS_PARAM_H
4262 # define HAVE_SYS_PARAM_H 1
4263 # endif
4264
4265 # ifdef _SC_PAGESIZE
4266 # define getpagesize() sysconf(_SC_PAGESIZE)
4267 # else /* no _SC_PAGESIZE */
4268 # if HAVE_SYS_PARAM_H
4269 # include <sys/param.h>
4270 # ifdef EXEC_PAGESIZE
4271 # define getpagesize() EXEC_PAGESIZE
4272 # else /* no EXEC_PAGESIZE */
4273 # ifdef NBPG
4274 # define getpagesize() NBPG * CLSIZE
4275 # ifndef CLSIZE
4276 # define CLSIZE 1
4277 # endif /* no CLSIZE */
4278 # else /* no NBPG */
4279 # ifdef NBPC
4280 # define getpagesize() NBPC
4281 # else /* no NBPC */
4282 # ifdef PAGESIZE
4283 # define getpagesize() PAGESIZE
4284 # endif /* PAGESIZE */
4285 # endif /* no NBPC */
4286 # endif /* no NBPG */
4287 # endif /* no EXEC_PAGESIZE */
4288 # else /* no HAVE_SYS_PARAM_H */
4289 # define getpagesize() 8192 /* punt totally */
4290 # endif /* no HAVE_SYS_PARAM_H */
4291 # endif /* no _SC_PAGESIZE */
4292
4293 #endif /* no HAVE_GETPAGESIZE */
4294
4295 int
4296 main ()
4297 {
4298 char *data, *data2, *data3;
4299 int i, pagesize;
4300 int fd;
4301
4302 pagesize = getpagesize ();
4303
4304 /* First, make a file with some known garbage in it. */
4305 data = (char *) malloc (pagesize);
4306 if (!data)
4307 exit (1);
4308 for (i = 0; i < pagesize; ++i)
4309 *(data + i) = rand ();
4310 umask (0);
4311 fd = creat ("conftest.mmap", 0600);
4312 if (fd < 0)
4313 exit (1);
4314 if (write (fd, data, pagesize) != pagesize)
4315 exit (1);
4316 close (fd);
4317
4318 /* Next, try to mmap the file at a fixed address which already has
4319 something else allocated at it. If we can, also make sure that
4320 we see the same garbage. */
4321 fd = open ("conftest.mmap", O_RDWR);
4322 if (fd < 0)
4323 exit (1);
4324 data2 = (char *) malloc (2 * pagesize);
4325 if (!data2)
4326 exit (1);
4327 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4328 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4329 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4330 exit (1);
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data2 + i))
4333 exit (1);
4334
4335 /* Finally, make sure that changes to the mapped area do not
4336 percolate back to the file as seen by read(). (This is a bug on
4337 some variants of i386 svr4.0.) */
4338 for (i = 0; i < pagesize; ++i)
4339 *(data2 + i) = *(data2 + i) + 1;
4340 data3 = (char *) malloc (pagesize);
4341 if (!data3)
4342 exit (1);
4343 if (read (fd, data3, pagesize) != pagesize)
4344 exit (1);
4345 for (i = 0; i < pagesize; ++i)
4346 if (*(data + i) != *(data3 + i))
4347 exit (1);
4348 close (fd);
4349 exit (0);
4350 }
4351 _ACEOF
4352 rm -f conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354 (eval $ac_link) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 (eval $ac_try) 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; }; then
4363 ac_cv_func_mmap_fixed_mapped=yes
4364 else
4365 echo "$as_me: program exited with status $ac_status" >&5
4366 echo "$as_me: failed program was:" >&5
4367 sed 's/^/| /' conftest.$ac_ext >&5
4368
4369 ( exit $ac_status )
4370 ac_cv_func_mmap_fixed_mapped=no
4371 fi
4372 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4373 fi
4374 fi
4375 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4376 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4378
4379 cat >>confdefs.h <<\_ACEOF
4380 #define HAVE_MMAP 1
4381 _ACEOF
4382
4383 fi
4384 rm -f conftest.mmap
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4397 unistd.h values.h sys/param.h
4398 do
4399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo "$as_me:$LINENO: checking for $ac_header" >&5
4402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 fi
4406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4408 else
4409 # Is the header compilable?
4410 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4412 cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h. */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4418 $ac_includes_default
4419 #include <$ac_header>
4420 _ACEOF
4421 rm -f conftest.$ac_objext
4422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4423 (eval $ac_compile) 2>conftest.er1
4424 ac_status=$?
4425 grep -v '^ *+' conftest.er1 >conftest.err
4426 rm -f conftest.er1
4427 cat conftest.err >&5
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } &&
4430 { ac_try='test -z "$ac_c_werror_flag"
4431 || test ! -s conftest.err'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; } &&
4437 { ac_try='test -s conftest.$ac_objext'
4438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439 (eval $ac_try) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; }; then
4443 ac_header_compiler=yes
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 ac_header_compiler=no
4449 fi
4450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4451 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4452 echo "${ECHO_T}$ac_header_compiler" >&6
4453
4454 # Is the header present?
4455 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <$ac_header>
4464 _ACEOF
4465 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null; then
4473 if test -s conftest.err; then
4474 ac_cpp_err=$ac_c_preproc_warn_flag
4475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476 else
4477 ac_cpp_err=
4478 fi
4479 else
4480 ac_cpp_err=yes
4481 fi
4482 if test -z "$ac_cpp_err"; then
4483 ac_header_preproc=yes
4484 else
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 ac_header_preproc=no
4489 fi
4490 rm -f conftest.err conftest.$ac_ext
4491 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4492 echo "${ECHO_T}$ac_header_preproc" >&6
4493
4494 # So? What about this header?
4495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4496 yes:no: )
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4501 ac_header_preproc=yes
4502 ;;
4503 no:yes:* )
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4516 (
4517 cat <<\_ASBOX
4518 ## ------------------------------------------ ##
4519 ## Report this to the AC_PACKAGE_NAME lists. ##
4520 ## ------------------------------------------ ##
4521 _ASBOX
4522 ) |
4523 sed "s/^/$as_me: WARNING: /" >&2
4524 ;;
4525 esac
4526 echo "$as_me:$LINENO: checking for $ac_header" >&5
4527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 eval "$as_ac_Header=\$ac_header_preproc"
4532 fi
4533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4535
4536 fi
4537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4538 cat >>confdefs.h <<_ACEOF
4539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4540 _ACEOF
4541
4542 fi
4543
4544 done
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4557 __argz_count __argz_stringify __argz_next
4558 do
4559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4560 echo "$as_me:$LINENO: checking for $ac_func" >&5
4561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_var+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 cat >conftest.$ac_ext <<_ACEOF
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4573 #define $ac_func innocuous_$ac_func
4574
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char $ac_func (); below.
4577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4578 <limits.h> exists even on freestanding compilers. */
4579
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585
4586 #undef $ac_func
4587
4588 /* Override any gcc2 internal prototype to avoid an error. */
4589 #ifdef __cplusplus
4590 extern "C"
4591 {
4592 #endif
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4595 char $ac_func ();
4596 /* The GNU C library defines this for functions which it implements
4597 to always fail with ENOSYS. Some functions are actually named
4598 something starting with __ and the normal name is an alias. */
4599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4600 choke me
4601 #else
4602 char (*f) () = $ac_func;
4603 #endif
4604 #ifdef __cplusplus
4605 }
4606 #endif
4607
4608 int
4609 main ()
4610 {
4611 return f != $ac_func;
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 rm -f conftest.$ac_objext conftest$ac_exeext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618 (eval $ac_link) 2>conftest.er1
4619 ac_status=$?
4620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
4625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest$ac_exeext'
4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 eval "$as_ac_var=yes"
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 eval "$as_ac_var=no"
4644 fi
4645 rm -f conftest.err conftest.$ac_objext \
4646 conftest$ac_exeext conftest.$ac_ext
4647 fi
4648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4650 if test `eval echo '${'$as_ac_var'}'` = yes; then
4651 cat >>confdefs.h <<_ACEOF
4652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4653 _ACEOF
4654
4655 fi
4656 done
4657
4658
4659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4660
4661 for ac_func in stpcpy
4662 do
4663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4664 echo "$as_me:$LINENO: checking for $ac_func" >&5
4665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4666 if eval "test \"\${$as_ac_var+set}\" = set"; then
4667 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 else
4669 cat >conftest.$ac_ext <<_ACEOF
4670 /* confdefs.h. */
4671 _ACEOF
4672 cat confdefs.h >>conftest.$ac_ext
4673 cat >>conftest.$ac_ext <<_ACEOF
4674 /* end confdefs.h. */
4675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4677 #define $ac_func innocuous_$ac_func
4678
4679 /* System header to define __stub macros and hopefully few prototypes,
4680 which can conflict with char $ac_func (); below.
4681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4682 <limits.h> exists even on freestanding compilers. */
4683
4684 #ifdef __STDC__
4685 # include <limits.h>
4686 #else
4687 # include <assert.h>
4688 #endif
4689
4690 #undef $ac_func
4691
4692 /* Override any gcc2 internal prototype to avoid an error. */
4693 #ifdef __cplusplus
4694 extern "C"
4695 {
4696 #endif
4697 /* We use char because int might match the return type of a gcc2
4698 builtin and then its argument prototype would still apply. */
4699 char $ac_func ();
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4704 choke me
4705 #else
4706 char (*f) () = $ac_func;
4707 #endif
4708 #ifdef __cplusplus
4709 }
4710 #endif
4711
4712 int
4713 main ()
4714 {
4715 return f != $ac_func;
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext conftest$ac_exeext
4721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4722 (eval $ac_link) 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -z "$ac_c_werror_flag"
4730 || test ! -s conftest.err'
4731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732 (eval $ac_try) 2>&5
4733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 eval "$as_ac_var=yes"
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 eval "$as_ac_var=no"
4748 fi
4749 rm -f conftest.err conftest.$ac_objext \
4750 conftest$ac_exeext conftest.$ac_ext
4751 fi
4752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4754 if test `eval echo '${'$as_ac_var'}'` = yes; then
4755 cat >>confdefs.h <<_ACEOF
4756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4757 _ACEOF
4758
4759 fi
4760 done
4761
4762 fi
4763 if test "${ac_cv_func_stpcpy}" = "yes"; then
4764
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_STPCPY 1
4767 _ACEOF
4768
4769 fi
4770
4771 if test $ac_cv_header_locale_h = yes; then
4772 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
4773 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
4774 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 #include <locale.h>
4784 int
4785 main ()
4786 {
4787 return LC_MESSAGES
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 rm -f conftest.$ac_objext conftest$ac_exeext
4793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4794 (eval $ac_link) 2>conftest.er1
4795 ac_status=$?
4796 grep -v '^ *+' conftest.er1 >conftest.err
4797 rm -f conftest.er1
4798 cat conftest.err >&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); } &&
4801 { ac_try='test -z "$ac_c_werror_flag"
4802 || test ! -s conftest.err'
4803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 (eval $ac_try) 2>&5
4805 ac_status=$?
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); }; } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 am_cv_val_LC_MESSAGES=yes
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 am_cv_val_LC_MESSAGES=no
4820 fi
4821 rm -f conftest.err conftest.$ac_objext \
4822 conftest$ac_exeext conftest.$ac_ext
4823 fi
4824 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
4825 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
4826 if test $am_cv_val_LC_MESSAGES = yes; then
4827
4828 cat >>confdefs.h <<\_ACEOF
4829 #define HAVE_LC_MESSAGES 1
4830 _ACEOF
4831
4832 fi
4833 fi
4834 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4835 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4836 # Check whether --enable-nls or --disable-nls was given.
4837 if test "${enable_nls+set}" = set; then
4838 enableval="$enable_nls"
4839 USE_NLS=$enableval
4840 else
4841 USE_NLS=yes
4842 fi;
4843 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4844 echo "${ECHO_T}$USE_NLS" >&6
4845
4846
4847 USE_INCLUDED_LIBINTL=no
4848
4849 if test "$USE_NLS" = "yes"; then
4850
4851 cat >>confdefs.h <<\_ACEOF
4852 #define ENABLE_NLS 1
4853 _ACEOF
4854
4855 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
4856 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
4857
4858 # Check whether --with-included-gettext or --without-included-gettext was given.
4859 if test "${with_included_gettext+set}" = set; then
4860 withval="$with_included_gettext"
4861 nls_cv_force_use_gnu_gettext=$withval
4862 else
4863 nls_cv_force_use_gnu_gettext=no
4864 fi;
4865 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
4866 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
4867
4868 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4869 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4870 nls_cv_header_intl=
4871 nls_cv_header_libgt=
4872 CATOBJEXT=
4873
4874 if test "${ac_cv_header_libintl_h+set}" = set; then
4875 echo "$as_me:$LINENO: checking for libintl.h" >&5
4876 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
4877 if test "${ac_cv_header_libintl_h+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 fi
4880 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
4881 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
4882 else
4883 # Is the header compilable?
4884 echo "$as_me:$LINENO: checking libintl.h usability" >&5
4885 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
4886 cat >conftest.$ac_ext <<_ACEOF
4887 /* confdefs.h. */
4888 _ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4892 $ac_includes_default
4893 #include <libintl.h>
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -z "$ac_c_werror_flag"
4905 || test ! -s conftest.err'
4906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907 (eval $ac_try) 2>&5
4908 ac_status=$?
4909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910 (exit $ac_status); }; } &&
4911 { ac_try='test -s conftest.$ac_objext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 ac_header_compiler=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_compiler=no
4923 fi
4924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4926 echo "${ECHO_T}$ac_header_compiler" >&6
4927
4928 # Is the header present?
4929 echo "$as_me:$LINENO: checking libintl.h presence" >&5
4930 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <libintl.h>
4938 _ACEOF
4939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null; then
4947 if test -s conftest.err; then
4948 ac_cpp_err=$ac_c_preproc_warn_flag
4949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4950 else
4951 ac_cpp_err=
4952 fi
4953 else
4954 ac_cpp_err=yes
4955 fi
4956 if test -z "$ac_cpp_err"; then
4957 ac_header_preproc=yes
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 ac_header_preproc=no
4963 fi
4964 rm -f conftest.err conftest.$ac_ext
4965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4966 echo "${ECHO_T}$ac_header_preproc" >&6
4967
4968 # So? What about this header?
4969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4970 yes:no: )
4971 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4972 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4973 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
4974 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
4975 ac_header_preproc=yes
4976 ;;
4977 no:yes:* )
4978 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
4979 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
4980 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
4981 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
4982 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
4983 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
4984 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
4985 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4986 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
4987 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
4988 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
4989 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
4990 (
4991 cat <<\_ASBOX
4992 ## ------------------------------------------ ##
4993 ## Report this to the AC_PACKAGE_NAME lists. ##
4994 ## ------------------------------------------ ##
4995 _ASBOX
4996 ) |
4997 sed "s/^/$as_me: WARNING: /" >&2
4998 ;;
4999 esac
5000 echo "$as_me:$LINENO: checking for libintl.h" >&5
5001 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5002 if test "${ac_cv_header_libintl_h+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 ac_cv_header_libintl_h=$ac_header_preproc
5006 fi
5007 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5008 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5009
5010 fi
5011 if test $ac_cv_header_libintl_h = yes; then
5012 echo "$as_me:$LINENO: checking for gettext in libc" >&5
5013 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5014 if test "${gt_cv_func_gettext_libc+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 else
5017 cat >conftest.$ac_ext <<_ACEOF
5018 /* confdefs.h. */
5019 _ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 #include <libintl.h>
5024 int
5025 main ()
5026 {
5027 return (int) gettext ("")
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>conftest.er1
5035 ac_status=$?
5036 grep -v '^ *+' conftest.er1 >conftest.err
5037 rm -f conftest.er1
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 (eval $ac_try) 2>&5
5045 ac_status=$?
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest$ac_exeext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 (eval $ac_try) 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5054 gt_cv_func_gettext_libc=yes
5055 else
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5058
5059 gt_cv_func_gettext_libc=no
5060 fi
5061 rm -f conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5063 fi
5064 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
5065 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5066
5067 if test "$gt_cv_func_gettext_libc" != "yes"; then
5068 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
5069 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5070 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 else
5073 ac_check_lib_save_LIBS=$LIBS
5074 LIBS="-lintl $LIBS"
5075 cat >conftest.$ac_ext <<_ACEOF
5076 /* confdefs.h. */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081
5082 /* Override any gcc2 internal prototype to avoid an error. */
5083 #ifdef __cplusplus
5084 extern "C"
5085 #endif
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5088 char bindtextdomain ();
5089 int
5090 main ()
5091 {
5092 bindtextdomain ();
5093 ;
5094 return 0;
5095 }
5096 _ACEOF
5097 rm -f conftest.$ac_objext conftest$ac_exeext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5099 (eval $ac_link) 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -z "$ac_c_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_cv_lib_intl_bindtextdomain=yes
5120 else
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124 ac_cv_lib_intl_bindtextdomain=no
5125 fi
5126 rm -f conftest.err conftest.$ac_objext \
5127 conftest$ac_exeext conftest.$ac_ext
5128 LIBS=$ac_check_lib_save_LIBS
5129 fi
5130 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
5131 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5132 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5133 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
5134 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5135 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 cat >conftest.$ac_ext <<_ACEOF
5139 /* confdefs.h. */
5140 _ACEOF
5141 cat confdefs.h >>conftest.$ac_ext
5142 cat >>conftest.$ac_ext <<_ACEOF
5143 /* end confdefs.h. */
5144
5145 int
5146 main ()
5147 {
5148 return (int) gettext ("")
5149 ;
5150 return 0;
5151 }
5152 _ACEOF
5153 rm -f conftest.$ac_objext conftest$ac_exeext
5154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5155 (eval $ac_link) 2>conftest.er1
5156 ac_status=$?
5157 grep -v '^ *+' conftest.er1 >conftest.err
5158 rm -f conftest.er1
5159 cat conftest.err >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); } &&
5162 { ac_try='test -z "$ac_c_werror_flag"
5163 || test ! -s conftest.err'
5164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; } &&
5169 { ac_try='test -s conftest$ac_exeext'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5171 (eval $ac_try) 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; }; then
5175 gt_cv_func_gettext_libintl=yes
5176 else
5177 echo "$as_me: failed program was:" >&5
5178 sed 's/^/| /' conftest.$ac_ext >&5
5179
5180 gt_cv_func_gettext_libintl=no
5181 fi
5182 rm -f conftest.err conftest.$ac_objext \
5183 conftest$ac_exeext conftest.$ac_ext
5184 fi
5185 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
5186 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5187 fi
5188
5189 fi
5190
5191 if test "$gt_cv_func_gettext_libc" = "yes" \
5192 || test "$gt_cv_func_gettext_libintl" = "yes"; then
5193
5194 cat >>confdefs.h <<\_ACEOF
5195 #define HAVE_GETTEXT 1
5196 _ACEOF
5197
5198 # Extract the first word of "msgfmt", so it can be a program name with args.
5199 set dummy msgfmt; ac_word=$2
5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5202 if test "${ac_cv_path_MSGFMT+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 case "$MSGFMT" in
5206 /*)
5207 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5208 ;;
5209 *)
5210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5211 for ac_dir in $PATH; do
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f $ac_dir/$ac_word; then
5214 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5215 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5216 break
5217 fi
5218 fi
5219 done
5220 IFS="$ac_save_ifs"
5221 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
5222 ;;
5223 esac
5224 fi
5225 MSGFMT="$ac_cv_path_MSGFMT"
5226 if test -n "$MSGFMT"; then
5227 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5228 echo "${ECHO_T}$MSGFMT" >&6
5229 else
5230 echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6
5232 fi
5233 if test "$MSGFMT" != "no"; then
5234
5235 for ac_func in dcgettext
5236 do
5237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5238 echo "$as_me:$LINENO: checking for $ac_func" >&5
5239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5240 if eval "test \"\${$as_ac_var+set}\" = set"; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5251 #define $ac_func innocuous_$ac_func
5252
5253 /* System header to define __stub macros and hopefully few prototypes,
5254 which can conflict with char $ac_func (); below.
5255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5256 <limits.h> exists even on freestanding compilers. */
5257
5258 #ifdef __STDC__
5259 # include <limits.h>
5260 #else
5261 # include <assert.h>
5262 #endif
5263
5264 #undef $ac_func
5265
5266 /* Override any gcc2 internal prototype to avoid an error. */
5267 #ifdef __cplusplus
5268 extern "C"
5269 {
5270 #endif
5271 /* We use char because int might match the return type of a gcc2
5272 builtin and then its argument prototype would still apply. */
5273 char $ac_func ();
5274 /* The GNU C library defines this for functions which it implements
5275 to always fail with ENOSYS. Some functions are actually named
5276 something starting with __ and the normal name is an alias. */
5277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5278 choke me
5279 #else
5280 char (*f) () = $ac_func;
5281 #endif
5282 #ifdef __cplusplus
5283 }
5284 #endif
5285
5286 int
5287 main ()
5288 {
5289 return f != $ac_func;
5290 ;
5291 return 0;
5292 }
5293 _ACEOF
5294 rm -f conftest.$ac_objext conftest$ac_exeext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5296 (eval $ac_link) 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag"
5304 || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5306 (eval $ac_try) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest$ac_exeext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 eval "$as_ac_var=yes"
5317 else
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5320
5321 eval "$as_ac_var=no"
5322 fi
5323 rm -f conftest.err conftest.$ac_objext \
5324 conftest$ac_exeext conftest.$ac_ext
5325 fi
5326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5328 if test `eval echo '${'$as_ac_var'}'` = yes; then
5329 cat >>confdefs.h <<_ACEOF
5330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5331 _ACEOF
5332
5333 fi
5334 done
5335
5336 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5337 set dummy gmsgfmt; ac_word=$2
5338 echo "$as_me:$LINENO: checking for $ac_word" >&5
5339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342 else
5343 case $GMSGFMT in
5344 [\\/]* | ?:[\\/]*)
5345 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5346 ;;
5347 *)
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5350 do
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5355 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5358 fi
5359 done
5360 done
5361
5362 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5363 ;;
5364 esac
5365 fi
5366 GMSGFMT=$ac_cv_path_GMSGFMT
5367
5368 if test -n "$GMSGFMT"; then
5369 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5370 echo "${ECHO_T}$GMSGFMT" >&6
5371 else
5372 echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6
5374 fi
5375
5376 # Extract the first word of "xgettext", so it can be a program name with args.
5377 set dummy xgettext; ac_word=$2
5378 echo "$as_me:$LINENO: checking for $ac_word" >&5
5379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5380 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 else
5383 case "$XGETTEXT" in
5384 /*)
5385 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5386 ;;
5387 *)
5388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5389 for ac_dir in $PATH; do
5390 test -z "$ac_dir" && ac_dir=.
5391 if test -f $ac_dir/$ac_word; then
5392 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5393 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5394 break
5395 fi
5396 fi
5397 done
5398 IFS="$ac_save_ifs"
5399 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5400 ;;
5401 esac
5402 fi
5403 XGETTEXT="$ac_cv_path_XGETTEXT"
5404 if test -n "$XGETTEXT"; then
5405 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5406 echo "${ECHO_T}$XGETTEXT" >&6
5407 else
5408 echo "$as_me:$LINENO: result: no" >&5
5409 echo "${ECHO_T}no" >&6
5410 fi
5411
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418
5419 int
5420 main ()
5421 {
5422 extern int _nl_msg_cat_cntr;
5423 return _nl_msg_cat_cntr
5424 ;
5425 return 0;
5426 }
5427 _ACEOF
5428 rm -f conftest.$ac_objext conftest$ac_exeext
5429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5430 (eval $ac_link) 2>conftest.er1
5431 ac_status=$?
5432 grep -v '^ *+' conftest.er1 >conftest.err
5433 rm -f conftest.er1
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -z "$ac_c_werror_flag"
5438 || test ! -s conftest.err'
5439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5440 (eval $ac_try) 2>&5
5441 ac_status=$?
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); }; } &&
5444 { ac_try='test -s conftest$ac_exeext'
5445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5446 (eval $ac_try) 2>&5
5447 ac_status=$?
5448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449 (exit $ac_status); }; }; then
5450 CATOBJEXT=.gmo
5451 DATADIRNAME=share
5452 else
5453 echo "$as_me: failed program was:" >&5
5454 sed 's/^/| /' conftest.$ac_ext >&5
5455
5456 CATOBJEXT=.mo
5457 DATADIRNAME=lib
5458 fi
5459 rm -f conftest.err conftest.$ac_objext \
5460 conftest$ac_exeext conftest.$ac_ext
5461 INSTOBJEXT=.mo
5462 fi
5463 fi
5464
5465 fi
5466
5467
5468
5469
5470 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
5471 # Neither gettext nor catgets in included in the C library.
5472 # Fall back on GNU gettext library (assuming it is present).
5473 nls_cv_use_gnu_gettext=yes
5474 fi
5475 fi
5476
5477 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5478 INTLOBJS="\$(GETTOBJS)"
5479 # Extract the first word of "msgfmt", so it can be a program name with args.
5480 set dummy msgfmt; ac_word=$2
5481 echo "$as_me:$LINENO: checking for $ac_word" >&5
5482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5483 if test "${ac_cv_path_MSGFMT+set}" = set; then
5484 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486 case "$MSGFMT" in
5487 /*)
5488 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5489 ;;
5490 *)
5491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5492 for ac_dir in $PATH; do
5493 test -z "$ac_dir" && ac_dir=.
5494 if test -f $ac_dir/$ac_word; then
5495 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5496 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5497 break
5498 fi
5499 fi
5500 done
5501 IFS="$ac_save_ifs"
5502 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
5503 ;;
5504 esac
5505 fi
5506 MSGFMT="$ac_cv_path_MSGFMT"
5507 if test -n "$MSGFMT"; then
5508 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5509 echo "${ECHO_T}$MSGFMT" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512 echo "${ECHO_T}no" >&6
5513 fi
5514
5515 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5516 set dummy gmsgfmt; ac_word=$2
5517 echo "$as_me:$LINENO: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5519 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5521 else
5522 case $GMSGFMT in
5523 [\\/]* | ?:[\\/]*)
5524 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5525 ;;
5526 *)
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540
5541 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5542 ;;
5543 esac
5544 fi
5545 GMSGFMT=$ac_cv_path_GMSGFMT
5546
5547 if test -n "$GMSGFMT"; then
5548 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5549 echo "${ECHO_T}$GMSGFMT" >&6
5550 else
5551 echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6
5553 fi
5554
5555 # Extract the first word of "xgettext", so it can be a program name with args.
5556 set dummy xgettext; ac_word=$2
5557 echo "$as_me:$LINENO: checking for $ac_word" >&5
5558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 case "$XGETTEXT" in
5563 /*)
5564 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5565 ;;
5566 *)
5567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5568 for ac_dir in $PATH; do
5569 test -z "$ac_dir" && ac_dir=.
5570 if test -f $ac_dir/$ac_word; then
5571 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5572 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5573 break
5574 fi
5575 fi
5576 done
5577 IFS="$ac_save_ifs"
5578 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5579 ;;
5580 esac
5581 fi
5582 XGETTEXT="$ac_cv_path_XGETTEXT"
5583 if test -n "$XGETTEXT"; then
5584 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5585 echo "${ECHO_T}$XGETTEXT" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5589 fi
5590
5591
5592 USE_INCLUDED_LIBINTL=yes
5593 CATOBJEXT=.gmo
5594 INSTOBJEXT=.mo
5595 DATADIRNAME=share
5596 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5597 INTLLIBS=$INTLDEPS
5598 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5599 nls_cv_header_intl=libintl.h
5600 nls_cv_header_libgt=libgettext.h
5601 fi
5602
5603 if test "$XGETTEXT" != ":"; then
5604 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5605 : ;
5606 else
5607 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5608 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5609 XGETTEXT=":"
5610 fi
5611 fi
5612
5613 # We need to process the po/ directory.
5614 POSUB=po
5615 else
5616 DATADIRNAME=share
5617 nls_cv_header_intl=libintl.h
5618 nls_cv_header_libgt=libgettext.h
5619 fi
5620
5621 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5622 # because some of the sources are only built for this goal.
5623 if test "$PACKAGE" = gettext; then
5624 USE_NLS=yes
5625 USE_INCLUDED_LIBINTL=yes
5626 fi
5627
5628 for lang in $ALL_LINGUAS; do
5629 GMOFILES="$GMOFILES $lang.gmo"
5630 POFILES="$POFILES $lang.po"
5631 done
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646 if test "x$CATOBJEXT" != "x"; then
5647 if test "x$ALL_LINGUAS" = "x"; then
5648 LINGUAS=
5649 else
5650 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5651 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5652 NEW_LINGUAS=
5653 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5654 case "$ALL_LINGUAS" in
5655 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5656 esac
5657 done
5658 LINGUAS=$NEW_LINGUAS
5659 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5660 echo "${ECHO_T}$LINGUAS" >&6
5661 fi
5662
5663 if test -n "$LINGUAS"; then
5664 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5665 fi
5666 fi
5667
5668 if test $ac_cv_header_locale_h = yes; then
5669 INCLUDE_LOCALE_H="#include <locale.h>"
5670 else
5671 INCLUDE_LOCALE_H="\
5672 /* The system does not provide the header <locale.h>. Take care yourself. */"
5673 fi
5674
5675
5676 if test -f $srcdir/po2tbl.sed.in; then
5677 if test "$CATOBJEXT" = ".cat"; then
5678 if test "${ac_cv_header_linux_version_h+set}" = set; then
5679 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5680 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5681 if test "${ac_cv_header_linux_version_h+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 fi
5684 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5685 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5686 else
5687 # Is the header compilable?
5688 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
5689 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 $ac_includes_default
5697 #include <linux/version.h>
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_header_compiler=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 ac_header_compiler=no
5727 fi
5728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5730 echo "${ECHO_T}$ac_header_compiler" >&6
5731
5732 # Is the header present?
5733 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
5734 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h. */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 #include <linux/version.h>
5742 _ACEOF
5743 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5744 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5745 ac_status=$?
5746 grep -v '^ *+' conftest.er1 >conftest.err
5747 rm -f conftest.er1
5748 cat conftest.err >&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } >/dev/null; then
5751 if test -s conftest.err; then
5752 ac_cpp_err=$ac_c_preproc_warn_flag
5753 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5754 else
5755 ac_cpp_err=
5756 fi
5757 else
5758 ac_cpp_err=yes
5759 fi
5760 if test -z "$ac_cpp_err"; then
5761 ac_header_preproc=yes
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 ac_header_preproc=no
5767 fi
5768 rm -f conftest.err conftest.$ac_ext
5769 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5770 echo "${ECHO_T}$ac_header_preproc" >&6
5771
5772 # So? What about this header?
5773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5774 yes:no: )
5775 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
5776 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
5778 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
5779 ac_header_preproc=yes
5780 ;;
5781 no:yes:* )
5782 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
5783 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
5785 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
5787 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
5788 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
5789 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
5790 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
5791 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
5792 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
5793 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
5794 (
5795 cat <<\_ASBOX
5796 ## ------------------------------------------ ##
5797 ## Report this to the AC_PACKAGE_NAME lists. ##
5798 ## ------------------------------------------ ##
5799 _ASBOX
5800 ) |
5801 sed "s/^/$as_me: WARNING: /" >&2
5802 ;;
5803 esac
5804 echo "$as_me:$LINENO: checking for linux/version.h" >&5
5805 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5806 if test "${ac_cv_header_linux_version_h+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809 ac_cv_header_linux_version_h=$ac_header_preproc
5810 fi
5811 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
5812 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5813
5814 fi
5815 if test $ac_cv_header_linux_version_h = yes; then
5816 msgformat=linux
5817 else
5818 msgformat=xopen
5819 fi
5820
5821
5822
5823 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5824 fi
5825 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5826 $srcdir/po2tbl.sed.in > po2tbl.sed
5827 fi
5828
5829 if test "$PACKAGE" = "gettext"; then
5830 GT_NO="#NO#"
5831 GT_YES=
5832 else
5833 GT_NO=
5834 GT_YES="#YES#"
5835 fi
5836
5837
5838
5839 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5840
5841
5842 l=
5843
5844
5845 if test -f $srcdir/po/POTFILES.in; then
5846 test -d po || mkdir po
5847 if test "x$srcdir" != "x."; then
5848 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5849 posrcprefix="$srcdir/"
5850 else
5851 posrcprefix="../$srcdir/"
5852 fi
5853 else
5854 posrcprefix="../"
5855 fi
5856 rm -f po/POTFILES
5857 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5858 < $srcdir/po/POTFILES.in > po/POTFILES
5859 fi
5860
5861
5862 localedir='${datadir}/locale'
5863
5864
5865 if test "x$POSUB" != x; then
5866
5867 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
5868 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5869 # Look for .po and .gmo files in the source directory.
5870 CATALOGS=
5871 XLINGUAS=
5872 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5873 # If there aren't any .gmo files the shell will give us the
5874 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5875 # weeded out.
5876 case "$cat" in *\**)
5877 continue;;
5878 esac
5879 # The quadruple backslash is collapsed to a double backslash
5880 # by the backticks, then collapsed again by the double quotes,
5881 # leaving us with one backslash in the sed expression (right
5882 # before the dot that mustn't act as a wildcard).
5883 cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"`
5884 lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"`
5885 # The user is allowed to set LINGUAS to a list of languages to
5886 # install catalogs for. If it's empty that means "all of them."
5887 if test "x$LINGUAS" = x; then
5888 CATALOGS="$CATALOGS $cat"
5889 XLINGUAS="$XLINGUAS $lang"
5890 else
5891 case "$LINGUAS" in *$lang*)
5892 CATALOGS="$CATALOGS $cat"
5893 XLINGUAS="$XLINGUAS $lang"
5894 ;;
5895 esac
5896 fi
5897 done
5898 LINGUAS="$XLINGUAS"
5899 echo "$as_me:$LINENO: result: $LINGUAS" >&5
5900 echo "${ECHO_T}$LINGUAS" >&6
5901
5902 CONFIG_ALL="$CONFIG_ALL all-po"
5903 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5904 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5905 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5906 fi
5907
5908 PACKAGE=gdb
5909
5910 cat >>confdefs.h <<_ACEOF
5911 #define PACKAGE "$PACKAGE"
5912 _ACEOF
5913
5914
5915
5916 debugdir=${libdir}/debug
5917
5918
5919 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
5920 if test "${with_separate_debug_dir+set}" = set; then
5921 withval="$with_separate_debug_dir"
5922 debugdir="${withval}"
5923 fi;
5924
5925
5926 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5927 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5928 ac_define_dir=`eval echo $debugdir`
5929 ac_define_dir=`eval echo $ac_define_dir`
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define DEBUGDIR "$ac_define_dir"
5933 _ACEOF
5934
5935
5936 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
5937
5938
5939
5940 subdirs="$subdirs doc testsuite"
5941
5942
5943 . $srcdir/configure.host
5944
5945 . $srcdir/configure.tgt
5946
5947 # Fetch the default architecture and default target vector from BFD.
5948 targ=$target; . $srcdir/../bfd/config.bfd
5949
5950 # We only want the first architecture, so strip off the others if
5951 # there is more than one.
5952 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5953
5954 if test "x$targ_archs" != x; then
5955
5956 cat >>confdefs.h <<_ACEOF
5957 #define DEFAULT_BFD_ARCH $targ_archs
5958 _ACEOF
5959
5960 fi
5961 if test "x$targ_defvec" != x; then
5962
5963 cat >>confdefs.h <<_ACEOF
5964 #define DEFAULT_BFD_VEC $targ_defvec
5965 _ACEOF
5966
5967 fi
5968
5969 test "$program_prefix" != NONE &&
5970 program_transform_name="s,^,$program_prefix,;$program_transform_name"
5971 # Use a double $ so make ignores it.
5972 test "$program_suffix" != NONE &&
5973 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5974 # Double any \ or $. echo might interpret backslashes.
5975 # By default was `s,x,x', remove it if useless.
5976 cat <<\_ACEOF >conftest.sed
5977 s/[\\$]/&&/g;s/;s,x,x,$//
5978 _ACEOF
5979 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5980 rm conftest.sed
5981
5982
5983 # The CLI cannot be disabled yet, but may be in the future.
5984
5985 # Enable CLI.
5986 # Check whether --enable-gdbcli or --disable-gdbcli was given.
5987 if test "${enable_gdbcli+set}" = set; then
5988 enableval="$enable_gdbcli"
5989 case $enableval in
5990 yes)
5991 ;;
5992 no)
5993 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
5994 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
5995 { (exit 1); exit 1; }; } ;;
5996 *)
5997 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
5998 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
5999 { (exit 1); exit 1; }; } ;;
6000 esac
6001 else
6002 enable_gdbcli=yes
6003 fi;
6004 if test x"$enable_gdbcli" = xyes; then
6005 if test -d $srcdir/cli; then
6006 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6007 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6008 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6009 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6010 fi
6011 fi
6012
6013 # Enable MI.
6014 # Check whether --enable-gdbmi or --disable-gdbmi was given.
6015 if test "${enable_gdbmi+set}" = set; then
6016 enableval="$enable_gdbmi"
6017 case $enableval in
6018 yes | no)
6019 ;;
6020 *)
6021 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
6022 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
6023 { (exit 1); exit 1; }; } ;;
6024 esac
6025 else
6026 enable_gdbmi=yes
6027 fi;
6028 if test x"$enable_gdbmi" = xyes; then
6029 if test -d $srcdir/mi; then
6030 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6031 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6032 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6033 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6034 fi
6035 fi
6036
6037 # Enable TUI.
6038 # Check whether --enable-tui or --disable-tui was given.
6039 if test "${enable_tui+set}" = set; then
6040 enableval="$enable_tui"
6041 case $enableval in
6042 yes | no)
6043 ;;
6044 *)
6045 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
6046 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
6047 { (exit 1); exit 1; }; } ;;
6048 esac
6049 else
6050 enable_tui=yes
6051 fi;
6052
6053 # Enable gdbtk.
6054 # Check whether --enable-gdbtk or --disable-gdbtk was given.
6055 if test "${enable_gdbtk+set}" = set; then
6056 enableval="$enable_gdbtk"
6057 case $enableval in
6058 yes | no)
6059 ;;
6060 *)
6061 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
6062 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
6063 { (exit 1); exit 1; }; } ;;
6064 esac
6065 else
6066 if test -d $srcdir/gdbtk; then
6067 enable_gdbtk=yes
6068 else
6069 enable_gdbtk=no
6070 fi
6071 fi;
6072 # We unconditionally disable gdbtk tests on selected platforms.
6073 case $host_os in
6074 go32* | windows*)
6075 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
6076 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6077 enable_gdbtk=no ;;
6078 esac
6079
6080 # Libunwind support.
6081
6082 # Check whether --with-libunwind or --without-libunwind was given.
6083 if test "${with_libunwind+set}" = set; then
6084 withval="$with_libunwind"
6085 case "${withval}" in
6086 yes) enable_libunwind=yes ;;
6087 no) enable_libunwind=no ;;
6088 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
6089 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
6090 { (exit 1); exit 1; }; } ;;
6091 esac
6092 else
6093
6094
6095 for ac_header in libunwind.h
6096 do
6097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 fi
6104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106 else
6107 # Is the header compilable?
6108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 $ac_includes_default
6117 #include <$ac_header>
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 (eval $ac_compile) 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } &&
6128 { ac_try='test -z "$ac_c_werror_flag"
6129 || test ! -s conftest.err'
6130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131 (eval $ac_try) 2>&5
6132 ac_status=$?
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); }; } &&
6135 { ac_try='test -s conftest.$ac_objext'
6136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 (eval $ac_try) 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6141 ac_header_compiler=yes
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_header_compiler=no
6147 fi
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6150 echo "${ECHO_T}$ac_header_compiler" >&6
6151
6152 # Is the header present?
6153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <$ac_header>
6162 _ACEOF
6163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6165 ac_status=$?
6166 grep -v '^ *+' conftest.er1 >conftest.err
6167 rm -f conftest.er1
6168 cat conftest.err >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } >/dev/null; then
6171 if test -s conftest.err; then
6172 ac_cpp_err=$ac_c_preproc_warn_flag
6173 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6174 else
6175 ac_cpp_err=
6176 fi
6177 else
6178 ac_cpp_err=yes
6179 fi
6180 if test -z "$ac_cpp_err"; then
6181 ac_header_preproc=yes
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 ac_header_preproc=no
6187 fi
6188 rm -f conftest.err conftest.$ac_ext
6189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6190 echo "${ECHO_T}$ac_header_preproc" >&6
6191
6192 # So? What about this header?
6193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6194 yes:no: )
6195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6199 ac_header_preproc=yes
6200 ;;
6201 no:yes:* )
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6214 (
6215 cat <<\_ASBOX
6216 ## ------------------------------------------ ##
6217 ## Report this to the AC_PACKAGE_NAME lists. ##
6218 ## ------------------------------------------ ##
6219 _ASBOX
6220 ) |
6221 sed "s/^/$as_me: WARNING: /" >&2
6222 ;;
6223 esac
6224 echo "$as_me:$LINENO: checking for $ac_header" >&5
6225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229 eval "$as_ac_Header=\$ac_header_preproc"
6230 fi
6231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233
6234 fi
6235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6238 _ACEOF
6239
6240 fi
6241
6242 done
6243
6244
6245 for ac_header in libunwind-ia64.h
6246 do
6247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6249 echo "$as_me:$LINENO: checking for $ac_header" >&5
6250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 fi
6254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6256 else
6257 # Is the header compilable?
6258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6260 cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h. */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6267 #include <$ac_header>
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6271 (eval $ac_compile) 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_c_werror_flag"
6279 || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest.$ac_objext'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_header_compiler=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 ac_header_compiler=no
6297 fi
6298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6300 echo "${ECHO_T}$ac_header_compiler" >&6
6301
6302 # Is the header present?
6303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <$ac_header>
6312 _ACEOF
6313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } >/dev/null; then
6321 if test -s conftest.err; then
6322 ac_cpp_err=$ac_c_preproc_warn_flag
6323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6324 else
6325 ac_cpp_err=
6326 fi
6327 else
6328 ac_cpp_err=yes
6329 fi
6330 if test -z "$ac_cpp_err"; then
6331 ac_header_preproc=yes
6332 else
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336 ac_header_preproc=no
6337 fi
6338 rm -f conftest.err conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 echo "${ECHO_T}$ac_header_preproc" >&6
6341
6342 # So? What about this header?
6343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6344 yes:no: )
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6349 ac_header_preproc=yes
6350 ;;
6351 no:yes:* )
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6364 (
6365 cat <<\_ASBOX
6366 ## ------------------------------------------ ##
6367 ## Report this to the AC_PACKAGE_NAME lists. ##
6368 ## ------------------------------------------ ##
6369 _ASBOX
6370 ) |
6371 sed "s/^/$as_me: WARNING: /" >&2
6372 ;;
6373 esac
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 eval "$as_ac_Header=\$ac_header_preproc"
6380 fi
6381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6383
6384 fi
6385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6386 cat >>confdefs.h <<_ACEOF
6387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6388 _ACEOF
6389
6390 fi
6391
6392 done
6393
6394 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6395 enable_libunwind=yes;
6396 fi
6397
6398 fi;
6399
6400 if test x"$enable_libunwind" = xyes; then
6401
6402 for ac_header in libunwind.h
6403 do
6404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6406 echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 fi
6411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413 else
6414 # Is the header compilable?
6415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6418 /* confdefs.h. */
6419 _ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 $ac_includes_default
6424 #include <$ac_header>
6425 _ACEOF
6426 rm -f conftest.$ac_objext
6427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6428 (eval $ac_compile) 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -z "$ac_c_werror_flag"
6436 || test ! -s conftest.err'
6437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438 (eval $ac_try) 2>&5
6439 ac_status=$?
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); }; } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 (eval $ac_try) 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_header_compiler=yes
6449 else
6450 echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453 ac_header_compiler=no
6454 fi
6455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6457 echo "${ECHO_T}$ac_header_compiler" >&6
6458
6459 # Is the header present?
6460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <$ac_header>
6469 _ACEOF
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null; then
6478 if test -s conftest.err; then
6479 ac_cpp_err=$ac_c_preproc_warn_flag
6480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6481 else
6482 ac_cpp_err=
6483 fi
6484 else
6485 ac_cpp_err=yes
6486 fi
6487 if test -z "$ac_cpp_err"; then
6488 ac_header_preproc=yes
6489 else
6490 echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6492
6493 ac_header_preproc=no
6494 fi
6495 rm -f conftest.err conftest.$ac_ext
6496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6497 echo "${ECHO_T}$ac_header_preproc" >&6
6498
6499 # So? What about this header?
6500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6501 yes:no: )
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6506 ac_header_preproc=yes
6507 ;;
6508 no:yes:* )
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6521 (
6522 cat <<\_ASBOX
6523 ## ------------------------------------------ ##
6524 ## Report this to the AC_PACKAGE_NAME lists. ##
6525 ## ------------------------------------------ ##
6526 _ASBOX
6527 ) |
6528 sed "s/^/$as_me: WARNING: /" >&2
6529 ;;
6530 esac
6531 echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536 eval "$as_ac_Header=\$ac_header_preproc"
6537 fi
6538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540
6541 fi
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6545 _ACEOF
6546
6547 fi
6548
6549 done
6550
6551
6552 for ac_header in libunwind-ia64.h
6553 do
6554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 else
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6568 /* confdefs.h. */
6569 _ACEOF
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 #include <$ac_header>
6575 _ACEOF
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } &&
6585 { ac_try='test -z "$ac_c_werror_flag"
6586 || test ! -s conftest.err'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588 (eval $ac_try) 2>&5
6589 ac_status=$?
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try='test -s conftest.$ac_objext'
6593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6594 (eval $ac_try) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_header_compiler=yes
6599 else
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603 ac_header_compiler=no
6604 fi
6605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6607 echo "${ECHO_T}$ac_header_compiler" >&6
6608
6609 # Is the header present?
6610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6612 cat >conftest.$ac_ext <<_ACEOF
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6618 #include <$ac_header>
6619 _ACEOF
6620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev/null; then
6628 if test -s conftest.err; then
6629 ac_cpp_err=$ac_c_preproc_warn_flag
6630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6631 else
6632 ac_cpp_err=
6633 fi
6634 else
6635 ac_cpp_err=yes
6636 fi
6637 if test -z "$ac_cpp_err"; then
6638 ac_header_preproc=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_header_preproc=no
6644 fi
6645 rm -f conftest.err conftest.$ac_ext
6646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6647 echo "${ECHO_T}$ac_header_preproc" >&6
6648
6649 # So? What about this header?
6650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6651 yes:no: )
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6656 ac_header_preproc=yes
6657 ;;
6658 no:yes:* )
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6671 (
6672 cat <<\_ASBOX
6673 ## ------------------------------------------ ##
6674 ## Report this to the AC_PACKAGE_NAME lists. ##
6675 ## ------------------------------------------ ##
6676 _ASBOX
6677 ) |
6678 sed "s/^/$as_me: WARNING: /" >&2
6679 ;;
6680 esac
6681 echo "$as_me:$LINENO: checking for $ac_header" >&5
6682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 eval "$as_ac_Header=\$ac_header_preproc"
6687 fi
6688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6690
6691 fi
6692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6693 cat >>confdefs.h <<_ACEOF
6694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6695 _ACEOF
6696
6697 fi
6698
6699 done
6700
6701 cat >>confdefs.h <<\_ACEOF
6702 #define HAVE_LIBUNWIND 1
6703 _ACEOF
6704
6705 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6706 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6707 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6708 fi
6709
6710 # Profiling support.
6711 # Check whether --enable-profiling or --disable-profiling was given.
6712 if test "${enable_profiling+set}" = set; then
6713 enableval="$enable_profiling"
6714 case $enableval in
6715 yes | no)
6716 ;;
6717 *)
6718 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
6719 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
6720 { (exit 1); exit 1; }; } ;;
6721 esac
6722 else
6723 enable_profiling=no
6724 fi;
6725
6726
6727
6728 for ac_func in monstartup _mcleanup
6729 do
6730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6731 echo "$as_me:$LINENO: checking for $ac_func" >&5
6732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6733 if eval "test \"\${$as_ac_var+set}\" = set"; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736 cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h. */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6744 #define $ac_func innocuous_$ac_func
6745
6746 /* System header to define __stub macros and hopefully few prototypes,
6747 which can conflict with char $ac_func (); below.
6748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6749 <limits.h> exists even on freestanding compilers. */
6750
6751 #ifdef __STDC__
6752 # include <limits.h>
6753 #else
6754 # include <assert.h>
6755 #endif
6756
6757 #undef $ac_func
6758
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 #ifdef __cplusplus
6761 extern "C"
6762 {
6763 #endif
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6766 char $ac_func ();
6767 /* The GNU C library defines this for functions which it implements
6768 to always fail with ENOSYS. Some functions are actually named
6769 something starting with __ and the normal name is an alias. */
6770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6771 choke me
6772 #else
6773 char (*f) () = $ac_func;
6774 #endif
6775 #ifdef __cplusplus
6776 }
6777 #endif
6778
6779 int
6780 main ()
6781 {
6782 return f != $ac_func;
6783 ;
6784 return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6789 (eval $ac_link) 2>conftest.er1
6790 ac_status=$?
6791 grep -v '^ *+' conftest.er1 >conftest.err
6792 rm -f conftest.er1
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try='test -z "$ac_c_werror_flag"
6797 || test ! -s conftest.err'
6798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6799 (eval $ac_try) 2>&5
6800 ac_status=$?
6801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); }; } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805 (eval $ac_try) 2>&5
6806 ac_status=$?
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 eval "$as_ac_var=yes"
6810 else
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 eval "$as_ac_var=no"
6815 fi
6816 rm -f conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 fi
6819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6821 if test `eval echo '${'$as_ac_var'}'` = yes; then
6822 cat >>confdefs.h <<_ACEOF
6823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6824 _ACEOF
6825
6826 fi
6827 done
6828
6829 echo "$as_me:$LINENO: checking for _etext" >&5
6830 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
6831 if test "${ac_cv_var__etext+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h. */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6840 #include <stdlib.h>
6841 extern char _etext;
6842
6843 int
6844 main ()
6845 {
6846 free (&_etext);
6847 ;
6848 return 0;
6849 }
6850 _ACEOF
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6854 ac_status=$?
6855 grep -v '^ *+' conftest.er1 >conftest.err
6856 rm -f conftest.er1
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6863 (eval $ac_try) 2>&5
6864 ac_status=$?
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6869 (eval $ac_try) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6873 ac_cv_var__etext=yes
6874 else
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6877
6878 ac_cv_var__etext=no
6879 fi
6880 rm -f conftest.err conftest.$ac_objext \
6881 conftest$ac_exeext conftest.$ac_ext
6882 fi
6883 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
6884 echo "${ECHO_T}$ac_cv_var__etext" >&6
6885 if test $ac_cv_var__etext = yes; then
6886
6887 cat >>confdefs.h <<\_ACEOF
6888 #define HAVE__ETEXT 1
6889 _ACEOF
6890
6891 fi
6892 if test "$enable_profiling" = yes ; then
6893 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6894 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
6895 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
6896 { (exit 1); exit 1; }; }
6897 fi
6898 PROFILE_CFLAGS=-pg
6899 OLD_CFLAGS="$CFLAGS"
6900 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6901
6902 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
6903 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
6904 if test "${ac_cv_cc_supports_pg+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913
6914 int
6915 main ()
6916 {
6917 int x;
6918 ;
6919 return 0;
6920 }
6921 _ACEOF
6922 rm -f conftest.$ac_objext
6923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6924 (eval $ac_compile) 2>conftest.er1
6925 ac_status=$?
6926 grep -v '^ *+' conftest.er1 >conftest.err
6927 rm -f conftest.er1
6928 cat conftest.err >&5
6929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930 (exit $ac_status); } &&
6931 { ac_try='test -z "$ac_c_werror_flag"
6932 || test ! -s conftest.err'
6933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 (eval $ac_try) 2>&5
6935 ac_status=$?
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); }; } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 (eval $ac_try) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 ac_cv_cc_supports_pg=yes
6945 else
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6948
6949 ac_cv_cc_supports_pg=no
6950 fi
6951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6952 fi
6953 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
6954 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
6955
6956 if test $ac_cv_cc_supports_pg = no; then
6957 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
6958 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
6959 { (exit 1); exit 1; }; }
6960 fi
6961
6962 CFLAGS="$OLD_CFLAGS"
6963 fi
6964
6965 # --------------------- #
6966 # Checks for programs. #
6967 # --------------------- #
6968
6969 for ac_prog in gawk mawk nawk awk
6970 do
6971 # Extract the first word of "$ac_prog", so it can be a program name with args.
6972 set dummy $ac_prog; ac_word=$2
6973 echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6975 if test "${ac_cv_prog_AWK+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978 if test -n "$AWK"; then
6979 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6988 ac_cv_prog_AWK="$ac_prog"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992 done
6993 done
6994
6995 fi
6996 fi
6997 AWK=$ac_cv_prog_AWK
6998 if test -n "$AWK"; then
6999 echo "$as_me:$LINENO: result: $AWK" >&5
7000 echo "${ECHO_T}$AWK" >&6
7001 else
7002 echo "$as_me:$LINENO: result: no" >&5
7003 echo "${ECHO_T}no" >&6
7004 fi
7005
7006 test -n "$AWK" && break
7007 done
7008
7009 # Find a good install program. We prefer a C program (faster),
7010 # so one script is as good as another. But avoid the broken or
7011 # incompatible versions:
7012 # SysV /etc/install, /usr/sbin/install
7013 # SunOS /usr/etc/install
7014 # IRIX /sbin/install
7015 # AIX /bin/install
7016 # AmigaOS /C/install, which installs bootblocks on floppy discs
7017 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7018 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7019 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7020 # OS/2's system install, which has a completely different semantic
7021 # ./install, which can be erroneously created by make from ./install.sh.
7022 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7023 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7024 if test -z "$INSTALL"; then
7025 if test "${ac_cv_path_install+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 # Account for people who put trailing slashes in PATH elements.
7034 case $as_dir/ in
7035 ./ | .// | /cC/* | \
7036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7038 /usr/ucb/* ) ;;
7039 *)
7040 # OSF1 and SCO ODT 3.0 have their own names for install.
7041 # Don't use installbsd from OSF since it installs stuff as root
7042 # by default.
7043 for ac_prog in ginstall scoinst install; do
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7046 if test $ac_prog = install &&
7047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7048 # AIX install. It has an incompatible calling convention.
7049 :
7050 elif test $ac_prog = install &&
7051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7052 # program-specific install script used by HP pwplus--don't use.
7053 :
7054 else
7055 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7056 break 3
7057 fi
7058 fi
7059 done
7060 done
7061 ;;
7062 esac
7063 done
7064
7065
7066 fi
7067 if test "${ac_cv_path_install+set}" = set; then
7068 INSTALL=$ac_cv_path_install
7069 else
7070 # As a last resort, use the slow shell script. We don't cache a
7071 # path for INSTALL within a source directory, because that will
7072 # break other packages using the cache if that directory is
7073 # removed, or if the path is relative.
7074 INSTALL=$ac_install_sh
7075 fi
7076 fi
7077 echo "$as_me:$LINENO: result: $INSTALL" >&5
7078 echo "${ECHO_T}$INSTALL" >&6
7079
7080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081 # It thinks the first close brace ends the variable substitution.
7082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7083
7084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7085
7086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7087
7088 echo "$as_me:$LINENO: checking whether ln -s works" >&5
7089 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7090 LN_S=$as_ln_s
7091 if test "$LN_S" = "ln -s"; then
7092 echo "$as_me:$LINENO: result: yes" >&5
7093 echo "${ECHO_T}yes" >&6
7094 else
7095 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7096 echo "${ECHO_T}no, using $LN_S" >&6
7097 fi
7098
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 else
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7112 do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121 done
7122 done
7123
7124 fi
7125 fi
7126 RANLIB=$ac_cv_prog_RANLIB
7127 if test -n "$RANLIB"; then
7128 echo "$as_me:$LINENO: result: $RANLIB" >&5
7129 echo "${ECHO_T}$RANLIB" >&6
7130 else
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7133 fi
7134
7135 fi
7136 if test -z "$ac_cv_prog_RANLIB"; then
7137 ac_ct_RANLIB=$RANLIB
7138 # Extract the first word of "ranlib", so it can be a program name with args.
7139 set dummy ranlib; ac_word=$2
7140 echo "$as_me:$LINENO: checking for $ac_word" >&5
7141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145 if test -n "$ac_ct_RANLIB"; then
7146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_RANLIB="ranlib"
7156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161
7162 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7163 fi
7164 fi
7165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7166 if test -n "$ac_ct_RANLIB"; then
7167 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7168 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7169 else
7170 echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6
7172 fi
7173
7174 RANLIB=$ac_ct_RANLIB
7175 else
7176 RANLIB="$ac_cv_prog_RANLIB"
7177 fi
7178
7179 for ac_prog in 'bison -y' byacc
7180 do
7181 # Extract the first word of "$ac_prog", so it can be a program name with args.
7182 set dummy $ac_prog; ac_word=$2
7183 echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7185 if test "${ac_cv_prog_YACC+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188 if test -n "$YACC"; then
7189 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_YACC="$ac_prog"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202 done
7203 done
7204
7205 fi
7206 fi
7207 YACC=$ac_cv_prog_YACC
7208 if test -n "$YACC"; then
7209 echo "$as_me:$LINENO: result: $YACC" >&5
7210 echo "${ECHO_T}$YACC" >&6
7211 else
7212 echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6
7214 fi
7215
7216 test -n "$YACC" && break
7217 done
7218 test -n "$YACC" || YACC="yacc"
7219
7220
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}ar; ac_word=$2
7224 echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7226 if test "${ac_cv_prog_AR+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 if test -n "$AR"; then
7230 ac_cv_prog_AR="$AR" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7239 ac_cv_prog_AR="${ac_tool_prefix}ar"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243 done
7244 done
7245
7246 fi
7247 fi
7248 AR=$ac_cv_prog_AR
7249 if test -n "$AR"; then
7250 echo "$as_me:$LINENO: result: $AR" >&5
7251 echo "${ECHO_T}$AR" >&6
7252 else
7253 echo "$as_me:$LINENO: result: no" >&5
7254 echo "${ECHO_T}no" >&6
7255 fi
7256
7257 fi
7258 if test -z "$ac_cv_prog_AR"; then
7259 ac_ct_AR=$AR
7260 # Extract the first word of "ar", so it can be a program name with args.
7261 set dummy ar; ac_word=$2
7262 echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7264 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 if test -n "$ac_ct_AR"; then
7268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7269 else
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
7276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277 ac_cv_prog_ac_ct_AR="ar"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281 done
7282 done
7283
7284 fi
7285 fi
7286 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7287 if test -n "$ac_ct_AR"; then
7288 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7289 echo "${ECHO_T}$ac_ct_AR" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi
7294
7295 AR=$ac_ct_AR
7296 else
7297 AR="$ac_cv_prog_AR"
7298 fi
7299
7300 if test -n "$ac_tool_prefix"; then
7301 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7302 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7303 echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7305 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 if test -n "$DLLTOOL"; then
7309 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314 IFS=$as_save_IFS
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 break 2
7321 fi
7322 done
7323 done
7324
7325 fi
7326 fi
7327 DLLTOOL=$ac_cv_prog_DLLTOOL
7328 if test -n "$DLLTOOL"; then
7329 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7330 echo "${ECHO_T}$DLLTOOL" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6
7334 fi
7335
7336 fi
7337 if test -z "$ac_cv_prog_DLLTOOL"; then
7338 ac_ct_DLLTOOL=$DLLTOOL
7339 # Extract the first word of "dlltool", so it can be a program name with args.
7340 set dummy dlltool; ac_word=$2
7341 echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7343 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 if test -n "$ac_ct_DLLTOOL"; then
7347 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352 IFS=$as_save_IFS
7353 test -z "$as_dir" && as_dir=.
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7358 break 2
7359 fi
7360 done
7361 done
7362
7363 fi
7364 fi
7365 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7366 if test -n "$ac_ct_DLLTOOL"; then
7367 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7368 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
7369 else
7370 echo "$as_me:$LINENO: result: no" >&5
7371 echo "${ECHO_T}no" >&6
7372 fi
7373
7374 DLLTOOL=$ac_ct_DLLTOOL
7375 else
7376 DLLTOOL="$ac_cv_prog_DLLTOOL"
7377 fi
7378
7379 if test -n "$ac_tool_prefix"; then
7380 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}windres; ac_word=$2
7382 echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7384 if test "${ac_cv_prog_WINDRES+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 if test -n "$WINDRES"; then
7388 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403
7404 fi
7405 fi
7406 WINDRES=$ac_cv_prog_WINDRES
7407 if test -n "$WINDRES"; then
7408 echo "$as_me:$LINENO: result: $WINDRES" >&5
7409 echo "${ECHO_T}$WINDRES" >&6
7410 else
7411 echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6
7413 fi
7414
7415 fi
7416 if test -z "$ac_cv_prog_WINDRES"; then
7417 ac_ct_WINDRES=$WINDRES
7418 # Extract the first word of "windres", so it can be a program name with args.
7419 set dummy windres; ac_word=$2
7420 echo "$as_me:$LINENO: checking for $ac_word" >&5
7421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7422 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7423 echo $ECHO_N "(cached) $ECHO_C" >&6
7424 else
7425 if test -n "$ac_ct_WINDRES"; then
7426 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_WINDRES="windres"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439 done
7440 done
7441
7442 fi
7443 fi
7444 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7445 if test -n "$ac_ct_WINDRES"; then
7446 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7447 echo "${ECHO_T}$ac_ct_WINDRES" >&6
7448 else
7449 echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7451 fi
7452
7453 WINDRES=$ac_ct_WINDRES
7454 else
7455 WINDRES="$ac_cv_prog_WINDRES"
7456 fi
7457
7458
7459 # Needed for GNU/Hurd.
7460 if test -n "$ac_tool_prefix"; then
7461 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}mig; ac_word=$2
7463 echo "$as_me:$LINENO: checking for $ac_word" >&5
7464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465 if test "${ac_cv_prog_MIG+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7467 else
7468 if test -n "$MIG"; then
7469 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7481 fi
7482 done
7483 done
7484
7485 fi
7486 fi
7487 MIG=$ac_cv_prog_MIG
7488 if test -n "$MIG"; then
7489 echo "$as_me:$LINENO: result: $MIG" >&5
7490 echo "${ECHO_T}$MIG" >&6
7491 else
7492 echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6
7494 fi
7495
7496 fi
7497 if test -z "$ac_cv_prog_MIG"; then
7498 ac_ct_MIG=$MIG
7499 # Extract the first word of "mig", so it can be a program name with args.
7500 set dummy mig; ac_word=$2
7501 echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506 if test -n "$ac_ct_MIG"; then
7507 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512 IFS=$as_save_IFS
7513 test -z "$as_dir" && as_dir=.
7514 for ac_exec_ext in '' $ac_executable_extensions; do
7515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516 ac_cv_prog_ac_ct_MIG="mig"
7517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 break 2
7519 fi
7520 done
7521 done
7522
7523 fi
7524 fi
7525 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7526 if test -n "$ac_ct_MIG"; then
7527 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
7528 echo "${ECHO_T}$ac_ct_MIG" >&6
7529 else
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532 fi
7533
7534 MIG=$ac_ct_MIG
7535 else
7536 MIG="$ac_cv_prog_MIG"
7537 fi
7538
7539
7540 # ---------------------- #
7541 # Checks for libraries. #
7542 # ---------------------- #
7543
7544 # We might need to link with -lm; most simulators need it.
7545
7546 echo "$as_me:$LINENO: checking for main in -lm" >&5
7547 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7548 if test "${ac_cv_lib_m_main+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551 ac_check_lib_save_LIBS=$LIBS
7552 LIBS="-lm $LIBS"
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559
7560
7561 int
7562 main ()
7563 {
7564 main ();
7565 ;
7566 return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext conftest$ac_exeext
7570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } &&
7578 { ac_try='test -z "$ac_c_werror_flag"
7579 || test ! -s conftest.err'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7581 (eval $ac_try) 2>&5
7582 ac_status=$?
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest$ac_exeext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7587 (eval $ac_try) 2>&5
7588 ac_status=$?
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_cv_lib_m_main=yes
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596 ac_cv_lib_m_main=no
7597 fi
7598 rm -f conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
7600 LIBS=$ac_check_lib_save_LIBS
7601 fi
7602 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7603 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7604 if test $ac_cv_lib_m_main = yes; then
7605 cat >>confdefs.h <<_ACEOF
7606 #define HAVE_LIBM 1
7607 _ACEOF
7608
7609 LIBS="-lm $LIBS"
7610
7611 fi
7612
7613
7614 # We need to link with -lw to get `wctype' on Solaris before Solaris
7615 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
7616 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7617 # is known to have this problem). Therefore we avoid libw if we can.
7618 echo "$as_me:$LINENO: checking for wctype" >&5
7619 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
7620 if test "${ac_cv_func_wctype+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
7630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7631 #define wctype innocuous_wctype
7632
7633 /* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char wctype (); below.
7635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636 <limits.h> exists even on freestanding compilers. */
7637
7638 #ifdef __STDC__
7639 # include <limits.h>
7640 #else
7641 # include <assert.h>
7642 #endif
7643
7644 #undef wctype
7645
7646 /* Override any gcc2 internal prototype to avoid an error. */
7647 #ifdef __cplusplus
7648 extern "C"
7649 {
7650 #endif
7651 /* We use char because int might match the return type of a gcc2
7652 builtin and then its argument prototype would still apply. */
7653 char wctype ();
7654 /* The GNU C library defines this for functions which it implements
7655 to always fail with ENOSYS. Some functions are actually named
7656 something starting with __ and the normal name is an alias. */
7657 #if defined (__stub_wctype) || defined (__stub___wctype)
7658 choke me
7659 #else
7660 char (*f) () = wctype;
7661 #endif
7662 #ifdef __cplusplus
7663 }
7664 #endif
7665
7666 int
7667 main ()
7668 {
7669 return f != wctype;
7670 ;
7671 return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676 (eval $ac_link) 2>conftest.er1
7677 ac_status=$?
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -z "$ac_c_werror_flag"
7684 || test ! -s conftest.err'
7685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 (eval $ac_try) 2>&5
7687 ac_status=$?
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); }; } &&
7690 { ac_try='test -s conftest$ac_exeext'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 ac_cv_func_wctype=yes
7697 else
7698 echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701 ac_cv_func_wctype=no
7702 fi
7703 rm -f conftest.err conftest.$ac_objext \
7704 conftest$ac_exeext conftest.$ac_ext
7705 fi
7706 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
7707 echo "${ECHO_T}$ac_cv_func_wctype" >&6
7708 if test $ac_cv_func_wctype = yes; then
7709 :
7710 else
7711
7712 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
7713 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
7714 if test "${ac_cv_lib_w_wctype+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 ac_check_lib_save_LIBS=$LIBS
7718 LIBS="-lw $LIBS"
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725
7726 /* Override any gcc2 internal prototype to avoid an error. */
7727 #ifdef __cplusplus
7728 extern "C"
7729 #endif
7730 /* We use char because int might match the return type of a gcc2
7731 builtin and then its argument prototype would still apply. */
7732 char wctype ();
7733 int
7734 main ()
7735 {
7736 wctype ();
7737 ;
7738 return 0;
7739 }
7740 _ACEOF
7741 rm -f conftest.$ac_objext conftest$ac_exeext
7742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7743 (eval $ac_link) 2>conftest.er1
7744 ac_status=$?
7745 grep -v '^ *+' conftest.er1 >conftest.err
7746 rm -f conftest.er1
7747 cat conftest.err >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } &&
7750 { ac_try='test -z "$ac_c_werror_flag"
7751 || test ! -s conftest.err'
7752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7753 (eval $ac_try) 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; } &&
7757 { ac_try='test -s conftest$ac_exeext'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 (eval $ac_try) 2>&5
7760 ac_status=$?
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 ac_cv_lib_w_wctype=yes
7764 else
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7767
7768 ac_cv_lib_w_wctype=no
7769 fi
7770 rm -f conftest.err conftest.$ac_objext \
7771 conftest$ac_exeext conftest.$ac_ext
7772 LIBS=$ac_check_lib_save_LIBS
7773 fi
7774 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
7775 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
7776 if test $ac_cv_lib_w_wctype = yes; then
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_LIBW 1
7779 _ACEOF
7780
7781 LIBS="-lw $LIBS"
7782
7783 fi
7784
7785 fi
7786
7787
7788 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7789 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7790 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7791 if test "${ac_cv_search_gethostbyname+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 else
7794 ac_func_search_save_LIBS=$LIBS
7795 ac_cv_search_gethostbyname=no
7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802
7803 /* Override any gcc2 internal prototype to avoid an error. */
7804 #ifdef __cplusplus
7805 extern "C"
7806 #endif
7807 /* We use char because int might match the return type of a gcc2
7808 builtin and then its argument prototype would still apply. */
7809 char gethostbyname ();
7810 int
7811 main ()
7812 {
7813 gethostbyname ();
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -z "$ac_c_werror_flag"
7828 || test ! -s conftest.err'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_search_gethostbyname="none required"
7841 else
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 fi
7846 rm -f conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
7848 if test "$ac_cv_search_gethostbyname" = no; then
7849 for ac_lib in nsl; do
7850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char gethostbyname ();
7865 int
7866 main ()
7867 {
7868 gethostbyname ();
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_search_gethostbyname="-l$ac_lib"
7896 break
7897 else
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 fi
7902 rm -f conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904 done
7905 fi
7906 LIBS=$ac_func_search_save_LIBS
7907 fi
7908 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7909 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7910 if test "$ac_cv_search_gethostbyname" != no; then
7911 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7912
7913 fi
7914
7915
7916 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7917 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
7918 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
7919 if test "${ac_cv_search_socketpair+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 ac_func_search_save_LIBS=$LIBS
7923 ac_cv_search_socketpair=no
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930
7931 /* Override any gcc2 internal prototype to avoid an error. */
7932 #ifdef __cplusplus
7933 extern "C"
7934 #endif
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937 char socketpair ();
7938 int
7939 main ()
7940 {
7941 socketpair ();
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_c_werror_flag"
7956 || test ! -s conftest.err'
7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7958 (eval $ac_try) 2>&5
7959 ac_status=$?
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); }; } &&
7962 { ac_try='test -s conftest$ac_exeext'
7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7964 (eval $ac_try) 2>&5
7965 ac_status=$?
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); }; }; then
7968 ac_cv_search_socketpair="none required"
7969 else
7970 echo "$as_me: failed program was:" >&5
7971 sed 's/^/| /' conftest.$ac_ext >&5
7972
7973 fi
7974 rm -f conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976 if test "$ac_cv_search_socketpair" = no; then
7977 for ac_lib in socket; do
7978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7979 cat >conftest.$ac_ext <<_ACEOF
7980 /* confdefs.h. */
7981 _ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985
7986 /* Override any gcc2 internal prototype to avoid an error. */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 /* We use char because int might match the return type of a gcc2
7991 builtin and then its argument prototype would still apply. */
7992 char socketpair ();
7993 int
7994 main ()
7995 {
7996 socketpair ();
7997 ;
7998 return 0;
7999 }
8000 _ACEOF
8001 rm -f conftest.$ac_objext conftest$ac_exeext
8002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003 (eval $ac_link) 2>conftest.er1
8004 ac_status=$?
8005 grep -v '^ *+' conftest.er1 >conftest.err
8006 rm -f conftest.er1
8007 cat conftest.err >&5
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -z "$ac_c_werror_flag"
8011 || test ! -s conftest.err'
8012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 (eval $ac_try) 2>&5
8014 ac_status=$?
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; } &&
8017 { ac_try='test -s conftest$ac_exeext'
8018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 (eval $ac_try) 2>&5
8020 ac_status=$?
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); }; }; then
8023 ac_cv_search_socketpair="-l$ac_lib"
8024 break
8025 else
8026 echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029 fi
8030 rm -f conftest.err conftest.$ac_objext \
8031 conftest$ac_exeext conftest.$ac_ext
8032 done
8033 fi
8034 LIBS=$ac_func_search_save_LIBS
8035 fi
8036 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
8037 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
8038 if test "$ac_cv_search_socketpair" != no; then
8039 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
8040
8041 fi
8042
8043
8044 # For the TUI, we need enhanced curses functionality.
8045 #
8046 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8047 # curses library because the latter might not provide all the
8048 # functionality we need. However, this leads to problems on systems
8049 # where the linker searches /usr/local/lib, but the compiler doesn't
8050 # search /usr/local/include, if ncurses is installed in /usr/local. A
8051 # default installation of ncurses on alpha*-dec-osf* will lead to such
8052 # a situation.
8053 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
8054 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
8055 if test "${ac_cv_search_waddstr+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 ac_func_search_save_LIBS=$LIBS
8059 ac_cv_search_waddstr=no
8060 cat >conftest.$ac_ext <<_ACEOF
8061 /* confdefs.h. */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066
8067 /* Override any gcc2 internal prototype to avoid an error. */
8068 #ifdef __cplusplus
8069 extern "C"
8070 #endif
8071 /* We use char because int might match the return type of a gcc2
8072 builtin and then its argument prototype would still apply. */
8073 char waddstr ();
8074 int
8075 main ()
8076 {
8077 waddstr ();
8078 ;
8079 return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext conftest$ac_exeext
8083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8084 (eval $ac_link) 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -z "$ac_c_werror_flag"
8092 || test ! -s conftest.err'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; } &&
8098 { ac_try='test -s conftest$ac_exeext'
8099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8100 (eval $ac_try) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); }; }; then
8104 ac_cv_search_waddstr="none required"
8105 else
8106 echo "$as_me: failed program was:" >&5
8107 sed 's/^/| /' conftest.$ac_ext >&5
8108
8109 fi
8110 rm -f conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 if test "$ac_cv_search_waddstr" = no; then
8113 for ac_lib in ncurses cursesX curses; do
8114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8115 cat >conftest.$ac_ext <<_ACEOF
8116 /* confdefs.h. */
8117 _ACEOF
8118 cat confdefs.h >>conftest.$ac_ext
8119 cat >>conftest.$ac_ext <<_ACEOF
8120 /* end confdefs.h. */
8121
8122 /* Override any gcc2 internal prototype to avoid an error. */
8123 #ifdef __cplusplus
8124 extern "C"
8125 #endif
8126 /* We use char because int might match the return type of a gcc2
8127 builtin and then its argument prototype would still apply. */
8128 char waddstr ();
8129 int
8130 main ()
8131 {
8132 waddstr ();
8133 ;
8134 return 0;
8135 }
8136 _ACEOF
8137 rm -f conftest.$ac_objext conftest$ac_exeext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8139 (eval $ac_link) 2>conftest.er1
8140 ac_status=$?
8141 grep -v '^ *+' conftest.er1 >conftest.err
8142 rm -f conftest.er1
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } &&
8146 { ac_try='test -z "$ac_c_werror_flag"
8147 || test ! -s conftest.err'
8148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8149 (eval $ac_try) 2>&5
8150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; } &&
8153 { ac_try='test -s conftest$ac_exeext'
8154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8155 (eval $ac_try) 2>&5
8156 ac_status=$?
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }; }; then
8159 ac_cv_search_waddstr="-l$ac_lib"
8160 break
8161 else
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165 fi
8166 rm -f conftest.err conftest.$ac_objext \
8167 conftest$ac_exeext conftest.$ac_ext
8168 done
8169 fi
8170 LIBS=$ac_func_search_save_LIBS
8171 fi
8172 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
8173 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
8174 if test "$ac_cv_search_waddstr" != no; then
8175 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
8176
8177 fi
8178
8179
8180 # Since GDB uses Readline, we need termcap functionality. In many
8181 # cases this will be provided by the curses library, but some systems
8182 # have a seperate termcap library, or no curses library at all.
8183
8184 case $host_os in
8185 cygwin*)
8186 if test -d $srcdir/libtermcap; then
8187 LIBS="../libtermcap/libtermcap.a $LIBS"
8188 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8189 fi ;;
8190 go32* | *djgpp*)
8191 ac_cv_search_tgetent="none required"
8192 ;;
8193 esac
8194
8195 # These are the libraries checked by Readline.
8196 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
8197 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
8198 if test "${ac_cv_search_tgetent+set}" = set; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 else
8201 ac_func_search_save_LIBS=$LIBS
8202 ac_cv_search_tgetent=no
8203 cat >conftest.$ac_ext <<_ACEOF
8204 /* confdefs.h. */
8205 _ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209
8210 /* Override any gcc2 internal prototype to avoid an error. */
8211 #ifdef __cplusplus
8212 extern "C"
8213 #endif
8214 /* We use char because int might match the return type of a gcc2
8215 builtin and then its argument prototype would still apply. */
8216 char tgetent ();
8217 int
8218 main ()
8219 {
8220 tgetent ();
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8227 (eval $ac_link) 2>conftest.er1
8228 ac_status=$?
8229 grep -v '^ *+' conftest.er1 >conftest.err
8230 rm -f conftest.er1
8231 cat conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); } &&
8234 { ac_try='test -z "$ac_c_werror_flag"
8235 || test ! -s conftest.err'
8236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8237 (eval $ac_try) 2>&5
8238 ac_status=$?
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8243 (eval $ac_try) 2>&5
8244 ac_status=$?
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8247 ac_cv_search_tgetent="none required"
8248 else
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252 fi
8253 rm -f conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
8255 if test "$ac_cv_search_tgetent" = no; then
8256 for ac_lib in termcap tinfo curses ncurses; do
8257 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8264
8265 /* Override any gcc2 internal prototype to avoid an error. */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 /* We use char because int might match the return type of a gcc2
8270 builtin and then its argument prototype would still apply. */
8271 char tgetent ();
8272 int
8273 main ()
8274 {
8275 tgetent ();
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext conftest$ac_exeext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8282 (eval $ac_link) 2>conftest.er1
8283 ac_status=$?
8284 grep -v '^ *+' conftest.er1 >conftest.err
8285 rm -f conftest.er1
8286 cat conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } &&
8289 { ac_try='test -z "$ac_c_werror_flag"
8290 || test ! -s conftest.err'
8291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292 (eval $ac_try) 2>&5
8293 ac_status=$?
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); }; } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298 (eval $ac_try) 2>&5
8299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 ac_cv_search_tgetent="-l$ac_lib"
8303 break
8304 else
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 fi
8309 rm -f conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
8311 done
8312 fi
8313 LIBS=$ac_func_search_save_LIBS
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
8316 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
8317 if test "$ac_cv_search_tgetent" != no; then
8318 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
8319
8320 fi
8321
8322
8323 if test "$ac_cv_search_tgetent" = no; then
8324 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
8325 echo "$as_me: error: no termcap library found" >&2;}
8326 { (exit 1); exit 1; }; }
8327 fi
8328
8329 # ------------------------- #
8330 # Checks for header files. #
8331 # ------------------------- #
8332
8333
8334
8335
8336
8337
8338 ac_header_dirent=no
8339 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8340 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8341 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8342 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 #include <sys/types.h>
8353 #include <$ac_hdr>
8354
8355 int
8356 main ()
8357 {
8358 if ((DIR *) 0)
8359 return 0;
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 rm -f conftest.$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8367 ac_status=$?
8368 grep -v '^ *+' conftest.er1 >conftest.err
8369 rm -f conftest.er1
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try='test -z "$ac_c_werror_flag"
8374 || test ! -s conftest.err'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try='test -s conftest.$ac_objext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382 (eval $ac_try) 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8386 eval "$as_ac_Header=yes"
8387 else
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.$ac_ext >&5
8390
8391 eval "$as_ac_Header=no"
8392 fi
8393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8400 _ACEOF
8401
8402 ac_header_dirent=$ac_hdr; break
8403 fi
8404
8405 done
8406 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8407 if test $ac_header_dirent = dirent.h; then
8408 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8409 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8410 if test "${ac_cv_search_opendir+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 ac_func_search_save_LIBS=$LIBS
8414 ac_cv_search_opendir=no
8415 cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h. */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421
8422 /* Override any gcc2 internal prototype to avoid an error. */
8423 #ifdef __cplusplus
8424 extern "C"
8425 #endif
8426 /* We use char because int might match the return type of a gcc2
8427 builtin and then its argument prototype would still apply. */
8428 char opendir ();
8429 int
8430 main ()
8431 {
8432 opendir ();
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext conftest$ac_exeext
8438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8439 (eval $ac_link) 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag"
8447 || test ! -s conftest.err'
8448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449 (eval $ac_try) 2>&5
8450 ac_status=$?
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8455 (eval $ac_try) 2>&5
8456 ac_status=$?
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_search_opendir="none required"
8460 else
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 fi
8465 rm -f conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 if test "$ac_cv_search_opendir" = no; then
8468 for ac_lib in dir; do
8469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 /* confdefs.h. */
8472 _ACEOF
8473 cat confdefs.h >>conftest.$ac_ext
8474 cat >>conftest.$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476
8477 /* Override any gcc2 internal prototype to avoid an error. */
8478 #ifdef __cplusplus
8479 extern "C"
8480 #endif
8481 /* We use char because int might match the return type of a gcc2
8482 builtin and then its argument prototype would still apply. */
8483 char opendir ();
8484 int
8485 main ()
8486 {
8487 opendir ();
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8494 (eval $ac_link) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest$ac_exeext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_search_opendir="-l$ac_lib"
8515 break
8516 else
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520 fi
8521 rm -f conftest.err conftest.$ac_objext \
8522 conftest$ac_exeext conftest.$ac_ext
8523 done
8524 fi
8525 LIBS=$ac_func_search_save_LIBS
8526 fi
8527 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8528 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8529 if test "$ac_cv_search_opendir" != no; then
8530 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8531
8532 fi
8533
8534 else
8535 echo "$as_me:$LINENO: checking for library containing opendir" >&5
8536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8537 if test "${ac_cv_search_opendir+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 ac_func_search_save_LIBS=$LIBS
8541 ac_cv_search_opendir=no
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
8549 /* Override any gcc2 internal prototype to avoid an error. */
8550 #ifdef __cplusplus
8551 extern "C"
8552 #endif
8553 /* We use char because int might match the return type of a gcc2
8554 builtin and then its argument prototype would still apply. */
8555 char opendir ();
8556 int
8557 main ()
8558 {
8559 opendir ();
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext conftest$ac_exeext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8566 (eval $ac_link) 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest$ac_exeext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 ac_cv_search_opendir="none required"
8587 else
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591 fi
8592 rm -f conftest.err conftest.$ac_objext \
8593 conftest$ac_exeext conftest.$ac_ext
8594 if test "$ac_cv_search_opendir" = no; then
8595 for ac_lib in x; do
8596 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h. */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603
8604 /* Override any gcc2 internal prototype to avoid an error. */
8605 #ifdef __cplusplus
8606 extern "C"
8607 #endif
8608 /* We use char because int might match the return type of a gcc2
8609 builtin and then its argument prototype would still apply. */
8610 char opendir ();
8611 int
8612 main ()
8613 {
8614 opendir ();
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621 (eval $ac_link) 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } &&
8628 { ac_try='test -z "$ac_c_werror_flag"
8629 || test ! -s conftest.err'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 (eval $ac_try) 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 (eval $ac_try) 2>&5
8638 ac_status=$?
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_search_opendir="-l$ac_lib"
8642 break
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647 fi
8648 rm -f conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 done
8651 fi
8652 LIBS=$ac_func_search_save_LIBS
8653 fi
8654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8656 if test "$ac_cv_search_opendir" != no; then
8657 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8658
8659 fi
8660
8661 fi
8662
8663 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8664 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8665 if test "${ac_cv_header_stat_broken+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <sys/types.h>
8675 #include <sys/stat.h>
8676
8677 #if defined(S_ISBLK) && defined(S_IFDIR)
8678 # if S_ISBLK (S_IFDIR)
8679 You lose.
8680 # endif
8681 #endif
8682
8683 #if defined(S_ISBLK) && defined(S_IFCHR)
8684 # if S_ISBLK (S_IFCHR)
8685 You lose.
8686 # endif
8687 #endif
8688
8689 #if defined(S_ISLNK) && defined(S_IFREG)
8690 # if S_ISLNK (S_IFREG)
8691 You lose.
8692 # endif
8693 #endif
8694
8695 #if defined(S_ISSOCK) && defined(S_IFREG)
8696 # if S_ISSOCK (S_IFREG)
8697 You lose.
8698 # endif
8699 #endif
8700
8701 _ACEOF
8702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8703 $EGREP "You lose" >/dev/null 2>&1; then
8704 ac_cv_header_stat_broken=yes
8705 else
8706 ac_cv_header_stat_broken=no
8707 fi
8708 rm -f conftest*
8709
8710 fi
8711 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8712 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8713 if test $ac_cv_header_stat_broken = yes; then
8714
8715 cat >>confdefs.h <<\_ACEOF
8716 #define STAT_MACROS_BROKEN 1
8717 _ACEOF
8718
8719 fi
8720
8721 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8723 if test "${ac_cv_header_stdc+set}" = set; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8725 else
8726 cat >conftest.$ac_ext <<_ACEOF
8727 /* confdefs.h. */
8728 _ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8732 #include <stdlib.h>
8733 #include <stdarg.h>
8734 #include <string.h>
8735 #include <float.h>
8736
8737 int
8738 main ()
8739 {
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag"
8755 || test ! -s conftest.err'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8763 (eval $ac_try) 2>&5
8764 ac_status=$?
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 ac_cv_header_stdc=yes
8768 else
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772 ac_cv_header_stdc=no
8773 fi
8774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8775
8776 if test $ac_cv_header_stdc = yes; then
8777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8778 cat >conftest.$ac_ext <<_ACEOF
8779 /* confdefs.h. */
8780 _ACEOF
8781 cat confdefs.h >>conftest.$ac_ext
8782 cat >>conftest.$ac_ext <<_ACEOF
8783 /* end confdefs.h. */
8784 #include <string.h>
8785
8786 _ACEOF
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788 $EGREP "memchr" >/dev/null 2>&1; then
8789 :
8790 else
8791 ac_cv_header_stdc=no
8792 fi
8793 rm -f conftest*
8794
8795 fi
8796
8797 if test $ac_cv_header_stdc = yes; then
8798 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8799 cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h. */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 #include <stdlib.h>
8806
8807 _ACEOF
8808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 $EGREP "free" >/dev/null 2>&1; then
8810 :
8811 else
8812 ac_cv_header_stdc=no
8813 fi
8814 rm -f conftest*
8815
8816 fi
8817
8818 if test $ac_cv_header_stdc = yes; then
8819 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8820 if test "$cross_compiling" = yes; then
8821 :
8822 else
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h. */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h. */
8829 #include <ctype.h>
8830 #if ((' ' & 0x0FF) == 0x020)
8831 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8832 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8833 #else
8834 # define ISLOWER(c) \
8835 (('a' <= (c) && (c) <= 'i') \
8836 || ('j' <= (c) && (c) <= 'r') \
8837 || ('s' <= (c) && (c) <= 'z'))
8838 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8839 #endif
8840
8841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8842 int
8843 main ()
8844 {
8845 int i;
8846 for (i = 0; i < 256; i++)
8847 if (XOR (islower (i), ISLOWER (i))
8848 || toupper (i) != TOUPPER (i))
8849 exit(2);
8850 exit (0);
8851 }
8852 _ACEOF
8853 rm -f conftest$ac_exeext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8856 ac_status=$?
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 (eval $ac_try) 2>&5
8861 ac_status=$?
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 :
8865 else
8866 echo "$as_me: program exited with status $ac_status" >&5
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870 ( exit $ac_status )
8871 ac_cv_header_stdc=no
8872 fi
8873 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 fi
8876 fi
8877 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8878 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8879 if test $ac_cv_header_stdc = yes; then
8880
8881 cat >>confdefs.h <<\_ACEOF
8882 #define STDC_HEADERS 1
8883 _ACEOF
8884
8885 fi
8886
8887
8888 for ac_header in nlist.h
8889 do
8890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8896 fi
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8899 else
8900 # Is the header compilable?
8901 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8903 cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h. */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h. */
8909 $ac_includes_default
8910 #include <$ac_header>
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8914 (eval $ac_compile) 2>conftest.er1
8915 ac_status=$?
8916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag"
8922 || test ! -s conftest.err'
8923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 (eval $ac_try) 2>&5
8925 ac_status=$?
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); }; } &&
8928 { ac_try='test -s conftest.$ac_objext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 (eval $ac_try) 2>&5
8931 ac_status=$?
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_header_compiler=yes
8935 else
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_header_compiler=no
8940 fi
8941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8942 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8943 echo "${ECHO_T}$ac_header_compiler" >&6
8944
8945 # Is the header present?
8946 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h. */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8954 #include <$ac_header>
8955 _ACEOF
8956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } >/dev/null; then
8964 if test -s conftest.err; then
8965 ac_cpp_err=$ac_c_preproc_warn_flag
8966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8967 else
8968 ac_cpp_err=
8969 fi
8970 else
8971 ac_cpp_err=yes
8972 fi
8973 if test -z "$ac_cpp_err"; then
8974 ac_header_preproc=yes
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 ac_header_preproc=no
8980 fi
8981 rm -f conftest.err conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8983 echo "${ECHO_T}$ac_header_preproc" >&6
8984
8985 # So? What about this header?
8986 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8987 yes:no: )
8988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8989 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8991 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8992 ac_header_preproc=yes
8993 ;;
8994 no:yes:* )
8995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8996 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8998 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9000 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9002 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9004 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9006 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9007 (
9008 cat <<\_ASBOX
9009 ## ------------------------------------------ ##
9010 ## Report this to the AC_PACKAGE_NAME lists. ##
9011 ## ------------------------------------------ ##
9012 _ASBOX
9013 ) |
9014 sed "s/^/$as_me: WARNING: /" >&2
9015 ;;
9016 esac
9017 echo "$as_me:$LINENO: checking for $ac_header" >&5
9018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 eval "$as_ac_Header=\$ac_header_preproc"
9023 fi
9024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9026
9027 fi
9028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9029 cat >>confdefs.h <<_ACEOF
9030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9031 _ACEOF
9032
9033 fi
9034
9035 done
9036
9037
9038 for ac_header in link.h
9039 do
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 echo "$as_me:$LINENO: checking for $ac_header" >&5
9042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h. */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h. */
9052 #if HAVE_SYS_TYPES_H
9053 # include <sys/types.h>
9054 #endif
9055 #if HAVE_NLIST_H
9056 # include <nlist.h>
9057 #endif
9058
9059
9060 #include <$ac_header>
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_c_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 eval "$as_ac_Header=yes"
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 eval "$as_ac_Header=no"
9090 fi
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 fi
9093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9096 cat >>confdefs.h <<_ACEOF
9097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9098 _ACEOF
9099
9100 fi
9101
9102 done
9103
9104
9105 for ac_header in machine/reg.h
9106 do
9107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9109 echo "$as_me:$LINENO: checking for $ac_header" >&5
9110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 fi
9114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9115 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9116 else
9117 # Is the header compilable?
9118 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126 $ac_includes_default
9127 #include <$ac_header>
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131 (eval $ac_compile) 2>conftest.er1
9132 ac_status=$?
9133 grep -v '^ *+' conftest.er1 >conftest.err
9134 rm -f conftest.er1
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } &&
9138 { ac_try='test -z "$ac_c_werror_flag"
9139 || test ! -s conftest.err'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141 (eval $ac_try) 2>&5
9142 ac_status=$?
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; } &&
9145 { ac_try='test -s conftest.$ac_objext'
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; }; then
9151 ac_header_compiler=yes
9152 else
9153 echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 ac_header_compiler=no
9157 fi
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9160 echo "${ECHO_T}$ac_header_compiler" >&6
9161
9162 # Is the header present?
9163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 #include <$ac_header>
9172 _ACEOF
9173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } >/dev/null; then
9181 if test -s conftest.err; then
9182 ac_cpp_err=$ac_c_preproc_warn_flag
9183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9184 else
9185 ac_cpp_err=
9186 fi
9187 else
9188 ac_cpp_err=yes
9189 fi
9190 if test -z "$ac_cpp_err"; then
9191 ac_header_preproc=yes
9192 else
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196 ac_header_preproc=no
9197 fi
9198 rm -f conftest.err conftest.$ac_ext
9199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9200 echo "${ECHO_T}$ac_header_preproc" >&6
9201
9202 # So? What about this header?
9203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9204 yes:no: )
9205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9209 ac_header_preproc=yes
9210 ;;
9211 no:yes:* )
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9224 (
9225 cat <<\_ASBOX
9226 ## ------------------------------------------ ##
9227 ## Report this to the AC_PACKAGE_NAME lists. ##
9228 ## ------------------------------------------ ##
9229 _ASBOX
9230 ) |
9231 sed "s/^/$as_me: WARNING: /" >&2
9232 ;;
9233 esac
9234 echo "$as_me:$LINENO: checking for $ac_header" >&5
9235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239 eval "$as_ac_Header=\$ac_header_preproc"
9240 fi
9241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9243
9244 fi
9245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9246 cat >>confdefs.h <<_ACEOF
9247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 _ACEOF
9249
9250 fi
9251
9252 done
9253
9254
9255
9256 for ac_header in poll.h sys/poll.h
9257 do
9258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9260 echo "$as_me:$LINENO: checking for $ac_header" >&5
9261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 fi
9265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9267 else
9268 # Is the header compilable?
9269 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9270 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 $ac_includes_default
9278 #include <$ac_header>
9279 _ACEOF
9280 rm -f conftest.$ac_objext
9281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282 (eval $ac_compile) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest.$ac_objext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 ac_header_compiler=yes
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_header_compiler=no
9308 fi
9309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9311 echo "${ECHO_T}$ac_header_compiler" >&6
9312
9313 # Is the header present?
9314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9316 cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h. */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 #include <$ac_header>
9323 _ACEOF
9324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9326 ac_status=$?
9327 grep -v '^ *+' conftest.er1 >conftest.err
9328 rm -f conftest.er1
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } >/dev/null; then
9332 if test -s conftest.err; then
9333 ac_cpp_err=$ac_c_preproc_warn_flag
9334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9335 else
9336 ac_cpp_err=
9337 fi
9338 else
9339 ac_cpp_err=yes
9340 fi
9341 if test -z "$ac_cpp_err"; then
9342 ac_header_preproc=yes
9343 else
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.$ac_ext >&5
9346
9347 ac_header_preproc=no
9348 fi
9349 rm -f conftest.err conftest.$ac_ext
9350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9351 echo "${ECHO_T}$ac_header_preproc" >&6
9352
9353 # So? What about this header?
9354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9355 yes:no: )
9356 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9359 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9360 ac_header_preproc=yes
9361 ;;
9362 no:yes:* )
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9364 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9365 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9366 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9367 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9368 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9369 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9370 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9371 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9372 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9373 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9374 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9375 (
9376 cat <<\_ASBOX
9377 ## ------------------------------------------ ##
9378 ## Report this to the AC_PACKAGE_NAME lists. ##
9379 ## ------------------------------------------ ##
9380 _ASBOX
9381 ) |
9382 sed "s/^/$as_me: WARNING: /" >&2
9383 ;;
9384 esac
9385 echo "$as_me:$LINENO: checking for $ac_header" >&5
9386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390 eval "$as_ac_Header=\$ac_header_preproc"
9391 fi
9392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9394
9395 fi
9396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9397 cat >>confdefs.h <<_ACEOF
9398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9399 _ACEOF
9400
9401 fi
9402
9403 done
9404
9405
9406
9407
9408 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
9409 do
9410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9412 echo "$as_me:$LINENO: checking for $ac_header" >&5
9413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9415 echo $ECHO_N "(cached) $ECHO_C" >&6
9416 fi
9417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9419 else
9420 # Is the header compilable?
9421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h. */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h. */
9429 $ac_includes_default
9430 #include <$ac_header>
9431 _ACEOF
9432 rm -f conftest.$ac_objext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
9454 ac_header_compiler=yes
9455 else
9456 echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_header_compiler=no
9460 fi
9461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9463 echo "${ECHO_T}$ac_header_compiler" >&6
9464
9465 # Is the header present?
9466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9468 cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h. */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 #include <$ac_header>
9475 _ACEOF
9476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } >/dev/null; then
9484 if test -s conftest.err; then
9485 ac_cpp_err=$ac_c_preproc_warn_flag
9486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9487 else
9488 ac_cpp_err=
9489 fi
9490 else
9491 ac_cpp_err=yes
9492 fi
9493 if test -z "$ac_cpp_err"; then
9494 ac_header_preproc=yes
9495 else
9496 echo "$as_me: failed program was:" >&5
9497 sed 's/^/| /' conftest.$ac_ext >&5
9498
9499 ac_header_preproc=no
9500 fi
9501 rm -f conftest.err conftest.$ac_ext
9502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9503 echo "${ECHO_T}$ac_header_preproc" >&6
9504
9505 # So? What about this header?
9506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9507 yes:no: )
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9512 ac_header_preproc=yes
9513 ;;
9514 no:yes:* )
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9527 (
9528 cat <<\_ASBOX
9529 ## ------------------------------------------ ##
9530 ## Report this to the AC_PACKAGE_NAME lists. ##
9531 ## ------------------------------------------ ##
9532 _ASBOX
9533 ) |
9534 sed "s/^/$as_me: WARNING: /" >&2
9535 ;;
9536 esac
9537 echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542 eval "$as_ac_Header=\$ac_header_preproc"
9543 fi
9544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9546
9547 fi
9548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551 _ACEOF
9552
9553 fi
9554
9555 done
9556
9557
9558 for ac_header in stddef.h
9559 do
9560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562 echo "$as_me:$LINENO: checking for $ac_header" >&5
9563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 fi
9567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569 else
9570 # Is the header compilable?
9571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573 cat >conftest.$ac_ext <<_ACEOF
9574 /* confdefs.h. */
9575 _ACEOF
9576 cat confdefs.h >>conftest.$ac_ext
9577 cat >>conftest.$ac_ext <<_ACEOF
9578 /* end confdefs.h. */
9579 $ac_includes_default
9580 #include <$ac_header>
9581 _ACEOF
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>conftest.er1
9585 ac_status=$?
9586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag"
9592 || test ! -s conftest.err'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 (eval $ac_try) 2>&5
9601 ac_status=$?
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_header_compiler=yes
9605 else
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609 ac_header_compiler=no
9610 fi
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9613 echo "${ECHO_T}$ac_header_compiler" >&6
9614
9615 # Is the header present?
9616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9619 /* confdefs.h. */
9620 _ACEOF
9621 cat confdefs.h >>conftest.$ac_ext
9622 cat >>conftest.$ac_ext <<_ACEOF
9623 /* end confdefs.h. */
9624 #include <$ac_header>
9625 _ACEOF
9626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9628 ac_status=$?
9629 grep -v '^ *+' conftest.er1 >conftest.err
9630 rm -f conftest.er1
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } >/dev/null; then
9634 if test -s conftest.err; then
9635 ac_cpp_err=$ac_c_preproc_warn_flag
9636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9637 else
9638 ac_cpp_err=
9639 fi
9640 else
9641 ac_cpp_err=yes
9642 fi
9643 if test -z "$ac_cpp_err"; then
9644 ac_header_preproc=yes
9645 else
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.$ac_ext >&5
9648
9649 ac_header_preproc=no
9650 fi
9651 rm -f conftest.err conftest.$ac_ext
9652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9653 echo "${ECHO_T}$ac_header_preproc" >&6
9654
9655 # So? What about this header?
9656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9657 yes:no: )
9658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9662 ac_header_preproc=yes
9663 ;;
9664 no:yes:* )
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9677 (
9678 cat <<\_ASBOX
9679 ## ------------------------------------------ ##
9680 ## Report this to the AC_PACKAGE_NAME lists. ##
9681 ## ------------------------------------------ ##
9682 _ASBOX
9683 ) |
9684 sed "s/^/$as_me: WARNING: /" >&2
9685 ;;
9686 esac
9687 echo "$as_me:$LINENO: checking for $ac_header" >&5
9688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 eval "$as_ac_Header=\$ac_header_preproc"
9693 fi
9694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696
9697 fi
9698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9699 cat >>confdefs.h <<_ACEOF
9700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9701 _ACEOF
9702
9703 fi
9704
9705 done
9706
9707
9708 for ac_header in stdlib.h
9709 do
9710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9712 echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 fi
9717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9719 else
9720 # Is the header compilable?
9721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 $ac_includes_default
9730 #include <$ac_header>
9731 _ACEOF
9732 rm -f conftest.$ac_objext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9734 (eval $ac_compile) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest.$ac_objext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_header_compiler=yes
9755 else
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_header_compiler=no
9760 fi
9761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9763 echo "${ECHO_T}$ac_header_compiler" >&6
9764
9765 # Is the header present?
9766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9768 cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h. */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 #include <$ac_header>
9775 _ACEOF
9776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } >/dev/null; then
9784 if test -s conftest.err; then
9785 ac_cpp_err=$ac_c_preproc_warn_flag
9786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9787 else
9788 ac_cpp_err=
9789 fi
9790 else
9791 ac_cpp_err=yes
9792 fi
9793 if test -z "$ac_cpp_err"; then
9794 ac_header_preproc=yes
9795 else
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799 ac_header_preproc=no
9800 fi
9801 rm -f conftest.err conftest.$ac_ext
9802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9803 echo "${ECHO_T}$ac_header_preproc" >&6
9804
9805 # So? What about this header?
9806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9807 yes:no: )
9808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9812 ac_header_preproc=yes
9813 ;;
9814 no:yes:* )
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9827 (
9828 cat <<\_ASBOX
9829 ## ------------------------------------------ ##
9830 ## Report this to the AC_PACKAGE_NAME lists. ##
9831 ## ------------------------------------------ ##
9832 _ASBOX
9833 ) |
9834 sed "s/^/$as_me: WARNING: /" >&2
9835 ;;
9836 esac
9837 echo "$as_me:$LINENO: checking for $ac_header" >&5
9838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842 eval "$as_ac_Header=\$ac_header_preproc"
9843 fi
9844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9846
9847 fi
9848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9849 cat >>confdefs.h <<_ACEOF
9850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9851 _ACEOF
9852
9853 fi
9854
9855 done
9856
9857
9858 for ac_header in stdint.h
9859 do
9860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9862 echo "$as_me:$LINENO: checking for $ac_header" >&5
9863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 fi
9867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9869 else
9870 # Is the header compilable?
9871 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h. */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9881 _ACEOF
9882 rm -f conftest.$ac_objext
9883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9884 (eval $ac_compile) 2>conftest.er1
9885 ac_status=$?
9886 grep -v '^ *+' conftest.er1 >conftest.err
9887 rm -f conftest.er1
9888 cat conftest.err >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); } &&
9891 { ac_try='test -z "$ac_c_werror_flag"
9892 || test ! -s conftest.err'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; } &&
9898 { ac_try='test -s conftest.$ac_objext'
9899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900 (eval $ac_try) 2>&5
9901 ac_status=$?
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_header_compiler=yes
9905 else
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ac_header_compiler=no
9910 fi
9911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9913 echo "${ECHO_T}$ac_header_compiler" >&6
9914
9915 # Is the header present?
9916 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9924 #include <$ac_header>
9925 _ACEOF
9926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } >/dev/null; then
9934 if test -s conftest.err; then
9935 ac_cpp_err=$ac_c_preproc_warn_flag
9936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9937 else
9938 ac_cpp_err=
9939 fi
9940 else
9941 ac_cpp_err=yes
9942 fi
9943 if test -z "$ac_cpp_err"; then
9944 ac_header_preproc=yes
9945 else
9946 echo "$as_me: failed program was:" >&5
9947 sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_header_preproc=no
9950 fi
9951 rm -f conftest.err conftest.$ac_ext
9952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9953 echo "${ECHO_T}$ac_header_preproc" >&6
9954
9955 # So? What about this header?
9956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9957 yes:no: )
9958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9962 ac_header_preproc=yes
9963 ;;
9964 no:yes:* )
9965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9977 (
9978 cat <<\_ASBOX
9979 ## ------------------------------------------ ##
9980 ## Report this to the AC_PACKAGE_NAME lists. ##
9981 ## ------------------------------------------ ##
9982 _ASBOX
9983 ) |
9984 sed "s/^/$as_me: WARNING: /" >&2
9985 ;;
9986 esac
9987 echo "$as_me:$LINENO: checking for $ac_header" >&5
9988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9991 else
9992 eval "$as_ac_Header=\$ac_header_preproc"
9993 fi
9994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9996
9997 fi
9998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9999 cat >>confdefs.h <<_ACEOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10001 _ACEOF
10002
10003 fi
10004
10005 done
10006
10007
10008
10009
10010 for ac_header in string.h memory.h strings.h
10011 do
10012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10014 echo "$as_me:$LINENO: checking for $ac_header" >&5
10015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 fi
10019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10021 else
10022 # Is the header compilable?
10023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h. */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10031 $ac_includes_default
10032 #include <$ac_header>
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_c_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 ac_header_compiler=yes
10057 else
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 ac_header_compiler=no
10062 fi
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10065 echo "${ECHO_T}$ac_header_compiler" >&6
10066
10067 # Is the header present?
10068 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h. */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10076 #include <$ac_header>
10077 _ACEOF
10078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10080 ac_status=$?
10081 grep -v '^ *+' conftest.er1 >conftest.err
10082 rm -f conftest.er1
10083 cat conftest.err >&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); } >/dev/null; then
10086 if test -s conftest.err; then
10087 ac_cpp_err=$ac_c_preproc_warn_flag
10088 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10089 else
10090 ac_cpp_err=
10091 fi
10092 else
10093 ac_cpp_err=yes
10094 fi
10095 if test -z "$ac_cpp_err"; then
10096 ac_header_preproc=yes
10097 else
10098 echo "$as_me: failed program was:" >&5
10099 sed 's/^/| /' conftest.$ac_ext >&5
10100
10101 ac_header_preproc=no
10102 fi
10103 rm -f conftest.err conftest.$ac_ext
10104 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10105 echo "${ECHO_T}$ac_header_preproc" >&6
10106
10107 # So? What about this header?
10108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10109 yes:no: )
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10114 ac_header_preproc=yes
10115 ;;
10116 no:yes:* )
10117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10129 (
10130 cat <<\_ASBOX
10131 ## ------------------------------------------ ##
10132 ## Report this to the AC_PACKAGE_NAME lists. ##
10133 ## ------------------------------------------ ##
10134 _ASBOX
10135 ) |
10136 sed "s/^/$as_me: WARNING: /" >&2
10137 ;;
10138 esac
10139 echo "$as_me:$LINENO: checking for $ac_header" >&5
10140 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10141 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 else
10144 eval "$as_ac_Header=\$ac_header_preproc"
10145 fi
10146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10148
10149 fi
10150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10151 cat >>confdefs.h <<_ACEOF
10152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10153 _ACEOF
10154
10155 fi
10156
10157 done
10158
10159
10160 for ac_header in sys/fault.h
10161 do
10162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10164 echo "$as_me:$LINENO: checking for $ac_header" >&5
10165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10166 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 fi
10169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10171 else
10172 # Is the header compilable?
10173 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10174 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10182 #include <$ac_header>
10183 _ACEOF
10184 rm -f conftest.$ac_objext
10185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10186 (eval $ac_compile) 2>conftest.er1
10187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag"
10194 || test ! -s conftest.err'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10197 ac_status=$?
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; } &&
10200 { ac_try='test -s conftest.$ac_objext'
10201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 (eval $ac_try) 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 ac_header_compiler=yes
10207 else
10208 echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211 ac_header_compiler=no
10212 fi
10213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10215 echo "${ECHO_T}$ac_header_compiler" >&6
10216
10217 # Is the header present?
10218 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10226 #include <$ac_header>
10227 _ACEOF
10228 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10229 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } >/dev/null; then
10236 if test -s conftest.err; then
10237 ac_cpp_err=$ac_c_preproc_warn_flag
10238 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10239 else
10240 ac_cpp_err=
10241 fi
10242 else
10243 ac_cpp_err=yes
10244 fi
10245 if test -z "$ac_cpp_err"; then
10246 ac_header_preproc=yes
10247 else
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 ac_header_preproc=no
10252 fi
10253 rm -f conftest.err conftest.$ac_ext
10254 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10255 echo "${ECHO_T}$ac_header_preproc" >&6
10256
10257 # So? What about this header?
10258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10259 yes:no: )
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10261 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10264 ac_header_preproc=yes
10265 ;;
10266 no:yes:* )
10267 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10268 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10269 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10270 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10271 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10272 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10273 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10274 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10277 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10278 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10279 (
10280 cat <<\_ASBOX
10281 ## ------------------------------------------ ##
10282 ## Report this to the AC_PACKAGE_NAME lists. ##
10283 ## ------------------------------------------ ##
10284 _ASBOX
10285 ) |
10286 sed "s/^/$as_me: WARNING: /" >&2
10287 ;;
10288 esac
10289 echo "$as_me:$LINENO: checking for $ac_header" >&5
10290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10292 echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294 eval "$as_ac_Header=\$ac_header_preproc"
10295 fi
10296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10298
10299 fi
10300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10303 _ACEOF
10304
10305 fi
10306
10307 done
10308
10309
10310 for ac_header in sys/file.h
10311 do
10312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo "$as_me:$LINENO: checking for $ac_header" >&5
10315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 fi
10319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10320 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10321 else
10322 # Is the header compilable?
10323 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10324 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
10332 #include <$ac_header>
10333 _ACEOF
10334 rm -f conftest.$ac_objext
10335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10336 (eval $ac_compile) 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } &&
10343 { ac_try='test -z "$ac_c_werror_flag"
10344 || test ! -s conftest.err'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; } &&
10350 { ac_try='test -s conftest.$ac_objext'
10351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352 (eval $ac_try) 2>&5
10353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; }; then
10356 ac_header_compiler=yes
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361 ac_header_compiler=no
10362 fi
10363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10365 echo "${ECHO_T}$ac_header_compiler" >&6
10366
10367 # Is the header present?
10368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 #include <$ac_header>
10377 _ACEOF
10378 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } >/dev/null; then
10386 if test -s conftest.err; then
10387 ac_cpp_err=$ac_c_preproc_warn_flag
10388 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10389 else
10390 ac_cpp_err=
10391 fi
10392 else
10393 ac_cpp_err=yes
10394 fi
10395 if test -z "$ac_cpp_err"; then
10396 ac_header_preproc=yes
10397 else
10398 echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 ac_header_preproc=no
10402 fi
10403 rm -f conftest.err conftest.$ac_ext
10404 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10405 echo "${ECHO_T}$ac_header_preproc" >&6
10406
10407 # So? What about this header?
10408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10409 yes:no: )
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10414 ac_header_preproc=yes
10415 ;;
10416 no:yes:* )
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10429 (
10430 cat <<\_ASBOX
10431 ## ------------------------------------------ ##
10432 ## Report this to the AC_PACKAGE_NAME lists. ##
10433 ## ------------------------------------------ ##
10434 _ASBOX
10435 ) |
10436 sed "s/^/$as_me: WARNING: /" >&2
10437 ;;
10438 esac
10439 echo "$as_me:$LINENO: checking for $ac_header" >&5
10440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444 eval "$as_ac_Header=\$ac_header_preproc"
10445 fi
10446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10448
10449 fi
10450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10451 cat >>confdefs.h <<_ACEOF
10452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10453 _ACEOF
10454
10455 fi
10456
10457 done
10458
10459
10460 for ac_header in sys/filio.h
10461 do
10462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10464 echo "$as_me:$LINENO: checking for $ac_header" >&5
10465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 fi
10469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10470 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10471 else
10472 # Is the header compilable?
10473 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10475 cat >conftest.$ac_ext <<_ACEOF
10476 /* confdefs.h. */
10477 _ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 $ac_includes_default
10482 #include <$ac_header>
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10486 (eval $ac_compile) 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } &&
10493 { ac_try='test -z "$ac_c_werror_flag"
10494 || test ! -s conftest.err'
10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10496 (eval $ac_try) 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; } &&
10500 { ac_try='test -s conftest.$ac_objext'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; }; then
10506 ac_header_compiler=yes
10507 else
10508 echo "$as_me: failed program was:" >&5
10509 sed 's/^/| /' conftest.$ac_ext >&5
10510
10511 ac_header_compiler=no
10512 fi
10513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10515 echo "${ECHO_T}$ac_header_compiler" >&6
10516
10517 # Is the header present?
10518 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10520 cat >conftest.$ac_ext <<_ACEOF
10521 /* confdefs.h. */
10522 _ACEOF
10523 cat confdefs.h >>conftest.$ac_ext
10524 cat >>conftest.$ac_ext <<_ACEOF
10525 /* end confdefs.h. */
10526 #include <$ac_header>
10527 _ACEOF
10528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } >/dev/null; then
10536 if test -s conftest.err; then
10537 ac_cpp_err=$ac_c_preproc_warn_flag
10538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10539 else
10540 ac_cpp_err=
10541 fi
10542 else
10543 ac_cpp_err=yes
10544 fi
10545 if test -z "$ac_cpp_err"; then
10546 ac_header_preproc=yes
10547 else
10548 echo "$as_me: failed program was:" >&5
10549 sed 's/^/| /' conftest.$ac_ext >&5
10550
10551 ac_header_preproc=no
10552 fi
10553 rm -f conftest.err conftest.$ac_ext
10554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10555 echo "${ECHO_T}$ac_header_preproc" >&6
10556
10557 # So? What about this header?
10558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10559 yes:no: )
10560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10564 ac_header_preproc=yes
10565 ;;
10566 no:yes:* )
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10579 (
10580 cat <<\_ASBOX
10581 ## ------------------------------------------ ##
10582 ## Report this to the AC_PACKAGE_NAME lists. ##
10583 ## ------------------------------------------ ##
10584 _ASBOX
10585 ) |
10586 sed "s/^/$as_me: WARNING: /" >&2
10587 ;;
10588 esac
10589 echo "$as_me:$LINENO: checking for $ac_header" >&5
10590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10592 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 else
10594 eval "$as_ac_Header=\$ac_header_preproc"
10595 fi
10596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10598
10599 fi
10600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10601 cat >>confdefs.h <<_ACEOF
10602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10603 _ACEOF
10604
10605 fi
10606
10607 done
10608
10609
10610 for ac_header in sys/ioctl.h
10611 do
10612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10614 echo "$as_me:$LINENO: checking for $ac_header" >&5
10615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 fi
10619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10621 else
10622 # Is the header compilable?
10623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10625 cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h. */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h. */
10631 $ac_includes_default
10632 #include <$ac_header>
10633 _ACEOF
10634 rm -f conftest.$ac_objext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10636 (eval $ac_compile) 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_header_compiler=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_header_compiler=no
10662 fi
10663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6
10666
10667 # Is the header present?
10668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <$ac_header>
10677 _ACEOF
10678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10680 ac_status=$?
10681 grep -v '^ *+' conftest.er1 >conftest.err
10682 rm -f conftest.er1
10683 cat conftest.err >&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); } >/dev/null; then
10686 if test -s conftest.err; then
10687 ac_cpp_err=$ac_c_preproc_warn_flag
10688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10689 else
10690 ac_cpp_err=
10691 fi
10692 else
10693 ac_cpp_err=yes
10694 fi
10695 if test -z "$ac_cpp_err"; then
10696 ac_header_preproc=yes
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 ac_header_preproc=no
10702 fi
10703 rm -f conftest.err conftest.$ac_ext
10704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10705 echo "${ECHO_T}$ac_header_preproc" >&6
10706
10707 # So? What about this header?
10708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10709 yes:no: )
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10714 ac_header_preproc=yes
10715 ;;
10716 no:yes:* )
10717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10729 (
10730 cat <<\_ASBOX
10731 ## ------------------------------------------ ##
10732 ## Report this to the AC_PACKAGE_NAME lists. ##
10733 ## ------------------------------------------ ##
10734 _ASBOX
10735 ) |
10736 sed "s/^/$as_me: WARNING: /" >&2
10737 ;;
10738 esac
10739 echo "$as_me:$LINENO: checking for $ac_header" >&5
10740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744 eval "$as_ac_Header=\$ac_header_preproc"
10745 fi
10746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10748
10749 fi
10750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10751 cat >>confdefs.h <<_ACEOF
10752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10753 _ACEOF
10754
10755 fi
10756
10757 done
10758
10759
10760 for ac_header in sys/param.h
10761 do
10762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10764 echo "$as_me:$LINENO: checking for $ac_header" >&5
10765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10766 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 fi
10769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10771 else
10772 # Is the header compilable?
10773 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10775 cat >conftest.$ac_ext <<_ACEOF
10776 /* confdefs.h. */
10777 _ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10781 $ac_includes_default
10782 #include <$ac_header>
10783 _ACEOF
10784 rm -f conftest.$ac_objext
10785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10786 (eval $ac_compile) 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_header_compiler=yes
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10810
10811 ac_header_compiler=no
10812 fi
10813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10814 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10815 echo "${ECHO_T}$ac_header_compiler" >&6
10816
10817 # Is the header present?
10818 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10820 cat >conftest.$ac_ext <<_ACEOF
10821 /* confdefs.h. */
10822 _ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <$ac_header>
10827 _ACEOF
10828 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10830 ac_status=$?
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } >/dev/null; then
10836 if test -s conftest.err; then
10837 ac_cpp_err=$ac_c_preproc_warn_flag
10838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10839 else
10840 ac_cpp_err=
10841 fi
10842 else
10843 ac_cpp_err=yes
10844 fi
10845 if test -z "$ac_cpp_err"; then
10846 ac_header_preproc=yes
10847 else
10848 echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10850
10851 ac_header_preproc=no
10852 fi
10853 rm -f conftest.err conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10855 echo "${ECHO_T}$ac_header_preproc" >&6
10856
10857 # So? What about this header?
10858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10859 yes:no: )
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10864 ac_header_preproc=yes
10865 ;;
10866 no:yes:* )
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10879 (
10880 cat <<\_ASBOX
10881 ## ------------------------------------------ ##
10882 ## Report this to the AC_PACKAGE_NAME lists. ##
10883 ## ------------------------------------------ ##
10884 _ASBOX
10885 ) |
10886 sed "s/^/$as_me: WARNING: /" >&2
10887 ;;
10888 esac
10889 echo "$as_me:$LINENO: checking for $ac_header" >&5
10890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10891 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 else
10894 eval "$as_ac_Header=\$ac_header_preproc"
10895 fi
10896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10898
10899 fi
10900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10901 cat >>confdefs.h <<_ACEOF
10902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10903 _ACEOF
10904
10905 fi
10906
10907 done
10908
10909
10910 for ac_header in sys/proc.h
10911 do
10912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10913 echo "$as_me:$LINENO: checking for $ac_header" >&5
10914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10917 else
10918 cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */
10924 #if HAVE_SYS_PARAM_H
10925 # include <sys/param.h>
10926 #endif
10927
10928
10929 #include <$ac_header>
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10933 (eval $ac_compile) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } &&
10940 { ac_try='test -z "$ac_c_werror_flag"
10941 || test ! -s conftest.err'
10942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10943 (eval $ac_try) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }; } &&
10947 { ac_try='test -s conftest.$ac_objext'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; }; then
10953 eval "$as_ac_Header=yes"
10954 else
10955 echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958 eval "$as_ac_Header=no"
10959 fi
10960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10961 fi
10962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10965 cat >>confdefs.h <<_ACEOF
10966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 fi
10970
10971 done
10972
10973
10974 for ac_header in sys/procfs.h
10975 do
10976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10978 echo "$as_me:$LINENO: checking for $ac_header" >&5
10979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 fi
10983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 else
10986 # Is the header compilable?
10987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10989 cat >conftest.$ac_ext <<_ACEOF
10990 /* confdefs.h. */
10991 _ACEOF
10992 cat confdefs.h >>conftest.$ac_ext
10993 cat >>conftest.$ac_ext <<_ACEOF
10994 /* end confdefs.h. */
10995 $ac_includes_default
10996 #include <$ac_header>
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_header_compiler=yes
11021 else
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_header_compiler=no
11026 fi
11027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029 echo "${ECHO_T}$ac_header_compiler" >&6
11030
11031 # Is the header present?
11032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11034 cat >conftest.$ac_ext <<_ACEOF
11035 /* confdefs.h. */
11036 _ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 #include <$ac_header>
11041 _ACEOF
11042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } >/dev/null; then
11050 if test -s conftest.err; then
11051 ac_cpp_err=$ac_c_preproc_warn_flag
11052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11053 else
11054 ac_cpp_err=
11055 fi
11056 else
11057 ac_cpp_err=yes
11058 fi
11059 if test -z "$ac_cpp_err"; then
11060 ac_header_preproc=yes
11061 else
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 ac_header_preproc=no
11066 fi
11067 rm -f conftest.err conftest.$ac_ext
11068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069 echo "${ECHO_T}$ac_header_preproc" >&6
11070
11071 # So? What about this header?
11072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11073 yes:no: )
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078 ac_header_preproc=yes
11079 ;;
11080 no:yes:* )
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11093 (
11094 cat <<\_ASBOX
11095 ## ------------------------------------------ ##
11096 ## Report this to the AC_PACKAGE_NAME lists. ##
11097 ## ------------------------------------------ ##
11098 _ASBOX
11099 ) |
11100 sed "s/^/$as_me: WARNING: /" >&2
11101 ;;
11102 esac
11103 echo "$as_me:$LINENO: checking for $ac_header" >&5
11104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 else
11108 eval "$as_ac_Header=\$ac_header_preproc"
11109 fi
11110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11112
11113 fi
11114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11117 _ACEOF
11118
11119 fi
11120
11121 done
11122
11123
11124
11125 for ac_header in sys/ptrace.h ptrace.h
11126 do
11127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11129 echo "$as_me:$LINENO: checking for $ac_header" >&5
11130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11132 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 fi
11134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11135 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11136 else
11137 # Is the header compilable?
11138 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11140 cat >conftest.$ac_ext <<_ACEOF
11141 /* confdefs.h. */
11142 _ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #include <$ac_header>
11148 _ACEOF
11149 rm -f conftest.$ac_objext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11151 (eval $ac_compile) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest.$ac_objext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 ac_header_compiler=yes
11172 else
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ac_header_compiler=no
11177 fi
11178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11180 echo "${ECHO_T}$ac_header_compiler" >&6
11181
11182 # Is the header present?
11183 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11185 cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h. */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 #include <$ac_header>
11192 _ACEOF
11193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } >/dev/null; then
11201 if test -s conftest.err; then
11202 ac_cpp_err=$ac_c_preproc_warn_flag
11203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11204 else
11205 ac_cpp_err=
11206 fi
11207 else
11208 ac_cpp_err=yes
11209 fi
11210 if test -z "$ac_cpp_err"; then
11211 ac_header_preproc=yes
11212 else
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 ac_header_preproc=no
11217 fi
11218 rm -f conftest.err conftest.$ac_ext
11219 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11220 echo "${ECHO_T}$ac_header_preproc" >&6
11221
11222 # So? What about this header?
11223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11224 yes:no: )
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11229 ac_header_preproc=yes
11230 ;;
11231 no:yes:* )
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11244 (
11245 cat <<\_ASBOX
11246 ## ------------------------------------------ ##
11247 ## Report this to the AC_PACKAGE_NAME lists. ##
11248 ## ------------------------------------------ ##
11249 _ASBOX
11250 ) |
11251 sed "s/^/$as_me: WARNING: /" >&2
11252 ;;
11253 esac
11254 echo "$as_me:$LINENO: checking for $ac_header" >&5
11255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 else
11259 eval "$as_ac_Header=\$ac_header_preproc"
11260 fi
11261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11263
11264 fi
11265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268 _ACEOF
11269
11270 fi
11271
11272 done
11273
11274
11275
11276 for ac_header in sys/reg.h sys/debugreg.h
11277 do
11278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11280 echo "$as_me:$LINENO: checking for $ac_header" >&5
11281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11284 fi
11285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11287 else
11288 # Is the header compilable?
11289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11292 /* confdefs.h. */
11293 _ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 $ac_includes_default
11298 #include <$ac_header>
11299 _ACEOF
11300 rm -f conftest.$ac_objext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11302 (eval $ac_compile) 2>conftest.er1
11303 ac_status=$?
11304 grep -v '^ *+' conftest.er1 >conftest.err
11305 rm -f conftest.er1
11306 cat conftest.err >&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); } &&
11309 { ac_try='test -z "$ac_c_werror_flag"
11310 || test ! -s conftest.err'
11311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11312 (eval $ac_try) 2>&5
11313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11323 else
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_header_compiler=no
11328 fi
11329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11331 echo "${ECHO_T}$ac_header_compiler" >&6
11332
11333 # Is the header present?
11334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11336 cat >conftest.$ac_ext <<_ACEOF
11337 /* confdefs.h. */
11338 _ACEOF
11339 cat confdefs.h >>conftest.$ac_ext
11340 cat >>conftest.$ac_ext <<_ACEOF
11341 /* end confdefs.h. */
11342 #include <$ac_header>
11343 _ACEOF
11344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11346 ac_status=$?
11347 grep -v '^ *+' conftest.er1 >conftest.err
11348 rm -f conftest.er1
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
11354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11355 else
11356 ac_cpp_err=
11357 fi
11358 else
11359 ac_cpp_err=yes
11360 fi
11361 if test -z "$ac_cpp_err"; then
11362 ac_header_preproc=yes
11363 else
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11366
11367 ac_header_preproc=no
11368 fi
11369 rm -f conftest.err conftest.$ac_ext
11370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11371 echo "${ECHO_T}$ac_header_preproc" >&6
11372
11373 # So? What about this header?
11374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11375 yes:no: )
11376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11380 ac_header_preproc=yes
11381 ;;
11382 no:yes:* )
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11395 (
11396 cat <<\_ASBOX
11397 ## ------------------------------------------ ##
11398 ## Report this to the AC_PACKAGE_NAME lists. ##
11399 ## ------------------------------------------ ##
11400 _ASBOX
11401 ) |
11402 sed "s/^/$as_me: WARNING: /" >&2
11403 ;;
11404 esac
11405 echo "$as_me:$LINENO: checking for $ac_header" >&5
11406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410 eval "$as_ac_Header=\$ac_header_preproc"
11411 fi
11412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11414
11415 fi
11416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11417 cat >>confdefs.h <<_ACEOF
11418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11419 _ACEOF
11420
11421 fi
11422
11423 done
11424
11425
11426 for ac_header in sys/select.h
11427 do
11428 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11430 echo "$as_me:$LINENO: checking for $ac_header" >&5
11431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 fi
11435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11437 else
11438 # Is the header compilable?
11439 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11441 cat >conftest.$ac_ext <<_ACEOF
11442 /* confdefs.h. */
11443 _ACEOF
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11448 #include <$ac_header>
11449 _ACEOF
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -z "$ac_c_werror_flag"
11460 || test ! -s conftest.err'
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; } &&
11466 { ac_try='test -s conftest.$ac_objext'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; }; then
11472 ac_header_compiler=yes
11473 else
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.$ac_ext >&5
11476
11477 ac_header_compiler=no
11478 fi
11479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11480 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11481 echo "${ECHO_T}$ac_header_compiler" >&6
11482
11483 # Is the header present?
11484 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <$ac_header>
11493 _ACEOF
11494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11496 ac_status=$?
11497 grep -v '^ *+' conftest.er1 >conftest.err
11498 rm -f conftest.er1
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } >/dev/null; then
11502 if test -s conftest.err; then
11503 ac_cpp_err=$ac_c_preproc_warn_flag
11504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11505 else
11506 ac_cpp_err=
11507 fi
11508 else
11509 ac_cpp_err=yes
11510 fi
11511 if test -z "$ac_cpp_err"; then
11512 ac_header_preproc=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_header_preproc=no
11518 fi
11519 rm -f conftest.err conftest.$ac_ext
11520 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11521 echo "${ECHO_T}$ac_header_preproc" >&6
11522
11523 # So? What about this header?
11524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11525 yes:no: )
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11527 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11529 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11530 ac_header_preproc=yes
11531 ;;
11532 no:yes:* )
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11534 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11536 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11538 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11540 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11544 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545 (
11546 cat <<\_ASBOX
11547 ## ------------------------------------------ ##
11548 ## Report this to the AC_PACKAGE_NAME lists. ##
11549 ## ------------------------------------------ ##
11550 _ASBOX
11551 ) |
11552 sed "s/^/$as_me: WARNING: /" >&2
11553 ;;
11554 esac
11555 echo "$as_me:$LINENO: checking for $ac_header" >&5
11556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560 eval "$as_ac_Header=\$ac_header_preproc"
11561 fi
11562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11563 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11564
11565 fi
11566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11567 cat >>confdefs.h <<_ACEOF
11568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11569 _ACEOF
11570
11571 fi
11572
11573 done
11574
11575
11576 for ac_header in sys/syscall.h
11577 do
11578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11579 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11580 echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 fi
11585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11587 else
11588 # Is the header compilable?
11589 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11590 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 $ac_includes_default
11598 #include <$ac_header>
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602 (eval $ac_compile) 2>conftest.er1
11603 ac_status=$?
11604 grep -v '^ *+' conftest.er1 >conftest.err
11605 rm -f conftest.er1
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag"
11610 || test ! -s conftest.err'
11611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612 (eval $ac_try) 2>&5
11613 ac_status=$?
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); }; } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_header_compiler=yes
11623 else
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_header_compiler=no
11628 fi
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11631 echo "${ECHO_T}$ac_header_compiler" >&6
11632
11633 # Is the header present?
11634 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11635 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11636 cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h. */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11642 #include <$ac_header>
11643 _ACEOF
11644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11646 ac_status=$?
11647 grep -v '^ *+' conftest.er1 >conftest.err
11648 rm -f conftest.er1
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } >/dev/null; then
11652 if test -s conftest.err; then
11653 ac_cpp_err=$ac_c_preproc_warn_flag
11654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11655 else
11656 ac_cpp_err=
11657 fi
11658 else
11659 ac_cpp_err=yes
11660 fi
11661 if test -z "$ac_cpp_err"; then
11662 ac_header_preproc=yes
11663 else
11664 echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 ac_header_preproc=no
11668 fi
11669 rm -f conftest.err conftest.$ac_ext
11670 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11671 echo "${ECHO_T}$ac_header_preproc" >&6
11672
11673 # So? What about this header?
11674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11675 yes:no: )
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11677 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11679 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11680 ac_header_preproc=yes
11681 ;;
11682 no:yes:* )
11683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11684 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11686 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11688 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11690 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11692 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11694 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11695 (
11696 cat <<\_ASBOX
11697 ## ------------------------------------------ ##
11698 ## Report this to the AC_PACKAGE_NAME lists. ##
11699 ## ------------------------------------------ ##
11700 _ASBOX
11701 ) |
11702 sed "s/^/$as_me: WARNING: /" >&2
11703 ;;
11704 esac
11705 echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 eval "$as_ac_Header=\$ac_header_preproc"
11711 fi
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11714
11715 fi
11716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11717 cat >>confdefs.h <<_ACEOF
11718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11719 _ACEOF
11720
11721 fi
11722
11723 done
11724
11725
11726 for ac_header in sys/types.h
11727 do
11728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11730 echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 fi
11735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11737 else
11738 # Is the header compilable?
11739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11741 cat >conftest.$ac_ext <<_ACEOF
11742 /* confdefs.h. */
11743 _ACEOF
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11748 #include <$ac_header>
11749 _ACEOF
11750 rm -f conftest.$ac_objext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_header_compiler=yes
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11776
11777 ac_header_compiler=no
11778 fi
11779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11781 echo "${ECHO_T}$ac_header_compiler" >&6
11782
11783 # Is the header present?
11784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11786 cat >conftest.$ac_ext <<_ACEOF
11787 /* confdefs.h. */
11788 _ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <$ac_header>
11793 _ACEOF
11794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null; then
11802 if test -s conftest.err; then
11803 ac_cpp_err=$ac_c_preproc_warn_flag
11804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11805 else
11806 ac_cpp_err=
11807 fi
11808 else
11809 ac_cpp_err=yes
11810 fi
11811 if test -z "$ac_cpp_err"; then
11812 ac_header_preproc=yes
11813 else
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11816
11817 ac_header_preproc=no
11818 fi
11819 rm -f conftest.err conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11821 echo "${ECHO_T}$ac_header_preproc" >&6
11822
11823 # So? What about this header?
11824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11825 yes:no: )
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11830 ac_header_preproc=yes
11831 ;;
11832 no:yes:* )
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11845 (
11846 cat <<\_ASBOX
11847 ## ------------------------------------------ ##
11848 ## Report this to the AC_PACKAGE_NAME lists. ##
11849 ## ------------------------------------------ ##
11850 _ASBOX
11851 ) |
11852 sed "s/^/$as_me: WARNING: /" >&2
11853 ;;
11854 esac
11855 echo "$as_me:$LINENO: checking for $ac_header" >&5
11856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 eval "$as_ac_Header=\$ac_header_preproc"
11861 fi
11862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11864
11865 fi
11866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11867 cat >>confdefs.h <<_ACEOF
11868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11869 _ACEOF
11870
11871 fi
11872
11873 done
11874
11875
11876 for ac_header in sys/user.h
11877 do
11878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879 echo "$as_me:$LINENO: checking for $ac_header" >&5
11880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 else
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 #if HAVE_SYS_PARAM_H
11891 # include <sys/param.h>
11892 #endif
11893
11894
11895 #include <$ac_header>
11896 _ACEOF
11897 rm -f conftest.$ac_objext
11898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11899 (eval $ac_compile) 2>conftest.er1
11900 ac_status=$?
11901 grep -v '^ *+' conftest.er1 >conftest.err
11902 rm -f conftest.er1
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -z "$ac_c_werror_flag"
11907 || test ! -s conftest.err'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11910 ac_status=$?
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; } &&
11913 { ac_try='test -s conftest.$ac_objext'
11914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11915 (eval $ac_try) 2>&5
11916 ac_status=$?
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; }; then
11919 eval "$as_ac_Header=yes"
11920 else
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11923
11924 eval "$as_ac_Header=no"
11925 fi
11926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11927 fi
11928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11931 cat >>confdefs.h <<_ACEOF
11932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11933 _ACEOF
11934
11935 fi
11936
11937 done
11938
11939
11940
11941 for ac_header in sys/wait.h wait.h
11942 do
11943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11945 echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11947 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 fi
11950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11952 else
11953 # Is the header compilable?
11954 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11962 $ac_includes_default
11963 #include <$ac_header>
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_header_compiler=yes
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11991
11992 ac_header_compiler=no
11993 fi
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11996 echo "${ECHO_T}$ac_header_compiler" >&6
11997
11998 # Is the header present?
11999 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12000 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12001 cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h. */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h. */
12007 #include <$ac_header>
12008 _ACEOF
12009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } >/dev/null; then
12017 if test -s conftest.err; then
12018 ac_cpp_err=$ac_c_preproc_warn_flag
12019 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12020 else
12021 ac_cpp_err=
12022 fi
12023 else
12024 ac_cpp_err=yes
12025 fi
12026 if test -z "$ac_cpp_err"; then
12027 ac_header_preproc=yes
12028 else
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_header_preproc=no
12033 fi
12034 rm -f conftest.err conftest.$ac_ext
12035 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12036 echo "${ECHO_T}$ac_header_preproc" >&6
12037
12038 # So? What about this header?
12039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12040 yes:no: )
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12045 ac_header_preproc=yes
12046 ;;
12047 no:yes:* )
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12060 (
12061 cat <<\_ASBOX
12062 ## ------------------------------------------ ##
12063 ## Report this to the AC_PACKAGE_NAME lists. ##
12064 ## ------------------------------------------ ##
12065 _ASBOX
12066 ) |
12067 sed "s/^/$as_me: WARNING: /" >&2
12068 ;;
12069 esac
12070 echo "$as_me:$LINENO: checking for $ac_header" >&5
12071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 eval "$as_ac_Header=\$ac_header_preproc"
12076 fi
12077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12079
12080 fi
12081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12082 cat >>confdefs.h <<_ACEOF
12083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 _ACEOF
12085
12086 fi
12087
12088 done
12089
12090
12091
12092
12093 for ac_header in termios.h termio.h sgtty.h
12094 do
12095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097 echo "$as_me:$LINENO: checking for $ac_header" >&5
12098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 fi
12102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12104 else
12105 # Is the header compilable?
12106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12108 cat >conftest.$ac_ext <<_ACEOF
12109 /* confdefs.h. */
12110 _ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12114 $ac_includes_default
12115 #include <$ac_header>
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119 (eval $ac_compile) 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag"
12127 || test ! -s conftest.err'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12130 ac_status=$?
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; } &&
12133 { ac_try='test -s conftest.$ac_objext'
12134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135 (eval $ac_try) 2>&5
12136 ac_status=$?
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); }; }; then
12139 ac_header_compiler=yes
12140 else
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12143
12144 ac_header_compiler=no
12145 fi
12146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12148 echo "${ECHO_T}$ac_header_compiler" >&6
12149
12150 # Is the header present?
12151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12153 cat >conftest.$ac_ext <<_ACEOF
12154 /* confdefs.h. */
12155 _ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12159 #include <$ac_header>
12160 _ACEOF
12161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12163 ac_status=$?
12164 grep -v '^ *+' conftest.er1 >conftest.err
12165 rm -f conftest.er1
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } >/dev/null; then
12169 if test -s conftest.err; then
12170 ac_cpp_err=$ac_c_preproc_warn_flag
12171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12172 else
12173 ac_cpp_err=
12174 fi
12175 else
12176 ac_cpp_err=yes
12177 fi
12178 if test -z "$ac_cpp_err"; then
12179 ac_header_preproc=yes
12180 else
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 ac_header_preproc=no
12185 fi
12186 rm -f conftest.err conftest.$ac_ext
12187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12188 echo "${ECHO_T}$ac_header_preproc" >&6
12189
12190 # So? What about this header?
12191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12192 yes:no: )
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12197 ac_header_preproc=yes
12198 ;;
12199 no:yes:* )
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12212 (
12213 cat <<\_ASBOX
12214 ## ------------------------------------------ ##
12215 ## Report this to the AC_PACKAGE_NAME lists. ##
12216 ## ------------------------------------------ ##
12217 _ASBOX
12218 ) |
12219 sed "s/^/$as_me: WARNING: /" >&2
12220 ;;
12221 esac
12222 echo "$as_me:$LINENO: checking for $ac_header" >&5
12223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226 else
12227 eval "$as_ac_Header=\$ac_header_preproc"
12228 fi
12229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12231
12232 fi
12233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12234 cat >>confdefs.h <<_ACEOF
12235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12236 _ACEOF
12237
12238 fi
12239
12240 done
12241
12242
12243 for ac_header in unistd.h
12244 do
12245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12247 echo "$as_me:$LINENO: checking for $ac_header" >&5
12248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 fi
12252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12254 else
12255 # Is the header compilable?
12256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12258 cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h. */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12264 $ac_includes_default
12265 #include <$ac_header>
12266 _ACEOF
12267 rm -f conftest.$ac_objext
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>conftest.er1
12270 ac_status=$?
12271 grep -v '^ *+' conftest.er1 >conftest.err
12272 rm -f conftest.er1
12273 cat conftest.err >&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -z "$ac_c_werror_flag"
12277 || test ! -s conftest.err'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12280 ac_status=$?
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; } &&
12283 { ac_try='test -s conftest.$ac_objext'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12286 ac_status=$?
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; }; then
12289 ac_header_compiler=yes
12290 else
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12293
12294 ac_header_compiler=no
12295 fi
12296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12298 echo "${ECHO_T}$ac_header_compiler" >&6
12299
12300 # Is the header present?
12301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12303 cat >conftest.$ac_ext <<_ACEOF
12304 /* confdefs.h. */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h. */
12309 #include <$ac_header>
12310 _ACEOF
12311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12313 ac_status=$?
12314 grep -v '^ *+' conftest.er1 >conftest.err
12315 rm -f conftest.er1
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } >/dev/null; then
12319 if test -s conftest.err; then
12320 ac_cpp_err=$ac_c_preproc_warn_flag
12321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12322 else
12323 ac_cpp_err=
12324 fi
12325 else
12326 ac_cpp_err=yes
12327 fi
12328 if test -z "$ac_cpp_err"; then
12329 ac_header_preproc=yes
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12333
12334 ac_header_preproc=no
12335 fi
12336 rm -f conftest.err conftest.$ac_ext
12337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12338 echo "${ECHO_T}$ac_header_preproc" >&6
12339
12340 # So? What about this header?
12341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12342 yes:no: )
12343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12347 ac_header_preproc=yes
12348 ;;
12349 no:yes:* )
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12362 (
12363 cat <<\_ASBOX
12364 ## ------------------------------------------ ##
12365 ## Report this to the AC_PACKAGE_NAME lists. ##
12366 ## ------------------------------------------ ##
12367 _ASBOX
12368 ) |
12369 sed "s/^/$as_me: WARNING: /" >&2
12370 ;;
12371 esac
12372 echo "$as_me:$LINENO: checking for $ac_header" >&5
12373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 else
12377 eval "$as_ac_Header=\$ac_header_preproc"
12378 fi
12379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12381
12382 fi
12383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12386 _ACEOF
12387
12388 fi
12389
12390 done
12391
12392
12393 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12394 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12395 # think that we don't have <curses.h> if we're using GCC.
12396 case $host_os in
12397 solaris2.[789])
12398 if test "$GCC" = yes; then
12399
12400 cat >>confdefs.h <<\_ACEOF
12401 #define _MSE_INT_H 1
12402 _ACEOF
12403
12404 fi ;;
12405 esac
12406
12407
12408
12409
12410 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
12411 do
12412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12414 echo "$as_me:$LINENO: checking for $ac_header" >&5
12415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 fi
12419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12421 else
12422 # Is the header compilable?
12423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h. */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12432 #include <$ac_header>
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag"
12444 || test ! -s conftest.err'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; } &&
12450 { ac_try='test -s conftest.$ac_objext'
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 ac_header_compiler=yes
12457 else
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12460
12461 ac_header_compiler=no
12462 fi
12463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12464 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12465 echo "${ECHO_T}$ac_header_compiler" >&6
12466
12467 # Is the header present?
12468 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12469 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12471 /* confdefs.h. */
12472 _ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 #include <$ac_header>
12477 _ACEOF
12478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } >/dev/null; then
12486 if test -s conftest.err; then
12487 ac_cpp_err=$ac_c_preproc_warn_flag
12488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12489 else
12490 ac_cpp_err=
12491 fi
12492 else
12493 ac_cpp_err=yes
12494 fi
12495 if test -z "$ac_cpp_err"; then
12496 ac_header_preproc=yes
12497 else
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501 ac_header_preproc=no
12502 fi
12503 rm -f conftest.err conftest.$ac_ext
12504 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12505 echo "${ECHO_T}$ac_header_preproc" >&6
12506
12507 # So? What about this header?
12508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12509 yes:no: )
12510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12514 ac_header_preproc=yes
12515 ;;
12516 no:yes:* )
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12529 (
12530 cat <<\_ASBOX
12531 ## ------------------------------------------ ##
12532 ## Report this to the AC_PACKAGE_NAME lists. ##
12533 ## ------------------------------------------ ##
12534 _ASBOX
12535 ) |
12536 sed "s/^/$as_me: WARNING: /" >&2
12537 ;;
12538 esac
12539 echo "$as_me:$LINENO: checking for $ac_header" >&5
12540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12543 else
12544 eval "$as_ac_Header=\$ac_header_preproc"
12545 fi
12546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12548
12549 fi
12550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12551 cat >>confdefs.h <<_ACEOF
12552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12553 _ACEOF
12554
12555 fi
12556
12557 done
12558
12559
12560 for ac_header in ncurses/term.h
12561 do
12562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12563 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12564 echo "$as_me:$LINENO: checking for $ac_header" >&5
12565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 fi
12569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12571 else
12572 # Is the header compilable?
12573 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 $ac_includes_default
12582 #include <$ac_header>
12583 _ACEOF
12584 rm -f conftest.$ac_objext
12585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12586 (eval $ac_compile) 2>conftest.er1
12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } &&
12593 { ac_try='test -z "$ac_c_werror_flag"
12594 || test ! -s conftest.err'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_header_compiler=yes
12607 else
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12610
12611 ac_header_compiler=no
12612 fi
12613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12614 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12615 echo "${ECHO_T}$ac_header_compiler" >&6
12616
12617 # Is the header present?
12618 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12620 cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h. */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 #include <$ac_header>
12627 _ACEOF
12628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } >/dev/null; then
12636 if test -s conftest.err; then
12637 ac_cpp_err=$ac_c_preproc_warn_flag
12638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12639 else
12640 ac_cpp_err=
12641 fi
12642 else
12643 ac_cpp_err=yes
12644 fi
12645 if test -z "$ac_cpp_err"; then
12646 ac_header_preproc=yes
12647 else
12648 echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_header_preproc=no
12652 fi
12653 rm -f conftest.err conftest.$ac_ext
12654 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12655 echo "${ECHO_T}$ac_header_preproc" >&6
12656
12657 # So? What about this header?
12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12659 yes:no: )
12660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12661 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12663 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc=yes
12665 ;;
12666 no:yes:* )
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12668 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12670 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12672 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12674 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12678 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12679 (
12680 cat <<\_ASBOX
12681 ## ------------------------------------------ ##
12682 ## Report this to the AC_PACKAGE_NAME lists. ##
12683 ## ------------------------------------------ ##
12684 _ASBOX
12685 ) |
12686 sed "s/^/$as_me: WARNING: /" >&2
12687 ;;
12688 esac
12689 echo "$as_me:$LINENO: checking for $ac_header" >&5
12690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12692 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 else
12694 eval "$as_ac_Header=\$ac_header_preproc"
12695 fi
12696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12698
12699 fi
12700 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12703 _ACEOF
12704
12705 fi
12706
12707 done
12708
12709
12710 for ac_header in term.h
12711 do
12712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12713 echo "$as_me:$LINENO: checking for $ac_header" >&5
12714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 else
12718 cat >conftest.$ac_ext <<_ACEOF
12719 /* confdefs.h. */
12720 _ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 #if HAVE_CURSES_H
12725 # include <curses.h>
12726 #endif
12727
12728
12729 #include <$ac_header>
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>conftest.er1
12734 ac_status=$?
12735 grep -v '^ *+' conftest.er1 >conftest.err
12736 rm -f conftest.er1
12737 cat conftest.err >&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } &&
12740 { ac_try='test -z "$ac_c_werror_flag"
12741 || test ! -s conftest.err'
12742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12743 (eval $ac_try) 2>&5
12744 ac_status=$?
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); }; } &&
12747 { ac_try='test -s conftest.$ac_objext'
12748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12749 (eval $ac_try) 2>&5
12750 ac_status=$?
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 eval "$as_ac_Header=yes"
12754 else
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12757
12758 eval "$as_ac_Header=no"
12759 fi
12760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12761 fi
12762 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12763 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12765 cat >>confdefs.h <<_ACEOF
12766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12767 _ACEOF
12768
12769 fi
12770
12771 done
12772
12773
12774 # FIXME: kettenis/20030102: In most cases we include these
12775 # unconditionally, so what's the point in checking these?
12776
12777
12778 for ac_header in ctype.h time.h
12779 do
12780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12782 echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 fi
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12789 else
12790 # Is the header compilable?
12791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 #include <$ac_header>
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_header_compiler=yes
12825 else
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_header_compiler=no
12830 fi
12831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12833 echo "${ECHO_T}$ac_header_compiler" >&6
12834
12835 # Is the header present?
12836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 #include <$ac_header>
12845 _ACEOF
12846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_c_preproc_warn_flag
12856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12857 else
12858 ac_cpp_err=
12859 fi
12860 else
12861 ac_cpp_err=yes
12862 fi
12863 if test -z "$ac_cpp_err"; then
12864 ac_header_preproc=yes
12865 else
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 ac_header_preproc=no
12870 fi
12871 rm -f conftest.err conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12873 echo "${ECHO_T}$ac_header_preproc" >&6
12874
12875 # So? What about this header?
12876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12877 yes:no: )
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12882 ac_header_preproc=yes
12883 ;;
12884 no:yes:* )
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12897 (
12898 cat <<\_ASBOX
12899 ## ------------------------------------------ ##
12900 ## Report this to the AC_PACKAGE_NAME lists. ##
12901 ## ------------------------------------------ ##
12902 _ASBOX
12903 ) |
12904 sed "s/^/$as_me: WARNING: /" >&2
12905 ;;
12906 esac
12907 echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912 eval "$as_ac_Header=\$ac_header_preproc"
12913 fi
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916
12917 fi
12918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12921 _ACEOF
12922
12923 fi
12924
12925 done
12926
12927
12928 # ------------------------- #
12929 # Checks for declarations. #
12930 # ------------------------- #
12931
12932 echo "$as_me:$LINENO: checking whether free is declared" >&5
12933 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12934 if test "${ac_cv_have_decl_free+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 else
12937 cat >conftest.$ac_ext <<_ACEOF
12938 /* confdefs.h. */
12939 _ACEOF
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 $ac_includes_default
12944 int
12945 main ()
12946 {
12947 #ifndef free
12948 char *p = (char *) free;
12949 #endif
12950
12951 ;
12952 return 0;
12953 }
12954 _ACEOF
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>conftest.er1
12958 ac_status=$?
12959 grep -v '^ *+' conftest.er1 >conftest.err
12960 rm -f conftest.er1
12961 cat conftest.err >&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -z "$ac_c_werror_flag"
12965 || test ! -s conftest.err'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; } &&
12971 { ac_try='test -s conftest.$ac_objext'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 ac_cv_have_decl_free=yes
12978 else
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982 ac_cv_have_decl_free=no
12983 fi
12984 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12985 fi
12986 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12987 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12988 if test $ac_cv_have_decl_free = yes; then
12989
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_DECL_FREE 1
12992 _ACEOF
12993
12994
12995 else
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_DECL_FREE 0
12998 _ACEOF
12999
13000
13001 fi
13002 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13003 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13004 if test "${ac_cv_have_decl_malloc+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13006 else
13007 cat >conftest.$ac_ext <<_ACEOF
13008 /* confdefs.h. */
13009 _ACEOF
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 $ac_includes_default
13014 int
13015 main ()
13016 {
13017 #ifndef malloc
13018 char *p = (char *) malloc;
13019 #endif
13020
13021 ;
13022 return 0;
13023 }
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>conftest.er1
13028 ac_status=$?
13029 grep -v '^ *+' conftest.er1 >conftest.err
13030 rm -f conftest.er1
13031 cat conftest.err >&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -z "$ac_c_werror_flag"
13035 || test ! -s conftest.err'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13047 ac_cv_have_decl_malloc=yes
13048 else
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13051
13052 ac_cv_have_decl_malloc=no
13053 fi
13054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13055 fi
13056 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13057 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13058 if test $ac_cv_have_decl_malloc = yes; then
13059
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_DECL_MALLOC 1
13062 _ACEOF
13063
13064
13065 else
13066 cat >>confdefs.h <<_ACEOF
13067 #define HAVE_DECL_MALLOC 0
13068 _ACEOF
13069
13070
13071 fi
13072 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13073 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13074 if test "${ac_cv_have_decl_realloc+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 else
13077 cat >conftest.$ac_ext <<_ACEOF
13078 /* confdefs.h. */
13079 _ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13083 $ac_includes_default
13084 int
13085 main ()
13086 {
13087 #ifndef realloc
13088 char *p = (char *) realloc;
13089 #endif
13090
13091 ;
13092 return 0;
13093 }
13094 _ACEOF
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_have_decl_realloc=yes
13118 else
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13121
13122 ac_cv_have_decl_realloc=no
13123 fi
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13125 fi
13126 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13127 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13128 if test $ac_cv_have_decl_realloc = yes; then
13129
13130 cat >>confdefs.h <<_ACEOF
13131 #define HAVE_DECL_REALLOC 1
13132 _ACEOF
13133
13134
13135 else
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_DECL_REALLOC 0
13138 _ACEOF
13139
13140
13141 fi
13142
13143
13144 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13145 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13146 if test "${ac_cv_have_decl_strerror+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 else
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h. */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 $ac_includes_default
13156 int
13157 main ()
13158 {
13159 #ifndef strerror
13160 char *p = (char *) strerror;
13161 #endif
13162
13163 ;
13164 return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169 (eval $ac_compile) 2>conftest.er1
13170 ac_status=$?
13171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag"
13177 || test ! -s conftest.err'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest.$ac_objext'
13184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185 (eval $ac_try) 2>&5
13186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_have_decl_strerror=yes
13190 else
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 ac_cv_have_decl_strerror=no
13195 fi
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13197 fi
13198 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13199 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13200 if test $ac_cv_have_decl_strerror = yes; then
13201
13202 cat >>confdefs.h <<_ACEOF
13203 #define HAVE_DECL_STRERROR 1
13204 _ACEOF
13205
13206
13207 else
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_DECL_STRERROR 0
13210 _ACEOF
13211
13212
13213 fi
13214 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13215 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13216 if test "${ac_cv_have_decl_strstr+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219 cat >conftest.$ac_ext <<_ACEOF
13220 /* confdefs.h. */
13221 _ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13226 int
13227 main ()
13228 {
13229 #ifndef strstr
13230 char *p = (char *) strstr;
13231 #endif
13232
13233 ;
13234 return 0;
13235 }
13236 _ACEOF
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest.$ac_objext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_have_decl_strstr=yes
13260 else
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_cv_have_decl_strstr=no
13265 fi
13266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13267 fi
13268 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13269 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13270 if test $ac_cv_have_decl_strstr = yes; then
13271
13272 cat >>confdefs.h <<_ACEOF
13273 #define HAVE_DECL_STRSTR 1
13274 _ACEOF
13275
13276
13277 else
13278 cat >>confdefs.h <<_ACEOF
13279 #define HAVE_DECL_STRSTR 0
13280 _ACEOF
13281
13282
13283 fi
13284
13285
13286 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13287 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13288 if test "${ac_cv_have_decl_getopt+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13298 int
13299 main ()
13300 {
13301 #ifndef getopt
13302 char *p = (char *) getopt;
13303 #endif
13304
13305 ;
13306 return 0;
13307 }
13308 _ACEOF
13309 rm -f conftest.$ac_objext
13310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13311 (eval $ac_compile) 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } &&
13318 { ac_try='test -z "$ac_c_werror_flag"
13319 || test ! -s conftest.err'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; } &&
13325 { ac_try='test -s conftest.$ac_objext'
13326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13327 (eval $ac_try) 2>&5
13328 ac_status=$?
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); }; }; then
13331 ac_cv_have_decl_getopt=yes
13332 else
13333 echo "$as_me: failed program was:" >&5
13334 sed 's/^/| /' conftest.$ac_ext >&5
13335
13336 ac_cv_have_decl_getopt=no
13337 fi
13338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13339 fi
13340 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13341 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13342 if test $ac_cv_have_decl_getopt = yes; then
13343
13344 cat >>confdefs.h <<_ACEOF
13345 #define HAVE_DECL_GETOPT 1
13346 _ACEOF
13347
13348
13349 else
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_DECL_GETOPT 0
13352 _ACEOF
13353
13354
13355 fi
13356
13357
13358
13359 # ----------------------- #
13360 # Checks for structures. #
13361 # ----------------------- #
13362
13363 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13364 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13365 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 else
13368 cat >conftest.$ac_ext <<_ACEOF
13369 /* confdefs.h. */
13370 _ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 int
13376 main ()
13377 {
13378 static struct stat ac_aggr;
13379 if (ac_aggr.st_blocks)
13380 return 0;
13381 ;
13382 return 0;
13383 }
13384 _ACEOF
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -z "$ac_c_werror_flag"
13395 || test ! -s conftest.err'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13398 ac_status=$?
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; } &&
13401 { ac_try='test -s conftest.$ac_objext'
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; }; then
13407 ac_cv_member_struct_stat_st_blocks=yes
13408 else
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13411
13412 cat >conftest.$ac_ext <<_ACEOF
13413 /* confdefs.h. */
13414 _ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 $ac_includes_default
13419 int
13420 main ()
13421 {
13422 static struct stat ac_aggr;
13423 if (sizeof ac_aggr.st_blocks)
13424 return 0;
13425 ;
13426 return 0;
13427 }
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag"
13439 || test ! -s conftest.err'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13442 ac_status=$?
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; } &&
13445 { ac_try='test -s conftest.$ac_objext'
13446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13448 ac_status=$?
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 ac_cv_member_struct_stat_st_blocks=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 ac_cv_member_struct_stat_st_blocks=no
13457 fi
13458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13459 fi
13460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13461 fi
13462 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13464 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13465
13466 cat >>confdefs.h <<_ACEOF
13467 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13468 _ACEOF
13469
13470
13471 fi
13472
13473
13474 # ------------------ #
13475 # Checks for types. #
13476 # ------------------ #
13477
13478 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13479 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13480 if test "${ac_cv_type_signal+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h. */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489 #include <sys/types.h>
13490 #include <signal.h>
13491 #ifdef signal
13492 # undef signal
13493 #endif
13494 #ifdef __cplusplus
13495 extern "C" void (*signal (int, void (*)(int)))(int);
13496 #else
13497 void (*signal ()) ();
13498 #endif
13499
13500 int
13501 main ()
13502 {
13503 int i;
13504 ;
13505 return 0;
13506 }
13507 _ACEOF
13508 rm -f conftest.$ac_objext
13509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13510 (eval $ac_compile) 2>conftest.er1
13511 ac_status=$?
13512 grep -v '^ *+' conftest.er1 >conftest.err
13513 rm -f conftest.er1
13514 cat conftest.err >&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); } &&
13517 { ac_try='test -z "$ac_c_werror_flag"
13518 || test ! -s conftest.err'
13519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); }; } &&
13524 { ac_try='test -s conftest.$ac_objext'
13525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13526 (eval $ac_try) 2>&5
13527 ac_status=$?
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); }; }; then
13530 ac_cv_type_signal=void
13531 else
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535 ac_cv_type_signal=int
13536 fi
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13538 fi
13539 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13540 echo "${ECHO_T}$ac_cv_type_signal" >&6
13541
13542 cat >>confdefs.h <<_ACEOF
13543 #define RETSIGTYPE $ac_cv_type_signal
13544 _ACEOF
13545
13546
13547
13548 # ------------------------------------- #
13549 # Checks for compiler characteristics. #
13550 # ------------------------------------- #
13551
13552 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13553 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13554 if test "${ac_cv_c_const+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 else
13557 cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h. */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563
13564 int
13565 main ()
13566 {
13567 /* FIXME: Include the comments suggested by Paul. */
13568 #ifndef __cplusplus
13569 /* Ultrix mips cc rejects this. */
13570 typedef int charset[2];
13571 const charset x;
13572 /* SunOS 4.1.1 cc rejects this. */
13573 char const *const *ccp;
13574 char **p;
13575 /* NEC SVR4.0.2 mips cc rejects this. */
13576 struct point {int x, y;};
13577 static struct point const zero = {0,0};
13578 /* AIX XL C 1.02.0.0 rejects this.
13579 It does not let you subtract one const X* pointer from another in
13580 an arm of an if-expression whose if-part is not a constant
13581 expression */
13582 const char *g = "string";
13583 ccp = &g + (g ? g-g : 0);
13584 /* HPUX 7.0 cc rejects these. */
13585 ++ccp;
13586 p = (char**) ccp;
13587 ccp = (char const *const *) p;
13588 { /* SCO 3.2v4 cc rejects this. */
13589 char *t;
13590 char const *s = 0 ? (char *) 0 : (char const *) 0;
13591
13592 *t++ = 0;
13593 }
13594 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13595 int x[] = {25, 17};
13596 const int *foo = &x[0];
13597 ++foo;
13598 }
13599 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13600 typedef const int *iptr;
13601 iptr p = 0;
13602 ++p;
13603 }
13604 { /* AIX XL C 1.02.0.0 rejects this saying
13605 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13606 struct s { int j; const int *ap[3]; };
13607 struct s *b; b->j = 5;
13608 }
13609 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13610 const int foo = 10;
13611 }
13612 #endif
13613
13614 ;
13615 return 0;
13616 }
13617 _ACEOF
13618 rm -f conftest.$ac_objext
13619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13620 (eval $ac_compile) 2>conftest.er1
13621 ac_status=$?
13622 grep -v '^ *+' conftest.er1 >conftest.err
13623 rm -f conftest.er1
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag"
13628 || test ! -s conftest.err'
13629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630 (eval $ac_try) 2>&5
13631 ac_status=$?
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest.$ac_objext'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13637 ac_status=$?
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; }; then
13640 ac_cv_c_const=yes
13641 else
13642 echo "$as_me: failed program was:" >&5
13643 sed 's/^/| /' conftest.$ac_ext >&5
13644
13645 ac_cv_c_const=no
13646 fi
13647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648 fi
13649 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13650 echo "${ECHO_T}$ac_cv_c_const" >&6
13651 if test $ac_cv_c_const = no; then
13652
13653 cat >>confdefs.h <<\_ACEOF
13654 #define const
13655 _ACEOF
13656
13657 fi
13658
13659 echo "$as_me:$LINENO: checking for inline" >&5
13660 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13661 if test "${ac_cv_c_inline+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664 ac_cv_c_inline=no
13665 for ac_kw in inline __inline__ __inline; do
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #ifndef __cplusplus
13673 typedef int foo_t;
13674 static $ac_kw foo_t static_foo () {return 0; }
13675 $ac_kw foo_t foo () {return 0; }
13676 #endif
13677
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13681 (eval $ac_compile) 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
13688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest.$ac_objext'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_c_inline=$ac_kw; break
13702 else
13703 echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13705
13706 fi
13707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13708 done
13709
13710 fi
13711 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13712 echo "${ECHO_T}$ac_cv_c_inline" >&6
13713
13714
13715 case $ac_cv_c_inline in
13716 inline | yes) ;;
13717 *)
13718 case $ac_cv_c_inline in
13719 no) ac_val=;;
13720 *) ac_val=$ac_cv_c_inline;;
13721 esac
13722 cat >>confdefs.h <<_ACEOF
13723 #ifndef __cplusplus
13724 #define inline $ac_val
13725 #endif
13726 _ACEOF
13727 ;;
13728 esac
13729
13730
13731 # ------------------------------ #
13732 # Checks for library functions. #
13733 # ------------------------------ #
13734
13735 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13736 # for constant arguments. Useless!
13737 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13738 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13739 if test "${ac_cv_working_alloca_h+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 else
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h. */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #include <alloca.h>
13749 int
13750 main ()
13751 {
13752 char *p = (char *) alloca (2 * sizeof (int));
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 rm -f conftest.$ac_objext conftest$ac_exeext
13758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13759 (eval $ac_link) 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_working_alloca_h=yes
13780 else
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13783
13784 ac_cv_working_alloca_h=no
13785 fi
13786 rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 fi
13789 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13790 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13791 if test $ac_cv_working_alloca_h = yes; then
13792
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_ALLOCA_H 1
13795 _ACEOF
13796
13797 fi
13798
13799 echo "$as_me:$LINENO: checking for alloca" >&5
13800 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13801 if test "${ac_cv_func_alloca_works+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13803 else
13804 cat >conftest.$ac_ext <<_ACEOF
13805 /* confdefs.h. */
13806 _ACEOF
13807 cat confdefs.h >>conftest.$ac_ext
13808 cat >>conftest.$ac_ext <<_ACEOF
13809 /* end confdefs.h. */
13810 #ifdef __GNUC__
13811 # define alloca __builtin_alloca
13812 #else
13813 # ifdef _MSC_VER
13814 # include <malloc.h>
13815 # define alloca _alloca
13816 # else
13817 # if HAVE_ALLOCA_H
13818 # include <alloca.h>
13819 # else
13820 # ifdef _AIX
13821 #pragma alloca
13822 # else
13823 # ifndef alloca /* predefined by HP cc +Olibcalls */
13824 char *alloca ();
13825 # endif
13826 # endif
13827 # endif
13828 # endif
13829 #endif
13830
13831 int
13832 main ()
13833 {
13834 char *p = (char *) alloca (1);
13835 ;
13836 return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13842 ac_status=$?
13843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_func_alloca_works=yes
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_cv_func_alloca_works=no
13867 fi
13868 rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 fi
13871 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13872 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13873
13874 if test $ac_cv_func_alloca_works = yes; then
13875
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_ALLOCA 1
13878 _ACEOF
13879
13880 else
13881 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13882 # that cause trouble. Some versions do not even contain alloca or
13883 # contain a buggy version. If you still want to use their alloca,
13884 # use ar to extract alloca.o from them instead of compiling alloca.c.
13885
13886 ALLOCA=alloca.$ac_objext
13887
13888 cat >>confdefs.h <<\_ACEOF
13889 #define C_ALLOCA 1
13890 _ACEOF
13891
13892
13893 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13894 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13895 if test "${ac_cv_os_cray+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 cat >conftest.$ac_ext <<_ACEOF
13899 /* confdefs.h. */
13900 _ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #if defined(CRAY) && ! defined(CRAY2)
13905 webecray
13906 #else
13907 wenotbecray
13908 #endif
13909
13910 _ACEOF
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 $EGREP "webecray" >/dev/null 2>&1; then
13913 ac_cv_os_cray=yes
13914 else
13915 ac_cv_os_cray=no
13916 fi
13917 rm -f conftest*
13918
13919 fi
13920 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13921 echo "${ECHO_T}$ac_cv_os_cray" >&6
13922 if test $ac_cv_os_cray = yes; then
13923 for ac_func in _getb67 GETB67 getb67; do
13924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13925 echo "$as_me:$LINENO: checking for $ac_func" >&5
13926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13927 if eval "test \"\${$as_ac_var+set}\" = set"; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 cat >conftest.$ac_ext <<_ACEOF
13931 /* confdefs.h. */
13932 _ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13938 #define $ac_func innocuous_$ac_func
13939
13940 /* System header to define __stub macros and hopefully few prototypes,
13941 which can conflict with char $ac_func (); below.
13942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13943 <limits.h> exists even on freestanding compilers. */
13944
13945 #ifdef __STDC__
13946 # include <limits.h>
13947 #else
13948 # include <assert.h>
13949 #endif
13950
13951 #undef $ac_func
13952
13953 /* Override any gcc2 internal prototype to avoid an error. */
13954 #ifdef __cplusplus
13955 extern "C"
13956 {
13957 #endif
13958 /* We use char because int might match the return type of a gcc2
13959 builtin and then its argument prototype would still apply. */
13960 char $ac_func ();
13961 /* The GNU C library defines this for functions which it implements
13962 to always fail with ENOSYS. Some functions are actually named
13963 something starting with __ and the normal name is an alias. */
13964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13965 choke me
13966 #else
13967 char (*f) () = $ac_func;
13968 #endif
13969 #ifdef __cplusplus
13970 }
13971 #endif
13972
13973 int
13974 main ()
13975 {
13976 return f != $ac_func;
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 rm -f conftest.$ac_objext conftest$ac_exeext
13982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13983 (eval $ac_link) 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } &&
13990 { ac_try='test -z "$ac_c_werror_flag"
13991 || test ! -s conftest.err'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13994 ac_status=$?
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; } &&
13997 { ac_try='test -s conftest$ac_exeext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14000 ac_status=$?
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 eval "$as_ac_var=yes"
14004 else
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14007
14008 eval "$as_ac_var=no"
14009 fi
14010 rm -f conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 fi
14013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14015 if test `eval echo '${'$as_ac_var'}'` = yes; then
14016
14017 cat >>confdefs.h <<_ACEOF
14018 #define CRAY_STACKSEG_END $ac_func
14019 _ACEOF
14020
14021 break
14022 fi
14023
14024 done
14025 fi
14026
14027 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14028 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14029 if test "${ac_cv_c_stack_direction+set}" = set; then
14030 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032 if test "$cross_compiling" = yes; then
14033 ac_cv_c_stack_direction=0
14034 else
14035 cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 int
14042 find_stack_direction ()
14043 {
14044 static char *addr = 0;
14045 auto char dummy;
14046 if (addr == 0)
14047 {
14048 addr = &dummy;
14049 return find_stack_direction ();
14050 }
14051 else
14052 return (&dummy > addr) ? 1 : -1;
14053 }
14054
14055 int
14056 main ()
14057 {
14058 exit (find_stack_direction () < 0);
14059 }
14060 _ACEOF
14061 rm -f conftest$ac_exeext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14063 (eval $ac_link) 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14069 ac_status=$?
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 ac_cv_c_stack_direction=1
14073 else
14074 echo "$as_me: program exited with status $ac_status" >&5
14075 echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ( exit $ac_status )
14079 ac_cv_c_stack_direction=-1
14080 fi
14081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14082 fi
14083 fi
14084 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14085 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14086
14087 cat >>confdefs.h <<_ACEOF
14088 #define STACK_DIRECTION $ac_cv_c_stack_direction
14089 _ACEOF
14090
14091
14092 fi
14093
14094
14095
14096 for ac_header in stdlib.h unistd.h
14097 do
14098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14100 echo "$as_me:$LINENO: checking for $ac_header" >&5
14101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 fi
14105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14107 else
14108 # Is the header compilable?
14109 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14111 cat >conftest.$ac_ext <<_ACEOF
14112 /* confdefs.h. */
14113 _ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #include <$ac_header>
14119 _ACEOF
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } &&
14129 { ac_try='test -z "$ac_c_werror_flag"
14130 || test ! -s conftest.err'
14131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14133 ac_status=$?
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); }; } &&
14136 { ac_try='test -s conftest.$ac_objext'
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_header_compiler=yes
14143 else
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147 ac_header_compiler=no
14148 fi
14149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6
14152
14153 # Is the header present?
14154 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14156 cat >conftest.$ac_ext <<_ACEOF
14157 /* confdefs.h. */
14158 _ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <$ac_header>
14163 _ACEOF
14164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14166 ac_status=$?
14167 grep -v '^ *+' conftest.er1 >conftest.err
14168 rm -f conftest.er1
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } >/dev/null; then
14172 if test -s conftest.err; then
14173 ac_cpp_err=$ac_c_preproc_warn_flag
14174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14175 else
14176 ac_cpp_err=
14177 fi
14178 else
14179 ac_cpp_err=yes
14180 fi
14181 if test -z "$ac_cpp_err"; then
14182 ac_header_preproc=yes
14183 else
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187 ac_header_preproc=no
14188 fi
14189 rm -f conftest.err conftest.$ac_ext
14190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191 echo "${ECHO_T}$ac_header_preproc" >&6
14192
14193 # So? What about this header?
14194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14195 yes:no: )
14196 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14197 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14200 ac_header_preproc=yes
14201 ;;
14202 no:yes:* )
14203 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14204 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14206 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14207 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14208 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14209 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14210 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14214 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14215 (
14216 cat <<\_ASBOX
14217 ## ------------------------------------------ ##
14218 ## Report this to the AC_PACKAGE_NAME lists. ##
14219 ## ------------------------------------------ ##
14220 _ASBOX
14221 ) |
14222 sed "s/^/$as_me: WARNING: /" >&2
14223 ;;
14224 esac
14225 echo "$as_me:$LINENO: checking for $ac_header" >&5
14226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 eval "$as_ac_Header=\$ac_header_preproc"
14231 fi
14232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14233 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14234
14235 fi
14236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14237 cat >>confdefs.h <<_ACEOF
14238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239 _ACEOF
14240
14241 fi
14242
14243 done
14244
14245
14246 for ac_func in getpagesize
14247 do
14248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14249 echo "$as_me:$LINENO: checking for $ac_func" >&5
14250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14251 if eval "test \"\${$as_ac_var+set}\" = set"; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 else
14254 cat >conftest.$ac_ext <<_ACEOF
14255 /* confdefs.h. */
14256 _ACEOF
14257 cat confdefs.h >>conftest.$ac_ext
14258 cat >>conftest.$ac_ext <<_ACEOF
14259 /* end confdefs.h. */
14260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14262 #define $ac_func innocuous_$ac_func
14263
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char $ac_func (); below.
14266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14267 <limits.h> exists even on freestanding compilers. */
14268
14269 #ifdef __STDC__
14270 # include <limits.h>
14271 #else
14272 # include <assert.h>
14273 #endif
14274
14275 #undef $ac_func
14276
14277 /* Override any gcc2 internal prototype to avoid an error. */
14278 #ifdef __cplusplus
14279 extern "C"
14280 {
14281 #endif
14282 /* We use char because int might match the return type of a gcc2
14283 builtin and then its argument prototype would still apply. */
14284 char $ac_func ();
14285 /* The GNU C library defines this for functions which it implements
14286 to always fail with ENOSYS. Some functions are actually named
14287 something starting with __ and the normal name is an alias. */
14288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14289 choke me
14290 #else
14291 char (*f) () = $ac_func;
14292 #endif
14293 #ifdef __cplusplus
14294 }
14295 #endif
14296
14297 int
14298 main ()
14299 {
14300 return f != $ac_func;
14301 ;
14302 return 0;
14303 }
14304 _ACEOF
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest$ac_exeext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 eval "$as_ac_var=yes"
14328 else
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332 eval "$as_ac_var=no"
14333 fi
14334 rm -f conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 fi
14337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14339 if test `eval echo '${'$as_ac_var'}'` = yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14342 _ACEOF
14343
14344 fi
14345 done
14346
14347 echo "$as_me:$LINENO: checking for working mmap" >&5
14348 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14349 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 if test "$cross_compiling" = yes; then
14353 ac_cv_func_mmap_fixed_mapped=no
14354 else
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h. */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h. */
14361 $ac_includes_default
14362 /* malloc might have been renamed as rpl_malloc. */
14363 #undef malloc
14364
14365 /* Thanks to Mike Haertel and Jim Avera for this test.
14366 Here is a matrix of mmap possibilities:
14367 mmap private not fixed
14368 mmap private fixed at somewhere currently unmapped
14369 mmap private fixed at somewhere already mapped
14370 mmap shared not fixed
14371 mmap shared fixed at somewhere currently unmapped
14372 mmap shared fixed at somewhere already mapped
14373 For private mappings, we should verify that changes cannot be read()
14374 back from the file, nor mmap's back from the file at a different
14375 address. (There have been systems where private was not correctly
14376 implemented like the infamous i386 svr4.0, and systems where the
14377 VM page cache was not coherent with the file system buffer cache
14378 like early versions of FreeBSD and possibly contemporary NetBSD.)
14379 For shared mappings, we should conversely verify that changes get
14380 propagated back to all the places they're supposed to be.
14381
14382 Grep wants private fixed already mapped.
14383 The main things grep needs to know about mmap are:
14384 * does it exist and is it safe to write into the mmap'd area
14385 * how to use it (BSD variants) */
14386
14387 #include <fcntl.h>
14388 #include <sys/mman.h>
14389
14390 #if !STDC_HEADERS && !HAVE_STDLIB_H
14391 char *malloc ();
14392 #endif
14393
14394 /* This mess was copied from the GNU getpagesize.h. */
14395 #if !HAVE_GETPAGESIZE
14396 /* Assume that all systems that can run configure have sys/param.h. */
14397 # if !HAVE_SYS_PARAM_H
14398 # define HAVE_SYS_PARAM_H 1
14399 # endif
14400
14401 # ifdef _SC_PAGESIZE
14402 # define getpagesize() sysconf(_SC_PAGESIZE)
14403 # else /* no _SC_PAGESIZE */
14404 # if HAVE_SYS_PARAM_H
14405 # include <sys/param.h>
14406 # ifdef EXEC_PAGESIZE
14407 # define getpagesize() EXEC_PAGESIZE
14408 # else /* no EXEC_PAGESIZE */
14409 # ifdef NBPG
14410 # define getpagesize() NBPG * CLSIZE
14411 # ifndef CLSIZE
14412 # define CLSIZE 1
14413 # endif /* no CLSIZE */
14414 # else /* no NBPG */
14415 # ifdef NBPC
14416 # define getpagesize() NBPC
14417 # else /* no NBPC */
14418 # ifdef PAGESIZE
14419 # define getpagesize() PAGESIZE
14420 # endif /* PAGESIZE */
14421 # endif /* no NBPC */
14422 # endif /* no NBPG */
14423 # endif /* no EXEC_PAGESIZE */
14424 # else /* no HAVE_SYS_PARAM_H */
14425 # define getpagesize() 8192 /* punt totally */
14426 # endif /* no HAVE_SYS_PARAM_H */
14427 # endif /* no _SC_PAGESIZE */
14428
14429 #endif /* no HAVE_GETPAGESIZE */
14430
14431 int
14432 main ()
14433 {
14434 char *data, *data2, *data3;
14435 int i, pagesize;
14436 int fd;
14437
14438 pagesize = getpagesize ();
14439
14440 /* First, make a file with some known garbage in it. */
14441 data = (char *) malloc (pagesize);
14442 if (!data)
14443 exit (1);
14444 for (i = 0; i < pagesize; ++i)
14445 *(data + i) = rand ();
14446 umask (0);
14447 fd = creat ("conftest.mmap", 0600);
14448 if (fd < 0)
14449 exit (1);
14450 if (write (fd, data, pagesize) != pagesize)
14451 exit (1);
14452 close (fd);
14453
14454 /* Next, try to mmap the file at a fixed address which already has
14455 something else allocated at it. If we can, also make sure that
14456 we see the same garbage. */
14457 fd = open ("conftest.mmap", O_RDWR);
14458 if (fd < 0)
14459 exit (1);
14460 data2 = (char *) malloc (2 * pagesize);
14461 if (!data2)
14462 exit (1);
14463 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14464 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14465 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14466 exit (1);
14467 for (i = 0; i < pagesize; ++i)
14468 if (*(data + i) != *(data2 + i))
14469 exit (1);
14470
14471 /* Finally, make sure that changes to the mapped area do not
14472 percolate back to the file as seen by read(). (This is a bug on
14473 some variants of i386 svr4.0.) */
14474 for (i = 0; i < pagesize; ++i)
14475 *(data2 + i) = *(data2 + i) + 1;
14476 data3 = (char *) malloc (pagesize);
14477 if (!data3)
14478 exit (1);
14479 if (read (fd, data3, pagesize) != pagesize)
14480 exit (1);
14481 for (i = 0; i < pagesize; ++i)
14482 if (*(data + i) != *(data3 + i))
14483 exit (1);
14484 close (fd);
14485 exit (0);
14486 }
14487 _ACEOF
14488 rm -f conftest$ac_exeext
14489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14490 (eval $ac_link) 2>&5
14491 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14496 ac_status=$?
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 ac_cv_func_mmap_fixed_mapped=yes
14500 else
14501 echo "$as_me: program exited with status $ac_status" >&5
14502 echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.$ac_ext >&5
14504
14505 ( exit $ac_status )
14506 ac_cv_func_mmap_fixed_mapped=no
14507 fi
14508 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14509 fi
14510 fi
14511 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14512 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14513 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14514
14515 cat >>confdefs.h <<\_ACEOF
14516 #define HAVE_MMAP 1
14517 _ACEOF
14518
14519 fi
14520 rm -f conftest.mmap
14521
14522 echo "$as_me:$LINENO: checking for pid_t" >&5
14523 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14524 if test "${ac_cv_type_pid_t+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527 cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h. */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h. */
14533 $ac_includes_default
14534 int
14535 main ()
14536 {
14537 if ((pid_t *) 0)
14538 return 0;
14539 if (sizeof (pid_t))
14540 return 0;
14541 ;
14542 return 0;
14543 }
14544 _ACEOF
14545 rm -f conftest.$ac_objext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14547 (eval $ac_compile) 2>conftest.er1
14548 ac_status=$?
14549 grep -v '^ *+' conftest.er1 >conftest.err
14550 rm -f conftest.er1
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try='test -z "$ac_c_werror_flag"
14555 || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14558 ac_status=$?
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try='test -s conftest.$ac_objext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14564 ac_status=$?
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_type_pid_t=yes
14568 else
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ac_cv_type_pid_t=no
14573 fi
14574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14575 fi
14576 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14577 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14578 if test $ac_cv_type_pid_t = yes; then
14579 :
14580 else
14581
14582 cat >>confdefs.h <<_ACEOF
14583 #define pid_t int
14584 _ACEOF
14585
14586 fi
14587
14588
14589
14590 for ac_header in unistd.h vfork.h
14591 do
14592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14594 echo "$as_me:$LINENO: checking for $ac_header" >&5
14595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 fi
14599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14601 else
14602 # Is the header compilable?
14603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h. */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h. */
14611 $ac_includes_default
14612 #include <$ac_header>
14613 _ACEOF
14614 rm -f conftest.$ac_objext
14615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag"
14624 || test ! -s conftest.err'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_header_compiler=yes
14637 else
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 ac_header_compiler=no
14642 fi
14643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6
14646
14647 # Is the header present?
14648 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14650 cat >conftest.$ac_ext <<_ACEOF
14651 /* confdefs.h. */
14652 _ACEOF
14653 cat confdefs.h >>conftest.$ac_ext
14654 cat >>conftest.$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <$ac_header>
14657 _ACEOF
14658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14660 ac_status=$?
14661 grep -v '^ *+' conftest.er1 >conftest.err
14662 rm -f conftest.er1
14663 cat conftest.err >&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } >/dev/null; then
14666 if test -s conftest.err; then
14667 ac_cpp_err=$ac_c_preproc_warn_flag
14668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14669 else
14670 ac_cpp_err=
14671 fi
14672 else
14673 ac_cpp_err=yes
14674 fi
14675 if test -z "$ac_cpp_err"; then
14676 ac_header_preproc=yes
14677 else
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14680
14681 ac_header_preproc=no
14682 fi
14683 rm -f conftest.err conftest.$ac_ext
14684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14685 echo "${ECHO_T}$ac_header_preproc" >&6
14686
14687 # So? What about this header?
14688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689 yes:no: )
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14694 ac_header_preproc=yes
14695 ;;
14696 no:yes:* )
14697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14709 (
14710 cat <<\_ASBOX
14711 ## ------------------------------------------ ##
14712 ## Report this to the AC_PACKAGE_NAME lists. ##
14713 ## ------------------------------------------ ##
14714 _ASBOX
14715 ) |
14716 sed "s/^/$as_me: WARNING: /" >&2
14717 ;;
14718 esac
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 else
14724 eval "$as_ac_Header=\$ac_header_preproc"
14725 fi
14726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14728
14729 fi
14730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14733 _ACEOF
14734
14735 fi
14736
14737 done
14738
14739
14740
14741 for ac_func in fork vfork
14742 do
14743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14744 echo "$as_me:$LINENO: checking for $ac_func" >&5
14745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14746 if eval "test \"\${$as_ac_var+set}\" = set"; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 else
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14757 #define $ac_func innocuous_$ac_func
14758
14759 /* System header to define __stub macros and hopefully few prototypes,
14760 which can conflict with char $ac_func (); below.
14761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14762 <limits.h> exists even on freestanding compilers. */
14763
14764 #ifdef __STDC__
14765 # include <limits.h>
14766 #else
14767 # include <assert.h>
14768 #endif
14769
14770 #undef $ac_func
14771
14772 /* Override any gcc2 internal prototype to avoid an error. */
14773 #ifdef __cplusplus
14774 extern "C"
14775 {
14776 #endif
14777 /* We use char because int might match the return type of a gcc2
14778 builtin and then its argument prototype would still apply. */
14779 char $ac_func ();
14780 /* The GNU C library defines this for functions which it implements
14781 to always fail with ENOSYS. Some functions are actually named
14782 something starting with __ and the normal name is an alias. */
14783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14784 choke me
14785 #else
14786 char (*f) () = $ac_func;
14787 #endif
14788 #ifdef __cplusplus
14789 }
14790 #endif
14791
14792 int
14793 main ()
14794 {
14795 return f != $ac_func;
14796 ;
14797 return 0;
14798 }
14799 _ACEOF
14800 rm -f conftest.$ac_objext conftest$ac_exeext
14801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14802 (eval $ac_link) 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } &&
14809 { ac_try='test -z "$ac_c_werror_flag"
14810 || test ! -s conftest.err'
14811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; } &&
14816 { ac_try='test -s conftest$ac_exeext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14819 ac_status=$?
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 eval "$as_ac_var=yes"
14823 else
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14826
14827 eval "$as_ac_var=no"
14828 fi
14829 rm -f conftest.err conftest.$ac_objext \
14830 conftest$ac_exeext conftest.$ac_ext
14831 fi
14832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14833 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14834 if test `eval echo '${'$as_ac_var'}'` = yes; then
14835 cat >>confdefs.h <<_ACEOF
14836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14837 _ACEOF
14838
14839 fi
14840 done
14841
14842 if test "x$ac_cv_func_fork" = xyes; then
14843 echo "$as_me:$LINENO: checking for working fork" >&5
14844 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
14845 if test "${ac_cv_func_fork_works+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847 else
14848 if test "$cross_compiling" = yes; then
14849 ac_cv_func_fork_works=cross
14850 else
14851 cat >conftest.$ac_ext <<_ACEOF
14852 /* By Ruediger Kuhlmann. */
14853 #include <sys/types.h>
14854 #if HAVE_UNISTD_H
14855 # include <unistd.h>
14856 #endif
14857 /* Some systems only have a dummy stub for fork() */
14858 int main ()
14859 {
14860 if (fork() < 0)
14861 exit (1);
14862 exit (0);
14863 }
14864 _ACEOF
14865 rm -f conftest$ac_exeext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14867 (eval $ac_link) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14872 (eval $ac_try) 2>&5
14873 ac_status=$?
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }; }; then
14876 ac_cv_func_fork_works=yes
14877 else
14878 echo "$as_me: program exited with status $ac_status" >&5
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882 ( exit $ac_status )
14883 ac_cv_func_fork_works=no
14884 fi
14885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14886 fi
14887 fi
14888 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
14889 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
14890
14891 else
14892 ac_cv_func_fork_works=$ac_cv_func_fork
14893 fi
14894 if test "x$ac_cv_func_fork_works" = xcross; then
14895 case $host in
14896 *-*-amigaos* | *-*-msdosdjgpp*)
14897 # Override, as these systems have only a dummy fork() stub
14898 ac_cv_func_fork_works=no
14899 ;;
14900 *)
14901 ac_cv_func_fork_works=yes
14902 ;;
14903 esac
14904 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14905 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14906 fi
14907 ac_cv_func_vfork_works=$ac_cv_func_vfork
14908 if test "x$ac_cv_func_vfork" = xyes; then
14909 echo "$as_me:$LINENO: checking for working vfork" >&5
14910 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
14911 if test "${ac_cv_func_vfork_works+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913 else
14914 if test "$cross_compiling" = yes; then
14915 ac_cv_func_vfork_works=cross
14916 else
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h. */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 /* Thanks to Paul Eggert for this test. */
14924 #include <stdio.h>
14925 #include <stdlib.h>
14926 #include <sys/types.h>
14927 #include <sys/stat.h>
14928 #include <sys/wait.h>
14929 #if HAVE_UNISTD_H
14930 # include <unistd.h>
14931 #endif
14932 #if HAVE_VFORK_H
14933 # include <vfork.h>
14934 #endif
14935 /* On some sparc systems, changes by the child to local and incoming
14936 argument registers are propagated back to the parent. The compiler
14937 is told about this with #include <vfork.h>, but some compilers
14938 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14939 static variable whose address is put into a register that is
14940 clobbered by the vfork. */
14941 static void
14942 #ifdef __cplusplus
14943 sparc_address_test (int arg)
14944 # else
14945 sparc_address_test (arg) int arg;
14946 #endif
14947 {
14948 static pid_t child;
14949 if (!child) {
14950 child = vfork ();
14951 if (child < 0) {
14952 perror ("vfork");
14953 _exit(2);
14954 }
14955 if (!child) {
14956 arg = getpid();
14957 write(-1, "", 0);
14958 _exit (arg);
14959 }
14960 }
14961 }
14962
14963 int
14964 main ()
14965 {
14966 pid_t parent = getpid ();
14967 pid_t child;
14968
14969 sparc_address_test (0);
14970
14971 child = vfork ();
14972
14973 if (child == 0) {
14974 /* Here is another test for sparc vfork register problems. This
14975 test uses lots of local variables, at least as many local
14976 variables as main has allocated so far including compiler
14977 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14978 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14979 reuse the register of parent for one of the local variables,
14980 since it will think that parent can't possibly be used any more
14981 in this routine. Assigning to the local variable will thus
14982 munge parent in the parent process. */
14983 pid_t
14984 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14985 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14986 /* Convince the compiler that p..p7 are live; otherwise, it might
14987 use the same hardware register for all 8 local variables. */
14988 if (p != p1 || p != p2 || p != p3 || p != p4
14989 || p != p5 || p != p6 || p != p7)
14990 _exit(1);
14991
14992 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14993 from child file descriptors. If the child closes a descriptor
14994 before it execs or exits, this munges the parent's descriptor
14995 as well. Test for this by closing stdout in the child. */
14996 _exit(close(fileno(stdout)) != 0);
14997 } else {
14998 int status;
14999 struct stat st;
15000
15001 while (wait(&status) != child)
15002 ;
15003 exit(
15004 /* Was there some problem with vforking? */
15005 child < 0
15006
15007 /* Did the child fail? (This shouldn't happen.) */
15008 || status
15009
15010 /* Did the vfork/compiler bug occur? */
15011 || parent != getpid()
15012
15013 /* Did the file descriptor bug occur? */
15014 || fstat(fileno(stdout), &st) != 0
15015 );
15016 }
15017 }
15018 _ACEOF
15019 rm -f conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15026 (eval $ac_try) 2>&5
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15029 (exit $ac_status); }; }; then
15030 ac_cv_func_vfork_works=yes
15031 else
15032 echo "$as_me: program exited with status $ac_status" >&5
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15035
15036 ( exit $ac_status )
15037 ac_cv_func_vfork_works=no
15038 fi
15039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15040 fi
15041 fi
15042 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15043 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15044
15045 fi;
15046 if test "x$ac_cv_func_fork_works" = xcross; then
15047 ac_cv_func_vfork_works=$ac_cv_func_vfork
15048 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15049 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15050 fi
15051
15052 if test "x$ac_cv_func_vfork_works" = xyes; then
15053
15054 cat >>confdefs.h <<\_ACEOF
15055 #define HAVE_WORKING_VFORK 1
15056 _ACEOF
15057
15058 else
15059
15060 cat >>confdefs.h <<\_ACEOF
15061 #define vfork fork
15062 _ACEOF
15063
15064 fi
15065 if test "x$ac_cv_func_fork_works" = xyes; then
15066
15067 cat >>confdefs.h <<\_ACEOF
15068 #define HAVE_WORKING_FORK 1
15069 _ACEOF
15070
15071 fi
15072
15073
15074
15075 for ac_func in canonicalize_file_name realpath
15076 do
15077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15078 echo "$as_me:$LINENO: checking for $ac_func" >&5
15079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15080 if eval "test \"\${$as_ac_var+set}\" = set"; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15091 #define $ac_func innocuous_$ac_func
15092
15093 /* System header to define __stub macros and hopefully few prototypes,
15094 which can conflict with char $ac_func (); below.
15095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15096 <limits.h> exists even on freestanding compilers. */
15097
15098 #ifdef __STDC__
15099 # include <limits.h>
15100 #else
15101 # include <assert.h>
15102 #endif
15103
15104 #undef $ac_func
15105
15106 /* Override any gcc2 internal prototype to avoid an error. */
15107 #ifdef __cplusplus
15108 extern "C"
15109 {
15110 #endif
15111 /* We use char because int might match the return type of a gcc2
15112 builtin and then its argument prototype would still apply. */
15113 char $ac_func ();
15114 /* The GNU C library defines this for functions which it implements
15115 to always fail with ENOSYS. Some functions are actually named
15116 something starting with __ and the normal name is an alias. */
15117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15118 choke me
15119 #else
15120 char (*f) () = $ac_func;
15121 #endif
15122 #ifdef __cplusplus
15123 }
15124 #endif
15125
15126 int
15127 main ()
15128 {
15129 return f != $ac_func;
15130 ;
15131 return 0;
15132 }
15133 _ACEOF
15134 rm -f conftest.$ac_objext conftest$ac_exeext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15136 (eval $ac_link) 2>conftest.er1
15137 ac_status=$?
15138 grep -v '^ *+' conftest.er1 >conftest.err
15139 rm -f conftest.er1
15140 cat conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -z "$ac_c_werror_flag"
15144 || test ! -s conftest.err'
15145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15147 ac_status=$?
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); }; } &&
15150 { ac_try='test -s conftest$ac_exeext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15153 ac_status=$?
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 eval "$as_ac_var=yes"
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 eval "$as_ac_var=no"
15162 fi
15163 rm -f conftest.err conftest.$ac_objext \
15164 conftest$ac_exeext conftest.$ac_ext
15165 fi
15166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15168 if test `eval echo '${'$as_ac_var'}'` = yes; then
15169 cat >>confdefs.h <<_ACEOF
15170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15171 _ACEOF
15172
15173 fi
15174 done
15175
15176
15177 for ac_func in poll
15178 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 cat >>confdefs.h <<_ACEOF
15272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15273 _ACEOF
15274
15275 fi
15276 done
15277
15278
15279 for ac_func in pread64
15280 do
15281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15282 echo "$as_me:$LINENO: checking for $ac_func" >&5
15283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15284 if eval "test \"\${$as_ac_var+set}\" = set"; then
15285 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 else
15287 cat >conftest.$ac_ext <<_ACEOF
15288 /* confdefs.h. */
15289 _ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15295 #define $ac_func innocuous_$ac_func
15296
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char $ac_func (); below.
15299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15300 <limits.h> exists even on freestanding compilers. */
15301
15302 #ifdef __STDC__
15303 # include <limits.h>
15304 #else
15305 # include <assert.h>
15306 #endif
15307
15308 #undef $ac_func
15309
15310 /* Override any gcc2 internal prototype to avoid an error. */
15311 #ifdef __cplusplus
15312 extern "C"
15313 {
15314 #endif
15315 /* We use char because int might match the return type of a gcc2
15316 builtin and then its argument prototype would still apply. */
15317 char $ac_func ();
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15322 choke me
15323 #else
15324 char (*f) () = $ac_func;
15325 #endif
15326 #ifdef __cplusplus
15327 }
15328 #endif
15329
15330 int
15331 main ()
15332 {
15333 return f != $ac_func;
15334 ;
15335 return 0;
15336 }
15337 _ACEOF
15338 rm -f conftest.$ac_objext conftest$ac_exeext
15339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15340 (eval $ac_link) 2>conftest.er1
15341 ac_status=$?
15342 grep -v '^ *+' conftest.er1 >conftest.err
15343 rm -f conftest.er1
15344 cat conftest.err >&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } &&
15347 { ac_try='test -z "$ac_c_werror_flag"
15348 || test ! -s conftest.err'
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; } &&
15354 { ac_try='test -s conftest$ac_exeext'
15355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 (eval $ac_try) 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); }; }; then
15360 eval "$as_ac_var=yes"
15361 else
15362 echo "$as_me: failed program was:" >&5
15363 sed 's/^/| /' conftest.$ac_ext >&5
15364
15365 eval "$as_ac_var=no"
15366 fi
15367 rm -f conftest.err conftest.$ac_objext \
15368 conftest$ac_exeext conftest.$ac_ext
15369 fi
15370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15372 if test `eval echo '${'$as_ac_var'}'` = yes; then
15373 cat >>confdefs.h <<_ACEOF
15374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15375 _ACEOF
15376
15377 fi
15378 done
15379
15380
15381 for ac_func in sbrk
15382 do
15383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15384 echo "$as_me:$LINENO: checking for $ac_func" >&5
15385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15386 if eval "test \"\${$as_ac_var+set}\" = set"; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389 cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h. */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15397 #define $ac_func innocuous_$ac_func
15398
15399 /* System header to define __stub macros and hopefully few prototypes,
15400 which can conflict with char $ac_func (); below.
15401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15402 <limits.h> exists even on freestanding compilers. */
15403
15404 #ifdef __STDC__
15405 # include <limits.h>
15406 #else
15407 # include <assert.h>
15408 #endif
15409
15410 #undef $ac_func
15411
15412 /* Override any gcc2 internal prototype to avoid an error. */
15413 #ifdef __cplusplus
15414 extern "C"
15415 {
15416 #endif
15417 /* We use char because int might match the return type of a gcc2
15418 builtin and then its argument prototype would still apply. */
15419 char $ac_func ();
15420 /* The GNU C library defines this for functions which it implements
15421 to always fail with ENOSYS. Some functions are actually named
15422 something starting with __ and the normal name is an alias. */
15423 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15424 choke me
15425 #else
15426 char (*f) () = $ac_func;
15427 #endif
15428 #ifdef __cplusplus
15429 }
15430 #endif
15431
15432 int
15433 main ()
15434 {
15435 return f != $ac_func;
15436 ;
15437 return 0;
15438 }
15439 _ACEOF
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15442 (eval $ac_link) 2>conftest.er1
15443 ac_status=$?
15444 grep -v '^ *+' conftest.er1 >conftest.err
15445 rm -f conftest.er1
15446 cat conftest.err >&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } &&
15449 { ac_try='test -z "$ac_c_werror_flag"
15450 || test ! -s conftest.err'
15451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15452 (eval $ac_try) 2>&5
15453 ac_status=$?
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); }; } &&
15456 { ac_try='test -s conftest$ac_exeext'
15457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15458 (eval $ac_try) 2>&5
15459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; }; then
15462 eval "$as_ac_var=yes"
15463 else
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 eval "$as_ac_var=no"
15468 fi
15469 rm -f conftest.err conftest.$ac_objext \
15470 conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15473 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15474 if test `eval echo '${'$as_ac_var'}'` = yes; then
15475 cat >>confdefs.h <<_ACEOF
15476 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15477 _ACEOF
15478
15479 fi
15480 done
15481
15482
15483
15484 for ac_func in setpgid setpgrp
15485 do
15486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15487 echo "$as_me:$LINENO: checking for $ac_func" >&5
15488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15489 if eval "test \"\${$as_ac_var+set}\" = set"; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 else
15492 cat >conftest.$ac_ext <<_ACEOF
15493 /* confdefs.h. */
15494 _ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15500 #define $ac_func innocuous_$ac_func
15501
15502 /* System header to define __stub macros and hopefully few prototypes,
15503 which can conflict with char $ac_func (); below.
15504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15505 <limits.h> exists even on freestanding compilers. */
15506
15507 #ifdef __STDC__
15508 # include <limits.h>
15509 #else
15510 # include <assert.h>
15511 #endif
15512
15513 #undef $ac_func
15514
15515 /* Override any gcc2 internal prototype to avoid an error. */
15516 #ifdef __cplusplus
15517 extern "C"
15518 {
15519 #endif
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char $ac_func ();
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527 choke me
15528 #else
15529 char (*f) () = $ac_func;
15530 #endif
15531 #ifdef __cplusplus
15532 }
15533 #endif
15534
15535 int
15536 main ()
15537 {
15538 return f != $ac_func;
15539 ;
15540 return 0;
15541 }
15542 _ACEOF
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545 (eval $ac_link) 2>conftest.er1
15546 ac_status=$?
15547 grep -v '^ *+' conftest.er1 >conftest.err
15548 rm -f conftest.er1
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag"
15553 || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 eval "$as_ac_var=yes"
15566 else
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570 eval "$as_ac_var=no"
15571 fi
15572 rm -f conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15574 fi
15575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15576 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15577 if test `eval echo '${'$as_ac_var'}'` = yes; then
15578 cat >>confdefs.h <<_ACEOF
15579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15580 _ACEOF
15581
15582 fi
15583 done
15584
15585
15586
15587
15588 for ac_func in sigaction sigprocmask sigsetmask
15589 do
15590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15591 echo "$as_me:$LINENO: checking for $ac_func" >&5
15592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15593 if eval "test \"\${$as_ac_var+set}\" = set"; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15595 else
15596 cat >conftest.$ac_ext <<_ACEOF
15597 /* confdefs.h. */
15598 _ACEOF
15599 cat confdefs.h >>conftest.$ac_ext
15600 cat >>conftest.$ac_ext <<_ACEOF
15601 /* end confdefs.h. */
15602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15604 #define $ac_func innocuous_$ac_func
15605
15606 /* System header to define __stub macros and hopefully few prototypes,
15607 which can conflict with char $ac_func (); below.
15608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15609 <limits.h> exists even on freestanding compilers. */
15610
15611 #ifdef __STDC__
15612 # include <limits.h>
15613 #else
15614 # include <assert.h>
15615 #endif
15616
15617 #undef $ac_func
15618
15619 /* Override any gcc2 internal prototype to avoid an error. */
15620 #ifdef __cplusplus
15621 extern "C"
15622 {
15623 #endif
15624 /* We use char because int might match the return type of a gcc2
15625 builtin and then its argument prototype would still apply. */
15626 char $ac_func ();
15627 /* The GNU C library defines this for functions which it implements
15628 to always fail with ENOSYS. Some functions are actually named
15629 something starting with __ and the normal name is an alias. */
15630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15631 choke me
15632 #else
15633 char (*f) () = $ac_func;
15634 #endif
15635 #ifdef __cplusplus
15636 }
15637 #endif
15638
15639 int
15640 main ()
15641 {
15642 return f != $ac_func;
15643 ;
15644 return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext conftest$ac_exeext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15649 (eval $ac_link) 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } &&
15656 { ac_try='test -z "$ac_c_werror_flag"
15657 || test ! -s conftest.err'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; } &&
15663 { ac_try='test -s conftest$ac_exeext'
15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665 (eval $ac_try) 2>&5
15666 ac_status=$?
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; }; then
15669 eval "$as_ac_var=yes"
15670 else
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 eval "$as_ac_var=no"
15675 fi
15676 rm -f conftest.err conftest.$ac_objext \
15677 conftest$ac_exeext conftest.$ac_ext
15678 fi
15679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15681 if test `eval echo '${'$as_ac_var'}'` = yes; then
15682 cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15684 _ACEOF
15685
15686 fi
15687 done
15688
15689
15690 for ac_func in socketpair
15691 do
15692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15693 echo "$as_me:$LINENO: checking for $ac_func" >&5
15694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15695 if eval "test \"\${$as_ac_var+set}\" = set"; then
15696 echo $ECHO_N "(cached) $ECHO_C" >&6
15697 else
15698 cat >conftest.$ac_ext <<_ACEOF
15699 /* confdefs.h. */
15700 _ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15706 #define $ac_func innocuous_$ac_func
15707
15708 /* System header to define __stub macros and hopefully few prototypes,
15709 which can conflict with char $ac_func (); below.
15710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15711 <limits.h> exists even on freestanding compilers. */
15712
15713 #ifdef __STDC__
15714 # include <limits.h>
15715 #else
15716 # include <assert.h>
15717 #endif
15718
15719 #undef $ac_func
15720
15721 /* Override any gcc2 internal prototype to avoid an error. */
15722 #ifdef __cplusplus
15723 extern "C"
15724 {
15725 #endif
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15728 char $ac_func ();
15729 /* The GNU C library defines this for functions which it implements
15730 to always fail with ENOSYS. Some functions are actually named
15731 something starting with __ and the normal name is an alias. */
15732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15733 choke me
15734 #else
15735 char (*f) () = $ac_func;
15736 #endif
15737 #ifdef __cplusplus
15738 }
15739 #endif
15740
15741 int
15742 main ()
15743 {
15744 return f != $ac_func;
15745 ;
15746 return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 eval "$as_ac_var=yes"
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776 eval "$as_ac_var=no"
15777 fi
15778 rm -f conftest.err conftest.$ac_objext \
15779 conftest$ac_exeext conftest.$ac_ext
15780 fi
15781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15783 if test `eval echo '${'$as_ac_var'}'` = yes; then
15784 cat >>confdefs.h <<_ACEOF
15785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15786 _ACEOF
15787
15788 fi
15789 done
15790
15791
15792 for ac_func in syscall
15793 do
15794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15795 echo "$as_me:$LINENO: checking for $ac_func" >&5
15796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15797 if eval "test \"\${$as_ac_var+set}\" = set"; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799 else
15800 cat >conftest.$ac_ext <<_ACEOF
15801 /* confdefs.h. */
15802 _ACEOF
15803 cat confdefs.h >>conftest.$ac_ext
15804 cat >>conftest.$ac_ext <<_ACEOF
15805 /* end confdefs.h. */
15806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15808 #define $ac_func innocuous_$ac_func
15809
15810 /* System header to define __stub macros and hopefully few prototypes,
15811 which can conflict with char $ac_func (); below.
15812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15813 <limits.h> exists even on freestanding compilers. */
15814
15815 #ifdef __STDC__
15816 # include <limits.h>
15817 #else
15818 # include <assert.h>
15819 #endif
15820
15821 #undef $ac_func
15822
15823 /* Override any gcc2 internal prototype to avoid an error. */
15824 #ifdef __cplusplus
15825 extern "C"
15826 {
15827 #endif
15828 /* We use char because int might match the return type of a gcc2
15829 builtin and then its argument prototype would still apply. */
15830 char $ac_func ();
15831 /* The GNU C library defines this for functions which it implements
15832 to always fail with ENOSYS. Some functions are actually named
15833 something starting with __ and the normal name is an alias. */
15834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15835 choke me
15836 #else
15837 char (*f) () = $ac_func;
15838 #endif
15839 #ifdef __cplusplus
15840 }
15841 #endif
15842
15843 int
15844 main ()
15845 {
15846 return f != $ac_func;
15847 ;
15848 return 0;
15849 }
15850 _ACEOF
15851 rm -f conftest.$ac_objext conftest$ac_exeext
15852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15853 (eval $ac_link) 2>conftest.er1
15854 ac_status=$?
15855 grep -v '^ *+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -z "$ac_c_werror_flag"
15861 || test ! -s conftest.err'
15862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15863 (eval $ac_try) 2>&5
15864 ac_status=$?
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try='test -s conftest$ac_exeext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 eval "$as_ac_var=yes"
15874 else
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15877
15878 eval "$as_ac_var=no"
15879 fi
15880 rm -f conftest.err conftest.$ac_objext \
15881 conftest$ac_exeext conftest.$ac_ext
15882 fi
15883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15885 if test `eval echo '${'$as_ac_var'}'` = yes; then
15886 cat >>confdefs.h <<_ACEOF
15887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15888 _ACEOF
15889
15890 fi
15891 done
15892
15893
15894 for ac_func in ttrace
15895 do
15896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15897 echo "$as_me:$LINENO: checking for $ac_func" >&5
15898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15899 if eval "test \"\${$as_ac_var+set}\" = set"; then
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 else
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15910 #define $ac_func innocuous_$ac_func
15911
15912 /* System header to define __stub macros and hopefully few prototypes,
15913 which can conflict with char $ac_func (); below.
15914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15915 <limits.h> exists even on freestanding compilers. */
15916
15917 #ifdef __STDC__
15918 # include <limits.h>
15919 #else
15920 # include <assert.h>
15921 #endif
15922
15923 #undef $ac_func
15924
15925 /* Override any gcc2 internal prototype to avoid an error. */
15926 #ifdef __cplusplus
15927 extern "C"
15928 {
15929 #endif
15930 /* We use char because int might match the return type of a gcc2
15931 builtin and then its argument prototype would still apply. */
15932 char $ac_func ();
15933 /* The GNU C library defines this for functions which it implements
15934 to always fail with ENOSYS. Some functions are actually named
15935 something starting with __ and the normal name is an alias. */
15936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15937 choke me
15938 #else
15939 char (*f) () = $ac_func;
15940 #endif
15941 #ifdef __cplusplus
15942 }
15943 #endif
15944
15945 int
15946 main ()
15947 {
15948 return f != $ac_func;
15949 ;
15950 return 0;
15951 }
15952 _ACEOF
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 (eval $ac_link) 2>conftest.er1
15956 ac_status=$?
15957 grep -v '^ *+' conftest.er1 >conftest.err
15958 rm -f conftest.er1
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag"
15963 || test ! -s conftest.err'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; } &&
15969 { ac_try='test -s conftest$ac_exeext'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 eval "$as_ac_var=yes"
15976 else
15977 echo "$as_me: failed program was:" >&5
15978 sed 's/^/| /' conftest.$ac_ext >&5
15979
15980 eval "$as_ac_var=no"
15981 fi
15982 rm -f conftest.err conftest.$ac_objext \
15983 conftest$ac_exeext conftest.$ac_ext
15984 fi
15985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15987 if test `eval echo '${'$as_ac_var'}'` = yes; then
15988 cat >>confdefs.h <<_ACEOF
15989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15990 _ACEOF
15991
15992 fi
15993 done
15994
15995
15996 for ac_func in wborder
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
16098 # Check the return and argument types of ptrace. No canned test for
16099 # this, so roll our own.
16100 gdb_ptrace_headers='
16101 #if HAVE_SYS_TYPES_H
16102 # include <sys/types.h>
16103 #endif
16104 #if HAVE_SYS_PTRACE_H
16105 # include <sys/ptrace.h>
16106 #endif
16107 #if HAVE_UNISTD_H
16108 # include <unistd.h>
16109 #endif
16110 '
16111 # There is no point in checking if we don't have a prototype.
16112 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
16113 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
16114 if test "${ac_cv_have_decl_ptrace+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116 else
16117 cat >conftest.$ac_ext <<_ACEOF
16118 /* confdefs.h. */
16119 _ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 $gdb_ptrace_headers
16124
16125 int
16126 main ()
16127 {
16128 #ifndef ptrace
16129 char *p = (char *) ptrace;
16130 #endif
16131
16132 ;
16133 return 0;
16134 }
16135 _ACEOF
16136 rm -f conftest.$ac_objext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16138 (eval $ac_compile) 2>conftest.er1
16139 ac_status=$?
16140 grep -v '^ *+' conftest.er1 >conftest.err
16141 rm -f conftest.er1
16142 cat conftest.err >&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -z "$ac_c_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16149 ac_status=$?
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try='test -s conftest.$ac_objext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16155 ac_status=$?
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16158 ac_cv_have_decl_ptrace=yes
16159 else
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_cv_have_decl_ptrace=no
16164 fi
16165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16166 fi
16167 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16168 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16169 if test $ac_cv_have_decl_ptrace = yes; then
16170
16171 cat >>confdefs.h <<_ACEOF
16172 #define HAVE_DECL_PTRACE 1
16173 _ACEOF
16174
16175
16176 else
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_DECL_PTRACE 0
16179 _ACEOF
16180
16181
16182 : ${gdb_cv_func_ptrace_ret='int'}
16183 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16184
16185 fi
16186
16187
16188 # Check return type.
16189 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16190 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16191 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 else
16194 cat >conftest.$ac_ext <<_ACEOF
16195 /* confdefs.h. */
16196 _ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $gdb_ptrace_headers
16201 int
16202 main ()
16203 {
16204 extern int ptrace ();
16205 ;
16206 return 0;
16207 }
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>conftest.er1
16212 ac_status=$?
16213 grep -v '^ *+' conftest.er1 >conftest.err
16214 rm -f conftest.er1
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217 (exit $ac_status); } &&
16218 { ac_try='test -z "$ac_c_werror_flag"
16219 || test ! -s conftest.err'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; } &&
16225 { ac_try='test -s conftest.$ac_objext'
16226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16227 (eval $ac_try) 2>&5
16228 ac_status=$?
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); }; }; then
16231 gdb_cv_func_ptrace_ret='int'
16232 else
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 gdb_cv_func_ptrace_ret='long'
16237 fi
16238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16239 fi
16240 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16241 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16242
16243 cat >>confdefs.h <<_ACEOF
16244 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16245 _ACEOF
16246
16247 # Check argument types.
16248 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16249 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16250 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16251 echo $ECHO_N "(cached) $ECHO_C" >&6
16252 else
16253
16254 for gdb_arg1 in 'int' 'long'; do
16255 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16256 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
16257 for gdb_arg4 in 'int' 'long'; do
16258 cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h. */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 $gdb_ptrace_headers
16265 int
16266 main ()
16267 {
16268
16269 extern $gdb_cv_func_ptrace_ret
16270 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16271
16272 ;
16273 return 0;
16274 }
16275 _ACEOF
16276 rm -f conftest.$ac_objext
16277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16278 (eval $ac_compile) 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -z "$ac_c_werror_flag"
16286 || test ! -s conftest.err'
16287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16288 (eval $ac_try) 2>&5
16289 ac_status=$?
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); }; } &&
16292 { ac_try='test -s conftest.$ac_objext'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16298 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16299 break 4;
16300 else
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304 fi
16305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16306 for gdb_arg5 in 'int *' 'int' 'long'; do
16307 cat >conftest.$ac_ext <<_ACEOF
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 $gdb_ptrace_headers
16314 int
16315 main ()
16316 {
16317
16318 extern $gdb_cv_func_ptrace_ret
16319 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16320
16321 ;
16322 return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347
16348 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16349 break 5;
16350 else
16351 echo "$as_me: failed program was:" >&5
16352 sed 's/^/| /' conftest.$ac_ext >&5
16353
16354 fi
16355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16356 done
16357 done
16358 done
16359 done
16360 done
16361 # Provide a safe default value.
16362 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16363
16364 fi
16365 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16366 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16367 ac_save_IFS=$IFS; IFS=','
16368 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16369 IFS=$ac_save_IFS
16370 shift
16371
16372 cat >>confdefs.h <<_ACEOF
16373 #define PTRACE_TYPE_ARG3 $3
16374 _ACEOF
16375
16376 if test -n "$5"; then
16377
16378 cat >>confdefs.h <<_ACEOF
16379 #define PTRACE_TYPE_ARG5 $5
16380 _ACEOF
16381
16382 fi
16383
16384 if test "$cross_compiling" = no; then
16385 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16386 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16387 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 else
16390 if test "$cross_compiling" = yes; then
16391 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16392 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16393 { (exit 1); exit 1; }; }
16394 else
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #if HAVE_UNISTD_H
16402 # include <unistd.h>
16403 #endif
16404
16405 int
16406 main ()
16407 {
16408 /* If this system has a BSD-style setpgrp which takes arguments,
16409 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16410 exit successfully. */
16411 exit (setpgrp (1,1) == -1 ? 0 : 1);
16412 ;
16413 return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest$ac_exeext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16418 (eval $ac_link) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_cv_func_setpgrp_void=no
16428 else
16429 echo "$as_me: program exited with status $ac_status" >&5
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16432
16433 ( exit $ac_status )
16434 ac_cv_func_setpgrp_void=yes
16435 fi
16436 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16437 fi
16438 fi
16439 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16440 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16441 if test $ac_cv_func_setpgrp_void = yes; then
16442
16443 cat >>confdefs.h <<\_ACEOF
16444 #define SETPGRP_VOID 1
16445 _ACEOF
16446
16447 fi
16448
16449 else
16450 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16451 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16452 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461
16462 #include <unistd.h>
16463
16464 int
16465 main ()
16466 {
16467
16468 if (setpgrp(1,1) == -1)
16469 exit (0);
16470 else
16471 exit (1);
16472
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16479 (eval $ac_compile) 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest.$ac_objext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 ac_cv_func_setpgrp_void=no
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 ac_cv_func_setpgrp_void=yes
16505 fi
16506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16507 fi
16508 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16509 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16510 if test $ac_cv_func_setpgrp_void = yes; then
16511 cat >>confdefs.h <<\_ACEOF
16512 #define SETPGRP_VOID 1
16513 _ACEOF
16514
16515 fi
16516 fi
16517
16518 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16519 # since sigsetjmp might only be defined as a macro.
16520 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16521 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16522 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524 else
16525 cat >conftest.$ac_ext <<_ACEOF
16526 /* confdefs.h. */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531
16532 #include <setjmp.h>
16533
16534 int
16535 main ()
16536 {
16537 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16538 ;
16539 return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544 (eval $ac_compile) 2>conftest.er1
16545 ac_status=$?
16546 grep -v '^ *+' conftest.er1 >conftest.err
16547 rm -f conftest.er1
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag"
16552 || test ! -s conftest.err'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; } &&
16558 { ac_try='test -s conftest.$ac_objext'
16559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560 (eval $ac_try) 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; }; then
16564 gdb_cv_func_sigsetjmp=yes
16565 else
16566 echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 gdb_cv_func_sigsetjmp=no
16570 fi
16571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16572 fi
16573 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16574 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16575 if test $gdb_cv_func_sigsetjmp = yes; then
16576
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_SIGSETJMP 1
16579 _ACEOF
16580
16581 fi
16582
16583 # Assume we'll default to using the included libiberty regex.
16584 gdb_use_included_regex=yes
16585
16586 # However, if the system regex is GNU regex, then default to *not*
16587 # using the included regex.
16588 echo "$as_me:$LINENO: checking for GNU regex" >&5
16589 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16590 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16592 else
16593 cat >conftest.$ac_ext <<_ACEOF
16594 /* confdefs.h. */
16595 _ACEOF
16596 cat confdefs.h >>conftest.$ac_ext
16597 cat >>conftest.$ac_ext <<_ACEOF
16598 /* end confdefs.h. */
16599 #include <gnu-versions.h>
16600 int
16601 main ()
16602 {
16603 #define REGEX_INTERFACE_VERSION 1
16604 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16605 # error "Version mismatch"
16606 #endif
16607 ;
16608 return 0;
16609 }
16610 _ACEOF
16611 rm -f conftest.$ac_objext
16612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16613 (eval $ac_compile) 2>conftest.er1
16614 ac_status=$?
16615 grep -v '^ *+' conftest.er1 >conftest.err
16616 rm -f conftest.er1
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); } &&
16620 { ac_try='test -z "$ac_c_werror_flag"
16621 || test ! -s conftest.err'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 gdb_cv_have_gnu_regex=yes
16634 else
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16637
16638 gdb_cv_have_gnu_regex=no
16639 fi
16640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16641 fi
16642 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16643 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16644 if test $gdb_cv_have_gnu_regex = yes; then
16645 gdb_use_included_regex=no
16646 fi
16647
16648
16649 # Check whether --with-included-regex or --without-included-regex was given.
16650 if test "${with_included_regex+set}" = set; then
16651 withval="$with_included_regex"
16652 gdb_with_regex=$withval
16653 else
16654 gdb_with_regex=$gdb_use_included_regex
16655 fi;
16656 if test "$gdb_with_regex" = yes; then
16657
16658 cat >>confdefs.h <<\_ACEOF
16659 #define USE_INCLUDED_REGEX 1
16660 _ACEOF
16661
16662 fi
16663
16664 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16665 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16666 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16667 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670 cat >conftest.$ac_ext <<_ACEOF
16671 /* confdefs.h. */
16672 _ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 #include <sys/param.h>
16677 #include <sys/proc.h>
16678
16679
16680 int
16681 main ()
16682 {
16683 static struct thread ac_aggr;
16684 if (ac_aggr.td_pcb)
16685 return 0;
16686 ;
16687 return 0;
16688 }
16689 _ACEOF
16690 rm -f conftest.$ac_objext
16691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16692 (eval $ac_compile) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag"
16700 || test ! -s conftest.err'
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16712 ac_cv_member_struct_thread_td_pcb=yes
16713 else
16714 echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h. */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 #include <sys/param.h>
16724 #include <sys/proc.h>
16725
16726
16727 int
16728 main ()
16729 {
16730 static struct thread ac_aggr;
16731 if (sizeof ac_aggr.td_pcb)
16732 return 0;
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739 (eval $ac_compile) 2>conftest.er1
16740 ac_status=$?
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_cv_member_struct_thread_td_pcb=yes
16760 else
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 ac_cv_member_struct_thread_td_pcb=no
16765 fi
16766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16767 fi
16768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16769 fi
16770 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16771 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16772 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16773
16774 cat >>confdefs.h <<_ACEOF
16775 #define HAVE_STRUCT_THREAD_TD_PCB 1
16776 _ACEOF
16777
16778
16779 fi
16780
16781
16782 # See if <sys/lwp.h> defines `struct lwp`.
16783 echo "$as_me:$LINENO: checking for struct lwp" >&5
16784 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16785 if test "${gdb_cv_struct_lwp+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <sys/param.h>
16795 #include <sys/lwp.h>
16796 int
16797 main ()
16798 {
16799 struct lwp l;
16800 ;
16801 return 0;
16802 }
16803 _ACEOF
16804 rm -f conftest.$ac_objext
16805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16806 (eval $ac_compile) 2>conftest.er1
16807 ac_status=$?
16808 grep -v '^ *+' conftest.er1 >conftest.err
16809 rm -f conftest.er1
16810 cat conftest.err >&5
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
16813 { ac_try='test -z "$ac_c_werror_flag"
16814 || test ! -s conftest.err'
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); }; } &&
16820 { ac_try='test -s conftest.$ac_objext'
16821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16822 (eval $ac_try) 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 gdb_cv_struct_lwp=yes
16827 else
16828 echo "$as_me: failed program was:" >&5
16829 sed 's/^/| /' conftest.$ac_ext >&5
16830
16831 gdb_cv_struct_lwp=no
16832 fi
16833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16834 fi
16835 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16836 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16837 if test $gdb_cv_struct_lwp = yes; then
16838
16839 cat >>confdefs.h <<\_ACEOF
16840 #define HAVE_STRUCT_LWP 1
16841 _ACEOF
16842
16843 fi
16844
16845 # See if <machine/reg.h> degines `struct reg'.
16846 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16847 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16848 if test "${gdb_cv_struct_reg+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16858 #include <machine/reg.h>
16859 int
16860 main ()
16861 {
16862 struct reg r;
16863 ;
16864 return 0;
16865 }
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 gdb_cv_struct_reg=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16893
16894 gdb_cv_struct_reg=no
16895 fi
16896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16897 fi
16898 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16899 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16900 if test $gdb_cv_struct_reg = yes; then
16901
16902 cat >>confdefs.h <<\_ACEOF
16903 #define HAVE_STRUCT_REG 1
16904 _ACEOF
16905
16906 fi
16907
16908 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16909 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16910 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16911 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16912 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 else
16915 cat >conftest.$ac_ext <<_ACEOF
16916 /* confdefs.h. */
16917 _ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 #include <machine/reg.h>
16922
16923 int
16924 main ()
16925 {
16926 static struct reg ac_aggr;
16927 if (ac_aggr.r_fs)
16928 return 0;
16929 ;
16930 return 0;
16931 }
16932 _ACEOF
16933 rm -f conftest.$ac_objext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935 (eval $ac_compile) 2>conftest.er1
16936 ac_status=$?
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_cv_member_struct_reg_r_fs=yes
16956 else
16957 echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16959
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 #include <machine/reg.h>
16967
16968 int
16969 main ()
16970 {
16971 static struct reg ac_aggr;
16972 if (sizeof ac_aggr.r_fs)
16973 return 0;
16974 ;
16975 return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_member_struct_reg_r_fs=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_cv_member_struct_reg_r_fs=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 fi
17009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17010 fi
17011 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
17012 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
17013 if test $ac_cv_member_struct_reg_r_fs = yes; then
17014
17015 cat >>confdefs.h <<_ACEOF
17016 #define HAVE_STRUCT_REG_R_FS 1
17017 _ACEOF
17018
17019
17020 fi
17021 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
17022 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
17023 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 else
17026 cat >conftest.$ac_ext <<_ACEOF
17027 /* confdefs.h. */
17028 _ACEOF
17029 cat confdefs.h >>conftest.$ac_ext
17030 cat >>conftest.$ac_ext <<_ACEOF
17031 /* end confdefs.h. */
17032 #include <machine/reg.h>
17033
17034 int
17035 main ()
17036 {
17037 static struct reg ac_aggr;
17038 if (ac_aggr.r_gs)
17039 return 0;
17040 ;
17041 return 0;
17042 }
17043 _ACEOF
17044 rm -f conftest.$ac_objext
17045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17046 (eval $ac_compile) 2>conftest.er1
17047 ac_status=$?
17048 grep -v '^ *+' conftest.er1 >conftest.err
17049 rm -f conftest.er1
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); } &&
17053 { ac_try='test -z "$ac_c_werror_flag"
17054 || test ! -s conftest.err'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; } &&
17060 { ac_try='test -s conftest.$ac_objext'
17061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17062 (eval $ac_try) 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; }; then
17066 ac_cv_member_struct_reg_r_gs=yes
17067 else
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17070
17071 cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h. */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h. */
17077 #include <machine/reg.h>
17078
17079 int
17080 main ()
17081 {
17082 static struct reg ac_aggr;
17083 if (sizeof ac_aggr.r_gs)
17084 return 0;
17085 ;
17086 return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext
17090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17091 (eval $ac_compile) 2>conftest.er1
17092 ac_status=$?
17093 grep -v '^ *+' conftest.er1 >conftest.err
17094 rm -f conftest.er1
17095 cat conftest.err >&5
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); } &&
17098 { ac_try='test -z "$ac_c_werror_flag"
17099 || test ! -s conftest.err'
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; } &&
17105 { ac_try='test -s conftest.$ac_objext'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17108 ac_status=$?
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; }; then
17111 ac_cv_member_struct_reg_r_gs=yes
17112 else
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17115
17116 ac_cv_member_struct_reg_r_gs=no
17117 fi
17118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17119 fi
17120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17121 fi
17122 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17123 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17124 if test $ac_cv_member_struct_reg_r_gs = yes; then
17125
17126 cat >>confdefs.h <<_ACEOF
17127 #define HAVE_STRUCT_REG_R_GS 1
17128 _ACEOF
17129
17130
17131 fi
17132
17133
17134 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17135 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17136 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17137 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 #include <sys/ptrace.h>
17147 int
17148 main ()
17149 {
17150 PTRACE_GETREGS;
17151 ;
17152 return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 gdb_cv_have_ptrace_getregs=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 gdb_cv_have_ptrace_getregs=no
17183 fi
17184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17185 fi
17186
17187 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17188 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17189 if test $gdb_cv_have_ptrace_getregs = yes; then
17190 cat >>confdefs.h <<\_ACEOF
17191 #define HAVE_PTRACE_GETREGS 1
17192 _ACEOF
17193
17194 fi
17195
17196 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17197 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17198 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17199 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17201 else
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <sys/ptrace.h>
17209 int
17210 main ()
17211 {
17212 PTRACE_GETFPXREGS;
17213 ;
17214 return 0;
17215 }
17216 _ACEOF
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17220 ac_status=$?
17221 grep -v '^ *+' conftest.er1 >conftest.err
17222 rm -f conftest.er1
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17236 ac_status=$?
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 gdb_cv_have_ptrace_getfpxregs=yes
17240 else
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17243
17244 gdb_cv_have_ptrace_getfpxregs=no
17245 fi
17246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17247 fi
17248
17249 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17250 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17251 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17252 cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_PTRACE_GETFPXREGS 1
17254 _ACEOF
17255
17256 fi
17257
17258 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17259 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17260 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17261 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17262 echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264 cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h. */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h. */
17270 #include <sys/types.h>
17271 #include <sys/ptrace.h>
17272 int
17273 main ()
17274 {
17275 PT_GETDBREGS;
17276 ;
17277 return 0;
17278 }
17279 _ACEOF
17280 rm -f conftest.$ac_objext
17281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17282 (eval $ac_compile) 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } &&
17289 { ac_try='test -z "$ac_c_werror_flag"
17290 || test ! -s conftest.err'
17291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17292 (eval $ac_try) 2>&5
17293 ac_status=$?
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); }; } &&
17296 { ac_try='test -s conftest.$ac_objext'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 gdb_cv_have_pt_getdbregs=yes
17303 else
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17306
17307 gdb_cv_have_pt_getdbregs=no
17308 fi
17309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17310 fi
17311
17312 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17313 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17314 if test $gdb_cv_have_pt_getdbregs = yes; then
17315 cat >>confdefs.h <<\_ACEOF
17316 #define HAVE_PT_GETDBREGS 1
17317 _ACEOF
17318
17319 fi
17320
17321 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17322 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17323 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17324 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 #include <sys/types.h>
17334 #include <sys/ptrace.h>
17335 int
17336 main ()
17337 {
17338 PT_GETXMMREGS;
17339 ;
17340 return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17345 (eval $ac_compile) 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } &&
17352 { ac_try='test -z "$ac_c_werror_flag"
17353 || test ! -s conftest.err'
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; } &&
17359 { ac_try='test -s conftest.$ac_objext'
17360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361 (eval $ac_try) 2>&5
17362 ac_status=$?
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; }; then
17365 gdb_cv_have_pt_getxmmregs=yes
17366 else
17367 echo "$as_me: failed program was:" >&5
17368 sed 's/^/| /' conftest.$ac_ext >&5
17369
17370 gdb_cv_have_pt_getxmmregs=no
17371 fi
17372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17373 fi
17374
17375 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17376 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17377 if test $gdb_cv_have_pt_getxmmregs = yes; then
17378 cat >>confdefs.h <<\_ACEOF
17379 #define HAVE_PT_GETXMMREGS 1
17380 _ACEOF
17381
17382 fi
17383
17384 # See if stdint.h provides the uintptr_t type.
17385 # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
17386 echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5
17387 echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6
17388 if test "${gdb_cv_have_uintptr_t+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390 else
17391 cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h. */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 #include <stdint.h>
17398 int
17399 main ()
17400 {
17401 uintptr_t foo = 0;
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest.$ac_objext
17407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17408 (eval $ac_compile) 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
17415 { ac_try='test -z "$ac_c_werror_flag"
17416 || test ! -s conftest.err'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; } &&
17422 { ac_try='test -s conftest.$ac_objext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 gdb_cv_have_uintptr_t=yes
17429 else
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 gdb_cv_have_uintptr_t=no
17434 fi
17435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17436 fi
17437 echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5
17438 echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6
17439 if test $gdb_cv_have_uintptr_t = yes; then
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_UINTPTR_T 1
17443 _ACEOF
17444
17445 fi
17446
17447 # If we are configured native on GNU/Linux, work around problems with
17448 # sys/procfs.h
17449 # Also detect which type of /proc is in use, such as for Unixware or Solaris.
17450
17451 if test "${target}" = "${host}"; then
17452 case "${host}" in
17453 i[3456]86-*-linux*)
17454 cat >>confdefs.h <<\_ACEOF
17455 #define START_INFERIOR_TRAPS_EXPECTED 2
17456 _ACEOF
17457
17458 cat >>confdefs.h <<\_ACEOF
17459 #define sys_quotactl 1
17460 _ACEOF
17461
17462 ;;
17463 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17464 cat >>confdefs.h <<\_ACEOF
17465 #define NEW_PROC_API 1
17466 _ACEOF
17467
17468 ;;
17469 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
17470 cat >>confdefs.h <<\_ACEOF
17471 #define NEW_PROC_API 1
17472 _ACEOF
17473
17474 ;;
17475 mips-sgi-irix5*)
17476 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17477 cat >>confdefs.h <<\_ACEOF
17478 #define _KMEMUSER 1
17479 _ACEOF
17480
17481 ;;
17482 esac
17483 fi
17484
17485 if test "$ac_cv_header_sys_procfs_h" = yes; then
17486 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17487 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17488 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17489 echo $ECHO_N "(cached) $ECHO_C" >&6
17490 else
17491 cat >conftest.$ac_ext <<_ACEOF
17492 /* confdefs.h. */
17493 _ACEOF
17494 cat confdefs.h >>conftest.$ac_ext
17495 cat >>conftest.$ac_ext <<_ACEOF
17496 /* end confdefs.h. */
17497
17498 #define _SYSCALL32
17499 #include <sys/procfs.h>
17500 int
17501 main ()
17502 {
17503 pstatus_t avar
17504 ;
17505 return 0;
17506 }
17507 _ACEOF
17508 rm -f conftest.$ac_objext
17509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17510 (eval $ac_compile) 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -z "$ac_c_werror_flag"
17518 || test ! -s conftest.err'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17521 ac_status=$?
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; } &&
17524 { ac_try='test -s conftest.$ac_objext'
17525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17526 (eval $ac_try) 2>&5
17527 ac_status=$?
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); }; }; then
17530 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17531 else
17532 echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 bfd_cv_have_sys_procfs_type_pstatus_t=no
17536
17537 fi
17538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17539 fi
17540
17541 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17542
17543 cat >>confdefs.h <<\_ACEOF
17544 #define HAVE_PSTATUS_T 1
17545 _ACEOF
17546
17547 fi
17548 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17549 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17550
17551 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17552 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17553 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17554 echo $ECHO_N "(cached) $ECHO_C" >&6
17555 else
17556 cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h. */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h. */
17562
17563 #define _SYSCALL32
17564 #include <sys/procfs.h>
17565 int
17566 main ()
17567 {
17568 prrun_t avar
17569 ;
17570 return 0;
17571 }
17572 _ACEOF
17573 rm -f conftest.$ac_objext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17575 (eval $ac_compile) 2>conftest.er1
17576 ac_status=$?
17577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
17582 { ac_try='test -z "$ac_c_werror_flag"
17583 || test ! -s conftest.err'
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); }; } &&
17589 { ac_try='test -s conftest.$ac_objext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 bfd_cv_have_sys_procfs_type_prrun_t=yes
17596 else
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600 bfd_cv_have_sys_procfs_type_prrun_t=no
17601
17602 fi
17603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17604 fi
17605
17606 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17607
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_PRRUN_T 1
17610 _ACEOF
17611
17612 fi
17613 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17614 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17615
17616 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17617 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17618 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17619 echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621 cat >conftest.$ac_ext <<_ACEOF
17622 /* confdefs.h. */
17623 _ACEOF
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17627
17628 #define _SYSCALL32
17629 #include <sys/procfs.h>
17630 int
17631 main ()
17632 {
17633 gregset_t avar
17634 ;
17635 return 0;
17636 }
17637 _ACEOF
17638 rm -f conftest.$ac_objext
17639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17640 (eval $ac_compile) 2>conftest.er1
17641 ac_status=$?
17642 grep -v '^ *+' conftest.er1 >conftest.err
17643 rm -f conftest.er1
17644 cat conftest.err >&5
17645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646 (exit $ac_status); } &&
17647 { ac_try='test -z "$ac_c_werror_flag"
17648 || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17651 ac_status=$?
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest.$ac_objext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17657 ac_status=$?
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 bfd_cv_have_sys_procfs_type_gregset_t=yes
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 bfd_cv_have_sys_procfs_type_gregset_t=no
17666
17667 fi
17668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17669 fi
17670
17671 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17672
17673 cat >>confdefs.h <<\_ACEOF
17674 #define HAVE_GREGSET_T 1
17675 _ACEOF
17676
17677 fi
17678 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17679 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17680
17681 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17682 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17683 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686 cat >conftest.$ac_ext <<_ACEOF
17687 /* confdefs.h. */
17688 _ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17692
17693 #define _SYSCALL32
17694 #include <sys/procfs.h>
17695 int
17696 main ()
17697 {
17698 fpregset_t avar
17699 ;
17700 return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext
17704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17705 (eval $ac_compile) 2>conftest.er1
17706 ac_status=$?
17707 grep -v '^ *+' conftest.er1 >conftest.err
17708 rm -f conftest.er1
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag"
17713 || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest.$ac_objext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17726 else
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730 bfd_cv_have_sys_procfs_type_fpregset_t=no
17731
17732 fi
17733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735
17736 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17737
17738 cat >>confdefs.h <<\_ACEOF
17739 #define HAVE_FPREGSET_T 1
17740 _ACEOF
17741
17742 fi
17743 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17744 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17745
17746 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17747 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17748 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 else
17751 cat >conftest.$ac_ext <<_ACEOF
17752 /* confdefs.h. */
17753 _ACEOF
17754 cat confdefs.h >>conftest.$ac_ext
17755 cat >>conftest.$ac_ext <<_ACEOF
17756 /* end confdefs.h. */
17757
17758 #define _SYSCALL32
17759 #include <sys/procfs.h>
17760 int
17761 main ()
17762 {
17763 prgregset_t avar
17764 ;
17765 return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest.$ac_objext
17769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17770 (eval $ac_compile) 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } &&
17777 { ac_try='test -z "$ac_c_werror_flag"
17778 || test ! -s conftest.err'
17779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17781 ac_status=$?
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; } &&
17784 { ac_try='test -s conftest.$ac_objext'
17785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17787 ac_status=$?
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17791 else
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17794
17795 bfd_cv_have_sys_procfs_type_prgregset_t=no
17796
17797 fi
17798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17799 fi
17800
17801 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17802
17803 cat >>confdefs.h <<\_ACEOF
17804 #define HAVE_PRGREGSET_T 1
17805 _ACEOF
17806
17807 fi
17808 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17809 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17810
17811 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17812 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17813 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 else
17816 cat >conftest.$ac_ext <<_ACEOF
17817 /* confdefs.h. */
17818 _ACEOF
17819 cat confdefs.h >>conftest.$ac_ext
17820 cat >>conftest.$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17822
17823 #define _SYSCALL32
17824 #include <sys/procfs.h>
17825 int
17826 main ()
17827 {
17828 prfpregset_t avar
17829 ;
17830 return 0;
17831 }
17832 _ACEOF
17833 rm -f conftest.$ac_objext
17834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17835 (eval $ac_compile) 2>conftest.er1
17836 ac_status=$?
17837 grep -v '^ *+' conftest.er1 >conftest.err
17838 rm -f conftest.er1
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17841 (exit $ac_status); } &&
17842 { ac_try='test -z "$ac_c_werror_flag"
17843 || test ! -s conftest.err'
17844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; } &&
17849 { ac_try='test -s conftest.$ac_objext'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17852 ac_status=$?
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; }; then
17855 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17856 else
17857 echo "$as_me: failed program was:" >&5
17858 sed 's/^/| /' conftest.$ac_ext >&5
17859
17860 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17861
17862 fi
17863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17864 fi
17865
17866 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17867
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_PRFPREGSET_T 1
17870 _ACEOF
17871
17872 fi
17873 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17874 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17875
17876 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17877 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17878 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17879 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h. */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887
17888 #define _SYSCALL32
17889 #include <sys/procfs.h>
17890 int
17891 main ()
17892 {
17893 prgregset32_t avar
17894 ;
17895 return 0;
17896 }
17897 _ACEOF
17898 rm -f conftest.$ac_objext
17899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17900 (eval $ac_compile) 2>conftest.er1
17901 ac_status=$?
17902 grep -v '^ *+' conftest.er1 >conftest.err
17903 rm -f conftest.er1
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } &&
17907 { ac_try='test -z "$ac_c_werror_flag"
17908 || test ! -s conftest.err'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; } &&
17914 { ac_try='test -s conftest.$ac_objext'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17921 else
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17926
17927 fi
17928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17929 fi
17930
17931 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17932
17933 cat >>confdefs.h <<\_ACEOF
17934 #define HAVE_PRGREGSET32_T 1
17935 _ACEOF
17936
17937 fi
17938 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17939 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17940
17941 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17942 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17943 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17945 else
17946 cat >conftest.$ac_ext <<_ACEOF
17947 /* confdefs.h. */
17948 _ACEOF
17949 cat confdefs.h >>conftest.$ac_ext
17950 cat >>conftest.$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952
17953 #define _SYSCALL32
17954 #include <sys/procfs.h>
17955 int
17956 main ()
17957 {
17958 prfpregset32_t avar
17959 ;
17960 return 0;
17961 }
17962 _ACEOF
17963 rm -f conftest.$ac_objext
17964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17965 (eval $ac_compile) 2>conftest.er1
17966 ac_status=$?
17967 grep -v '^ *+' conftest.er1 >conftest.err
17968 rm -f conftest.er1
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } &&
17972 { ac_try='test -z "$ac_c_werror_flag"
17973 || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17976 ac_status=$?
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17985 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17986 else
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17991
17992 fi
17993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17994 fi
17995
17996 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17997
17998 cat >>confdefs.h <<\_ACEOF
17999 #define HAVE_PRFPREGSET32_T 1
18000 _ACEOF
18001
18002 fi
18003 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
18004 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
18005
18006 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
18007 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
18008 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 else
18011 cat >conftest.$ac_ext <<_ACEOF
18012 /* confdefs.h. */
18013 _ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017
18018 #define _SYSCALL32
18019 #include <sys/procfs.h>
18020 int
18021 main ()
18022 {
18023 lwpid_t avar
18024 ;
18025 return 0;
18026 }
18027 _ACEOF
18028 rm -f conftest.$ac_objext
18029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18030 (eval $ac_compile) 2>conftest.er1
18031 ac_status=$?
18032 grep -v '^ *+' conftest.er1 >conftest.err
18033 rm -f conftest.er1
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
18037 { ac_try='test -z "$ac_c_werror_flag"
18038 || test ! -s conftest.err'
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest.$ac_objext'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 bfd_cv_have_sys_procfs_type_lwpid_t=yes
18051 else
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 bfd_cv_have_sys_procfs_type_lwpid_t=no
18056
18057 fi
18058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18059 fi
18060
18061 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
18062
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_LWPID_T 1
18065 _ACEOF
18066
18067 fi
18068 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
18069 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
18070
18071 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
18072 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
18073 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
18074 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 else
18076 cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h. */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h. */
18082
18083 #define _SYSCALL32
18084 #include <sys/procfs.h>
18085 int
18086 main ()
18087 {
18088 psaddr_t avar
18089 ;
18090 return 0;
18091 }
18092 _ACEOF
18093 rm -f conftest.$ac_objext
18094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18095 (eval $ac_compile) 2>conftest.er1
18096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -z "$ac_c_werror_flag"
18103 || test ! -s conftest.err'
18104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18105 (eval $ac_try) 2>&5
18106 ac_status=$?
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); }; } &&
18109 { ac_try='test -s conftest.$ac_objext'
18110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111 (eval $ac_try) 2>&5
18112 ac_status=$?
18113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114 (exit $ac_status); }; }; then
18115 bfd_cv_have_sys_procfs_type_psaddr_t=yes
18116 else
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 bfd_cv_have_sys_procfs_type_psaddr_t=no
18121
18122 fi
18123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18124 fi
18125
18126 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
18127
18128 cat >>confdefs.h <<\_ACEOF
18129 #define HAVE_PSADDR_T 1
18130 _ACEOF
18131
18132 fi
18133 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
18134 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
18135
18136 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
18137 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
18138 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 else
18141 cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h. */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h. */
18147
18148 #define _SYSCALL32
18149 #include <sys/procfs.h>
18150 int
18151 main ()
18152 {
18153 prsysent_t avar
18154 ;
18155 return 0;
18156 }
18157 _ACEOF
18158 rm -f conftest.$ac_objext
18159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18160 (eval $ac_compile) 2>conftest.er1
18161 ac_status=$?
18162 grep -v '^ *+' conftest.er1 >conftest.err
18163 rm -f conftest.er1
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag"
18168 || test ! -s conftest.err'
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; } &&
18174 { ac_try='test -s conftest.$ac_objext'
18175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18176 (eval $ac_try) 2>&5
18177 ac_status=$?
18178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18179 (exit $ac_status); }; }; then
18180 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18181 else
18182 echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 bfd_cv_have_sys_procfs_type_prsysent_t=no
18186
18187 fi
18188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18189 fi
18190
18191 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18192
18193 cat >>confdefs.h <<\_ACEOF
18194 #define HAVE_PRSYSENT_T 1
18195 _ACEOF
18196
18197 fi
18198 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18199 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18200
18201 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18202 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18203 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212
18213 #define _SYSCALL32
18214 #include <sys/procfs.h>
18215 int
18216 main ()
18217 {
18218 pr_sigset_t avar
18219 ;
18220 return 0;
18221 }
18222 _ACEOF
18223 rm -f conftest.$ac_objext
18224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18225 (eval $ac_compile) 2>conftest.er1
18226 ac_status=$?
18227 grep -v '^ *+' conftest.er1 >conftest.err
18228 rm -f conftest.er1
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag"
18233 || test ! -s conftest.err'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; } &&
18239 { ac_try='test -s conftest.$ac_objext'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18246 else
18247 echo "$as_me: failed program was:" >&5
18248 sed 's/^/| /' conftest.$ac_ext >&5
18249
18250 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18251
18252 fi
18253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18254 fi
18255
18256 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18257
18258 cat >>confdefs.h <<\_ACEOF
18259 #define HAVE_PR_SIGSET_T 1
18260 _ACEOF
18261
18262 fi
18263 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18264 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18265
18266 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18267 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18268 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18269 echo $ECHO_N "(cached) $ECHO_C" >&6
18270 else
18271 cat >conftest.$ac_ext <<_ACEOF
18272 /* confdefs.h. */
18273 _ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277
18278 #define _SYSCALL32
18279 #include <sys/procfs.h>
18280 int
18281 main ()
18282 {
18283 pr_sigaction64_t avar
18284 ;
18285 return 0;
18286 }
18287 _ACEOF
18288 rm -f conftest.$ac_objext
18289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18290 (eval $ac_compile) 2>conftest.er1
18291 ac_status=$?
18292 grep -v '^ *+' conftest.er1 >conftest.err
18293 rm -f conftest.er1
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } &&
18297 { ac_try='test -z "$ac_c_werror_flag"
18298 || test ! -s conftest.err'
18299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300 (eval $ac_try) 2>&5
18301 ac_status=$?
18302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303 (exit $ac_status); }; } &&
18304 { ac_try='test -s conftest.$ac_objext'
18305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18306 (eval $ac_try) 2>&5
18307 ac_status=$?
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18311 else
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18314
18315 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18316
18317 fi
18318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18319 fi
18320
18321 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18322
18323 cat >>confdefs.h <<\_ACEOF
18324 #define HAVE_PR_SIGACTION64_T 1
18325 _ACEOF
18326
18327 fi
18328 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18329 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18330
18331 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18332 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18333 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 else
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h. */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h. */
18342
18343 #define _SYSCALL32
18344 #include <sys/procfs.h>
18345 int
18346 main ()
18347 {
18348 pr_siginfo64_t avar
18349 ;
18350 return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18355 (eval $ac_compile) 2>conftest.er1
18356 ac_status=$?
18357 grep -v '^ *+' conftest.er1 >conftest.err
18358 rm -f conftest.er1
18359 cat conftest.err >&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -z "$ac_c_werror_flag"
18363 || test ! -s conftest.err'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; } &&
18369 { ac_try='test -s conftest.$ac_objext'
18370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18371 (eval $ac_try) 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18376 else
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18381
18382 fi
18383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18384 fi
18385
18386 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18387
18388 cat >>confdefs.h <<\_ACEOF
18389 #define HAVE_PR_SIGINFO64_T 1
18390 _ACEOF
18391
18392 fi
18393 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18394 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18395
18396
18397
18398
18399
18400 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18401 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18402 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18403 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18404 echo $ECHO_N "(cached) $ECHO_C" >&6
18405 else
18406 if test "$cross_compiling" = yes; then
18407 gdb_cv_prfpregset_t_broken=yes
18408 else
18409 cat >conftest.$ac_ext <<_ACEOF
18410 /* confdefs.h. */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h. */
18415 #include <sys/procfs.h>
18416 int main ()
18417 {
18418 if (sizeof (prfpregset_t) == sizeof (void *))
18419 return 1;
18420 return 0;
18421 }
18422 _ACEOF
18423 rm -f conftest$ac_exeext
18424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18425 (eval $ac_link) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18431 ac_status=$?
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); }; }; then
18434 gdb_cv_prfpregset_t_broken=no
18435 else
18436 echo "$as_me: program exited with status $ac_status" >&5
18437 echo "$as_me: failed program was:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18439
18440 ( exit $ac_status )
18441 gdb_cv_prfpregset_t_broken=yes
18442 fi
18443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18444 fi
18445 fi
18446
18447 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18448 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18449 if test $gdb_cv_prfpregset_t_broken = yes; then
18450 cat >>confdefs.h <<\_ACEOF
18451 #define PRFPREGSET_T_BROKEN 1
18452 _ACEOF
18453
18454 fi
18455 fi
18456
18457
18458 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18459 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18460 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18461 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 else
18463 cat >conftest.$ac_ext <<_ACEOF
18464 /* confdefs.h. */
18465 _ACEOF
18466 cat confdefs.h >>conftest.$ac_ext
18467 cat >>conftest.$ac_ext <<_ACEOF
18468 /* end confdefs.h. */
18469 #include <unistd.h>
18470 #include <sys/types.h>
18471 #include <sys/procfs.h>
18472
18473 int
18474 main ()
18475 {
18476
18477 int dummy;;
18478 dummy = ioctl(0, PIOCSET, &dummy);
18479
18480 ;
18481 return 0;
18482 }
18483 _ACEOF
18484 rm -f conftest.$ac_objext
18485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18486 (eval $ac_compile) 2>conftest.er1
18487 ac_status=$?
18488 grep -v '^ *+' conftest.er1 >conftest.err
18489 rm -f conftest.er1
18490 cat conftest.err >&5
18491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492 (exit $ac_status); } &&
18493 { ac_try='test -z "$ac_c_werror_flag"
18494 || test ! -s conftest.err'
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest.$ac_objext'
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 gdb_cv_have_procfs_piocset=yes
18507 else
18508 echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18510
18511 gdb_cv_have_procfs_piocset=no
18512 fi
18513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18514 fi
18515
18516 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18517 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18518 if test $gdb_cv_have_procfs_piocset = yes; then
18519 cat >>confdefs.h <<\_ACEOF
18520 #define HAVE_PROCFS_PIOCSET 1
18521 _ACEOF
18522
18523 fi
18524 fi
18525
18526 if test ${host} = ${target} ; then
18527
18528 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18529 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18530 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18531 echo $ECHO_N "(cached) $ECHO_C" >&6
18532 else
18533 cat >conftest.$ac_ext <<_ACEOF
18534 /* confdefs.h. */
18535 _ACEOF
18536 cat confdefs.h >>conftest.$ac_ext
18537 cat >>conftest.$ac_ext <<_ACEOF
18538 /* end confdefs.h. */
18539 #include <link.h>
18540 int
18541 main ()
18542 {
18543 struct link_map lm; (void) lm.l_addr;
18544 ;
18545 return 0;
18546 }
18547 _ACEOF
18548 rm -f conftest.$ac_objext
18549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18550 (eval $ac_compile) 2>conftest.er1
18551 ac_status=$?
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_c_werror_flag"
18558 || test ! -s conftest.err'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18561 ac_status=$?
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; } &&
18564 { ac_try='test -s conftest.$ac_objext'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; }; then
18570 gdb_cv_have_struct_link_map_with_l_members=yes
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 gdb_cv_have_struct_link_map_with_l_members=no
18576 fi
18577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18578 fi
18579
18580 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18581 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18582 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18583 cat >>confdefs.h <<\_ACEOF
18584 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18585 _ACEOF
18586
18587 fi
18588
18589
18590 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18591 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18592 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 else
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18601 #include <sys/types.h>
18602 #include <link.h>
18603 int
18604 main ()
18605 {
18606 struct link_map lm; (void) lm.lm_addr;
18607 ;
18608 return 0;
18609 }
18610 _ACEOF
18611 rm -f conftest.$ac_objext
18612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18613 (eval $ac_compile) 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } &&
18620 { ac_try='test -z "$ac_c_werror_flag"
18621 || test ! -s conftest.err'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest.$ac_objext'
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 gdb_cv_have_struct_link_map_with_lm_members=yes
18634 else
18635 echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638 gdb_cv_have_struct_link_map_with_lm_members=no
18639 fi
18640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18641 fi
18642
18643 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18644 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18645 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18646 cat >>confdefs.h <<\_ACEOF
18647 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18648 _ACEOF
18649
18650 fi
18651
18652
18653 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18654 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18655 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18656 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658 cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h. */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <sys/types.h>
18665 #ifdef HAVE_NLIST_H
18666 #include <nlist.h>
18667 #endif
18668 #include <link.h>
18669 int
18670 main ()
18671 {
18672 struct so_map lm; (void) lm.som_addr;
18673 ;
18674 return 0;
18675 }
18676 _ACEOF
18677 rm -f conftest.$ac_objext
18678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18679 (eval $ac_compile) 2>conftest.er1
18680 ac_status=$?
18681 grep -v '^ *+' conftest.er1 >conftest.err
18682 rm -f conftest.er1
18683 cat conftest.err >&5
18684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18685 (exit $ac_status); } &&
18686 { ac_try='test -z "$ac_c_werror_flag"
18687 || test ! -s conftest.err'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest.$ac_objext'
18694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695 (eval $ac_try) 2>&5
18696 ac_status=$?
18697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698 (exit $ac_status); }; }; then
18699 gdb_cv_have_struct_so_map_with_som_members=yes
18700 else
18701 echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704 gdb_cv_have_struct_so_map_with_som_members=no
18705 fi
18706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18707 fi
18708
18709 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18710 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18711 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18712 cat >>confdefs.h <<\_ACEOF
18713 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18714 _ACEOF
18715
18716 fi
18717
18718
18719 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18720 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18721 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 #define _SYSCALL32
18731 #include <sys/link.h>
18732 int
18733 main ()
18734 {
18735 struct link_map32 l;
18736 ;
18737 return 0;
18738 }
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18742 (eval $ac_compile) 2>conftest.er1
18743 ac_status=$?
18744 grep -v '^ *+' conftest.er1 >conftest.err
18745 rm -f conftest.er1
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag"
18750 || test ! -s conftest.err'
18751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752 (eval $ac_try) 2>&5
18753 ac_status=$?
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); }; } &&
18756 { ac_try='test -s conftest.$ac_objext'
18757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758 (eval $ac_try) 2>&5
18759 ac_status=$?
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 gdb_cv_have_struct_link_map32=yes
18763 else
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18766
18767 gdb_cv_have_struct_link_map32=no
18768 fi
18769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18770 fi
18771
18772 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18773 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18774 if test $gdb_cv_have_struct_link_map32 = yes; then
18775 cat >>confdefs.h <<\_ACEOF
18776 #define HAVE_STRUCT_LINK_MAP32 1
18777 _ACEOF
18778
18779 cat >>confdefs.h <<\_ACEOF
18780 #define _SYSCALL32 1
18781 _ACEOF
18782
18783 fi
18784 fi
18785
18786 # Check if the compiler supports the `long long' type.
18787
18788 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18789 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18790 if test "${gdb_cv_c_long_long+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 extern long long foo;
18800 int
18801 main ()
18802 {
18803 switch (foo & 2) { case 0: return 1; }
18804 ;
18805 return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18810 (eval $ac_compile) 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag"
18818 || test ! -s conftest.err'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest.$ac_objext'
18825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826 (eval $ac_try) 2>&5
18827 ac_status=$?
18828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); }; }; then
18830 gdb_cv_c_long_long=yes
18831 else
18832 echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 gdb_cv_c_long_long=no
18836 fi
18837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18838 fi
18839 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18840 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18841 if test $gdb_cv_c_long_long = yes; then
18842
18843 cat >>confdefs.h <<\_ACEOF
18844 #define CC_HAS_LONG_LONG 1
18845 _ACEOF
18846
18847 fi
18848
18849 # Check if the compiler and runtime support printing long longs.
18850
18851 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18852 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18853 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856 if test "$cross_compiling" = yes; then
18857 gdb_cv_printf_has_long_long=no
18858 else
18859 cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h. */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 $ac_includes_default
18866 int
18867 main ()
18868 {
18869 char buf[32];
18870 long long l = 0;
18871 l = (l << 16) + 0x0123;
18872 l = (l << 16) + 0x4567;
18873 l = (l << 16) + 0x89ab;
18874 l = (l << 16) + 0xcdef;
18875 sprintf (buf, "0x%016llx", l);
18876 return (strcmp ("0x0123456789abcdef", buf));
18877 ;
18878 return 0;
18879 }
18880 _ACEOF
18881 rm -f conftest$ac_exeext
18882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18883 (eval $ac_link) 2>&5
18884 ac_status=$?
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 gdb_cv_printf_has_long_long=yes
18893 else
18894 echo "$as_me: program exited with status $ac_status" >&5
18895 echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898 ( exit $ac_status )
18899 gdb_cv_printf_has_long_long=no
18900 fi
18901 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18902 fi
18903 fi
18904 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18905 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18906 if test $gdb_cv_printf_has_long_long = yes; then
18907
18908 cat >>confdefs.h <<\_ACEOF
18909 #define PRINTF_HAS_LONG_LONG 1
18910 _ACEOF
18911
18912 fi
18913
18914 # Check if the compiler supports the `long double' type. We can't use
18915 # AC_C_LONG_DOUBLE because that one does additional checks on the
18916 # constants defined in <float.h> that fail on some systems,
18917 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18918
18919 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18920 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18921 if test "${gdb_cv_c_long_double+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 long double foo;
18931 _ACEOF
18932 rm -f conftest.$ac_objext
18933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18934 (eval $ac_compile) 2>conftest.er1
18935 ac_status=$?
18936 grep -v '^ *+' conftest.er1 >conftest.err
18937 rm -f conftest.er1
18938 cat conftest.err >&5
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); } &&
18941 { ac_try='test -z "$ac_c_werror_flag"
18942 || test ! -s conftest.err'
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 gdb_cv_c_long_double=yes
18955 else
18956 echo "$as_me: failed program was:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18958
18959 gdb_cv_c_long_double=no
18960 fi
18961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18962 fi
18963 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18964 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18965 if test $gdb_cv_c_long_double = yes; then
18966
18967 cat >>confdefs.h <<\_ACEOF
18968 #define HAVE_LONG_DOUBLE 1
18969 _ACEOF
18970
18971 fi
18972
18973 # Check if the compiler and runtime support printing long doubles.
18974
18975 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18976 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18977 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980 if test "$cross_compiling" = yes; then
18981 gdb_cv_printf_has_long_double=no
18982 else
18983 cat >conftest.$ac_ext <<_ACEOF
18984 /* confdefs.h. */
18985 _ACEOF
18986 cat confdefs.h >>conftest.$ac_ext
18987 cat >>conftest.$ac_ext <<_ACEOF
18988 /* end confdefs.h. */
18989 $ac_includes_default
18990 int
18991 main ()
18992 {
18993 char buf[16];
18994 long double f = 3.141592653;
18995 sprintf (buf, "%Lg", f);
18996 return (strncmp ("3.14159", buf, 7));
18997 ;
18998 return 0;
18999 }
19000 _ACEOF
19001 rm -f conftest$ac_exeext
19002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003 (eval $ac_link) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 gdb_cv_printf_has_long_double=yes
19013 else
19014 echo "$as_me: program exited with status $ac_status" >&5
19015 echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018 ( exit $ac_status )
19019 gdb_cv_printf_has_long_double=no
19020 fi
19021 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19022 fi
19023 fi
19024 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
19025 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
19026 if test $gdb_cv_printf_has_long_double = yes; then
19027
19028 cat >>confdefs.h <<\_ACEOF
19029 #define PRINTF_HAS_LONG_DOUBLE 1
19030 _ACEOF
19031
19032 fi
19033
19034 # Check if the compiler and runtime support scanning long doubles.
19035
19036 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
19037 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
19038 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 if test "$cross_compiling" = yes; then
19042 gdb_cv_scanf_has_long_double=no
19043 else
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <stdio.h>
19051 int
19052 main ()
19053 {
19054 char *buf = "3.141592653";
19055 long double f = 0;
19056 sscanf (buf, "%Lg", &f);
19057 return !(f > 3.14159 && f < 3.14160);
19058 ;
19059 return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest$ac_exeext
19063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19064 (eval $ac_link) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; }; then
19073 gdb_cv_scanf_has_long_double=yes
19074 else
19075 echo "$as_me: program exited with status $ac_status" >&5
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ( exit $ac_status )
19080 gdb_cv_scanf_has_long_double=no
19081 fi
19082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19083 fi
19084 fi
19085 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19086 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19087 if test $gdb_cv_scanf_has_long_double = yes; then
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define SCANF_HAS_LONG_DOUBLE 1
19091 _ACEOF
19092
19093 fi
19094
19095 case ${host_os} in
19096 aix*)
19097 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19098 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19099 if test "${gdb_cv_bigtoc+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 else
19102
19103 SAVE_LDFLAGS=$LDFLAGS
19104
19105 case $GCC in
19106 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19107 *) gdb_cv_bigtoc=-bbigtoc ;;
19108 esac
19109
19110 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117
19118 int
19119 main ()
19120 {
19121 int i;
19122 ;
19123 return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128 (eval $ac_link) 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 :
19149 else
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153 gdb_cv_bigtoc=
19154 fi
19155 rm -f conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19157 LDFLAGS="${SAVE_LDFLAGS}"
19158
19159 fi
19160 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19161 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19162 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19163 ;;
19164 esac
19165
19166
19167
19168 if test ${build} = ${host} -a ${host} = ${target} ; then
19169 case ${host_os} in
19170 hpux*)
19171 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19172 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19173 if test -f /usr/include/dce/cma_config.h ; then
19174 if test "$GCC" = "yes" ; then
19175 echo "$as_me:$LINENO: result: yes" >&5
19176 echo "${ECHO_T}yes" >&6
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE_HPUX_THREAD_SUPPORT 1
19179 _ACEOF
19180
19181 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19182 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19183 else
19184 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19185 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19186 fi
19187 else
19188 echo "$as_me:$LINENO: result: no" >&5
19189 echo "${ECHO_T}no" >&6
19190 fi
19191 ;;
19192 solaris*)
19193 # See if thread_db library is around for Solaris thread debugging.
19194 # Note that we must explicitly test for version 1 of the library
19195 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19196 # the same API.
19197 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19198 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19199 if test -f /usr/lib/libthread_db.so.1 ; then
19200 echo "$as_me:$LINENO: result: yes" >&5
19201 echo "${ECHO_T}yes" >&6
19202 cat >>confdefs.h <<\_ACEOF
19203 #define HAVE_THREAD_DB_LIB 1
19204 _ACEOF
19205
19206 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19207 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19208
19209 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19210 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 else
19214 ac_check_lib_save_LIBS=$LIBS
19215 LIBS="-ldl $LIBS"
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222
19223 /* Override any gcc2 internal prototype to avoid an error. */
19224 #ifdef __cplusplus
19225 extern "C"
19226 #endif
19227 /* We use char because int might match the return type of a gcc2
19228 builtin and then its argument prototype would still apply. */
19229 char dlopen ();
19230 int
19231 main ()
19232 {
19233 dlopen ();
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_lib_dl_dlopen=yes
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 ac_cv_lib_dl_dlopen=no
19266 fi
19267 rm -f conftest.err conftest.$ac_objext \
19268 conftest$ac_exeext conftest.$ac_ext
19269 LIBS=$ac_check_lib_save_LIBS
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19272 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19273 if test $ac_cv_lib_dl_dlopen = yes; then
19274 cat >>confdefs.h <<_ACEOF
19275 #define HAVE_LIBDL 1
19276 _ACEOF
19277
19278 LIBS="-ldl $LIBS"
19279
19280 fi
19281
19282 if test "$GCC" = "yes" ; then
19283 # The GNU linker requires the -export-dynamic option to make
19284 # all symbols visible in the dynamic symbol table.
19285 hold_ldflags=$LDFLAGS
19286 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19287 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19288 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19289 cat >conftest.$ac_ext <<_ACEOF
19290 /* confdefs.h. */
19291 _ACEOF
19292 cat confdefs.h >>conftest.$ac_ext
19293 cat >>conftest.$ac_ext <<_ACEOF
19294 /* end confdefs.h. */
19295
19296 int
19297 main ()
19298 {
19299 int i;
19300 ;
19301 return 0;
19302 }
19303 _ACEOF
19304 rm -f conftest.$ac_objext conftest$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>conftest.er1
19307 ac_status=$?
19308 grep -v '^ *+' conftest.er1 >conftest.err
19309 rm -f conftest.er1
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 found=yes
19327 else
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19330
19331 found=no
19332 fi
19333 rm -f conftest.err conftest.$ac_objext \
19334 conftest$ac_exeext conftest.$ac_ext
19335 LDFLAGS=$hold_ldflags
19336 echo "$as_me:$LINENO: result: $found" >&5
19337 echo "${ECHO_T}$found" >&6
19338 if test $found = yes; then
19339 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19340 fi
19341 fi
19342 # Sun randomly tweaked the prototypes in <proc_service.h>
19343 # at one point.
19344 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19345 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19346 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348 else
19349
19350 cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h. */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356
19357 #include <proc_service.h>
19358 ps_err_e ps_pdwrite
19359 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19360
19361 int
19362 main ()
19363 {
19364
19365 ;
19366 return 0;
19367 }
19368 _ACEOF
19369 rm -f conftest.$ac_objext
19370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19371 (eval $ac_compile) 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag"
19379 || test ! -s conftest.err'
19380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19381 (eval $ac_try) 2>&5
19382 ac_status=$?
19383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19384 (exit $ac_status); }; } &&
19385 { ac_try='test -s conftest.$ac_objext'
19386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19387 (eval $ac_try) 2>&5
19388 ac_status=$?
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 gdb_cv_proc_service_is_old=no
19392 else
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19395
19396 gdb_cv_proc_service_is_old=yes
19397 fi
19398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19399
19400 fi
19401
19402 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19403 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19404 if test $gdb_cv_proc_service_is_old = yes; then
19405 cat >>confdefs.h <<\_ACEOF
19406 #define PROC_SERVICE_IS_OLD 1
19407 _ACEOF
19408
19409 fi
19410 else
19411 echo "$as_me:$LINENO: result: no" >&5
19412 echo "${ECHO_T}no" >&6
19413 fi
19414 ;;
19415 aix*)
19416 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19417 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19418 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19419 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 else
19421 cat >conftest.$ac_ext <<_ACEOF
19422 /* confdefs.h. */
19423 _ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 #include <sys/pthdebug.h>
19428 int
19429 main ()
19430 {
19431 #ifndef PTHDB_VERSION_3
19432 #error
19433 #endif
19434 ;
19435 return 0;
19436 }
19437 _ACEOF
19438 rm -f conftest.$ac_objext
19439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19440 (eval $ac_compile) 2>conftest.er1
19441 ac_status=$?
19442 grep -v '^ *+' conftest.er1 >conftest.err
19443 rm -f conftest.er1
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); } &&
19447 { ac_try='test -z "$ac_c_werror_flag"
19448 || test ! -s conftest.err'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest.$ac_objext'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; }; then
19460 gdb_cv_have_aix_thread_debug=yes
19461 else
19462 echo "$as_me: failed program was:" >&5
19463 sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 gdb_cv_have_aix_thread_debug=no
19466 fi
19467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19468 fi
19469
19470 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19471 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19472 if test $gdb_cv_have_aix_thread_debug = yes; then
19473 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19474 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19475 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19476 fi
19477 ;;
19478 esac
19479
19480 fi
19481
19482 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19483 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19484 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19485 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 else
19488 cat >conftest.$ac_ext <<_ACEOF
19489 /* confdefs.h. */
19490 _ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19494 #include <thread_db.h>
19495 int
19496 main ()
19497 {
19498 int i = TD_NOTALLOC;
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext
19504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19505 (eval $ac_compile) 2>conftest.er1
19506 ac_status=$?
19507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 gdb_cv_thread_db_h_has_td_notalloc=yes
19526 else
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530 gdb_cv_thread_db_h_has_td_notalloc=no
19531
19532 fi
19533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19534
19535 fi
19536 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19537 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19538 fi
19539 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19540
19541 cat >>confdefs.h <<\_ACEOF
19542 #define THREAD_DB_HAS_TD_NOTALLOC 1
19543 _ACEOF
19544
19545 fi
19546
19547 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19548 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19549 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19550 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19553 cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h. */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 #include <sys/syscall.h>
19560 int
19561 main ()
19562 {
19563 int i = __NR_tkill;
19564 ;
19565 return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19570 (eval $ac_compile) 2>conftest.er1
19571 ac_status=$?
19572 grep -v '^ *+' conftest.er1 >conftest.err
19573 rm -f conftest.er1
19574 cat conftest.err >&5
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); } &&
19577 { ac_try='test -z "$ac_c_werror_flag"
19578 || test ! -s conftest.err'
19579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580 (eval $ac_try) 2>&5
19581 ac_status=$?
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); }; } &&
19584 { ac_try='test -s conftest.$ac_objext'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; }; then
19590 gdb_cv_sys_syscall_h_has_tkill=yes
19591 else
19592 echo "$as_me: failed program was:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19594
19595 gdb_cv_sys_syscall_h_has_tkill=no
19596
19597 fi
19598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19599
19600 fi
19601 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19602 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19603 fi
19604 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19605
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_TKILL_SYSCALL 1
19608 _ACEOF
19609
19610 fi
19611
19612
19613
19614 # Check whether --with-sysroot or --without-sysroot was given.
19615 if test "${with_sysroot+set}" = set; then
19616 withval="$with_sysroot"
19617
19618 case ${with_sysroot} in
19619 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19620 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19621 esac
19622
19623 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19624
19625 if test "x$exec_prefix" = xNONE; then
19626 if test "x$prefix" = xNONE; then
19627 test_prefix=/usr/local
19628 else
19629 test_prefix=$prefix
19630 fi
19631 else
19632 test_prefix=$exec_prefix
19633 fi
19634 case ${TARGET_SYSTEM_ROOT} in
19635 "${test_prefix}"|"${test_prefix}/"*|\
19636 '${exec_prefix}'|'${exec_prefix}/'*)
19637 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19638 TARGET_SYSTEM_ROOT_DEFINE="$t"
19639 ;;
19640 esac
19641
19642 else
19643
19644 TARGET_SYSTEM_ROOT=
19645 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19646
19647 fi;
19648
19649
19650
19651 # NOTE: Don't add -Wall or -Wunused, they both include
19652 # -Wunused-parameter which reports bogus warnings.
19653 # NOTE: If you add to this list, remember to update
19654 # gdb/doc/gdbint.texinfo.
19655 build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
19656 -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \
19657 -Wunused-label -Wunused-function"
19658 # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
19659 # -Wunused-function -Wunused-variable -Wunused-value
19660 # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
19661 # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
19662 # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
19663 # -Woverloaded-virtual -Winline -Werror"
19664 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19665 if test "${enable_build_warnings+set}" = set; then
19666 enableval="$enable_build_warnings"
19667 case "${enableval}" in
19668 yes) ;;
19669 no) build_warnings="-w";;
19670 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19671 build_warnings="${build_warnings} ${t}";;
19672 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19673 build_warnings="${t} ${build_warnings}";;
19674 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19675 esac
19676 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19677 echo "Setting compiler warning flags = $build_warnings" 6>&1
19678 fi
19679 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19680 if test "${enable_gdb_build_warnings+set}" = set; then
19681 enableval="$enable_gdb_build_warnings"
19682 case "${enableval}" in
19683 yes) ;;
19684 no) build_warnings="-w";;
19685 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19686 build_warnings="${build_warnings} ${t}";;
19687 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19688 build_warnings="${t} ${build_warnings}";;
19689 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19690 esac
19691 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19692 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19693 fi
19694 fi; WARN_CFLAGS=""
19695 WERROR_CFLAGS=""
19696 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19697 then
19698 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19699 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19700 # Separate out the -Werror flag as some files just cannot be
19701 # compiled with it enabled.
19702 for w in ${build_warnings}; do
19703 case $w in
19704 -Werr*) WERROR_CFLAGS=-Werror ;;
19705 *) # Check that GCC accepts it
19706 saved_CFLAGS="$CFLAGS"
19707 CFLAGS="$CFLAGS $w"
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714
19715 int
19716 main ()
19717 {
19718
19719 ;
19720 return 0;
19721 }
19722 _ACEOF
19723 rm -f conftest.$ac_objext
19724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19725 (eval $ac_compile) 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
19732 { ac_try='test -z "$ac_c_werror_flag"
19733 || test ! -s conftest.err'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19736 ac_status=$?
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; } &&
19739 { ac_try='test -s conftest.$ac_objext'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19742 ac_status=$?
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; }; then
19745 WARN_CFLAGS="${WARN_CFLAGS} $w"
19746 else
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750 fi
19751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19752 CFLAGS="$saved_CFLAGS"
19753 esac
19754 done
19755 echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5
19756 echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6
19757 fi
19758
19759
19760
19761 # In the Cygwin environment, we need some additional flags.
19762 echo "$as_me:$LINENO: checking for cygwin" >&5
19763 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19764 if test "${gdb_cv_os_cygwin+set}" = set; then
19765 echo $ECHO_N "(cached) $ECHO_C" >&6
19766 else
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h. */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19773
19774 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19775 lose
19776 #endif
19777 _ACEOF
19778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19779 $EGREP "lose" >/dev/null 2>&1; then
19780 gdb_cv_os_cygwin=yes
19781 else
19782 gdb_cv_os_cygwin=no
19783 fi
19784 rm -f conftest*
19785
19786 fi
19787 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19788 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19789
19790
19791 SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o"
19792 case ${host} in
19793 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19794 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19795 esac
19796
19797
19798 # libreadline needs libuser32.a in a cygwin environment
19799 WIN32LIBS=
19800 if test x$gdb_cv_os_cygwin = xyes; then
19801 WIN32LIBS="-luser32"
19802 case "${target}" in
19803 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19804 ;;
19805 esac
19806 fi
19807
19808
19809 LIBGUI="../libgui/src/libgui.a"
19810 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19811
19812
19813
19814 WIN32LDAPP=
19815
19816
19817
19818 case "${host}" in
19819 *-*-cygwin*)
19820 configdir="win"
19821 ;;
19822 *)
19823 configdir="unix"
19824 ;;
19825 esac
19826
19827 GDBTKLIBS=
19828 if test "${enable_gdbtk}" = "yes"; then
19829
19830 # Gdbtk must have an absolute path to srcdir in order to run
19831 # properly when not installed.
19832 here=`pwd`
19833 cd ${srcdir}
19834 GDBTK_SRC_DIR=`pwd`
19835 cd $here
19836
19837
19838 #
19839 # Ok, lets find the tcl configuration
19840 # First, look for one uninstalled.
19841 # the alternative search directory is invoked by --with-tclconfig
19842 #
19843
19844 if test x"${no_tcl}" = x ; then
19845 # we reset no_tcl in case something fails here
19846 no_tcl=true
19847
19848 # Check whether --with-tclconfig or --without-tclconfig was given.
19849 if test "${with_tclconfig+set}" = set; then
19850 withval="$with_tclconfig"
19851 with_tclconfig=${withval}
19852 fi;
19853 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19854 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19855 if test "${ac_cv_c_tclconfig+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858
19859
19860 # First check to see if --with-tclconfig was specified.
19861 if test x"${with_tclconfig}" != x ; then
19862 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19863 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19864 else
19865 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19866 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19867 { (exit 1); exit 1; }; }
19868 fi
19869 fi
19870
19871 # then check for a private Tcl installation
19872 if test x"${ac_cv_c_tclconfig}" = x ; then
19873 for i in \
19874 ../tcl \
19875 `ls -dr ../tcl[7-9]* 2>/dev/null` \
19876 ../../tcl \
19877 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
19878 ../../../tcl \
19879 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
19880 if test -f "$i/${configdir}/tclConfig.sh" ; then
19881 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19882 break
19883 fi
19884 done
19885 fi
19886 # check in a few common install locations
19887 if test x"${ac_cv_c_tclconfig}" = x ; then
19888 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
19889 if test -f "$i/tclConfig.sh" ; then
19890 ac_cv_c_tclconfig=`(cd $i; pwd)`
19891 break
19892 fi
19893 done
19894 fi
19895 # check in a few other private locations
19896 if test x"${ac_cv_c_tclconfig}" = x ; then
19897 for i in \
19898 ${srcdir}/../tcl \
19899 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
19900 if test -f "$i/${configdir}/tclConfig.sh" ; then
19901 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
19902 break
19903 fi
19904 done
19905 fi
19906
19907 fi
19908
19909 if test x"${ac_cv_c_tclconfig}" = x ; then
19910 TCLCONFIG="# no Tcl configs found"
19911 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19912 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19913 else
19914 no_tcl=
19915 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
19916 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
19917 echo "${ECHO_T}found $TCLCONFIG" >&6
19918 fi
19919 fi
19920
19921 if test -z "${no_tcl}"; then
19922
19923 . $TCLCONFIG
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951 #
19952 # Ok, lets find the tk configuration
19953 # First, look for one uninstalled.
19954 # the alternative search directory is invoked by --with-tkconfig
19955 #
19956
19957 if test x"${no_tk}" = x ; then
19958 # we reset no_tk in case something fails here
19959 no_tk=true
19960
19961 # Check whether --with-tkconfig or --without-tkconfig was given.
19962 if test "${with_tkconfig+set}" = set; then
19963 withval="$with_tkconfig"
19964 with_tkconfig=${withval}
19965 fi;
19966 echo "$as_me:$LINENO: checking for Tk configuration" >&5
19967 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
19968 if test "${ac_cv_c_tkconfig+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970 else
19971
19972
19973 # First check to see if --with-tkconfig was specified.
19974 if test x"${with_tkconfig}" != x ; then
19975 if test -f "${with_tkconfig}/tkConfig.sh" ; then
19976 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
19977 else
19978 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
19979 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
19980 { (exit 1); exit 1; }; }
19981 fi
19982 fi
19983
19984 # then check for a private Tk library
19985 if test x"${ac_cv_c_tkconfig}" = x ; then
19986 for i in \
19987 ../tk \
19988 `ls -dr ../tk[4-9]* 2>/dev/null` \
19989 ../../tk \
19990 `ls -dr ../../tk[4-9]* 2>/dev/null` \
19991 ../../../tk \
19992 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
19993 if test -f "$i/${configdir}/tkConfig.sh" ; then
19994 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
19995 break
19996 fi
19997 done
19998 fi
19999 # check in a few common install locations
20000 if test x"${ac_cv_c_tkconfig}" = x ; then
20001 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20002 if test -f "$i/tkConfig.sh" ; then
20003 ac_cv_c_tkconfig=`(cd $i; pwd)`
20004 break
20005 fi
20006 done
20007 fi
20008 # check in a few other private locations
20009 if test x"${ac_cv_c_tkconfig}" = x ; then
20010 for i in \
20011 ${srcdir}/../tk \
20012 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
20013 if test -f "$i/${configdir}/tkConfig.sh" ; then
20014 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
20015 break
20016 fi
20017 done
20018 fi
20019
20020 fi
20021
20022 if test x"${ac_cv_c_tkconfig}" = x ; then
20023 TKCONFIG="# no Tk configs found"
20024 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20025 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20026 else
20027 no_tk=
20028 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
20029 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
20030 echo "${ECHO_T}found $TKCONFIG" >&6
20031 fi
20032 fi
20033
20034
20035
20036 # now look for Tcl library stuff
20037
20038 tcldir="../tcl/${configdir}/"
20039
20040 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
20041
20042 # If $no_tk is nonempty, then we can't do Tk, and there is no
20043 # point to doing Tcl.
20044 if test -z "${no_tk}"; then
20045
20046 if test -f "$TKCONFIG" ; then
20047 . $TKCONFIG
20048 fi
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063 #
20064 # Ok, lets find the tcl source trees so we can use the headers
20065 # Warning: transition of version 9 to 10 will break this algorithm
20066 # because 10 sorts before 9. We also look for just tcl. We have to
20067 # be careful that we don't match stuff like tclX by accident.
20068 # the alternative search directory is involked by --with-tclinclude
20069 #
20070
20071 no_tcl=true
20072 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
20073 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
20074
20075 # Check whether --with-tclinclude or --without-tclinclude was given.
20076 if test "${with_tclinclude+set}" = set; then
20077 withval="$with_tclinclude"
20078 with_tclinclude=${withval}
20079 fi;
20080 if test "${ac_cv_c_tclh+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 else
20083
20084 # first check to see if --with-tclinclude was specified
20085 if test x"${with_tclinclude}" != x ; then
20086 if test -f ${with_tclinclude}/tclInt.h ; then
20087 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
20088 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
20089 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
20090 else
20091 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
20092 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
20093 { (exit 1); exit 1; }; }
20094 fi
20095 fi
20096
20097 # next check if it came with Tcl configuration file
20098 if test x"${ac_cv_c_tclconfig}" = x ; then
20099 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
20100 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
20101 fi
20102 fi
20103
20104 # next check in private source directory
20105 #
20106 # since ls returns lowest version numbers first, reverse its output
20107 if test x"${ac_cv_c_tclh}" = x ; then
20108 for i in \
20109 ${srcdir}/../tcl \
20110 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
20111 ${srcdir}/../../tcl \
20112 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
20113 ${srcdir}/../../../tcl \
20114 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
20115 if test -f $i/generic/tclInt.h ; then
20116 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20117 break
20118 fi
20119 done
20120 fi
20121 # finally check in a few common install locations
20122 #
20123 # since ls returns lowest version numbers first, reverse its output
20124 if test x"${ac_cv_c_tclh}" = x ; then
20125 for i in \
20126 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
20127 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
20128 /usr/local/src/tcl \
20129 /usr/local/lib/tcl \
20130 ${prefix}/include ; do
20131 if test -f $i/generic/tclInt.h ; then
20132 ac_cv_c_tclh=`(cd $i/generic; pwd)`
20133 break
20134 fi
20135 done
20136 fi
20137 # see if one is installed
20138 if test x"${ac_cv_c_tclh}" = x ; then
20139 if test "${ac_cv_header_tclInt_h+set}" = set; then
20140 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20141 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20142 if test "${ac_cv_header_tclInt_h+set}" = set; then
20143 echo $ECHO_N "(cached) $ECHO_C" >&6
20144 fi
20145 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20146 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20147 else
20148 # Is the header compilable?
20149 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
20150 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
20151 cat >conftest.$ac_ext <<_ACEOF
20152 /* confdefs.h. */
20153 _ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20157 $ac_includes_default
20158 #include <tclInt.h>
20159 _ACEOF
20160 rm -f conftest.$ac_objext
20161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20162 (eval $ac_compile) 2>conftest.er1
20163 ac_status=$?
20164 grep -v '^ *+' conftest.er1 >conftest.err
20165 rm -f conftest.er1
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); } &&
20169 { ac_try='test -z "$ac_c_werror_flag"
20170 || test ! -s conftest.err'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; } &&
20176 { ac_try='test -s conftest.$ac_objext'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; }; then
20182 ac_header_compiler=yes
20183 else
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187 ac_header_compiler=no
20188 fi
20189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20191 echo "${ECHO_T}$ac_header_compiler" >&6
20192
20193 # Is the header present?
20194 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
20195 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
20196 cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h. */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20202 #include <tclInt.h>
20203 _ACEOF
20204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20205 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } >/dev/null; then
20212 if test -s conftest.err; then
20213 ac_cpp_err=$ac_c_preproc_warn_flag
20214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20215 else
20216 ac_cpp_err=
20217 fi
20218 else
20219 ac_cpp_err=yes
20220 fi
20221 if test -z "$ac_cpp_err"; then
20222 ac_header_preproc=yes
20223 else
20224 echo "$as_me: failed program was:" >&5
20225 sed 's/^/| /' conftest.$ac_ext >&5
20226
20227 ac_header_preproc=no
20228 fi
20229 rm -f conftest.err conftest.$ac_ext
20230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20231 echo "${ECHO_T}$ac_header_preproc" >&6
20232
20233 # So? What about this header?
20234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20235 yes:no: )
20236 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
20237 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
20239 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
20240 ac_header_preproc=yes
20241 ;;
20242 no:yes:* )
20243 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
20244 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
20246 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
20248 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
20250 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
20252 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
20254 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
20255 (
20256 cat <<\_ASBOX
20257 ## ------------------------------------------ ##
20258 ## Report this to the AC_PACKAGE_NAME lists. ##
20259 ## ------------------------------------------ ##
20260 _ASBOX
20261 ) |
20262 sed "s/^/$as_me: WARNING: /" >&2
20263 ;;
20264 esac
20265 echo "$as_me:$LINENO: checking for tclInt.h" >&5
20266 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
20267 if test "${ac_cv_header_tclInt_h+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270 ac_cv_header_tclInt_h=$ac_header_preproc
20271 fi
20272 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
20273 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
20274
20275 fi
20276 if test $ac_cv_header_tclInt_h = yes; then
20277 ac_cv_c_tclh=installed
20278 else
20279 ac_cv_c_tclh=""
20280 fi
20281
20282
20283 fi
20284
20285 fi
20286
20287 if test x"${ac_cv_c_tclh}" = x ; then
20288 TCLHDIR="# no Tcl private headers found"
20289 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
20290 echo "$as_me: error: Can't find Tcl private headers" >&2;}
20291 { (exit 1); exit 1; }; }
20292 fi
20293 if test x"${ac_cv_c_tclh}" != x ; then
20294 no_tcl=""
20295 if test x"${ac_cv_c_tclh}" = x"installed" ; then
20296 echo "$as_me:$LINENO: result: is installed" >&5
20297 echo "${ECHO_T}is installed" >&6
20298 TCLHDIR=""
20299 else
20300 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
20301 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
20302 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
20303 TCLHDIR="-I${ac_cv_c_tclh}"
20304 fi
20305 fi
20306
20307
20308
20309
20310 #
20311 # Ok, lets find the tk source trees so we can use the headers
20312 # If the directory (presumably symlink) named "tk" exists, use that one
20313 # in preference to any others. Same logic is used when choosing library
20314 # and again with Tcl. The search order is the best place to look first, then in
20315 # decreasing significance. The loop breaks if the trigger file is found.
20316 # Note the gross little conversion here of srcdir by cd'ing to the found
20317 # directory. This converts the path from a relative to an absolute, so
20318 # recursive cache variables for the path will work right. We check all
20319 # the possible paths in one loop rather than many seperate loops to speed
20320 # things up.
20321 # the alternative search directory is involked by --with-tkinclude
20322 #
20323 no_tk=true
20324 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20325 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20326
20327 # Check whether --with-tkinclude or --without-tkinclude was given.
20328 if test "${with_tkinclude+set}" = set; then
20329 withval="$with_tkinclude"
20330 with_tkinclude=${withval}
20331 fi;
20332 if test "${ac_cv_c_tkh+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 else
20335
20336 # first check to see if --with-tkinclude was specified
20337 if test x"${with_tkinclude}" != x ; then
20338 if test -f ${with_tkinclude}/tk.h ; then
20339 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
20340 elif test -f ${with_tkinclude}/generic/tk.h ; then
20341 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
20342 else
20343 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
20344 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
20345 { (exit 1); exit 1; }; }
20346 fi
20347 fi
20348
20349 # next check if it came with Tk configuration file
20350 if test x"${ac_cv_c_tkconfig}" = x ; then
20351 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
20352 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
20353 fi
20354 fi
20355
20356 # next check in private source directory
20357 #
20358 # since ls returns lowest version numbers first, reverse its output
20359 if test x"${ac_cv_c_tkh}" = x ; then
20360 for i in \
20361 ${srcdir}/../tk \
20362 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
20363 ${srcdir}/../../tk \
20364 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
20365 ${srcdir}/../../../tk \
20366 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
20367 if test -f $i/generic/tk.h ; then
20368 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20369 break
20370 fi
20371 done
20372 fi
20373 # finally check in a few common install locations
20374 #
20375 # since ls returns lowest version numbers first, reverse its output
20376 if test x"${ac_cv_c_tkh}" = x ; then
20377 for i in \
20378 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
20379 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
20380 /usr/local/src/tk \
20381 /usr/local/lib/tk \
20382 ${prefix}/include ; do
20383 if test -f $i/generic/tk.h ; then
20384 ac_cv_c_tkh=`(cd $i/generic; pwd)`
20385 break
20386 fi
20387 done
20388 fi
20389 # see if one is installed
20390 if test x"${ac_cv_c_tkh}" = x ; then
20391 if test "${ac_cv_header_tk_h+set}" = set; then
20392 echo "$as_me:$LINENO: checking for tk.h" >&5
20393 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20394 if test "${ac_cv_header_tk_h+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396 fi
20397 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20398 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20399 else
20400 # Is the header compilable?
20401 echo "$as_me:$LINENO: checking tk.h usability" >&5
20402 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h. */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h. */
20409 $ac_includes_default
20410 #include <tk.h>
20411 _ACEOF
20412 rm -f conftest.$ac_objext
20413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414 (eval $ac_compile) 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } &&
20421 { ac_try='test -z "$ac_c_werror_flag"
20422 || test ! -s conftest.err'
20423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; } &&
20428 { ac_try='test -s conftest.$ac_objext'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20431 ac_status=$?
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; }; then
20434 ac_header_compiler=yes
20435 else
20436 echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 ac_header_compiler=no
20440 fi
20441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20442 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20443 echo "${ECHO_T}$ac_header_compiler" >&6
20444
20445 # Is the header present?
20446 echo "$as_me:$LINENO: checking tk.h presence" >&5
20447 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
20448 cat >conftest.$ac_ext <<_ACEOF
20449 /* confdefs.h. */
20450 _ACEOF
20451 cat confdefs.h >>conftest.$ac_ext
20452 cat >>conftest.$ac_ext <<_ACEOF
20453 /* end confdefs.h. */
20454 #include <tk.h>
20455 _ACEOF
20456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20458 ac_status=$?
20459 grep -v '^ *+' conftest.er1 >conftest.err
20460 rm -f conftest.er1
20461 cat conftest.err >&5
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } >/dev/null; then
20464 if test -s conftest.err; then
20465 ac_cpp_err=$ac_c_preproc_warn_flag
20466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20467 else
20468 ac_cpp_err=
20469 fi
20470 else
20471 ac_cpp_err=yes
20472 fi
20473 if test -z "$ac_cpp_err"; then
20474 ac_header_preproc=yes
20475 else
20476 echo "$as_me: failed program was:" >&5
20477 sed 's/^/| /' conftest.$ac_ext >&5
20478
20479 ac_header_preproc=no
20480 fi
20481 rm -f conftest.err conftest.$ac_ext
20482 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20483 echo "${ECHO_T}$ac_header_preproc" >&6
20484
20485 # So? What about this header?
20486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20487 yes:no: )
20488 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
20489 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20490 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
20491 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
20492 ac_header_preproc=yes
20493 ;;
20494 no:yes:* )
20495 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
20496 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
20498 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
20500 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
20502 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
20504 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
20506 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
20507 (
20508 cat <<\_ASBOX
20509 ## ------------------------------------------ ##
20510 ## Report this to the AC_PACKAGE_NAME lists. ##
20511 ## ------------------------------------------ ##
20512 _ASBOX
20513 ) |
20514 sed "s/^/$as_me: WARNING: /" >&2
20515 ;;
20516 esac
20517 echo "$as_me:$LINENO: checking for tk.h" >&5
20518 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
20519 if test "${ac_cv_header_tk_h+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521 else
20522 ac_cv_header_tk_h=$ac_header_preproc
20523 fi
20524 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
20525 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
20526
20527 fi
20528 if test $ac_cv_header_tk_h = yes; then
20529 ac_cv_c_tkh=installed
20530 else
20531 ac_cv_c_tkh=""
20532 fi
20533
20534
20535 fi
20536
20537 fi
20538
20539 if test x"${ac_cv_c_tkh}" != x ; then
20540 no_tk=""
20541 if test x"${ac_cv_c_tkh}" = x"installed" ; then
20542 echo "$as_me:$LINENO: result: is installed" >&5
20543 echo "${ECHO_T}is installed" >&6
20544 TKHDIR=""
20545 else
20546 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
20547 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
20548 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
20549 TKHDIR="-I${ac_cv_c_tkh}"
20550 fi
20551 else
20552 TKHDIR="# no Tk directory found"
20553 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
20554 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
20555 no_tk=true
20556 fi
20557
20558
20559
20560
20561 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
20562 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
20563 if test x"${ac_cv_c_itclh}" = x ; then
20564 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
20565 if test -f $i/generic/itcl.h ; then
20566 ac_cv_c_itclh=`(cd $i/generic; pwd)`
20567 break
20568 fi
20569 done
20570 fi
20571 if test x"${ac_cv_c_itclh}" = x ; then
20572 ITCLHDIR="# no Itcl private headers found"
20573 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
20574 echo "$as_me: error: Can't find Itcl private headers" >&2;}
20575 { (exit 1); exit 1; }; }
20576 fi
20577 if test x"${ac_cv_c_itclh}" != x ; then
20578 ITCLHDIR="-I${ac_cv_c_itclh}"
20579 fi
20580 # should always be here
20581 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
20582
20583 #AC_SUBST(ITCLLIB)
20584
20585
20586 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
20587 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
20588 if test x"${ac_cv_c_itkh}" = x ; then
20589 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
20590 if test -f $i/generic/itk.h ; then
20591 ac_cv_c_itkh=`(cd $i/generic; pwd)`
20592 break
20593 fi
20594 done
20595 fi
20596 if test x"${ac_cv_c_itkh}" = x ; then
20597 ITKHDIR="# no Itk private headers found"
20598 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
20599 echo "$as_me: error: Can't find Itk private headers" >&2;}
20600 { (exit 1); exit 1; }; }
20601 fi
20602 if test x"${ac_cv_c_itkh}" != x ; then
20603 ITKHDIR="-I${ac_cv_c_itkh}"
20604 fi
20605 # should always be here
20606 # ITKLIB="../itcl/itk/unix/libitk.a"
20607
20608 #AC_SUBST(ITKLIB)
20609
20610
20611
20612 # now look for Tk library stuff
20613
20614 tkdir="../tk/${configdir}/"
20615
20616 TK_DEPS="${tkdir}${TK_LIB_FILE}"
20617
20618 # now look for Itcl library stuff
20619
20620
20621 #
20622 # Ok, lets find the itcl configuration
20623 # First, look for one uninstalled.
20624 # the alternative search directory is invoked by --with-itclconfig
20625 #
20626
20627 if test x"${no_itcl}" = x ; then
20628 # we reset no_itcl in case something fails here
20629 no_itcl=true
20630
20631 # Check whether --with-itclconfig or --without-itclconfig was given.
20632 if test "${with_itclconfig+set}" = set; then
20633 withval="$with_itclconfig"
20634 with_itclconfig=${withval}
20635 fi;
20636 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
20637 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
20638 if test "${ac_cv_c_itclconfig+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20640 else
20641
20642
20643 # First check to see if --with-itclconfig was specified.
20644 if test x"${with_itclconfig}" != x ; then
20645 if test -f "${with_itclconfig}/itclConfig.sh" ; then
20646 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
20647 else
20648 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
20649 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
20650 { (exit 1); exit 1; }; }
20651 fi
20652 fi
20653
20654 # then check for a private Itcl library
20655 if test x"${ac_cv_c_itclconfig}" = x ; then
20656 for i in \
20657 ../itcl/itcl \
20658 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
20659 ../../itcl \
20660 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
20661 ../../../itcl \
20662 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
20663 if test -f "$i/itclConfig.sh" ; then
20664 ac_cv_c_itclconfig=`(cd $i; pwd)`
20665 break
20666 fi
20667 done
20668 fi
20669 # check in a few common install locations
20670 if test x"${ac_cv_c_itclconfig}" = x ; then
20671 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20672 if test -f "$i/itclConfig.sh" ; then
20673 ac_cv_c_itclconfig=`(cd $i; pwd)`
20674 break
20675 fi
20676 done
20677 fi
20678 # check in a few other private locations
20679 if test x"${ac_cv_c_itclconfig}" = x ; then
20680 for i in \
20681 ${srcdir}/../itcl/itcl \
20682 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
20683 if test -f "$i/itclConfig.sh" ; then
20684 ac_cv_c_itclconfig=`(cd $i; pwd)`
20685 break
20686 fi
20687 done
20688 fi
20689
20690 fi
20691
20692 if test x"${ac_cv_c_itclconfig}" = x ; then
20693 ITCLCONFIG="# no Itcl configs found"
20694 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
20695 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
20696 else
20697 no_itcl=
20698 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
20699 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
20700 echo "${ECHO_T}found $ITCLCONFIG" >&6
20701 fi
20702 fi
20703
20704 if test -z "${no_itcl}"; then
20705
20706 if test -f "$ITCLCONFIG" ; then
20707 . $ITCLCONFIG
20708 fi
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
20722 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
20723 fi
20724
20725
20726 # now look for Itk library stuff
20727
20728 #
20729 # Ok, lets find the itk configuration
20730 # First, look for one uninstalled.
20731 # the alternative search directory is invoked by --with-itkconfig
20732 #
20733
20734 if test x"${no_itk}" = x ; then
20735 # we reset no_itk in case something fails here
20736 no_itk=true
20737
20738 # Check whether --with-itkconfig or --without-itkconfig was given.
20739 if test "${with_itkconfig+set}" = set; then
20740 withval="$with_itkconfig"
20741 with_itkconfig=${withval}
20742 fi;
20743 echo "$as_me:$LINENO: checking for Itk configuration" >&5
20744 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
20745 if test "${ac_cv_c_itkconfig+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748
20749
20750 # First check to see if --with-itkconfig was specified.
20751 if test x"${with_itkconfig}" != x ; then
20752 if test -f "${with_itkconfig}/itkConfig.sh" ; then
20753 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
20754 else
20755 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
20756 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
20757 { (exit 1); exit 1; }; }
20758 fi
20759 fi
20760
20761 # then check for a private Itk library
20762 if test x"${ac_cv_c_itkconfig}" = x ; then
20763 for i in \
20764 ../itcl/itk \
20765 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
20766 ../../itk \
20767 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
20768 ../../../itk \
20769 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
20770 if test -f "$i/itkConfig.sh" ; then
20771 ac_cv_c_itkconfig=`(cd $i; pwd)`
20772 break
20773 fi
20774 done
20775 fi
20776 # check in a few common install locations
20777 if test x"${ac_cv_c_itkconfig}" = x ; then
20778 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
20779 if test -f "$i/itkConfig.sh" ; then
20780 ac_cv_c_itkconfig=`(cd $i; pwd)`
20781 break
20782 fi
20783 done
20784 fi
20785 # check in a few other private locations
20786 if test x"${ac_cv_c_itkconfig}" = x ; then
20787 for i in \
20788 ${srcdir}/../itcl/itk \
20789 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
20790 if test -f "$i/itkConfig.sh" ; then
20791 ac_cv_c_itkconfig=`(cd $i; pwd)`
20792 break
20793 fi
20794 done
20795 fi
20796
20797 fi
20798
20799 if test x"${ac_cv_c_itkconfig}" = x ; then
20800 ITKCONFIG="# no Itk configs found"
20801 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
20802 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
20803 else
20804 no_itk=
20805 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
20806 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
20807 echo "${ECHO_T}found $ITKCONFIG" >&6
20808 fi
20809 fi
20810
20811
20812 if test -z "${no_itcl}"; then
20813
20814 if test -f "$ITKCONFIG" ; then
20815 . $ITKCONFIG
20816 fi
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829 ITKLIB="${ITK_BUILD_LIB_SPEC}"
20830 ITK_DEPS="${ITK_LIB_FULL_PATH}"
20831 fi
20832
20833 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20834 # Tcl/Tk 8.1 require -fwritable strings. I don't
20835 # know whether 8.2 will or not, but I bet it will.
20836 # I don't have to worry about 7.x since we don't support it.
20837 GDBTK_CFLAGS=""
20838 if test "$GCC" = "yes"; then
20839 if test "$TCL_VERSION" != "8.0" ; then
20840 GDBTK_CFLAGS="-fwritable-strings"
20841 fi
20842 fi
20843
20844 # Include some libraries that Tcl and Tk want.
20845 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20846 # Yes, the ordering seems wrong here. But it isn't.
20847 # TK_LIBS is the list of libraries that need to be linked
20848 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20849 # were in LIBS then any link tests after this point would
20850 # try to include things like `$(LIBGUI)', which wouldn't work.
20851 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20852
20853 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20854 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20855 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20856 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20857 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20858 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20859 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20860
20861 if test x$gdb_cv_os_cygwin = xyes; then
20862 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20863 WIN32LDAPP="-Wl,--subsystem,console"
20864 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20865 fi
20866 fi
20867 fi
20868
20869
20870
20871 subdirs="$subdirs gdbtk"
20872
20873 fi
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888 echo "$as_me:$LINENO: checking for X" >&5
20889 echo $ECHO_N "checking for X... $ECHO_C" >&6
20890
20891
20892 # Check whether --with-x or --without-x was given.
20893 if test "${with_x+set}" = set; then
20894 withval="$with_x"
20895
20896 fi;
20897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20898 if test "x$with_x" = xno; then
20899 # The user explicitly disabled X.
20900 have_x=disabled
20901 else
20902 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20903 # Both variables are already set.
20904 have_x=yes
20905 else
20906 if test "${ac_cv_have_x+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909 # One or both of the vars are not set, and there is no cached value.
20910 ac_x_includes=no ac_x_libraries=no
20911 rm -fr conftest.dir
20912 if mkdir conftest.dir; then
20913 cd conftest.dir
20914 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20915 cat >Imakefile <<'_ACEOF'
20916 acfindx:
20917 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20918 _ACEOF
20919 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20921 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20922 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20923 for ac_extension in a so sl; do
20924 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20925 test -f $ac_im_libdir/libX11.$ac_extension; then
20926 ac_im_usrlibdir=$ac_im_libdir; break
20927 fi
20928 done
20929 # Screen out bogus values from the imake configuration. They are
20930 # bogus both because they are the default anyway, and because
20931 # using them would break gcc on systems where it needs fixed includes.
20932 case $ac_im_incroot in
20933 /usr/include) ;;
20934 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20935 esac
20936 case $ac_im_usrlibdir in
20937 /usr/lib | /lib) ;;
20938 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20939 esac
20940 fi
20941 cd ..
20942 rm -fr conftest.dir
20943 fi
20944
20945 # Standard set of common directories for X headers.
20946 # Check X11 before X11Rn because it is often a symlink to the current release.
20947 ac_x_header_dirs='
20948 /usr/X11/include
20949 /usr/X11R6/include
20950 /usr/X11R5/include
20951 /usr/X11R4/include
20952
20953 /usr/include/X11
20954 /usr/include/X11R6
20955 /usr/include/X11R5
20956 /usr/include/X11R4
20957
20958 /usr/local/X11/include
20959 /usr/local/X11R6/include
20960 /usr/local/X11R5/include
20961 /usr/local/X11R4/include
20962
20963 /usr/local/include/X11
20964 /usr/local/include/X11R6
20965 /usr/local/include/X11R5
20966 /usr/local/include/X11R4
20967
20968 /usr/X386/include
20969 /usr/x386/include
20970 /usr/XFree86/include/X11
20971
20972 /usr/include
20973 /usr/local/include
20974 /usr/unsupported/include
20975 /usr/athena/include
20976 /usr/local/x11r5/include
20977 /usr/lpp/Xamples/include
20978
20979 /usr/openwin/include
20980 /usr/openwin/share/include'
20981
20982 if test "$ac_x_includes" = no; then
20983 # Guess where to find include files, by looking for Intrinsic.h.
20984 # First, try using that file with no special directory specified.
20985 cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h. */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h. */
20991 #include <X11/Intrinsic.h>
20992 _ACEOF
20993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20995 ac_status=$?
20996 grep -v '^ *+' conftest.er1 >conftest.err
20997 rm -f conftest.er1
20998 cat conftest.err >&5
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } >/dev/null; then
21001 if test -s conftest.err; then
21002 ac_cpp_err=$ac_c_preproc_warn_flag
21003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21004 else
21005 ac_cpp_err=
21006 fi
21007 else
21008 ac_cpp_err=yes
21009 fi
21010 if test -z "$ac_cpp_err"; then
21011 # We can compile using X headers with no special include directory.
21012 ac_x_includes=
21013 else
21014 echo "$as_me: failed program was:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21016
21017 for ac_dir in $ac_x_header_dirs; do
21018 if test -r "$ac_dir/X11/Intrinsic.h"; then
21019 ac_x_includes=$ac_dir
21020 break
21021 fi
21022 done
21023 fi
21024 rm -f conftest.err conftest.$ac_ext
21025 fi # $ac_x_includes = no
21026
21027 if test "$ac_x_libraries" = no; then
21028 # Check for the libraries.
21029 # See if we find them without any special options.
21030 # Don't add to $LIBS permanently.
21031 ac_save_LIBS=$LIBS
21032 LIBS="-lXt $LIBS"
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 #include <X11/Intrinsic.h>
21040 int
21041 main ()
21042 {
21043 XtMalloc (0)
21044 ;
21045 return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050 (eval $ac_link) 2>conftest.er1
21051 ac_status=$?
21052 grep -v '^ *+' conftest.er1 >conftest.err
21053 rm -f conftest.er1
21054 cat conftest.err >&5
21055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056 (exit $ac_status); } &&
21057 { ac_try='test -z "$ac_c_werror_flag"
21058 || test ! -s conftest.err'
21059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060 (eval $ac_try) 2>&5
21061 ac_status=$?
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); }; } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21067 ac_status=$?
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 LIBS=$ac_save_LIBS
21071 # We can link X programs with no special library path.
21072 ac_x_libraries=
21073 else
21074 echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077 LIBS=$ac_save_LIBS
21078 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21079 do
21080 # Don't even attempt the hair of trying to link an X program!
21081 for ac_extension in a so sl; do
21082 if test -r $ac_dir/libXt.$ac_extension; then
21083 ac_x_libraries=$ac_dir
21084 break 2
21085 fi
21086 done
21087 done
21088 fi
21089 rm -f conftest.err conftest.$ac_objext \
21090 conftest$ac_exeext conftest.$ac_ext
21091 fi # $ac_x_libraries = no
21092
21093 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21094 # Didn't find X anywhere. Cache the known absence of X.
21095 ac_cv_have_x="have_x=no"
21096 else
21097 # Record where we found X for the cache.
21098 ac_cv_have_x="have_x=yes \
21099 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21100 fi
21101 fi
21102
21103 fi
21104 eval "$ac_cv_have_x"
21105 fi # $with_x != no
21106
21107 if test "$have_x" != yes; then
21108 echo "$as_me:$LINENO: result: $have_x" >&5
21109 echo "${ECHO_T}$have_x" >&6
21110 no_x=yes
21111 else
21112 # If each of the values was on the command line, it overrides each guess.
21113 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21114 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21115 # Update the cache value to reflect the command line values.
21116 ac_cv_have_x="have_x=yes \
21117 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21118 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21119 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21120 fi
21121
21122
21123 # Check whether we should enable the TUI, but only do so if we really
21124 # can.
21125 if test x"$enable_tui" = xyes; then
21126 if test -d $srcdir/tui; then
21127 if test "$ac_cv_search_waddstr" != no; then
21128 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
21129 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
21130 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
21131 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
21132 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
21133 CONFIG_ALL="${CONFIG_ALL} all-tui"
21134 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
21135 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
21136 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
21137 else
21138 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
21139 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
21140 fi
21141 fi
21142 fi
21143
21144 # Unlike the sim directory, whether a simulator is linked is controlled by
21145 # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
21146 # This code just checks for a few cases where we'd like to ignore those
21147 # definitions, even when they're present in the '.mt' file. These cases
21148 # are when --disable-sim is specified, or if the simulator directory is
21149 # not part of the source tree.
21150 #
21151 # Check whether --enable-sim or --disable-sim was given.
21152 if test "${enable_sim+set}" = set; then
21153 enableval="$enable_sim"
21154 echo "enable_sim = $enable_sim";
21155 echo "enableval = ${enableval}";
21156 case "${enableval}" in
21157 yes) ignore_sim=false ;;
21158 no) ignore_sim=true ;;
21159 *) ignore_sim=false ;;
21160 esac
21161 else
21162 ignore_sim=false
21163 fi;
21164
21165 if test ! -d "${srcdir}/../sim"; then
21166 ignore_sim=true
21167 fi
21168
21169 if test "${ignore_sim}" = "true"; then
21170 IGNORE_SIM="SIM="
21171 IGNORE_SIM_OBS="SIM_OBS="
21172 else
21173 IGNORE_SIM=""
21174 IGNORE_SIM_OBS=""
21175 cat >>confdefs.h <<\_ACEOF
21176 #define WITH_SIM 1
21177 _ACEOF
21178
21179 fi
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194 # List of host floatformats.
21195
21196 cat >>confdefs.h <<_ACEOF
21197 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21198 _ACEOF
21199
21200
21201 cat >>confdefs.h <<_ACEOF
21202 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21203 _ACEOF
21204
21205
21206 cat >>confdefs.h <<_ACEOF
21207 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21208 _ACEOF
21209
21210
21211 # target_subdir is used by the testsuite to find the target libraries.
21212 target_subdir=
21213 if test "${host}" != "${target}"; then
21214 target_subdir="${target_alias}/"
21215 fi
21216
21217
21218 frags=
21219 if test "${target}" = "${host}"; then
21220 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21221 if test ! -f ${host_makefile_frag}; then
21222 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21223 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21224 { (exit 1); exit 1; }; }
21225 fi
21226 frags="$frags $host_makefile_frag"
21227 else
21228 host_makefile_frag=/dev/null
21229 fi
21230
21231 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
21232 if test ! -f ${target_makefile_frag}; then
21233 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
21234 echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
21235 { (exit 1); exit 1; }; }
21236 fi
21237 frags="$frags $target_makefile_frag"
21238
21239
21240
21241
21242
21243 hostfile=`sed -n '
21244 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21245 ' ${host_makefile_frag}`
21246
21247 targetfile=`sed -n '
21248 s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21249 ' ${target_makefile_frag}`
21250
21251 if test "${target}" = "${host}"; then
21252 # We pick this up from the host configuration file (.mh) because we
21253 # do not have a native configuration Makefile fragment.
21254 nativefile=`sed -n '
21255 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21256 ' ${host_makefile_frag}`
21257 fi
21258
21259
21260 if test x"${gdb_osabi}" != x ; then
21261
21262 cat >>confdefs.h <<_ACEOF
21263 #define GDB_OSABI_DEFAULT $gdb_osabi
21264 _ACEOF
21265
21266 fi
21267
21268 # Enable multi-ice-gdb-server.
21269 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21270 if test "${enable_multi_ice+set}" = set; then
21271 enableval="$enable_multi_ice"
21272 case $enableval in
21273 yes | no)
21274 ;;
21275 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21276 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21277 { (exit 1); exit 1; }; } ;;
21278 esac
21279 fi;
21280 if test "x$enable_multi_ice" = xyes; then
21281
21282
21283 subdirs="$subdirs multi-ice"
21284
21285 fi
21286
21287 # We only build gdbserver automatically if host and target are the same.
21288 if test "x$target" = "x$host"; then
21289 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21290 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21291 if test "x$build_gdbserver" = xyes; then
21292 echo "$as_me:$LINENO: result: yes" >&5
21293 echo "${ECHO_T}yes" >&6
21294
21295
21296 subdirs="$subdirs gdbserver"
21297
21298 else
21299 echo "$as_me:$LINENO: result: no" >&5
21300 echo "${ECHO_T}no" >&6
21301 fi
21302 fi
21303
21304 # We build rdi-share on ARM-based targets, as instructed by configure.tgt.
21305 if test "x$build_rdi_share" = xyes; then
21306
21307
21308 subdirs="$subdirs rdi-share"
21309
21310 fi
21311
21312 # We configure the nlm subdirectory on netware targets, as instructed
21313 # by configure.tgt.
21314 if test "x$build_nlm" = xyes; then
21315
21316
21317 subdirs="$subdirs nlm"
21318
21319 fi
21320
21321 # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
21322 # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21323 # to an empty version.
21324
21325 files=
21326 links=
21327
21328 rm -f xm.h
21329 xm_h=""
21330 if test "${hostfile}" != ""; then
21331 xm_h=xm.h
21332 case "${hostfile}" in
21333 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
21334 * ) GDB_XM_FILE="${hostfile}"
21335 esac
21336 files="${files} ${GDB_XM_FILE}"
21337 links="${links} xm.h"
21338 cat >>confdefs.h <<_ACEOF
21339 #define GDB_XM_FILE "${GDB_XM_FILE}"
21340 _ACEOF
21341
21342 fi
21343
21344
21345 rm -f tm.h
21346 tm_h=""
21347 if test "${targetfile}" != ""; then
21348 tm_h=tm.h
21349 case "${targetfile}" in
21350 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
21351 * ) GDB_TM_FILE="${targetfile}"
21352 esac
21353 files="${files} ${GDB_TM_FILE}"
21354 links="${links} tm.h"
21355 cat >>confdefs.h <<_ACEOF
21356 #define GDB_TM_FILE "${GDB_TM_FILE}"
21357 _ACEOF
21358
21359 fi
21360
21361
21362 rm -f nm.h
21363 nm_h=""
21364 if test "${nativefile}" != ""; then
21365 nm_h=nm.h
21366 case "${nativefile}" in
21367 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21368 * ) GDB_NM_FILE="${nativefile}"
21369 esac
21370 files="${files} ${GDB_NM_FILE}"
21371 links="${links} nm.h"
21372 cat >>confdefs.h <<_ACEOF
21373 #define GDB_NM_FILE "${GDB_NM_FILE}"
21374 _ACEOF
21375
21376 fi
21377
21378
21379 ac_sources="$files"
21380 ac_dests="$links"
21381 while test -n "$ac_sources"; do
21382 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21383 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21384 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21385 done
21386 ac_config_links="$ac_config_links $ac_config_links_1"
21387
21388
21389
21390
21391
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
21395 _ACEOF
21396
21397
21398
21399
21400
21401 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21402 if test "${with_libiconv_prefix+set}" = set; then
21403 withval="$with_libiconv_prefix"
21404
21405 for dir in `echo "$withval" | tr : ' '`; do
21406 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
21407 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
21408 done
21409
21410 fi;
21411
21412 echo "$as_me:$LINENO: checking for iconv" >&5
21413 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21414 if test "${am_cv_func_iconv+set}" = set; then
21415 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 else
21417
21418 am_cv_func_iconv="no, consider installing GNU libiconv"
21419 am_cv_lib_iconv=no
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h. */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 #include <stdlib.h>
21427 #include <iconv.h>
21428 int
21429 main ()
21430 {
21431 iconv_t cd = iconv_open("","");
21432 iconv(cd,NULL,NULL,NULL,NULL);
21433 iconv_close(cd);
21434 ;
21435 return 0;
21436 }
21437 _ACEOF
21438 rm -f conftest.$ac_objext conftest$ac_exeext
21439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21440 (eval $ac_link) 2>conftest.er1
21441 ac_status=$?
21442 grep -v '^ *+' conftest.er1 >conftest.err
21443 rm -f conftest.er1
21444 cat conftest.err >&5
21445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21446 (exit $ac_status); } &&
21447 { ac_try='test -z "$ac_c_werror_flag"
21448 || test ! -s conftest.err'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } &&
21454 { ac_try='test -s conftest$ac_exeext'
21455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459 (exit $ac_status); }; }; then
21460 am_cv_func_iconv=yes
21461 else
21462 echo "$as_me: failed program was:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21464
21465 fi
21466 rm -f conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21468 if test "$am_cv_func_iconv" != yes; then
21469 am_save_LIBS="$LIBS"
21470 LIBS="$LIBS -liconv"
21471 cat >conftest.$ac_ext <<_ACEOF
21472 /* confdefs.h. */
21473 _ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <stdlib.h>
21478 #include <iconv.h>
21479 int
21480 main ()
21481 {
21482 iconv_t cd = iconv_open("","");
21483 iconv(cd,NULL,NULL,NULL,NULL);
21484 iconv_close(cd);
21485 ;
21486 return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag"
21499 || test ! -s conftest.err'
21500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21502 ac_status=$?
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest$ac_exeext'
21506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21507 (eval $ac_try) 2>&5
21508 ac_status=$?
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); }; }; then
21511 am_cv_lib_iconv=yes
21512 am_cv_func_iconv=yes
21513 else
21514 echo "$as_me: failed program was:" >&5
21515 sed 's/^/| /' conftest.$ac_ext >&5
21516
21517 fi
21518 rm -f conftest.err conftest.$ac_objext \
21519 conftest$ac_exeext conftest.$ac_ext
21520 LIBS="$am_save_LIBS"
21521 fi
21522
21523 fi
21524 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21525 echo "${ECHO_T}$am_cv_func_iconv" >&6
21526 if test "$am_cv_func_iconv" = yes; then
21527
21528 cat >>confdefs.h <<\_ACEOF
21529 #define HAVE_ICONV 1
21530 _ACEOF
21531
21532 echo "$as_me:$LINENO: checking for iconv declaration" >&5
21533 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
21534 if test "${am_cv_proto_iconv+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21536 else
21537
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h. */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544
21545 #include <stdlib.h>
21546 #include <iconv.h>
21547 extern
21548 #ifdef __cplusplus
21549 "C"
21550 #endif
21551 #if defined(__STDC__) || defined(__cplusplus)
21552 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21553 #else
21554 size_t iconv();
21555 #endif
21556
21557 int
21558 main ()
21559 {
21560
21561 ;
21562 return 0;
21563 }
21564 _ACEOF
21565 rm -f conftest.$ac_objext
21566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21567 (eval $ac_compile) 2>conftest.er1
21568 ac_status=$?
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
21574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
21582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 am_cv_proto_iconv_arg1=""
21588 else
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21591
21592 am_cv_proto_iconv_arg1="const"
21593 fi
21594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21595 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);"
21596 fi
21597
21598 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21599 echo "$as_me:$LINENO: result: ${ac_t:-
21600 }$am_cv_proto_iconv" >&5
21601 echo "${ECHO_T}${ac_t:-
21602 }$am_cv_proto_iconv" >&6
21603
21604 cat >>confdefs.h <<_ACEOF
21605 #define ICONV_CONST $am_cv_proto_iconv_arg1
21606 _ACEOF
21607
21608 fi
21609 LIBICONV=
21610 if test "$am_cv_lib_iconv" = yes; then
21611 LIBICONV="-liconv"
21612 fi
21613
21614
21615
21616 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
21617 ac_config_commands="$ac_config_commands default"
21618 cat >confcache <<\_ACEOF
21619 # This file is a shell script that caches the results of configure
21620 # tests run on this system so they can be shared between configure
21621 # scripts and configure runs, see configure's option --config-cache.
21622 # It is not useful on other systems. If it contains results you don't
21623 # want to keep, you may remove or edit it.
21624 #
21625 # config.status only pays attention to the cache file if you give it
21626 # the --recheck option to rerun configure.
21627 #
21628 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21629 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21630 # following values.
21631
21632 _ACEOF
21633
21634 # The following way of writing the cache mishandles newlines in values,
21635 # but we know of no workaround that is simple, portable, and efficient.
21636 # So, don't put newlines in cache variables' values.
21637 # Ultrix sh set writes to stderr and can't be redirected directly,
21638 # and sets the high bit in the cache file unless we assign to the vars.
21639 {
21640 (set) 2>&1 |
21641 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21642 *ac_space=\ *)
21643 # `set' does not quote correctly, so add quotes (double-quote
21644 # substitution turns \\\\ into \\, and sed turns \\ into \).
21645 sed -n \
21646 "s/'/'\\\\''/g;
21647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21648 ;;
21649 *)
21650 # `set' quotes correctly as required by POSIX, so do not add quotes.
21651 sed -n \
21652 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21653 ;;
21654 esac;
21655 } |
21656 sed '
21657 t clear
21658 : clear
21659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21660 t end
21661 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21662 : end' >>confcache
21663 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21664 if test -w $cache_file; then
21665 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21666 cat confcache >$cache_file
21667 else
21668 echo "not updating unwritable cache $cache_file"
21669 fi
21670 fi
21671 rm -f confcache
21672
21673 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21674 # Let make expand exec_prefix.
21675 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21676
21677 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21678 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21679 # trailing colons and then remove the whole line if VPATH becomes empty
21680 # (actually we leave an empty line to preserve line numbers).
21681 if test "x$srcdir" = x.; then
21682 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21683 s/:*\$(srcdir):*/:/;
21684 s/:*\${srcdir}:*/:/;
21685 s/:*@srcdir@:*/:/;
21686 s/^\([^=]*=[ ]*\):*/\1/;
21687 s/:*$//;
21688 s/^[^=]*=[ ]*$//;
21689 }'
21690 fi
21691
21692 DEFS=-DHAVE_CONFIG_H
21693
21694 ac_libobjs=
21695 ac_ltlibobjs=
21696 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21697 # 1. Remove the extension, and $U if already installed.
21698 ac_i=`echo "$ac_i" |
21699 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21700 # 2. Add them.
21701 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21702 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21703 done
21704 LIBOBJS=$ac_libobjs
21705
21706 LTLIBOBJS=$ac_ltlibobjs
21707
21708
21709 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21710 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21711 Usually this means the macro was only invoked conditionally." >&5
21712 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21713 Usually this means the macro was only invoked conditionally." >&2;}
21714 { (exit 1); exit 1; }; }
21715 fi
21716
21717 : ${CONFIG_STATUS=./config.status}
21718 ac_clean_files_save=$ac_clean_files
21719 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21720 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21721 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21722 cat >$CONFIG_STATUS <<_ACEOF
21723 #! $SHELL
21724 # Generated by $as_me.
21725 # Run this file to recreate the current configuration.
21726 # Compiler output produced by configure, useful for debugging
21727 # configure, is in config.log if it exists.
21728
21729 debug=false
21730 ac_cs_recheck=false
21731 ac_cs_silent=false
21732 SHELL=\${CONFIG_SHELL-$SHELL}
21733 _ACEOF
21734
21735 cat >>$CONFIG_STATUS <<\_ACEOF
21736 ## --------------------- ##
21737 ## M4sh Initialization. ##
21738 ## --------------------- ##
21739
21740 # Be Bourne compatible
21741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21742 emulate sh
21743 NULLCMD=:
21744 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21745 # is contrary to our usage. Disable this feature.
21746 alias -g '${1+"$@"}'='"$@"'
21747 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21748 set -o posix
21749 fi
21750 DUALCASE=1; export DUALCASE # for MKS sh
21751
21752 # Support unset when possible.
21753 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21754 as_unset=unset
21755 else
21756 as_unset=false
21757 fi
21758
21759
21760 # Work around bugs in pre-3.0 UWIN ksh.
21761 $as_unset ENV MAIL MAILPATH
21762 PS1='$ '
21763 PS2='> '
21764 PS4='+ '
21765
21766 # NLS nuisances.
21767 for as_var in \
21768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21770 LC_TELEPHONE LC_TIME
21771 do
21772 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21773 eval $as_var=C; export $as_var
21774 else
21775 $as_unset $as_var
21776 fi
21777 done
21778
21779 # Required to use basename.
21780 if expr a : '\(a\)' >/dev/null 2>&1; then
21781 as_expr=expr
21782 else
21783 as_expr=false
21784 fi
21785
21786 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21787 as_basename=basename
21788 else
21789 as_basename=false
21790 fi
21791
21792
21793 # Name of the executable.
21794 as_me=`$as_basename "$0" ||
21795 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21796 X"$0" : 'X\(//\)$' \| \
21797 X"$0" : 'X\(/\)$' \| \
21798 . : '\(.\)' 2>/dev/null ||
21799 echo X/"$0" |
21800 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21801 /^X\/\(\/\/\)$/{ s//\1/; q; }
21802 /^X\/\(\/\).*/{ s//\1/; q; }
21803 s/.*/./; q'`
21804
21805
21806 # PATH needs CR, and LINENO needs CR and PATH.
21807 # Avoid depending upon Character Ranges.
21808 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21809 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21810 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21811 as_cr_digits='0123456789'
21812 as_cr_alnum=$as_cr_Letters$as_cr_digits
21813
21814 # The user is always right.
21815 if test "${PATH_SEPARATOR+set}" != set; then
21816 echo "#! /bin/sh" >conf$$.sh
21817 echo "exit 0" >>conf$$.sh
21818 chmod +x conf$$.sh
21819 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21820 PATH_SEPARATOR=';'
21821 else
21822 PATH_SEPARATOR=:
21823 fi
21824 rm -f conf$$.sh
21825 fi
21826
21827
21828 as_lineno_1=$LINENO
21829 as_lineno_2=$LINENO
21830 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21831 test "x$as_lineno_1" != "x$as_lineno_2" &&
21832 test "x$as_lineno_3" = "x$as_lineno_2" || {
21833 # Find who we are. Look in the path if we contain no path at all
21834 # relative or not.
21835 case $0 in
21836 *[\\/]* ) as_myself=$0 ;;
21837 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21838 for as_dir in $PATH
21839 do
21840 IFS=$as_save_IFS
21841 test -z "$as_dir" && as_dir=.
21842 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21843 done
21844
21845 ;;
21846 esac
21847 # We did not find ourselves, most probably we were run as `sh COMMAND'
21848 # in which case we are not to be found in the path.
21849 if test "x$as_myself" = x; then
21850 as_myself=$0
21851 fi
21852 if test ! -f "$as_myself"; then
21853 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21854 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21855 { (exit 1); exit 1; }; }
21856 fi
21857 case $CONFIG_SHELL in
21858 '')
21859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21860 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21861 do
21862 IFS=$as_save_IFS
21863 test -z "$as_dir" && as_dir=.
21864 for as_base in sh bash ksh sh5; do
21865 case $as_dir in
21866 /*)
21867 if ("$as_dir/$as_base" -c '
21868 as_lineno_1=$LINENO
21869 as_lineno_2=$LINENO
21870 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21871 test "x$as_lineno_1" != "x$as_lineno_2" &&
21872 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21873 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21874 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21875 CONFIG_SHELL=$as_dir/$as_base
21876 export CONFIG_SHELL
21877 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21878 fi;;
21879 esac
21880 done
21881 done
21882 ;;
21883 esac
21884
21885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21886 # uniformly replaced by the line number. The first 'sed' inserts a
21887 # line-number line before each line; the second 'sed' does the real
21888 # work. The second script uses 'N' to pair each line-number line
21889 # with the numbered line, and appends trailing '-' during
21890 # substitution so that $LINENO is not a special case at line end.
21891 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21892 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21893 sed '=' <$as_myself |
21894 sed '
21895 N
21896 s,$,-,
21897 : loop
21898 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21899 t loop
21900 s,-$,,
21901 s,^['$as_cr_digits']*\n,,
21902 ' >$as_me.lineno &&
21903 chmod +x $as_me.lineno ||
21904 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21905 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21906 { (exit 1); exit 1; }; }
21907
21908 # Don't try to exec as it changes $[0], causing all sort of problems
21909 # (the dirname of $[0] is not the place where we might find the
21910 # original and so on. Autoconf is especially sensible to this).
21911 . ./$as_me.lineno
21912 # Exit status is that of the last command.
21913 exit
21914 }
21915
21916
21917 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21918 *c*,-n*) ECHO_N= ECHO_C='
21919 ' ECHO_T=' ' ;;
21920 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21921 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21922 esac
21923
21924 if expr a : '\(a\)' >/dev/null 2>&1; then
21925 as_expr=expr
21926 else
21927 as_expr=false
21928 fi
21929
21930 rm -f conf$$ conf$$.exe conf$$.file
21931 echo >conf$$.file
21932 if ln -s conf$$.file conf$$ 2>/dev/null; then
21933 # We could just check for DJGPP; but this test a) works b) is more generic
21934 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21935 if test -f conf$$.exe; then
21936 # Don't use ln at all; we don't have any links
21937 as_ln_s='cp -p'
21938 else
21939 as_ln_s='ln -s'
21940 fi
21941 elif ln conf$$.file conf$$ 2>/dev/null; then
21942 as_ln_s=ln
21943 else
21944 as_ln_s='cp -p'
21945 fi
21946 rm -f conf$$ conf$$.exe conf$$.file
21947
21948 if mkdir -p . 2>/dev/null; then
21949 as_mkdir_p=:
21950 else
21951 test -d ./-p && rmdir ./-p
21952 as_mkdir_p=false
21953 fi
21954
21955 as_executable_p="test -f"
21956
21957 # Sed expression to map a string onto a valid CPP name.
21958 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21959
21960 # Sed expression to map a string onto a valid variable name.
21961 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21962
21963
21964 # IFS
21965 # We need space, tab and new line, in precisely that order.
21966 as_nl='
21967 '
21968 IFS=" $as_nl"
21969
21970 # CDPATH.
21971 $as_unset CDPATH
21972
21973 exec 6>&1
21974
21975 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21976 # report actual input values of CONFIG_FILES etc. instead of their
21977 # values after options handling. Logging --version etc. is OK.
21978 exec 5>>config.log
21979 {
21980 echo
21981 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21982 ## Running $as_me. ##
21983 _ASBOX
21984 } >&5
21985 cat >&5 <<_CSEOF
21986
21987 This file was extended by $as_me, which was
21988 generated by GNU Autoconf 2.59. Invocation command line was
21989
21990 CONFIG_FILES = $CONFIG_FILES
21991 CONFIG_HEADERS = $CONFIG_HEADERS
21992 CONFIG_LINKS = $CONFIG_LINKS
21993 CONFIG_COMMANDS = $CONFIG_COMMANDS
21994 $ $0 $@
21995
21996 _CSEOF
21997 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21998 echo >&5
21999 _ACEOF
22000
22001 # Files that config.status was made for.
22002 if test -n "$ac_config_files"; then
22003 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22004 fi
22005
22006 if test -n "$ac_config_headers"; then
22007 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22008 fi
22009
22010 if test -n "$ac_config_links"; then
22011 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22012 fi
22013
22014 if test -n "$ac_config_commands"; then
22015 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22016 fi
22017
22018 cat >>$CONFIG_STATUS <<\_ACEOF
22019
22020 ac_cs_usage="\
22021 \`$as_me' instantiates files from templates according to the
22022 current configuration.
22023
22024 Usage: $0 [OPTIONS] [FILE]...
22025
22026 -h, --help print this help, then exit
22027 -V, --version print version number, then exit
22028 -q, --quiet do not print progress messages
22029 -d, --debug don't remove temporary files
22030 --recheck update $as_me by reconfiguring in the same conditions
22031 --file=FILE[:TEMPLATE]
22032 instantiate the configuration file FILE
22033 --header=FILE[:TEMPLATE]
22034 instantiate the configuration header FILE
22035
22036 Configuration files:
22037 $config_files
22038
22039 Configuration headers:
22040 $config_headers
22041
22042 Configuration links:
22043 $config_links
22044
22045 Configuration commands:
22046 $config_commands
22047
22048 Report bugs to <bug-autoconf@gnu.org>."
22049 _ACEOF
22050
22051 cat >>$CONFIG_STATUS <<_ACEOF
22052 ac_cs_version="\\
22053 config.status
22054 configured by $0, generated by GNU Autoconf 2.59,
22055 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22056
22057 Copyright (C) 2003 Free Software Foundation, Inc.
22058 This config.status script is free software; the Free Software Foundation
22059 gives unlimited permission to copy, distribute and modify it."
22060 srcdir=$srcdir
22061 INSTALL="$INSTALL"
22062 _ACEOF
22063
22064 cat >>$CONFIG_STATUS <<\_ACEOF
22065 # If no file are specified by the user, then we need to provide default
22066 # value. By we need to know if files were specified by the user.
22067 ac_need_defaults=:
22068 while test $# != 0
22069 do
22070 case $1 in
22071 --*=*)
22072 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22073 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22074 ac_shift=:
22075 ;;
22076 -*)
22077 ac_option=$1
22078 ac_optarg=$2
22079 ac_shift=shift
22080 ;;
22081 *) # This is not an option, so the user has probably given explicit
22082 # arguments.
22083 ac_option=$1
22084 ac_need_defaults=false;;
22085 esac
22086
22087 case $ac_option in
22088 # Handling of the options.
22089 _ACEOF
22090 cat >>$CONFIG_STATUS <<\_ACEOF
22091 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22092 ac_cs_recheck=: ;;
22093 --version | --vers* | -V )
22094 echo "$ac_cs_version"; exit 0 ;;
22095 --he | --h)
22096 # Conflict between --help and --header
22097 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22098 Try \`$0 --help' for more information." >&5
22099 echo "$as_me: error: ambiguous option: $1
22100 Try \`$0 --help' for more information." >&2;}
22101 { (exit 1); exit 1; }; };;
22102 --help | --hel | -h )
22103 echo "$ac_cs_usage"; exit 0 ;;
22104 --debug | --d* | -d )
22105 debug=: ;;
22106 --file | --fil | --fi | --f )
22107 $ac_shift
22108 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22109 ac_need_defaults=false;;
22110 --header | --heade | --head | --hea )
22111 $ac_shift
22112 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22113 ac_need_defaults=false;;
22114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22115 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22116 ac_cs_silent=: ;;
22117
22118 # This is an error.
22119 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22120 Try \`$0 --help' for more information." >&5
22121 echo "$as_me: error: unrecognized option: $1
22122 Try \`$0 --help' for more information." >&2;}
22123 { (exit 1); exit 1; }; } ;;
22124
22125 *) ac_config_targets="$ac_config_targets $1" ;;
22126
22127 esac
22128 shift
22129 done
22130
22131 ac_configure_extra_args=
22132
22133 if $ac_cs_silent; then
22134 exec 6>/dev/null
22135 ac_configure_extra_args="$ac_configure_extra_args --silent"
22136 fi
22137
22138 _ACEOF
22139 cat >>$CONFIG_STATUS <<_ACEOF
22140 if \$ac_cs_recheck; then
22141 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22142 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22143 fi
22144
22145 _ACEOF
22146
22147 cat >>$CONFIG_STATUS <<_ACEOF
22148 #
22149 # INIT-COMMANDS section.
22150 #
22151
22152
22153 gdb_host_cpu=$gdb_host_cpu
22154 gdb_target_cpu=$gdb_target_cpu
22155 nativefile=$nativefile
22156
22157
22158 _ACEOF
22159
22160
22161
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 for ac_config_target in $ac_config_targets
22164 do
22165 case "$ac_config_target" in
22166 # Handling of arguments.
22167 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22168 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
22169 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
22170 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22171 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
22172 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22173 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22174 { (exit 1); exit 1; }; };;
22175 esac
22176 done
22177
22178 # If the user did not use the arguments to specify the items to instantiate,
22179 # then the envvar interface is used. Set only those that are not.
22180 # We use the long form for the default assignment because of an extremely
22181 # bizarre bug on SunOS 4.1.3.
22182 if $ac_need_defaults; then
22183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22184 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22185 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
22186 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22187 fi
22188
22189 # Have a temporary directory for convenience. Make it in the build tree
22190 # simply because there is no reason to put it here, and in addition,
22191 # creating and moving files from /tmp can sometimes cause problems.
22192 # Create a temporary directory, and hook for its removal unless debugging.
22193 $debug ||
22194 {
22195 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22196 trap '{ (exit 1); exit 1; }' 1 2 13 15
22197 }
22198
22199 # Create a (secure) tmp directory for tmp files.
22200
22201 {
22202 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22203 test -n "$tmp" && test -d "$tmp"
22204 } ||
22205 {
22206 tmp=./confstat$$-$RANDOM
22207 (umask 077 && mkdir $tmp)
22208 } ||
22209 {
22210 echo "$me: cannot create a temporary directory in ." >&2
22211 { (exit 1); exit 1; }
22212 }
22213
22214 _ACEOF
22215
22216 cat >>$CONFIG_STATUS <<_ACEOF
22217
22218 #
22219 # CONFIG_FILES section.
22220 #
22221
22222 # No need to generate the scripts if there are no CONFIG_FILES.
22223 # This happens for instance when ./config.status config.h
22224 if test -n "\$CONFIG_FILES"; then
22225 # Protect against being on the right side of a sed subst in config.status.
22226 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22227 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22228 s,@SHELL@,$SHELL,;t t
22229 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22230 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22231 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22232 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22233 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22234 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22235 s,@exec_prefix@,$exec_prefix,;t t
22236 s,@prefix@,$prefix,;t t
22237 s,@program_transform_name@,$program_transform_name,;t t
22238 s,@bindir@,$bindir,;t t
22239 s,@sbindir@,$sbindir,;t t
22240 s,@libexecdir@,$libexecdir,;t t
22241 s,@datadir@,$datadir,;t t
22242 s,@sysconfdir@,$sysconfdir,;t t
22243 s,@sharedstatedir@,$sharedstatedir,;t t
22244 s,@localstatedir@,$localstatedir,;t t
22245 s,@libdir@,$libdir,;t t
22246 s,@includedir@,$includedir,;t t
22247 s,@oldincludedir@,$oldincludedir,;t t
22248 s,@infodir@,$infodir,;t t
22249 s,@mandir@,$mandir,;t t
22250 s,@build_alias@,$build_alias,;t t
22251 s,@host_alias@,$host_alias,;t t
22252 s,@target_alias@,$target_alias,;t t
22253 s,@DEFS@,$DEFS,;t t
22254 s,@ECHO_C@,$ECHO_C,;t t
22255 s,@ECHO_N@,$ECHO_N,;t t
22256 s,@ECHO_T@,$ECHO_T,;t t
22257 s,@LIBS@,$LIBS,;t t
22258 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22259 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22260 s,@MAINT@,$MAINT,;t t
22261 s,@CC@,$CC,;t t
22262 s,@CFLAGS@,$CFLAGS,;t t
22263 s,@LDFLAGS@,$LDFLAGS,;t t
22264 s,@CPPFLAGS@,$CPPFLAGS,;t t
22265 s,@ac_ct_CC@,$ac_ct_CC,;t t
22266 s,@EXEEXT@,$EXEEXT,;t t
22267 s,@OBJEXT@,$OBJEXT,;t t
22268 s,@CPP@,$CPP,;t t
22269 s,@EGREP@,$EGREP,;t t
22270 s,@build@,$build,;t t
22271 s,@build_cpu@,$build_cpu,;t t
22272 s,@build_vendor@,$build_vendor,;t t
22273 s,@build_os@,$build_os,;t t
22274 s,@host@,$host,;t t
22275 s,@host_cpu@,$host_cpu,;t t
22276 s,@host_vendor@,$host_vendor,;t t
22277 s,@host_os@,$host_os,;t t
22278 s,@target@,$target,;t t
22279 s,@target_cpu@,$target_cpu,;t t
22280 s,@target_vendor@,$target_vendor,;t t
22281 s,@target_os@,$target_os,;t t
22282 s,@SET_MAKE@,$SET_MAKE,;t t
22283 s,@RANLIB@,$RANLIB,;t t
22284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22285 s,@ALLOCA@,$ALLOCA,;t t
22286 s,@USE_NLS@,$USE_NLS,;t t
22287 s,@MSGFMT@,$MSGFMT,;t t
22288 s,@GMSGFMT@,$GMSGFMT,;t t
22289 s,@XGETTEXT@,$XGETTEXT,;t t
22290 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
22291 s,@CATALOGS@,$CATALOGS,;t t
22292 s,@CATOBJEXT@,$CATOBJEXT,;t t
22293 s,@DATADIRNAME@,$DATADIRNAME,;t t
22294 s,@GMOFILES@,$GMOFILES,;t t
22295 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
22296 s,@INTLDEPS@,$INTLDEPS,;t t
22297 s,@INTLLIBS@,$INTLLIBS,;t t
22298 s,@INTLOBJS@,$INTLOBJS,;t t
22299 s,@POFILES@,$POFILES,;t t
22300 s,@POSUB@,$POSUB,;t t
22301 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
22302 s,@GT_NO@,$GT_NO,;t t
22303 s,@GT_YES@,$GT_YES,;t t
22304 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22305 s,@l@,$l,;t t
22306 s,@localedir@,$localedir,;t t
22307 s,@PACKAGE@,$PACKAGE,;t t
22308 s,@subdirs@,$subdirs,;t t
22309 s,@AWK@,$AWK,;t t
22310 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22311 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22312 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22313 s,@LN_S@,$LN_S,;t t
22314 s,@YACC@,$YACC,;t t
22315 s,@AR@,$AR,;t t
22316 s,@ac_ct_AR@,$ac_ct_AR,;t t
22317 s,@DLLTOOL@,$DLLTOOL,;t t
22318 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22319 s,@WINDRES@,$WINDRES,;t t
22320 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22321 s,@MIG@,$MIG,;t t
22322 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22323 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22324 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22325 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22326 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22327 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22328 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22329 s,@WIN32LIBS@,$WIN32LIBS,;t t
22330 s,@LIBGUI@,$LIBGUI,;t t
22331 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22332 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22333 s,@TCL_VERSION@,$TCL_VERSION,;t t
22334 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
22335 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
22336 s,@TCL_CC@,$TCL_CC,;t t
22337 s,@TCL_DEFS@,$TCL_DEFS,;t t
22338 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
22339 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
22340 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
22341 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
22342 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
22343 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
22344 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
22345 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
22346 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
22347 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
22348 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
22349 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22350 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
22351 s,@TK_VERSION@,$TK_VERSION,;t t
22352 s,@TK_DEFS@,$TK_DEFS,;t t
22353 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
22354 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22355 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
22356 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
22357 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22358 s,@TCLHDIR@,$TCLHDIR,;t t
22359 s,@TKHDIR@,$TKHDIR,;t t
22360 s,@ITCLHDIR@,$ITCLHDIR,;t t
22361 s,@ITKHDIR@,$ITKHDIR,;t t
22362 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
22363 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
22364 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
22365 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
22366 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
22367 s,@ITK_VERSION@,$ITK_VERSION,;t t
22368 s,@ITK_DEFS@,$ITK_DEFS,;t t
22369 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
22370 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
22371 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
22372 s,@X_CFLAGS@,$X_CFLAGS,;t t
22373 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22374 s,@X_LIBS@,$X_LIBS,;t t
22375 s,@TCL_DEPS@,$TCL_DEPS,;t t
22376 s,@TK_DEPS@,$TK_DEPS,;t t
22377 s,@ITCLLIB@,$ITCLLIB,;t t
22378 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
22379 s,@ITKLIB@,$ITKLIB,;t t
22380 s,@ITK_DEPS@,$ITK_DEPS,;t t
22381 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22382 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22383 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22384 s,@IGNORE_SIM@,$IGNORE_SIM,;t t
22385 s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
22386 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22387 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22388 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22389 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22390 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22391 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22392 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22393 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22394 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22395 s,@target_subdir@,$target_subdir,;t t
22396 s,@frags@,$frags,;t t
22397 s,@xm_h@,$xm_h,;t t
22398 s,@tm_h@,$tm_h,;t t
22399 s,@nm_h@,$nm_h,;t t
22400 s,@LIBICONV@,$LIBICONV,;t t
22401 s,@LIBOBJS@,$LIBOBJS,;t t
22402 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22403 /@host_makefile_frag@/r $host_makefile_frag
22404 s,@host_makefile_frag@,,;t t
22405 /@target_makefile_frag@/r $target_makefile_frag
22406 s,@target_makefile_frag@,,;t t
22407 CEOF
22408
22409 _ACEOF
22410
22411 cat >>$CONFIG_STATUS <<\_ACEOF
22412 # Split the substitutions into bite-sized pieces for seds with
22413 # small command number limits, like on Digital OSF/1 and HP-UX.
22414 ac_max_sed_lines=48
22415 ac_sed_frag=1 # Number of current file.
22416 ac_beg=1 # First line for current file.
22417 ac_end=$ac_max_sed_lines # Line after last line for current file.
22418 ac_more_lines=:
22419 ac_sed_cmds=
22420 while $ac_more_lines; do
22421 if test $ac_beg -gt 1; then
22422 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22423 else
22424 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22425 fi
22426 if test ! -s $tmp/subs.frag; then
22427 ac_more_lines=false
22428 else
22429 # The purpose of the label and of the branching condition is to
22430 # speed up the sed processing (if there are no `@' at all, there
22431 # is no need to browse any of the substitutions).
22432 # These are the two extra sed commands mentioned above.
22433 (echo ':t
22434 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22435 if test -z "$ac_sed_cmds"; then
22436 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22437 else
22438 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22439 fi
22440 ac_sed_frag=`expr $ac_sed_frag + 1`
22441 ac_beg=$ac_end
22442 ac_end=`expr $ac_end + $ac_max_sed_lines`
22443 fi
22444 done
22445 if test -z "$ac_sed_cmds"; then
22446 ac_sed_cmds=cat
22447 fi
22448 fi # test -n "$CONFIG_FILES"
22449
22450 _ACEOF
22451 cat >>$CONFIG_STATUS <<\_ACEOF
22452 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22453 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22454 case $ac_file in
22455 - | *:- | *:-:* ) # input from stdin
22456 cat >$tmp/stdin
22457 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22458 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22459 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22461 * ) ac_file_in=$ac_file.in ;;
22462 esac
22463
22464 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22465 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22466 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22467 X"$ac_file" : 'X\(//\)[^/]' \| \
22468 X"$ac_file" : 'X\(//\)$' \| \
22469 X"$ac_file" : 'X\(/\)' \| \
22470 . : '\(.\)' 2>/dev/null ||
22471 echo X"$ac_file" |
22472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22473 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22474 /^X\(\/\/\)$/{ s//\1/; q; }
22475 /^X\(\/\).*/{ s//\1/; q; }
22476 s/.*/./; q'`
22477 { if $as_mkdir_p; then
22478 mkdir -p "$ac_dir"
22479 else
22480 as_dir="$ac_dir"
22481 as_dirs=
22482 while test ! -d "$as_dir"; do
22483 as_dirs="$as_dir $as_dirs"
22484 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22485 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22486 X"$as_dir" : 'X\(//\)[^/]' \| \
22487 X"$as_dir" : 'X\(//\)$' \| \
22488 X"$as_dir" : 'X\(/\)' \| \
22489 . : '\(.\)' 2>/dev/null ||
22490 echo X"$as_dir" |
22491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22492 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22493 /^X\(\/\/\)$/{ s//\1/; q; }
22494 /^X\(\/\).*/{ s//\1/; q; }
22495 s/.*/./; q'`
22496 done
22497 test ! -n "$as_dirs" || mkdir $as_dirs
22498 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22499 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22500 { (exit 1); exit 1; }; }; }
22501
22502 ac_builddir=.
22503
22504 if test "$ac_dir" != .; then
22505 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22506 # A "../" for each directory in $ac_dir_suffix.
22507 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22508 else
22509 ac_dir_suffix= ac_top_builddir=
22510 fi
22511
22512 case $srcdir in
22513 .) # No --srcdir option. We are building in place.
22514 ac_srcdir=.
22515 if test -z "$ac_top_builddir"; then
22516 ac_top_srcdir=.
22517 else
22518 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22519 fi ;;
22520 [\\/]* | ?:[\\/]* ) # Absolute path.
22521 ac_srcdir=$srcdir$ac_dir_suffix;
22522 ac_top_srcdir=$srcdir ;;
22523 *) # Relative path.
22524 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22525 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22526 esac
22527
22528 # Do not use `cd foo && pwd` to compute absolute paths, because
22529 # the directories may not exist.
22530 case `pwd` in
22531 .) ac_abs_builddir="$ac_dir";;
22532 *)
22533 case "$ac_dir" in
22534 .) ac_abs_builddir=`pwd`;;
22535 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22536 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22537 esac;;
22538 esac
22539 case $ac_abs_builddir in
22540 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22541 *)
22542 case ${ac_top_builddir}. in
22543 .) ac_abs_top_builddir=$ac_abs_builddir;;
22544 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22545 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22546 esac;;
22547 esac
22548 case $ac_abs_builddir in
22549 .) ac_abs_srcdir=$ac_srcdir;;
22550 *)
22551 case $ac_srcdir in
22552 .) ac_abs_srcdir=$ac_abs_builddir;;
22553 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22554 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22555 esac;;
22556 esac
22557 case $ac_abs_builddir in
22558 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22559 *)
22560 case $ac_top_srcdir in
22561 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22562 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22563 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22564 esac;;
22565 esac
22566
22567
22568 case $INSTALL in
22569 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22570 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22571 esac
22572
22573 if test x"$ac_file" != x-; then
22574 { echo "$as_me:$LINENO: creating $ac_file" >&5
22575 echo "$as_me: creating $ac_file" >&6;}
22576 rm -f "$ac_file"
22577 fi
22578 # Let's still pretend it is `configure' which instantiates (i.e., don't
22579 # use $as_me), people would be surprised to read:
22580 # /* config.h. Generated by config.status. */
22581 if test x"$ac_file" = x-; then
22582 configure_input=
22583 else
22584 configure_input="$ac_file. "
22585 fi
22586 configure_input=$configure_input"Generated from `echo $ac_file_in |
22587 sed 's,.*/,,'` by configure."
22588
22589 # First look for the input files in the build tree, otherwise in the
22590 # src tree.
22591 ac_file_inputs=`IFS=:
22592 for f in $ac_file_in; do
22593 case $f in
22594 -) echo $tmp/stdin ;;
22595 [\\/$]*)
22596 # Absolute (can't be DOS-style, as IFS=:)
22597 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22598 echo "$as_me: error: cannot find input file: $f" >&2;}
22599 { (exit 1); exit 1; }; }
22600 echo "$f";;
22601 *) # Relative
22602 if test -f "$f"; then
22603 # Build tree
22604 echo "$f"
22605 elif test -f "$srcdir/$f"; then
22606 # Source tree
22607 echo "$srcdir/$f"
22608 else
22609 # /dev/null tree
22610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22611 echo "$as_me: error: cannot find input file: $f" >&2;}
22612 { (exit 1); exit 1; }; }
22613 fi;;
22614 esac
22615 done` || { (exit 1); exit 1; }
22616 _ACEOF
22617 cat >>$CONFIG_STATUS <<_ACEOF
22618 sed "$ac_vpsub
22619 $extrasub
22620 _ACEOF
22621 cat >>$CONFIG_STATUS <<\_ACEOF
22622 :t
22623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22624 s,@configure_input@,$configure_input,;t t
22625 s,@srcdir@,$ac_srcdir,;t t
22626 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22627 s,@top_srcdir@,$ac_top_srcdir,;t t
22628 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22629 s,@builddir@,$ac_builddir,;t t
22630 s,@abs_builddir@,$ac_abs_builddir,;t t
22631 s,@top_builddir@,$ac_top_builddir,;t t
22632 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22633 s,@INSTALL@,$ac_INSTALL,;t t
22634 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22635 rm -f $tmp/stdin
22636 if test x"$ac_file" != x-; then
22637 mv $tmp/out $ac_file
22638 else
22639 cat $tmp/out
22640 rm -f $tmp/out
22641 fi
22642
22643 done
22644 _ACEOF
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22646
22647 #
22648 # CONFIG_HEADER section.
22649 #
22650
22651 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22652 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22653 #
22654 # ac_d sets the value in "#define NAME VALUE" lines.
22655 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22656 ac_dB='[ ].*$,\1#\2'
22657 ac_dC=' '
22658 ac_dD=',;t'
22659 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22660 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22661 ac_uB='$,\1#\2define\3'
22662 ac_uC=' '
22663 ac_uD=',;t'
22664
22665 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22666 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22667 case $ac_file in
22668 - | *:- | *:-:* ) # input from stdin
22669 cat >$tmp/stdin
22670 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22671 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22672 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22673 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22674 * ) ac_file_in=$ac_file.in ;;
22675 esac
22676
22677 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22678 echo "$as_me: creating $ac_file" >&6;}
22679
22680 # First look for the input files in the build tree, otherwise in the
22681 # src tree.
22682 ac_file_inputs=`IFS=:
22683 for f in $ac_file_in; do
22684 case $f in
22685 -) echo $tmp/stdin ;;
22686 [\\/$]*)
22687 # Absolute (can't be DOS-style, as IFS=:)
22688 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22689 echo "$as_me: error: cannot find input file: $f" >&2;}
22690 { (exit 1); exit 1; }; }
22691 # Do quote $f, to prevent DOS paths from being IFS'd.
22692 echo "$f";;
22693 *) # Relative
22694 if test -f "$f"; then
22695 # Build tree
22696 echo "$f"
22697 elif test -f "$srcdir/$f"; then
22698 # Source tree
22699 echo "$srcdir/$f"
22700 else
22701 # /dev/null tree
22702 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22703 echo "$as_me: error: cannot find input file: $f" >&2;}
22704 { (exit 1); exit 1; }; }
22705 fi;;
22706 esac
22707 done` || { (exit 1); exit 1; }
22708 # Remove the trailing spaces.
22709 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22710
22711 _ACEOF
22712
22713 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22714 # `conftest.undefs', that substitutes the proper values into
22715 # config.h.in to produce config.h. The first handles `#define'
22716 # templates, and the second `#undef' templates.
22717 # And first: Protect against being on the right side of a sed subst in
22718 # config.status. Protect against being in an unquoted here document
22719 # in config.status.
22720 rm -f conftest.defines conftest.undefs
22721 # Using a here document instead of a string reduces the quoting nightmare.
22722 # Putting comments in sed scripts is not portable.
22723 #
22724 # `end' is used to avoid that the second main sed command (meant for
22725 # 0-ary CPP macros) applies to n-ary macro definitions.
22726 # See the Autoconf documentation for `clear'.
22727 cat >confdef2sed.sed <<\_ACEOF
22728 s/[\\&,]/\\&/g
22729 s,[\\$`],\\&,g
22730 t clear
22731 : clear
22732 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22733 t end
22734 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22735 : end
22736 _ACEOF
22737 # If some macros were called several times there might be several times
22738 # the same #defines, which is useless. Nevertheless, we may not want to
22739 # sort them, since we want the *last* AC-DEFINE to be honored.
22740 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22741 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22742 rm -f confdef2sed.sed
22743
22744 # This sed command replaces #undef with comments. This is necessary, for
22745 # example, in the case of _POSIX_SOURCE, which is predefined and required
22746 # on some systems where configure will not decide to define it.
22747 cat >>conftest.undefs <<\_ACEOF
22748 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22749 _ACEOF
22750
22751 # Break up conftest.defines because some shells have a limit on the size
22752 # of here documents, and old seds have small limits too (100 cmds).
22753 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22754 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22755 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22756 echo ' :' >>$CONFIG_STATUS
22757 rm -f conftest.tail
22758 while grep . conftest.defines >/dev/null
22759 do
22760 # Write a limited-size here document to $tmp/defines.sed.
22761 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22762 # Speed up: don't consider the non `#define' lines.
22763 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22764 # Work around the forget-to-reset-the-flag bug.
22765 echo 't clr' >>$CONFIG_STATUS
22766 echo ': clr' >>$CONFIG_STATUS
22767 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22768 echo 'CEOF
22769 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22770 rm -f $tmp/in
22771 mv $tmp/out $tmp/in
22772 ' >>$CONFIG_STATUS
22773 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22774 rm -f conftest.defines
22775 mv conftest.tail conftest.defines
22776 done
22777 rm -f conftest.defines
22778 echo ' fi # grep' >>$CONFIG_STATUS
22779 echo >>$CONFIG_STATUS
22780
22781 # Break up conftest.undefs because some shells have a limit on the size
22782 # of here documents, and old seds have small limits too (100 cmds).
22783 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22784 rm -f conftest.tail
22785 while grep . conftest.undefs >/dev/null
22786 do
22787 # Write a limited-size here document to $tmp/undefs.sed.
22788 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22789 # Speed up: don't consider the non `#undef'
22790 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22791 # Work around the forget-to-reset-the-flag bug.
22792 echo 't clr' >>$CONFIG_STATUS
22793 echo ': clr' >>$CONFIG_STATUS
22794 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22795 echo 'CEOF
22796 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22797 rm -f $tmp/in
22798 mv $tmp/out $tmp/in
22799 ' >>$CONFIG_STATUS
22800 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22801 rm -f conftest.undefs
22802 mv conftest.tail conftest.undefs
22803 done
22804 rm -f conftest.undefs
22805
22806 cat >>$CONFIG_STATUS <<\_ACEOF
22807 # Let's still pretend it is `configure' which instantiates (i.e., don't
22808 # use $as_me), people would be surprised to read:
22809 # /* config.h. Generated by config.status. */
22810 if test x"$ac_file" = x-; then
22811 echo "/* Generated by configure. */" >$tmp/config.h
22812 else
22813 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22814 fi
22815 cat $tmp/in >>$tmp/config.h
22816 rm -f $tmp/in
22817 if test x"$ac_file" != x-; then
22818 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22819 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22820 echo "$as_me: $ac_file is unchanged" >&6;}
22821 else
22822 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22824 X"$ac_file" : 'X\(//\)[^/]' \| \
22825 X"$ac_file" : 'X\(//\)$' \| \
22826 X"$ac_file" : 'X\(/\)' \| \
22827 . : '\(.\)' 2>/dev/null ||
22828 echo X"$ac_file" |
22829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22830 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22831 /^X\(\/\/\)$/{ s//\1/; q; }
22832 /^X\(\/\).*/{ s//\1/; q; }
22833 s/.*/./; q'`
22834 { if $as_mkdir_p; then
22835 mkdir -p "$ac_dir"
22836 else
22837 as_dir="$ac_dir"
22838 as_dirs=
22839 while test ! -d "$as_dir"; do
22840 as_dirs="$as_dir $as_dirs"
22841 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22842 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22843 X"$as_dir" : 'X\(//\)[^/]' \| \
22844 X"$as_dir" : 'X\(//\)$' \| \
22845 X"$as_dir" : 'X\(/\)' \| \
22846 . : '\(.\)' 2>/dev/null ||
22847 echo X"$as_dir" |
22848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22849 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22850 /^X\(\/\/\)$/{ s//\1/; q; }
22851 /^X\(\/\).*/{ s//\1/; q; }
22852 s/.*/./; q'`
22853 done
22854 test ! -n "$as_dirs" || mkdir $as_dirs
22855 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22856 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22857 { (exit 1); exit 1; }; }; }
22858
22859 rm -f $ac_file
22860 mv $tmp/config.h $ac_file
22861 fi
22862 else
22863 cat $tmp/config.h
22864 rm -f $tmp/config.h
22865 fi
22866 done
22867 _ACEOF
22868 cat >>$CONFIG_STATUS <<\_ACEOF
22869
22870 #
22871 # CONFIG_LINKS section.
22872 #
22873
22874 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22875 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22876 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22877
22878 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22879 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22880
22881 if test ! -r $srcdir/$ac_source; then
22882 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22883 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22884 { (exit 1); exit 1; }; }
22885 fi
22886 rm -f $ac_dest
22887
22888 # Make relative symlinks.
22889 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22890 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22891 X"$ac_dest" : 'X\(//\)[^/]' \| \
22892 X"$ac_dest" : 'X\(//\)$' \| \
22893 X"$ac_dest" : 'X\(/\)' \| \
22894 . : '\(.\)' 2>/dev/null ||
22895 echo X"$ac_dest" |
22896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22898 /^X\(\/\/\)$/{ s//\1/; q; }
22899 /^X\(\/\).*/{ s//\1/; q; }
22900 s/.*/./; q'`
22901 { if $as_mkdir_p; then
22902 mkdir -p "$ac_dest_dir"
22903 else
22904 as_dir="$ac_dest_dir"
22905 as_dirs=
22906 while test ! -d "$as_dir"; do
22907 as_dirs="$as_dir $as_dirs"
22908 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$as_dir" : 'X\(//\)[^/]' \| \
22911 X"$as_dir" : 'X\(//\)$' \| \
22912 X"$as_dir" : 'X\(/\)' \| \
22913 . : '\(.\)' 2>/dev/null ||
22914 echo X"$as_dir" |
22915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22916 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22917 /^X\(\/\/\)$/{ s//\1/; q; }
22918 /^X\(\/\).*/{ s//\1/; q; }
22919 s/.*/./; q'`
22920 done
22921 test ! -n "$as_dirs" || mkdir $as_dirs
22922 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22923 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22924 { (exit 1); exit 1; }; }; }
22925
22926 ac_builddir=.
22927
22928 if test "$ac_dest_dir" != .; then
22929 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22930 # A "../" for each directory in $ac_dir_suffix.
22931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22932 else
22933 ac_dir_suffix= ac_top_builddir=
22934 fi
22935
22936 case $srcdir in
22937 .) # No --srcdir option. We are building in place.
22938 ac_srcdir=.
22939 if test -z "$ac_top_builddir"; then
22940 ac_top_srcdir=.
22941 else
22942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22943 fi ;;
22944 [\\/]* | ?:[\\/]* ) # Absolute path.
22945 ac_srcdir=$srcdir$ac_dir_suffix;
22946 ac_top_srcdir=$srcdir ;;
22947 *) # Relative path.
22948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22950 esac
22951
22952 # Do not use `cd foo && pwd` to compute absolute paths, because
22953 # the directories may not exist.
22954 case `pwd` in
22955 .) ac_abs_builddir="$ac_dest_dir";;
22956 *)
22957 case "$ac_dest_dir" in
22958 .) ac_abs_builddir=`pwd`;;
22959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22960 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22961 esac;;
22962 esac
22963 case $ac_abs_builddir in
22964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22965 *)
22966 case ${ac_top_builddir}. in
22967 .) ac_abs_top_builddir=$ac_abs_builddir;;
22968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22970 esac;;
22971 esac
22972 case $ac_abs_builddir in
22973 .) ac_abs_srcdir=$ac_srcdir;;
22974 *)
22975 case $ac_srcdir in
22976 .) ac_abs_srcdir=$ac_abs_builddir;;
22977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22979 esac;;
22980 esac
22981 case $ac_abs_builddir in
22982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22983 *)
22984 case $ac_top_srcdir in
22985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22988 esac;;
22989 esac
22990
22991
22992 case $srcdir in
22993 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22994 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22995 esac
22996
22997 # Try a symlink, then a hard link, then a copy.
22998 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22999 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23000 cp -p $srcdir/$ac_source $ac_dest ||
23001 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23002 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23003 { (exit 1); exit 1; }; }
23004 done
23005 _ACEOF
23006 cat >>$CONFIG_STATUS <<\_ACEOF
23007
23008 #
23009 # CONFIG_COMMANDS section.
23010 #
23011 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23012 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23013 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23014 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23015 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23016 X"$ac_dest" : 'X\(//\)[^/]' \| \
23017 X"$ac_dest" : 'X\(//\)$' \| \
23018 X"$ac_dest" : 'X\(/\)' \| \
23019 . : '\(.\)' 2>/dev/null ||
23020 echo X"$ac_dest" |
23021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23023 /^X\(\/\/\)$/{ s//\1/; q; }
23024 /^X\(\/\).*/{ s//\1/; q; }
23025 s/.*/./; q'`
23026 { if $as_mkdir_p; then
23027 mkdir -p "$ac_dir"
23028 else
23029 as_dir="$ac_dir"
23030 as_dirs=
23031 while test ! -d "$as_dir"; do
23032 as_dirs="$as_dir $as_dirs"
23033 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23034 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23035 X"$as_dir" : 'X\(//\)[^/]' \| \
23036 X"$as_dir" : 'X\(//\)$' \| \
23037 X"$as_dir" : 'X\(/\)' \| \
23038 . : '\(.\)' 2>/dev/null ||
23039 echo X"$as_dir" |
23040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23042 /^X\(\/\/\)$/{ s//\1/; q; }
23043 /^X\(\/\).*/{ s//\1/; q; }
23044 s/.*/./; q'`
23045 done
23046 test ! -n "$as_dirs" || mkdir $as_dirs
23047 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23048 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23049 { (exit 1); exit 1; }; }; }
23050
23051 ac_builddir=.
23052
23053 if test "$ac_dir" != .; then
23054 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23055 # A "../" for each directory in $ac_dir_suffix.
23056 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23057 else
23058 ac_dir_suffix= ac_top_builddir=
23059 fi
23060
23061 case $srcdir in
23062 .) # No --srcdir option. We are building in place.
23063 ac_srcdir=.
23064 if test -z "$ac_top_builddir"; then
23065 ac_top_srcdir=.
23066 else
23067 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23068 fi ;;
23069 [\\/]* | ?:[\\/]* ) # Absolute path.
23070 ac_srcdir=$srcdir$ac_dir_suffix;
23071 ac_top_srcdir=$srcdir ;;
23072 *) # Relative path.
23073 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23074 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23075 esac
23076
23077 # Do not use `cd foo && pwd` to compute absolute paths, because
23078 # the directories may not exist.
23079 case `pwd` in
23080 .) ac_abs_builddir="$ac_dir";;
23081 *)
23082 case "$ac_dir" in
23083 .) ac_abs_builddir=`pwd`;;
23084 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23085 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23086 esac;;
23087 esac
23088 case $ac_abs_builddir in
23089 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23090 *)
23091 case ${ac_top_builddir}. in
23092 .) ac_abs_top_builddir=$ac_abs_builddir;;
23093 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23094 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23095 esac;;
23096 esac
23097 case $ac_abs_builddir in
23098 .) ac_abs_srcdir=$ac_srcdir;;
23099 *)
23100 case $ac_srcdir in
23101 .) ac_abs_srcdir=$ac_abs_builddir;;
23102 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23103 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23104 esac;;
23105 esac
23106 case $ac_abs_builddir in
23107 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23108 *)
23109 case $ac_top_srcdir in
23110 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23111 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23112 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23113 esac;;
23114 esac
23115
23116
23117 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23118 echo "$as_me: executing $ac_dest commands" >&6;}
23119 case $ac_dest in
23120 default )
23121
23122 sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
23123 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
23124 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
23125 mv -f Makefile.tmp Makefile
23126
23127
23128 case x$CONFIG_HEADERS in
23129 xconfig.h:config.in)
23130 echo > stamp-h ;;
23131 esac
23132 ;;
23133 esac
23134 done
23135 _ACEOF
23136
23137 cat >>$CONFIG_STATUS <<\_ACEOF
23138
23139 { (exit 0); exit 0; }
23140 _ACEOF
23141 chmod +x $CONFIG_STATUS
23142 ac_clean_files=$ac_clean_files_save
23143
23144
23145 # configure is writing to config.log, and then calls config.status.
23146 # config.status does its own redirection, appending to config.log.
23147 # Unfortunately, on DOS this fails, as config.log is still kept open
23148 # by configure, so config.status won't be able to write to it; its
23149 # output is simply discarded. So we exec the FD to /dev/null,
23150 # effectively closing config.log, so it can be properly (re)opened and
23151 # appended to by config.status. When coming back to configure, we
23152 # need to make the FD available again.
23153 if test "$no_create" != yes; then
23154 ac_cs_success=:
23155 ac_config_status_args=
23156 test "$silent" = yes &&
23157 ac_config_status_args="$ac_config_status_args --quiet"
23158 exec 5>/dev/null
23159 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23160 exec 5>>config.log
23161 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23162 # would make configure fail if this is the last instruction.
23163 $ac_cs_success || { (exit 1); exit 1; }
23164 fi
23165
23166 #
23167 # CONFIG_SUBDIRS section.
23168 #
23169 if test "$no_recursion" != yes; then
23170
23171 # Remove --cache-file and --srcdir arguments so they do not pile up.
23172 ac_sub_configure_args=
23173 ac_prev=
23174 for ac_arg in $ac_configure_args; do
23175 if test -n "$ac_prev"; then
23176 ac_prev=
23177 continue
23178 fi
23179 case $ac_arg in
23180 -cache-file | --cache-file | --cache-fil | --cache-fi \
23181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23182 ac_prev=cache_file ;;
23183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23185 | --c=*)
23186 ;;
23187 --config-cache | -C)
23188 ;;
23189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23190 ac_prev=srcdir ;;
23191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23192 ;;
23193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23194 ac_prev=prefix ;;
23195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23196 ;;
23197 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23198 esac
23199 done
23200
23201 # Always prepend --prefix to ensure using the same prefix
23202 # in subdir configurations.
23203 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23204
23205 ac_popdir=`pwd`
23206 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23207
23208 # Do not complain, so a configure script can configure whichever
23209 # parts of a large source tree are present.
23210 test -d $srcdir/$ac_dir || continue
23211
23212 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23213 echo "$as_me: configuring in $ac_dir" >&6;}
23214 { if $as_mkdir_p; then
23215 mkdir -p "$ac_dir"
23216 else
23217 as_dir="$ac_dir"
23218 as_dirs=
23219 while test ! -d "$as_dir"; do
23220 as_dirs="$as_dir $as_dirs"
23221 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23223 X"$as_dir" : 'X\(//\)[^/]' \| \
23224 X"$as_dir" : 'X\(//\)$' \| \
23225 X"$as_dir" : 'X\(/\)' \| \
23226 . : '\(.\)' 2>/dev/null ||
23227 echo X"$as_dir" |
23228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23229 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23230 /^X\(\/\/\)$/{ s//\1/; q; }
23231 /^X\(\/\).*/{ s//\1/; q; }
23232 s/.*/./; q'`
23233 done
23234 test ! -n "$as_dirs" || mkdir $as_dirs
23235 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23236 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23237 { (exit 1); exit 1; }; }; }
23238
23239 ac_builddir=.
23240
23241 if test "$ac_dir" != .; then
23242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23243 # A "../" for each directory in $ac_dir_suffix.
23244 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23245 else
23246 ac_dir_suffix= ac_top_builddir=
23247 fi
23248
23249 case $srcdir in
23250 .) # No --srcdir option. We are building in place.
23251 ac_srcdir=.
23252 if test -z "$ac_top_builddir"; then
23253 ac_top_srcdir=.
23254 else
23255 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23256 fi ;;
23257 [\\/]* | ?:[\\/]* ) # Absolute path.
23258 ac_srcdir=$srcdir$ac_dir_suffix;
23259 ac_top_srcdir=$srcdir ;;
23260 *) # Relative path.
23261 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23262 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23263 esac
23264
23265 # Do not use `cd foo && pwd` to compute absolute paths, because
23266 # the directories may not exist.
23267 case `pwd` in
23268 .) ac_abs_builddir="$ac_dir";;
23269 *)
23270 case "$ac_dir" in
23271 .) ac_abs_builddir=`pwd`;;
23272 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23273 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23274 esac;;
23275 esac
23276 case $ac_abs_builddir in
23277 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23278 *)
23279 case ${ac_top_builddir}. in
23280 .) ac_abs_top_builddir=$ac_abs_builddir;;
23281 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23282 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23283 esac;;
23284 esac
23285 case $ac_abs_builddir in
23286 .) ac_abs_srcdir=$ac_srcdir;;
23287 *)
23288 case $ac_srcdir in
23289 .) ac_abs_srcdir=$ac_abs_builddir;;
23290 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23291 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23292 esac;;
23293 esac
23294 case $ac_abs_builddir in
23295 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23296 *)
23297 case $ac_top_srcdir in
23298 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23299 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23300 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23301 esac;;
23302 esac
23303
23304
23305 cd $ac_dir
23306
23307 # Check for guested configure; otherwise get Cygnus style configure.
23308 if test -f $ac_srcdir/configure.gnu; then
23309 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23310 elif test -f $ac_srcdir/configure; then
23311 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23312 elif test -f $ac_srcdir/configure.in; then
23313 ac_sub_configure=$ac_configure
23314 else
23315 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23316 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23317 ac_sub_configure=
23318 fi
23319
23320 # The recursion is here.
23321 if test -n "$ac_sub_configure"; then
23322 # Make the cache file name correct relative to the subdirectory.
23323 case $cache_file in
23324 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23325 *) # Relative path.
23326 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23327 esac
23328
23329 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23330 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23331 # The eval makes quoting arguments work.
23332 eval $ac_sub_configure $ac_sub_configure_args \
23333 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23334 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23335 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23336 { (exit 1); exit 1; }; }
23337 fi
23338
23339 cd $ac_popdir
23340 done
23341 fi
23342
23343
23344 exit 0
This page took 0.933035 seconds and 5 git commands to generate.