bfd/
[binutils.git] / bfd / configure
blob6e8d29c1fb5e1fa8178f03b4fc1658b235af2bad
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
96 rm -f conf$$.sh
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
154 esac
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="libbfd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL PKGVERSION WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP 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 HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801 _ACEOF
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
832 cat <<\_ACEOF
834 Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843 _ACEOF
846 if test -n "$ac_init_help"; then
848 cat <<\_ACEOF
850 Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking speeds up one-time build
854 --enable-dependency-tracking do not reject slow dependency extractors
855 --enable-shared=PKGS build shared libraries default=no
856 --enable-static=PKGS build static libraries default=yes
857 --enable-fast-install=PKGS optimize for fast installation default=yes
858 --disable-libtool-lock avoid locking (might break parallel builds)
859 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
860 --enable-targets alternative target configurations
861 --enable-commonbfdlib build shared BFD/opcodes/libiberty library
862 --enable-secureplt Default to creating read-only plt entries
863 --enable-werror treat compile warnings as errors
864 --enable-build-warnings Enable build-time compiler warnings
865 --enable-maintainer-mode enable make rules and dependencies not useful
866 (and sometimes confusing) to the casual installer
867 --enable-install-libbfd controls installation of libbfd and related headers
868 --disable-nls do not use Native Language Support
870 Optional Packages:
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnu-ld assume the C compiler uses GNU ld default=no
874 --with-pic try to use only PIC/non-PIC objects default=use both
875 --with-mmap try using mmap for BFD input files if available
876 --with-pkgversion=PKG Add PKG to the version string
877 --with-included-gettext use the GNU gettext library included here
879 Some influential environment variables:
880 CC C compiler command
881 CFLAGS C compiler flags
882 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
883 nonstandard directory <lib dir>
884 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
885 headers in a nonstandard directory <include dir>
886 CPP C preprocessor
888 Use these variables to override the choices made by `configure' or to help
889 it to find libraries and programs with nonstandard names/locations.
891 _ACEOF
894 if test "$ac_init_help" = "recursive"; then
895 # If there are subdirs, report their specific --help.
896 ac_popdir=`pwd`
897 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
898 test -d $ac_dir || continue
899 ac_builddir=.
901 if test "$ac_dir" != .; then
902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
903 # A "../" for each directory in $ac_dir_suffix.
904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
905 else
906 ac_dir_suffix= ac_top_builddir=
909 case $srcdir in
910 .) # No --srcdir option. We are building in place.
911 ac_srcdir=.
912 if test -z "$ac_top_builddir"; then
913 ac_top_srcdir=.
914 else
915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
916 fi ;;
917 [\\/]* | ?:[\\/]* ) # Absolute path.
918 ac_srcdir=$srcdir$ac_dir_suffix;
919 ac_top_srcdir=$srcdir ;;
920 *) # Relative path.
921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
923 esac
925 # Do not use `cd foo && pwd` to compute absolute paths, because
926 # the directories may not exist.
927 case `pwd` in
928 .) ac_abs_builddir="$ac_dir";;
930 case "$ac_dir" in
931 .) ac_abs_builddir=`pwd`;;
932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
934 esac;;
935 esac
936 case $ac_abs_builddir in
937 .) ac_abs_top_builddir=${ac_top_builddir}.;;
939 case ${ac_top_builddir}. in
940 .) ac_abs_top_builddir=$ac_abs_builddir;;
941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
943 esac;;
944 esac
945 case $ac_abs_builddir in
946 .) ac_abs_srcdir=$ac_srcdir;;
948 case $ac_srcdir in
949 .) ac_abs_srcdir=$ac_abs_builddir;;
950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
952 esac;;
953 esac
954 case $ac_abs_builddir in
955 .) ac_abs_top_srcdir=$ac_top_srcdir;;
957 case $ac_top_srcdir in
958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 esac;;
962 esac
964 cd $ac_dir
965 # Check for guested configure; otherwise get Cygnus style configure.
966 if test -f $ac_srcdir/configure.gnu; then
967 echo
968 $SHELL $ac_srcdir/configure.gnu --help=recursive
969 elif test -f $ac_srcdir/configure; then
970 echo
971 $SHELL $ac_srcdir/configure --help=recursive
972 elif test -f $ac_srcdir/configure.ac ||
973 test -f $ac_srcdir/configure.in; then
974 echo
975 $ac_configure --help
976 else
977 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 cd $ac_popdir
980 done
983 test -n "$ac_init_help" && exit 0
984 if $ac_init_version; then
985 cat <<\_ACEOF
987 Copyright (C) 2003 Free Software Foundation, Inc.
988 This configure script is free software; the Free Software Foundation
989 gives unlimited permission to copy, distribute and modify it.
990 _ACEOF
991 exit 0
993 exec 5>config.log
994 cat >&5 <<_ACEOF
995 This file contains any messages produced by compilers while
996 running configure, to aid debugging if configure makes a mistake.
998 It was created by $as_me, which was
999 generated by GNU Autoconf 2.59. Invocation command line was
1001 $ $0 $@
1003 _ACEOF
1005 cat <<_ASUNAME
1006 ## --------- ##
1007 ## Platform. ##
1008 ## --------- ##
1010 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1011 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1012 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1013 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1014 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1016 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1017 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1019 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1020 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1021 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1022 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1023 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1024 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1025 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 _ASUNAME
1029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 for as_dir in $PATH
1032 IFS=$as_save_IFS
1033 test -z "$as_dir" && as_dir=.
1034 echo "PATH: $as_dir"
1035 done
1037 } >&5
1039 cat >&5 <<_ACEOF
1042 ## ----------- ##
1043 ## Core tests. ##
1044 ## ----------- ##
1046 _ACEOF
1049 # Keep a trace of the command line.
1050 # Strip out --no-create and --no-recursion so they do not pile up.
1051 # Strip out --silent because we don't want to record it for future runs.
1052 # Also quote any args containing shell meta-characters.
1053 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_configure_args=
1055 ac_configure_args0=
1056 ac_configure_args1=
1057 ac_sep=
1058 ac_must_keep_next=false
1059 for ac_pass in 1 2
1061 for ac_arg
1063 case $ac_arg in
1064 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 continue ;;
1068 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1069 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 esac
1071 case $ac_pass in
1072 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1074 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1075 if test $ac_must_keep_next = true; then
1076 ac_must_keep_next=false # Got value, back to normal.
1077 else
1078 case $ac_arg in
1079 *=* | --config-cache | -C | -disable-* | --disable-* \
1080 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1081 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1082 | -with-* | --with-* | -without-* | --without-* | --x)
1083 case "$ac_configure_args0 " in
1084 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 esac
1087 -* ) ac_must_keep_next=true ;;
1088 esac
1090 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1091 # Get rid of the leading space.
1092 ac_sep=" "
1094 esac
1095 done
1096 done
1097 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1098 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1100 # When interrupted or exit'd, cleanup temporary files, and complete
1101 # config.log. We remove comments because anyway the quotes in there
1102 # would cause problems or look ugly.
1103 # WARNING: Be sure not to use single quotes in there, as some shells,
1104 # such as our DU 5.0 friend, will then `close' the trap.
1105 trap 'exit_status=$?
1106 # Save into config.log some information that might help in debugging.
1108 echo
1110 cat <<\_ASBOX
1111 ## ---------------- ##
1112 ## Cache variables. ##
1113 ## ---------------- ##
1114 _ASBOX
1115 echo
1116 # The following way of writing the cache mishandles newlines in values,
1118 (set) 2>&1 |
1119 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 *ac_space=\ *)
1121 sed -n \
1122 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1126 sed -n \
1127 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 esac;
1131 echo
1133 cat <<\_ASBOX
1134 ## ----------------- ##
1135 ## Output variables. ##
1136 ## ----------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_vars
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1146 if test -n "$ac_subst_files"; then
1147 cat <<\_ASBOX
1148 ## ------------- ##
1149 ## Output files. ##
1150 ## ------------- ##
1151 _ASBOX
1152 echo
1153 for ac_var in $ac_subst_files
1155 eval ac_val=$`echo $ac_var`
1156 echo "$ac_var='"'"'$ac_val'"'"'"
1157 done | sort
1158 echo
1161 if test -s confdefs.h; then
1162 cat <<\_ASBOX
1163 ## ----------- ##
1164 ## confdefs.h. ##
1165 ## ----------- ##
1166 _ASBOX
1167 echo
1168 sed "/^$/d" confdefs.h | sort
1169 echo
1171 test "$ac_signal" != 0 &&
1172 echo "$as_me: caught signal $ac_signal"
1173 echo "$as_me: exit $exit_status"
1174 } >&5
1175 rm -f core *.core &&
1176 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 exit $exit_status
1179 for ac_signal in 1 2 13 15; do
1180 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 done
1182 ac_signal=0
1184 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1185 rm -rf conftest* confdefs.h
1186 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 echo >confdefs.h
1189 # Predefined preprocessor variables.
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 _ACEOF
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 _ACEOF
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 _ACEOF
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 _ACEOF
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 _ACEOF
1216 # Let the site file select an alternate cache file if it wants to.
1217 # Prefer explicitly selected file to automatically selected ones.
1218 if test -z "$CONFIG_SITE"; then
1219 if test "x$prefix" != xNONE; then
1220 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1221 else
1222 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1225 for ac_site_file in $CONFIG_SITE; do
1226 if test -r "$ac_site_file"; then
1227 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1228 echo "$as_me: loading site script $ac_site_file" >&6;}
1229 sed 's/^/| /' "$ac_site_file" >&5
1230 . "$ac_site_file"
1232 done
1234 if test -r "$cache_file"; then
1235 # Some versions of bash will fail to source /dev/null (special
1236 # files actually), so we avoid doing that.
1237 if test -f "$cache_file"; then
1238 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1239 echo "$as_me: loading cache $cache_file" >&6;}
1240 case $cache_file in
1241 [\\/]* | ?:[\\/]* ) . $cache_file;;
1242 *) . ./$cache_file;;
1243 esac
1245 else
1246 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1247 echo "$as_me: creating cache $cache_file" >&6;}
1248 >$cache_file
1251 # Check that the precious variables saved in the cache have kept the same
1252 # value.
1253 ac_cache_corrupted=false
1254 for ac_var in `(set) 2>&1 |
1255 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1256 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1257 eval ac_new_set=\$ac_env_${ac_var}_set
1258 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1259 eval ac_new_val="\$ac_env_${ac_var}_value"
1260 case $ac_old_set,$ac_new_set in
1261 set,)
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1265 ,set)
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1269 ,);;
1271 if test "x$ac_old_val" != "x$ac_new_val"; then
1272 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1273 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1274 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1275 echo "$as_me: former value: $ac_old_val" >&2;}
1276 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1277 echo "$as_me: current value: $ac_new_val" >&2;}
1278 ac_cache_corrupted=:
1279 fi;;
1280 esac
1281 # Pass precious variables to config.status.
1282 if test "$ac_new_set" = set; then
1283 case $ac_new_val in
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 *) ac_arg=$ac_var=$ac_new_val ;;
1287 esac
1288 case " $ac_configure_args " in
1289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1290 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 esac
1293 done
1294 if $ac_cache_corrupted; then
1295 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1296 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1297 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1298 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1299 { (exit 1); exit 1; }; }
1302 ac_ext=c
1303 ac_cpp='$CPP $CPPFLAGS'
1304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1328 ac_aux_dir=
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Make sure we can run config.sub.
1354 $ac_config_sub sun4 >/dev/null 2>&1 ||
1355 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1356 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1357 { (exit 1); exit 1; }; }
1359 echo "$as_me:$LINENO: checking build system type" >&5
1360 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1361 if test "${ac_cv_build+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1363 else
1364 ac_cv_build_alias=$build_alias
1365 test -z "$ac_cv_build_alias" &&
1366 ac_cv_build_alias=`$ac_config_guess`
1367 test -z "$ac_cv_build_alias" &&
1368 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1369 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1370 { (exit 1); exit 1; }; }
1371 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1372 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1373 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1374 { (exit 1); exit 1; }; }
1377 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1378 echo "${ECHO_T}$ac_cv_build" >&6
1379 build=$ac_cv_build
1380 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1381 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1382 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1385 echo "$as_me:$LINENO: checking host system type" >&5
1386 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1387 if test "${ac_cv_host+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390 ac_cv_host_alias=$host_alias
1391 test -z "$ac_cv_host_alias" &&
1392 ac_cv_host_alias=$ac_cv_build_alias
1393 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1394 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1395 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1396 { (exit 1); exit 1; }; }
1399 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1400 echo "${ECHO_T}$ac_cv_host" >&6
1401 host=$ac_cv_host
1402 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1403 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1404 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1407 echo "$as_me:$LINENO: checking target system type" >&5
1408 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1409 if test "${ac_cv_target+set}" = set; then
1410 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 else
1412 ac_cv_target_alias=$target_alias
1413 test "x$ac_cv_target_alias" = "x" &&
1414 ac_cv_target_alias=$ac_cv_host_alias
1415 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1416 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1417 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1418 { (exit 1); exit 1; }; }
1421 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1422 echo "${ECHO_T}$ac_cv_target" >&6
1423 target=$ac_cv_target
1424 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1425 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1426 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1429 # The aliases save the names the user supplied, while $host etc.
1430 # will get canonicalized.
1431 test -n "$target_alias" &&
1432 test "$program_prefix$program_suffix$program_transform_name" = \
1433 NONENONEs,x,x, &&
1434 program_prefix=${target_alias}-
1435 ac_ext=c
1436 ac_cpp='$CPP $CPPFLAGS'
1437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1440 if test -n "$ac_tool_prefix"; then
1441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1442 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$CC"; then
1449 ac_cv_prog_CC="$CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1462 done
1463 done
1467 CC=$ac_cv_prog_CC
1468 if test -n "$CC"; then
1469 echo "$as_me:$LINENO: result: $CC" >&5
1470 echo "${ECHO_T}$CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1477 if test -z "$ac_cv_prog_CC"; then
1478 ac_ct_CC=$CC
1479 # Extract the first word of "gcc", so it can be a program name with args.
1480 set dummy gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486 if test -n "$ac_ct_CC"; then
1487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1492 IFS=$as_save_IFS
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_ac_ct_CC="gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498 break 2
1500 done
1501 done
1505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1506 if test -n "$ac_ct_CC"; then
1507 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1508 echo "${ECHO_T}$ac_ct_CC" >&6
1509 else
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1514 CC=$ac_ct_CC
1515 else
1516 CC="$ac_cv_prog_CC"
1519 if test -z "$CC"; then
1520 if test -n "$ac_tool_prefix"; then
1521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1522 set dummy ${ac_tool_prefix}cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$CC"; then
1529 ac_cv_prog_CC="$CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_CC="${ac_tool_prefix}cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1542 done
1543 done
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:$LINENO: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1557 if test -z "$ac_cv_prog_CC"; then
1558 ac_ct_CC=$CC
1559 # Extract the first word of "cc", so it can be a program name with args.
1560 set dummy cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 else
1566 if test -n "$ac_ct_CC"; then
1567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1568 else
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 for as_dir in $PATH
1572 IFS=$as_save_IFS
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_ac_ct_CC="cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1578 break 2
1580 done
1581 done
1585 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1586 if test -n "$ac_ct_CC"; then
1587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1588 echo "${ECHO_T}$ac_ct_CC" >&6
1589 else
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 CC=$ac_ct_CC
1595 else
1596 CC="$ac_cv_prog_CC"
1600 if test -z "$CC"; then
1601 # Extract the first word of "cc", so it can be a program name with args.
1602 set dummy cc; ac_word=$2
1603 echo "$as_me:$LINENO: checking for $ac_word" >&5
1604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605 if test "${ac_cv_prog_CC+set}" = set; then
1606 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 else
1608 if test -n "$CC"; then
1609 ac_cv_prog_CC="$CC" # Let the user override the test.
1610 else
1611 ac_prog_rejected=no
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 for ac_exec_ext in '' $ac_executable_extensions; do
1618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1620 ac_prog_rejected=yes
1621 continue
1623 ac_cv_prog_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 break 2
1627 done
1628 done
1630 if test $ac_prog_rejected = yes; then
1631 # We found a bogon in the path, so make sure we never use it.
1632 set dummy $ac_cv_prog_CC
1633 shift
1634 if test $# != 0; then
1635 # We chose a different compiler from the bogus one.
1636 # However, it has the same basename, so the bogon will be chosen
1637 # first if we set CC to just the basename; use the full file name.
1638 shift
1639 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1654 if test -z "$CC"; then
1655 if test -n "$ac_tool_prefix"; then
1656 for ac_prog in cl
1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_CC+set}" = set; then
1663 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665 if test -n "$CC"; then
1666 ac_cv_prog_CC="$CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1671 IFS=$as_save_IFS
1672 test -z "$as_dir" && as_dir=.
1673 for ac_exec_ext in '' $ac_executable_extensions; do
1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 break 2
1679 done
1680 done
1684 CC=$ac_cv_prog_CC
1685 if test -n "$CC"; then
1686 echo "$as_me:$LINENO: result: $CC" >&5
1687 echo "${ECHO_T}$CC" >&6
1688 else
1689 echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1693 test -n "$CC" && break
1694 done
1696 if test -z "$CC"; then
1697 ac_ct_CC=$CC
1698 for ac_prog in cl
1700 # Extract the first word of "$ac_prog", so it can be a program name with args.
1701 set dummy $ac_prog; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707 if test -n "$ac_ct_CC"; then
1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1709 else
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 ac_cv_prog_ac_ct_CC="$ac_prog"
1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719 break 2
1721 done
1722 done
1726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1727 if test -n "$ac_ct_CC"; then
1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1729 echo "${ECHO_T}$ac_ct_CC" >&6
1730 else
1731 echo "$as_me:$LINENO: result: no" >&5
1732 echo "${ECHO_T}no" >&6
1735 test -n "$ac_ct_CC" && break
1736 done
1738 CC=$ac_ct_CC
1744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1745 See \`config.log' for more details." >&5
1746 echo "$as_me: error: no acceptable C compiler found in \$PATH
1747 See \`config.log' for more details." >&2;}
1748 { (exit 1); exit 1; }; }
1750 # Provide some information about the compiler.
1751 echo "$as_me:$LINENO:" \
1752 "checking for C compiler version" >&5
1753 ac_compiler=`set X $ac_compile; echo $2`
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1755 (eval $ac_compiler --version </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1760 (eval $ac_compiler -v </dev/null >&5) 2>&5
1761 ac_status=$?
1762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763 (exit $ac_status); }
1764 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1765 (eval $ac_compiler -V </dev/null >&5) 2>&5
1766 ac_status=$?
1767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768 (exit $ac_status); }
1770 cat >conftest.$ac_ext <<_ACEOF
1771 /* confdefs.h. */
1772 _ACEOF
1773 cat confdefs.h >>conftest.$ac_ext
1774 cat >>conftest.$ac_ext <<_ACEOF
1775 /* end confdefs.h. */
1778 main ()
1782 return 0;
1784 _ACEOF
1785 ac_clean_files_save=$ac_clean_files
1786 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1787 # Try to create an executable without -o first, disregard a.out.
1788 # It will help us diagnose broken compilers, and finding out an intuition
1789 # of exeext.
1790 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1791 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1792 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1793 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1794 (eval $ac_link_default) 2>&5
1795 ac_status=$?
1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1797 (exit $ac_status); }; then
1798 # Find the output, starting from the most likely. This scheme is
1799 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1800 # resort.
1802 # Be careful to initialize this variable, since it used to be cached.
1803 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1804 ac_cv_exeext=
1805 # b.out is created by i960 compilers.
1806 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1808 test -f "$ac_file" || continue
1809 case $ac_file in
1810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1812 conftest.$ac_ext )
1813 # This is the source file.
1815 [ab].out )
1816 # We found the default executable, but exeext='' is most
1817 # certainly right.
1818 break;;
1819 *.* )
1820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1821 # FIXME: I believe we export ac_cv_exeext for Libtool,
1822 # but it would be cool to find out if it's true. Does anybody
1823 # maintain Libtool? --akim.
1824 export ac_cv_exeext
1825 break;;
1827 break;;
1828 esac
1829 done
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1834 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1835 See \`config.log' for more details." >&5
1836 echo "$as_me: error: C compiler cannot create executables
1837 See \`config.log' for more details." >&2;}
1838 { (exit 77); exit 77; }; }
1841 ac_exeext=$ac_cv_exeext
1842 echo "$as_me:$LINENO: result: $ac_file" >&5
1843 echo "${ECHO_T}$ac_file" >&6
1845 # Check the compiler produces executables we can run. If not, either
1846 # the compiler is broken, or we cross compile.
1847 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1848 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1849 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1850 # If not cross compiling, check that we can run a simple program.
1851 if test "$cross_compiling" != yes; then
1852 if { ac_try='./$ac_file'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 cross_compiling=no
1859 else
1860 if test "$cross_compiling" = maybe; then
1861 cross_compiling=yes
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&5
1866 echo "$as_me: error: cannot run C compiled programs.
1867 If you meant to cross compile, use \`--host'.
1868 See \`config.log' for more details." >&2;}
1869 { (exit 1); exit 1; }; }
1873 echo "$as_me:$LINENO: result: yes" >&5
1874 echo "${ECHO_T}yes" >&6
1876 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1877 ac_clean_files=$ac_clean_files_save
1878 # Check the compiler produces executables we can run. If not, either
1879 # the compiler is broken, or we cross compile.
1880 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1881 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1882 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1883 echo "${ECHO_T}$cross_compiling" >&6
1885 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1886 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1888 (eval $ac_link) 2>&5
1889 ac_status=$?
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); }; then
1892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1894 # work properly (i.e., refer to `conftest.exe'), while it won't with
1895 # `rm'.
1896 for ac_file in conftest.exe conftest conftest.*; do
1897 test -f "$ac_file" || continue
1898 case $ac_file in
1899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1901 export ac_cv_exeext
1902 break;;
1903 * ) break;;
1904 esac
1905 done
1906 else
1907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1908 See \`config.log' for more details." >&5
1909 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1910 See \`config.log' for more details." >&2;}
1911 { (exit 1); exit 1; }; }
1914 rm -f conftest$ac_cv_exeext
1915 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1916 echo "${ECHO_T}$ac_cv_exeext" >&6
1918 rm -f conftest.$ac_ext
1919 EXEEXT=$ac_cv_exeext
1920 ac_exeext=$EXEEXT
1921 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1922 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1923 if test "${ac_cv_objext+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926 cat >conftest.$ac_ext <<_ACEOF
1927 /* confdefs.h. */
1928 _ACEOF
1929 cat confdefs.h >>conftest.$ac_ext
1930 cat >>conftest.$ac_ext <<_ACEOF
1931 /* end confdefs.h. */
1934 main ()
1938 return 0;
1940 _ACEOF
1941 rm -f conftest.o conftest.obj
1942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1943 (eval $ac_compile) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; then
1947 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1948 case $ac_file in
1949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1951 break;;
1952 esac
1953 done
1954 else
1955 echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1961 See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1967 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1968 echo "${ECHO_T}$ac_cv_objext" >&6
1969 OBJEXT=$ac_cv_objext
1970 ac_objext=$OBJEXT
1971 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 cat >conftest.$ac_ext <<_ACEOF
1977 /* confdefs.h. */
1978 _ACEOF
1979 cat confdefs.h >>conftest.$ac_ext
1980 cat >>conftest.$ac_ext <<_ACEOF
1981 /* end confdefs.h. */
1984 main ()
1986 #ifndef __GNUC__
1987 choke me
1988 #endif
1991 return 0;
1993 _ACEOF
1994 rm -f conftest.$ac_objext
1995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1996 (eval $ac_compile) 2>conftest.er1
1997 ac_status=$?
1998 grep -v '^ *+' conftest.er1 >conftest.err
1999 rm -f conftest.er1
2000 cat conftest.err >&5
2001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2002 (exit $ac_status); } &&
2003 { ac_try='test -z "$ac_c_werror_flag"
2004 || test ! -s conftest.err'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; } &&
2010 { ac_try='test -s conftest.$ac_objext'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; }; then
2016 ac_compiler_gnu=yes
2017 else
2018 echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_compiler_gnu=no
2023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2027 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2028 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2029 GCC=`test $ac_compiler_gnu = yes && echo yes`
2030 ac_test_CFLAGS=${CFLAGS+set}
2031 ac_save_CFLAGS=$CFLAGS
2032 CFLAGS="-g"
2033 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2035 if test "${ac_cv_prog_cc_g+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 else
2038 cat >conftest.$ac_ext <<_ACEOF
2039 /* confdefs.h. */
2040 _ACEOF
2041 cat confdefs.h >>conftest.$ac_ext
2042 cat >>conftest.$ac_ext <<_ACEOF
2043 /* end confdefs.h. */
2046 main ()
2050 return 0;
2052 _ACEOF
2053 rm -f conftest.$ac_objext
2054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2055 (eval $ac_compile) 2>conftest.er1
2056 ac_status=$?
2057 grep -v '^ *+' conftest.er1 >conftest.err
2058 rm -f conftest.er1
2059 cat conftest.err >&5
2060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061 (exit $ac_status); } &&
2062 { ac_try='test -z "$ac_c_werror_flag"
2063 || test ! -s conftest.err'
2064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 (eval $ac_try) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }; } &&
2069 { ac_try='test -s conftest.$ac_objext'
2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2071 (eval $ac_try) 2>&5
2072 ac_status=$?
2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074 (exit $ac_status); }; }; then
2075 ac_cv_prog_cc_g=yes
2076 else
2077 echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_cv_prog_cc_g=no
2082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2084 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2086 if test "$ac_test_CFLAGS" = set; then
2087 CFLAGS=$ac_save_CFLAGS
2088 elif test $ac_cv_prog_cc_g = yes; then
2089 if test "$GCC" = yes; then
2090 CFLAGS="-g -O2"
2091 else
2092 CFLAGS="-g"
2094 else
2095 if test "$GCC" = yes; then
2096 CFLAGS="-O2"
2097 else
2098 CFLAGS=
2101 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2102 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2103 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 else
2106 ac_cv_prog_cc_stdc=no
2107 ac_save_CC=$CC
2108 cat >conftest.$ac_ext <<_ACEOF
2109 /* confdefs.h. */
2110 _ACEOF
2111 cat confdefs.h >>conftest.$ac_ext
2112 cat >>conftest.$ac_ext <<_ACEOF
2113 /* end confdefs.h. */
2114 #include <stdarg.h>
2115 #include <stdio.h>
2116 #include <sys/types.h>
2117 #include <sys/stat.h>
2118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2119 struct buf { int x; };
2120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2121 static char *e (p, i)
2122 char **p;
2123 int i;
2125 return p[i];
2127 static char *f (char * (*g) (char **, int), char **p, ...)
2129 char *s;
2130 va_list v;
2131 va_start (v,p);
2132 s = g (p, va_arg (v,int));
2133 va_end (v);
2134 return s;
2137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2138 function prototypes and stuff, but not '\xHH' hex character constants.
2139 These don't provoke an error unfortunately, instead are silently treated
2140 as 'x'. The following induces an error, until -std1 is added to get
2141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2142 array size at least. It's necessary to write '\x00'==0 to get something
2143 that's true only with -std1. */
2144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2146 int test (int i, double x);
2147 struct s1 {int (*f) (int a);};
2148 struct s2 {int (*f) (double a);};
2149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2150 int argc;
2151 char **argv;
2153 main ()
2155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2157 return 0;
2159 _ACEOF
2160 # Don't try gcc -ansi; that turns off useful extensions and
2161 # breaks some systems' header files.
2162 # AIX -qlanglvl=ansi
2163 # Ultrix and OSF/1 -std1
2164 # HP-UX 10.20 and later -Ae
2165 # HP-UX older versions -Aa -D_HPUX_SOURCE
2166 # SVR4 -Xc -D__EXTENSIONS__
2167 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2169 CC="$ac_save_CC $ac_arg"
2170 rm -f conftest.$ac_objext
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>conftest.er1
2173 ac_status=$?
2174 grep -v '^ *+' conftest.er1 >conftest.err
2175 rm -f conftest.er1
2176 cat conftest.err >&5
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } &&
2179 { ac_try='test -z "$ac_c_werror_flag"
2180 || test ! -s conftest.err'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 ac_cv_prog_cc_stdc=$ac_arg
2193 break
2194 else
2195 echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2199 rm -f conftest.err conftest.$ac_objext
2200 done
2201 rm -f conftest.$ac_ext conftest.$ac_objext
2202 CC=$ac_save_CC
2206 case "x$ac_cv_prog_cc_stdc" in
2207 x|xno)
2208 echo "$as_me:$LINENO: result: none needed" >&5
2209 echo "${ECHO_T}none needed" >&6 ;;
2211 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2212 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2213 CC="$CC $ac_cv_prog_cc_stdc" ;;
2214 esac
2216 # Some people use a C++ compiler to compile C. Since we use `exit',
2217 # in C++ we need to declare it. In case someone uses the same compiler
2218 # for both compiling C and C++ we need to have the C++ compiler decide
2219 # the declaration of exit, since it's the most demanding environment.
2220 cat >conftest.$ac_ext <<_ACEOF
2221 #ifndef __cplusplus
2222 choke me
2223 #endif
2224 _ACEOF
2225 rm -f conftest.$ac_objext
2226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>conftest.er1
2228 ac_status=$?
2229 grep -v '^ *+' conftest.er1 >conftest.err
2230 rm -f conftest.er1
2231 cat conftest.err >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -z "$ac_c_werror_flag"
2235 || test ! -s conftest.err'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; } &&
2241 { ac_try='test -s conftest.$ac_objext'
2242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 (eval $ac_try) 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 for ac_declaration in \
2248 '' \
2249 'extern "C" void std::exit (int) throw (); using std::exit;' \
2250 'extern "C" void std::exit (int); using std::exit;' \
2251 'extern "C" void exit (int) throw ();' \
2252 'extern "C" void exit (int);' \
2253 'void exit (int);'
2255 cat >conftest.$ac_ext <<_ACEOF
2256 /* confdefs.h. */
2257 _ACEOF
2258 cat confdefs.h >>conftest.$ac_ext
2259 cat >>conftest.$ac_ext <<_ACEOF
2260 /* end confdefs.h. */
2261 $ac_declaration
2262 #include <stdlib.h>
2264 main ()
2266 exit (42);
2268 return 0;
2270 _ACEOF
2271 rm -f conftest.$ac_objext
2272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2273 (eval $ac_compile) 2>conftest.er1
2274 ac_status=$?
2275 grep -v '^ *+' conftest.er1 >conftest.err
2276 rm -f conftest.er1
2277 cat conftest.err >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -z "$ac_c_werror_flag"
2281 || test ! -s conftest.err'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; } &&
2287 { ac_try='test -s conftest.$ac_objext'
2288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2289 (eval $ac_try) 2>&5
2290 ac_status=$?
2291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292 (exit $ac_status); }; }; then
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2298 continue
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2307 $ac_declaration
2309 main ()
2311 exit (42);
2313 return 0;
2315 _ACEOF
2316 rm -f conftest.$ac_objext
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>conftest.er1
2319 ac_status=$?
2320 grep -v '^ *+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
2325 { ac_try='test -z "$ac_c_werror_flag"
2326 || test ! -s conftest.err'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 break
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2345 done
2346 rm -f conftest*
2347 if test -n "$ac_declaration"; then
2348 echo '#ifdef __cplusplus' >>confdefs.h
2349 echo $ac_declaration >>confdefs.h
2350 echo '#endif' >>confdefs.h
2353 else
2354 echo "$as_me: failed program was:" >&5
2355 sed 's/^/| /' conftest.$ac_ext >&5
2358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2359 ac_ext=c
2360 ac_cpp='$CPP $CPPFLAGS'
2361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2366 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2367 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2368 if test "${ac_cv_search_strerror+set}" = set; then
2369 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 else
2371 ac_func_search_save_LIBS=$LIBS
2372 ac_cv_search_strerror=no
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2380 /* Override any gcc2 internal prototype to avoid an error. */
2381 #ifdef __cplusplus
2382 extern "C"
2383 #endif
2384 /* We use char because int might match the return type of a gcc2
2385 builtin and then its argument prototype would still apply. */
2386 char strerror ();
2388 main ()
2390 strerror ();
2392 return 0;
2394 _ACEOF
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2397 (eval $ac_link) 2>conftest.er1
2398 ac_status=$?
2399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest$ac_exeext'
2412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 ac_cv_search_strerror="none required"
2418 else
2419 echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2423 rm -f conftest.err conftest.$ac_objext \
2424 conftest$ac_exeext conftest.$ac_ext
2425 if test "$ac_cv_search_strerror" = no; then
2426 for ac_lib in cposix; do
2427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2428 cat >conftest.$ac_ext <<_ACEOF
2429 /* confdefs.h. */
2430 _ACEOF
2431 cat confdefs.h >>conftest.$ac_ext
2432 cat >>conftest.$ac_ext <<_ACEOF
2433 /* end confdefs.h. */
2435 /* Override any gcc2 internal prototype to avoid an error. */
2436 #ifdef __cplusplus
2437 extern "C"
2438 #endif
2439 /* We use char because int might match the return type of a gcc2
2440 builtin and then its argument prototype would still apply. */
2441 char strerror ();
2443 main ()
2445 strerror ();
2447 return 0;
2449 _ACEOF
2450 rm -f conftest.$ac_objext conftest$ac_exeext
2451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2452 (eval $ac_link) 2>conftest.er1
2453 ac_status=$?
2454 grep -v '^ *+' conftest.er1 >conftest.err
2455 rm -f conftest.er1
2456 cat conftest.err >&5
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); } &&
2459 { ac_try='test -z "$ac_c_werror_flag"
2460 || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462 (eval $ac_try) 2>&5
2463 ac_status=$?
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest$ac_exeext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 ac_cv_search_strerror="-l$ac_lib"
2473 break
2474 else
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2479 rm -f conftest.err conftest.$ac_objext \
2480 conftest$ac_exeext conftest.$ac_ext
2481 done
2483 LIBS=$ac_func_search_save_LIBS
2485 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2486 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2487 if test "$ac_cv_search_strerror" != no; then
2488 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2493 am__api_version="1.9"
2494 # Find a good install program. We prefer a C program (faster),
2495 # so one script is as good as another. But avoid the broken or
2496 # incompatible versions:
2497 # SysV /etc/install, /usr/sbin/install
2498 # SunOS /usr/etc/install
2499 # IRIX /sbin/install
2500 # AIX /bin/install
2501 # AmigaOS /C/install, which installs bootblocks on floppy discs
2502 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2503 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2504 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2505 # OS/2's system install, which has a completely different semantic
2506 # ./install, which can be erroneously created by make from ./install.sh.
2507 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2508 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2509 if test -z "$INSTALL"; then
2510 if test "${ac_cv_path_install+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519 case $as_dir/ in
2520 ./ | .// | /cC/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2523 /usr/ucb/* ) ;;
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2531 if test $ac_prog = install &&
2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # AIX install. It has an incompatible calling convention.
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2539 else
2540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541 break 3
2544 done
2545 done
2547 esac
2548 done
2552 if test "${ac_cv_path_install+set}" = set; then
2553 INSTALL=$ac_cv_path_install
2554 else
2555 # As a last resort, use the slow shell script. We don't cache a
2556 # path for INSTALL within a source directory, because that will
2557 # break other packages using the cache if that directory is
2558 # removed, or if the path is relative.
2559 INSTALL=$ac_install_sh
2562 echo "$as_me:$LINENO: result: $INSTALL" >&5
2563 echo "${ECHO_T}$INSTALL" >&6
2565 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2566 # It thinks the first close brace ends the variable substitution.
2567 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2569 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2571 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2573 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2574 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2575 # Just in case
2576 sleep 1
2577 echo timestamp > conftest.file
2578 # Do `set' in a subshell so we don't clobber the current shell's
2579 # arguments. Must try -L first in case configure is actually a
2580 # symlink; some systems play weird games with the mod time of symlinks
2581 # (eg FreeBSD returns the mod time of the symlink's containing
2582 # directory).
2583 if (
2584 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2585 if test "$*" = "X"; then
2586 # -L didn't work.
2587 set X `ls -t $srcdir/configure conftest.file`
2589 rm -f conftest.file
2590 if test "$*" != "X $srcdir/configure conftest.file" \
2591 && test "$*" != "X conftest.file $srcdir/configure"; then
2593 # If neither matched, then we have a broken ls. This can happen
2594 # if, for instance, CONFIG_SHELL is bash and it inherits a
2595 # broken ls alias from the environment. This has actually
2596 # happened. Such a system could not be considered "sane".
2597 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2598 alias in your environment" >&5
2599 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2600 alias in your environment" >&2;}
2601 { (exit 1); exit 1; }; }
2604 test "$2" = conftest.file
2606 then
2607 # Ok.
2609 else
2610 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2611 Check your system clock" >&5
2612 echo "$as_me: error: newly created file is older than distributed files!
2613 Check your system clock" >&2;}
2614 { (exit 1); exit 1; }; }
2616 echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6
2618 test "$program_prefix" != NONE &&
2619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2620 # Use a double $ so make ignores it.
2621 test "$program_suffix" != NONE &&
2622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2623 # Double any \ or $. echo might interpret backslashes.
2624 # By default was `s,x,x', remove it if useless.
2625 cat <<\_ACEOF >conftest.sed
2626 s/[\\$]/&&/g;s/;s,x,x,$//
2627 _ACEOF
2628 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2629 rm conftest.sed
2631 # expand $ac_aux_dir to an absolute path
2632 am_aux_dir=`cd $ac_aux_dir && pwd`
2634 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2635 # Use eval to expand $SHELL
2636 if eval "$MISSING --run true"; then
2637 am_missing_run="$MISSING --run "
2638 else
2639 am_missing_run=
2640 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2641 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2645 # We used to keeping the `.' as first argument, in order to
2646 # allow $(mkdir_p) to be used without argument. As in
2647 # $(mkdir_p) $(somedir)
2648 # where $(somedir) is conditionally defined. However this is wrong
2649 # for two reasons:
2650 # 1. if the package is installed by a user who cannot write `.'
2651 # make install will fail,
2652 # 2. the above comment should most certainly read
2653 # $(mkdir_p) $(DESTDIR)$(somedir)
2654 # so it does not work when $(somedir) is undefined and
2655 # $(DESTDIR) is not.
2656 # To support the latter case, we have to write
2657 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2658 # so the `.' trick is pointless.
2659 mkdir_p='mkdir -p --'
2660 else
2661 # On NextStep and OpenStep, the `mkdir' command does not
2662 # recognize any option. It will interpret all options as
2663 # directories to create, and then abort because `.' already
2664 # exists.
2665 for d in ./-p ./--version;
2667 test -d $d && rmdir $d
2668 done
2669 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2670 if test -f "$ac_aux_dir/mkinstalldirs"; then
2671 mkdir_p='$(mkinstalldirs)'
2672 else
2673 mkdir_p='$(install_sh) -d'
2677 for ac_prog in gawk mawk nawk awk
2679 # Extract the first word of "$ac_prog", so it can be a program name with args.
2680 set dummy $ac_prog; ac_word=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_prog_AWK+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 if test -n "$AWK"; then
2687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2696 ac_cv_prog_AWK="$ac_prog"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698 break 2
2700 done
2701 done
2705 AWK=$ac_cv_prog_AWK
2706 if test -n "$AWK"; then
2707 echo "$as_me:$LINENO: result: $AWK" >&5
2708 echo "${ECHO_T}$AWK" >&6
2709 else
2710 echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6
2714 test -n "$AWK" && break
2715 done
2717 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2718 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2719 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2720 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 cat >conftest.make <<\_ACEOF
2724 all:
2725 @echo 'ac_maketemp="$(MAKE)"'
2726 _ACEOF
2727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2728 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2729 if test -n "$ac_maketemp"; then
2730 eval ac_cv_prog_make_${ac_make}_set=yes
2731 else
2732 eval ac_cv_prog_make_${ac_make}_set=no
2734 rm -f conftest.make
2736 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2737 echo "$as_me:$LINENO: result: yes" >&5
2738 echo "${ECHO_T}yes" >&6
2739 SET_MAKE=
2740 else
2741 echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6
2743 SET_MAKE="MAKE=${MAKE-make}"
2746 rm -rf .tst 2>/dev/null
2747 mkdir .tst 2>/dev/null
2748 if test -d .tst; then
2749 am__leading_dot=.
2750 else
2751 am__leading_dot=_
2753 rmdir .tst 2>/dev/null
2755 DEPDIR="${am__leading_dot}deps"
2757 ac_config_commands="$ac_config_commands depfiles"
2760 am_make=${MAKE-make}
2761 cat > confinc << 'END'
2762 am__doit:
2763 @echo done
2764 .PHONY: am__doit
2766 # If we don't find an include directive, just comment out the code.
2767 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2768 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2769 am__include="#"
2770 am__quote=
2771 _am_result=none
2772 # First try GNU make style include.
2773 echo "include confinc" > confmf
2774 # We grep out `Entering directory' and `Leaving directory'
2775 # messages which can occur if `w' ends up in MAKEFLAGS.
2776 # In particular we don't look at `^make:' because GNU make might
2777 # be invoked under some other name (usually "gmake"), in which
2778 # case it prints its new name instead of `make'.
2779 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2780 am__include=include
2781 am__quote=
2782 _am_result=GNU
2784 # Now try BSD make style include.
2785 if test "$am__include" = "#"; then
2786 echo '.include "confinc"' > confmf
2787 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2788 am__include=.include
2789 am__quote="\""
2790 _am_result=BSD
2795 echo "$as_me:$LINENO: result: $_am_result" >&5
2796 echo "${ECHO_T}$_am_result" >&6
2797 rm -f confinc confmf
2799 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2800 if test "${enable_dependency_tracking+set}" = set; then
2801 enableval="$enable_dependency_tracking"
2804 if test "x$enable_dependency_tracking" != xno; then
2805 am_depcomp="$ac_aux_dir/depcomp"
2806 AMDEPBACKSLASH='\'
2810 if test "x$enable_dependency_tracking" != xno; then
2811 AMDEP_TRUE=
2812 AMDEP_FALSE='#'
2813 else
2814 AMDEP_TRUE='#'
2815 AMDEP_FALSE=
2820 # test to see if srcdir already configured
2821 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2822 test -f $srcdir/config.status; then
2823 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2824 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2825 { (exit 1); exit 1; }; }
2828 # test whether we have cygpath
2829 if test -z "$CYGPATH_W"; then
2830 if (cygpath --version) >/dev/null 2>/dev/null; then
2831 CYGPATH_W='cygpath -w'
2832 else
2833 CYGPATH_W=echo
2838 # Define the identity of the package.
2839 PACKAGE=bfd
2840 VERSION=2.17
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE "$PACKAGE"
2845 _ACEOF
2848 cat >>confdefs.h <<_ACEOF
2849 #define VERSION "$VERSION"
2850 _ACEOF
2852 # Some tools Automake needs.
2854 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2857 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2860 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2863 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2866 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2868 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2870 # Installed binaries are usually stripped using `strip' when the user
2871 # run `make install-strip'. However `strip' might not be the right
2872 # tool to use in cross-compilation environments, therefore Automake
2873 # will honor the `STRIP' environment variable to overrule this program.
2874 if test "$cross_compiling" != no; then
2875 if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2877 set dummy ${ac_tool_prefix}strip; ac_word=$2
2878 echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2880 if test "${ac_cv_prog_STRIP+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 if test -n "$STRIP"; then
2884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 break 2
2897 done
2898 done
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 echo "$as_me:$LINENO: result: $STRIP" >&5
2905 echo "${ECHO_T}$STRIP" >&6
2906 else
2907 echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2912 if test -z "$ac_cv_prog_STRIP"; then
2913 ac_ct_STRIP=$STRIP
2914 # Extract the first word of "strip", so it can be a program name with args.
2915 set dummy strip; ac_word=$2
2916 echo "$as_me:$LINENO: checking for $ac_word" >&5
2917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2918 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 else
2921 if test -n "$ac_ct_STRIP"; then
2922 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931 ac_cv_prog_ac_ct_STRIP="strip"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2938 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2941 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2942 if test -n "$ac_ct_STRIP"; then
2943 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2944 echo "${ECHO_T}$ac_ct_STRIP" >&6
2945 else
2946 echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2950 STRIP=$ac_ct_STRIP
2951 else
2952 STRIP="$ac_cv_prog_STRIP"
2956 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2958 # We need awk for the "check" target. The system "awk" is bad on
2959 # some platforms.
2960 # Always define AMTAR for backward compatibility.
2962 AMTAR=${AMTAR-"${am_missing_run}tar"}
2964 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2969 depcc="$CC" am_compiler_list=
2971 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2972 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2973 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2977 # We make a subdir and do the tests there. Otherwise we can end up
2978 # making bogus files that we don't know about and never remove. For
2979 # instance it was reported that on HP-UX the gcc test will end up
2980 # making a dummy file named `D' -- because `-MD' means `put the output
2981 # in D'.
2982 mkdir conftest.dir
2983 # Copy depcomp to subdir because otherwise we won't find it if we're
2984 # using a relative directory.
2985 cp "$am_depcomp" conftest.dir
2986 cd conftest.dir
2987 # We will build objects and dependencies in a subdirectory because
2988 # it helps to detect inapplicable dependency modes. For instance
2989 # both Tru64's cc and ICC support -MD to output dependencies as a
2990 # side effect of compilation, but ICC will put the dependencies in
2991 # the current directory while Tru64 will put them in the object
2992 # directory.
2993 mkdir sub
2995 am_cv_CC_dependencies_compiler_type=none
2996 if test "$am_compiler_list" = ""; then
2997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2999 for depmode in $am_compiler_list; do
3000 # Setup a source with many dependencies, because some compilers
3001 # like to wrap large dependency lists on column 80 (with \), and
3002 # we should not choose a depcomp mode which is confused by this.
3004 # We need to recreate these files for each test, as the compiler may
3005 # overwrite some of them when testing with obscure command lines.
3006 # This happens at least with the AIX C compiler.
3007 : > sub/conftest.c
3008 for i in 1 2 3 4 5 6; do
3009 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3010 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3011 # Solaris 8's {/usr,}/bin/sh.
3012 touch sub/conftst$i.h
3013 done
3014 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3016 case $depmode in
3017 nosideeffect)
3018 # after this tag, mechanisms are not by side-effect, so they'll
3019 # only be used when explicitly requested
3020 if test "x$enable_dependency_tracking" = xyes; then
3021 continue
3022 else
3023 break
3026 none) break ;;
3027 esac
3028 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3029 # mode. It turns out that the SunPro C++ compiler does not properly
3030 # handle `-M -o', and we need to detect this.
3031 if depmode=$depmode \
3032 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3033 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3034 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3035 >/dev/null 2>conftest.err &&
3036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3037 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3039 # icc doesn't choke on unknown options, it will just issue warnings
3040 # or remarks (even with -Werror). So we grep stderr for any message
3041 # that says an option was ignored or not supported.
3042 # When given -MP, icc 7.0 and 7.1 complain thusly:
3043 # icc: Command line warning: ignoring option '-M'; no argument required
3044 # The diagnosis changed in icc 8.0:
3045 # icc: Command line remark: option '-MP' not supported
3046 if (grep 'ignoring option' conftest.err ||
3047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3048 am_cv_CC_dependencies_compiler_type=$depmode
3049 break
3052 done
3054 cd ..
3055 rm -rf conftest.dir
3056 else
3057 am_cv_CC_dependencies_compiler_type=none
3061 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3062 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3068 test "x$enable_dependency_tracking" != xno \
3069 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3070 am__fastdepCC_TRUE=
3071 am__fastdepCC_FALSE='#'
3072 else
3073 am__fastdepCC_TRUE='#'
3074 am__fastdepCC_FALSE=
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}ar; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_AR+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -n "$AR"; then
3089 ac_cv_prog_AR="$AR" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_AR="${ac_tool_prefix}ar"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3102 done
3103 done
3107 AR=$ac_cv_prog_AR
3108 if test -n "$AR"; then
3109 echo "$as_me:$LINENO: result: $AR" >&5
3110 echo "${ECHO_T}$AR" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3117 if test -z "$ac_cv_prog_AR"; then
3118 ac_ct_AR=$AR
3119 # Extract the first word of "ar", so it can be a program name with args.
3120 set dummy ar; ac_word=$2
3121 echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 if test -n "$ac_ct_AR"; then
3127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_AR="ar"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3140 done
3141 done
3145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3146 if test -n "$ac_ct_AR"; then
3147 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3148 echo "${ECHO_T}$ac_ct_AR" >&6
3149 else
3150 echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3154 AR=$ac_ct_AR
3155 else
3156 AR="$ac_cv_prog_AR"
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3162 echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_RANLIB+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3186 RANLIB=$ac_cv_prog_RANLIB
3187 if test -n "$RANLIB"; then
3188 echo "$as_me:$LINENO: result: $RANLIB" >&5
3189 echo "${ECHO_T}$RANLIB" >&6
3190 else
3191 echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3196 if test -z "$ac_cv_prog_RANLIB"; then
3197 ac_ct_RANLIB=$RANLIB
3198 # Extract the first word of "ranlib", so it can be a program name with args.
3199 set dummy ranlib; ac_word=$2
3200 echo "$as_me:$LINENO: checking for $ac_word" >&5
3201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3202 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 if test -n "$ac_ct_RANLIB"; then
3206 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3215 ac_cv_prog_ac_ct_RANLIB="ranlib"
3216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3222 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3225 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3226 if test -n "$ac_ct_RANLIB"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3228 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 RANLIB=$ac_ct_RANLIB
3235 else
3236 RANLIB="$ac_cv_prog_RANLIB"
3240 # Check whether --enable-shared or --disable-shared was given.
3241 if test "${enable_shared+set}" = set; then
3242 enableval="$enable_shared"
3243 p=${PACKAGE-default}
3244 case $enableval in
3245 yes) enable_shared=yes ;;
3246 no) enable_shared=no ;;
3248 enable_shared=no
3249 # Look at the argument we got. We use all the common list separators.
3250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3251 for pkg in $enableval; do
3252 if test "X$pkg" = "X$p"; then
3253 enable_shared=yes
3255 done
3256 IFS="$ac_save_ifs"
3258 esac
3259 else
3260 enable_shared=no
3263 # Check whether --enable-static or --disable-static was given.
3264 if test "${enable_static+set}" = set; then
3265 enableval="$enable_static"
3266 p=${PACKAGE-default}
3267 case $enableval in
3268 yes) enable_static=yes ;;
3269 no) enable_static=no ;;
3271 enable_static=no
3272 # Look at the argument we got. We use all the common list separators.
3273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3274 for pkg in $enableval; do
3275 if test "X$pkg" = "X$p"; then
3276 enable_static=yes
3278 done
3279 IFS="$ac_save_ifs"
3281 esac
3282 else
3283 enable_static=yes
3285 # Check whether --enable-fast-install or --disable-fast-install was given.
3286 if test "${enable_fast_install+set}" = set; then
3287 enableval="$enable_fast_install"
3288 p=${PACKAGE-default}
3289 case $enableval in
3290 yes) enable_fast_install=yes ;;
3291 no) enable_fast_install=no ;;
3293 enable_fast_install=no
3294 # Look at the argument we got. We use all the common list separators.
3295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3296 for pkg in $enableval; do
3297 if test "X$pkg" = "X$p"; then
3298 enable_fast_install=yes
3300 done
3301 IFS="$ac_save_ifs"
3303 esac
3304 else
3305 enable_fast_install=yes
3308 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3309 if test "${with_gnu_ld+set}" = set; then
3310 withval="$with_gnu_ld"
3311 test "$withval" = no || with_gnu_ld=yes
3312 else
3313 with_gnu_ld=no
3315 ac_prog=ld
3316 if test "$GCC" = yes; then
3317 # Check if gcc -print-prog-name=ld gives a path.
3318 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3319 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3320 case $host in
3321 *-*-mingw*)
3322 # gcc leaves a trailing carriage return which upsets mingw
3323 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3325 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3326 esac
3327 case $ac_prog in
3328 # Accept absolute paths.
3329 [\\/]* | [A-Za-z]:[\\/]*)
3330 re_direlt='/[^/][^/]*/\.\./'
3331 # Canonicalize the path of ld
3332 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3333 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3334 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3335 done
3336 test -z "$LD" && LD="$ac_prog"
3339 # If it fails, then pretend we aren't using GCC.
3340 ac_prog=ld
3343 # If it is relative, then search for the first ld in PATH.
3344 with_gnu_ld=unknown
3346 esac
3347 elif test "$with_gnu_ld" = yes; then
3348 echo "$as_me:$LINENO: checking for GNU ld" >&5
3349 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3350 else
3351 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3352 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3354 if test "${lt_cv_path_LD+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -z "$LD"; then
3358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3359 for ac_dir in $PATH; do
3360 test -z "$ac_dir" && ac_dir=.
3361 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3362 lt_cv_path_LD="$ac_dir/$ac_prog"
3363 # Check to see if the program is GNU ld. I'd rather use --version,
3364 # but apparently some GNU ld's only accept -v.
3365 # Break only if it was the GNU/non-GNU ld that we prefer.
3366 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3367 test "$with_gnu_ld" != no && break
3368 else
3369 test "$with_gnu_ld" != yes && break
3372 done
3373 IFS="$ac_save_ifs"
3374 else
3375 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3379 LD="$lt_cv_path_LD"
3380 if test -n "$LD"; then
3381 echo "$as_me:$LINENO: result: $LD" >&5
3382 echo "${ECHO_T}$LD" >&6
3383 else
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3387 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3388 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3389 { (exit 1); exit 1; }; }
3390 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3391 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3392 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3396 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3397 lt_cv_prog_gnu_ld=yes
3398 else
3399 lt_cv_prog_gnu_ld=no
3402 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3403 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3404 with_gnu_ld=$lt_cv_prog_gnu_ld
3407 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3408 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3409 if test "${lt_cv_ld_reload_flag+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 lt_cv_ld_reload_flag='-r'
3414 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3415 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3416 reload_flag=$lt_cv_ld_reload_flag
3417 test -n "$reload_flag" && reload_flag=" $reload_flag"
3419 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3420 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3421 if test "${lt_cv_path_NM+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$NM"; then
3425 # Let the user override the test.
3426 lt_cv_path_NM="$NM"
3427 else
3428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3429 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3430 test -z "$ac_dir" && ac_dir=.
3431 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3432 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3433 # Check to see if the nm accepts a BSD-compat flag.
3434 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3435 # nm: unknown option "B" ignored
3436 # Tru64's nm complains that /dev/null is an invalid object file
3437 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3438 lt_cv_path_NM="$tmp_nm -B"
3439 break
3440 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3441 lt_cv_path_NM="$tmp_nm -p"
3442 break
3443 else
3444 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3445 continue # so that we can try to find one that supports BSD flags
3448 done
3449 IFS="$ac_save_ifs"
3450 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3454 NM="$lt_cv_path_NM"
3455 echo "$as_me:$LINENO: result: $NM" >&5
3456 echo "${ECHO_T}$NM" >&6
3458 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3459 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3460 LN_S=$as_ln_s
3461 if test "$LN_S" = "ln -s"; then
3462 echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 else
3465 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3466 echo "${ECHO_T}no, using $LN_S" >&6
3469 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3470 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3471 if test "${lt_cv_deplibs_check_method+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 lt_cv_file_magic_cmd='$MAGIC_CMD'
3475 lt_cv_file_magic_test_file=
3476 lt_cv_deplibs_check_method='unknown'
3477 # Need to set the preceding variable on all platforms that support
3478 # interlibrary dependencies.
3479 # 'none' -- dependencies not supported.
3480 # `unknown' -- same as none, but documents that we really don't know.
3481 # 'pass_all' -- all dependencies passed with no checks.
3482 # 'test_compile' -- check by making test program.
3483 # 'file_magic [regex]' -- check by looking for files in library path
3484 # which responds to the $file_magic_cmd with a given egrep regex.
3485 # If you have `file' or equivalent on your system and you're not sure
3486 # whether `pass_all' will *always* work, you probably want this one.
3488 case $host_os in
3489 aix*)
3490 lt_cv_deplibs_check_method=pass_all
3493 beos*)
3494 lt_cv_deplibs_check_method=pass_all
3497 bsdi4*)
3498 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 lt_cv_file_magic_test_file=/shlib/libc.so
3503 cygwin* | mingw* |pw32*)
3504 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3505 lt_cv_file_magic_cmd='$OBJDUMP -f'
3508 darwin* | rhapsody*)
3509 # this will be overwritten by pass_all, but leave it in just in case
3510 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3511 lt_cv_file_magic_cmd='/usr/bin/file -L'
3512 case "$host_os" in
3513 rhapsody* | darwin1.012)
3514 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3516 *) # Darwin 1.3 on
3517 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3519 esac
3520 lt_cv_deplibs_check_method=pass_all
3523 freebsd* | kfreebsd*-gnu)
3524 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3525 case $host_cpu in
3526 i*86 )
3527 # Not sure whether the presence of OpenBSD here was a mistake.
3528 # Let's accept both of them until this is cleared up.
3529 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3530 lt_cv_file_magic_cmd=/usr/bin/file
3531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3533 esac
3534 else
3535 lt_cv_deplibs_check_method=pass_all
3539 gnu*)
3540 lt_cv_deplibs_check_method=pass_all
3543 hpux10.20*|hpux11*)
3544 case $host_cpu in
3545 hppa*)
3546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3547 lt_cv_file_magic_cmd=/usr/bin/file
3548 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3550 ia64*)
3551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3552 lt_cv_file_magic_cmd=/usr/bin/file
3553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3555 esac
3558 irix5* | irix6*)
3559 case $host_os in
3560 irix5*)
3561 # this will be overridden with pass_all, but let us keep it just in case
3562 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3565 case $LD in
3566 *-32|*"-32 ") libmagic=32-bit;;
3567 *-n32|*"-n32 ") libmagic=N32;;
3568 *-64|*"-64 ") libmagic=64-bit;;
3569 *) libmagic=never-match;;
3570 esac
3571 # this will be overridden with pass_all, but let us keep it just in case
3572 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3576 lt_cv_deplibs_check_method=pass_all
3579 # This must be Linux ELF.
3580 linux-gnu*)
3581 lt_cv_deplibs_check_method=pass_all
3584 netbsd* | knetbsd*-gnu)
3585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3586 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3587 else
3588 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3592 newsos6)
3593 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3594 lt_cv_file_magic_cmd=/usr/bin/file
3595 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3598 osf3* | osf4* | osf5*)
3599 # this will be overridden with pass_all, but let us keep it just in case
3600 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3601 lt_cv_file_magic_test_file=/shlib/libc.so
3602 lt_cv_deplibs_check_method=pass_all
3605 sco3.2v5*)
3606 lt_cv_deplibs_check_method=pass_all
3609 solaris*)
3610 lt_cv_deplibs_check_method=pass_all
3611 lt_cv_file_magic_test_file=/lib/libc.so
3614 sysv5uw[78]* | sysv4*uw2*)
3615 lt_cv_deplibs_check_method=pass_all
3618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3619 case $host_vendor in
3620 ncr)
3621 lt_cv_deplibs_check_method=pass_all
3623 motorola)
3624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3625 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3627 esac
3629 esac
3632 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3633 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3634 file_magic_cmd=$lt_cv_file_magic_cmd
3635 deplibs_check_method=$lt_cv_deplibs_check_method
3640 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3642 # find the maximum length of command line arguments
3643 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3644 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3645 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3649 teststring="ABCD"
3651 case $build_os in
3652 msdosdjgpp*)
3653 # On DJGPP, this test can blow up pretty badly due to problems in libc
3654 # (any single argument exceeding 2000 bytes causes a buffer overrun
3655 # during glob expansion). Even if it were fixed, the result of this
3656 # check would be larger than it should be.
3657 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3660 cygwin* | mingw*)
3661 # On Win9x/ME, this test blows up -- it succeeds, but takes
3662 # about 5 minutes as the teststring grows exponentially.
3663 # Worse, since 9x/ME are not pre-emptively multitasking,
3664 # you end up with a "frozen" computer, even though with patience
3665 # the test eventually succeeds (with a max line length of 256k).
3666 # Instead, let's just punt: use the minimum linelength reported by
3667 # all of the supported platforms: 8192 (on NT/2K/XP).
3668 lt_cv_sys_max_cmd_len=8192;
3671 amigaos*)
3672 # On AmigaOS with pdksh, this test takes hours, literally.
3673 # So we just punt and use a minimum line length of 8192.
3674 lt_cv_sys_max_cmd_len=8192;
3677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3678 # This has been around since 386BSD, at least. Likely further.
3679 if test -x /sbin/sysctl; then
3680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3681 elif test -x /usr/sbin/sysctl; then
3682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3683 else
3684 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3686 # And add a safety zone
3687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3690 esac
3694 if test -n "$lt_cv_sys_max_cmd_len" ; then
3695 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3696 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3697 else
3698 echo "$as_me:$LINENO: result: none" >&5
3699 echo "${ECHO_T}none" >&6
3703 # Only perform the check for file, if the check method requires it
3704 case $deplibs_check_method in
3705 file_magic*)
3706 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3707 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3708 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3709 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 else
3712 case $MAGIC_CMD in
3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3716 ?:/*)
3717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3720 ac_save_MAGIC_CMD="$MAGIC_CMD"
3721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3722 ac_dummy="/usr/bin:$PATH"
3723 for ac_dir in $ac_dummy; do
3724 test -z "$ac_dir" && ac_dir=.
3725 if test -f $ac_dir/${ac_tool_prefix}file; then
3726 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3727 if test -n "$file_magic_test_file"; then
3728 case $deplibs_check_method in
3729 "file_magic "*)
3730 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3733 egrep "$file_magic_regex" > /dev/null; then
3735 else
3736 cat <<EOF 1>&2
3738 *** Warning: the command libtool uses to detect shared libraries,
3739 *** $file_magic_cmd, produces output that libtool cannot recognize.
3740 *** The result is that libtool may fail to recognize shared libraries
3741 *** as such. This will affect the creation of libtool libraries that
3742 *** depend on shared libraries, but programs linked with such libtool
3743 *** libraries will work regardless of this problem. Nevertheless, you
3744 *** may want to report the problem to your system manager and/or to
3745 *** bug-libtool@gnu.org
3748 fi ;;
3749 esac
3751 break
3753 done
3754 IFS="$ac_save_ifs"
3755 MAGIC_CMD="$ac_save_MAGIC_CMD"
3757 esac
3760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3761 if test -n "$MAGIC_CMD"; then
3762 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3763 echo "${ECHO_T}$MAGIC_CMD" >&6
3764 else
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 if test -z "$lt_cv_path_MAGIC_CMD"; then
3770 if test -n "$ac_tool_prefix"; then
3771 echo "$as_me:$LINENO: checking for file" >&5
3772 echo $ECHO_N "checking for file... $ECHO_C" >&6
3773 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776 case $MAGIC_CMD in
3778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3780 ?:/*)
3781 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3784 ac_save_MAGIC_CMD="$MAGIC_CMD"
3785 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3786 ac_dummy="/usr/bin:$PATH"
3787 for ac_dir in $ac_dummy; do
3788 test -z "$ac_dir" && ac_dir=.
3789 if test -f $ac_dir/file; then
3790 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3791 if test -n "$file_magic_test_file"; then
3792 case $deplibs_check_method in
3793 "file_magic "*)
3794 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3796 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3797 egrep "$file_magic_regex" > /dev/null; then
3799 else
3800 cat <<EOF 1>&2
3802 *** Warning: the command libtool uses to detect shared libraries,
3803 *** $file_magic_cmd, produces output that libtool cannot recognize.
3804 *** The result is that libtool may fail to recognize shared libraries
3805 *** as such. This will affect the creation of libtool libraries that
3806 *** depend on shared libraries, but programs linked with such libtool
3807 *** libraries will work regardless of this problem. Nevertheless, you
3808 *** may want to report the problem to your system manager and/or to
3809 *** bug-libtool@gnu.org
3812 fi ;;
3813 esac
3815 break
3817 done
3818 IFS="$ac_save_ifs"
3819 MAGIC_CMD="$ac_save_MAGIC_CMD"
3821 esac
3824 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3825 if test -n "$MAGIC_CMD"; then
3826 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3827 echo "${ECHO_T}$MAGIC_CMD" >&6
3828 else
3829 echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6
3833 else
3834 MAGIC_CMD=:
3840 esac
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_prog_RANLIB+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850 if test -n "$RANLIB"; then
3851 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3852 else
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3869 RANLIB=$ac_cv_prog_RANLIB
3870 if test -n "$RANLIB"; then
3871 echo "$as_me:$LINENO: result: $RANLIB" >&5
3872 echo "${ECHO_T}$RANLIB" >&6
3873 else
3874 echo "$as_me:$LINENO: result: no" >&5
3875 echo "${ECHO_T}no" >&6
3879 if test -z "$ac_cv_prog_RANLIB"; then
3880 ac_ct_RANLIB=$RANLIB
3881 # Extract the first word of "ranlib", so it can be a program name with args.
3882 set dummy ranlib; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 if test -n "$ac_ct_RANLIB"; then
3889 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_prog_ac_ct_RANLIB="ranlib"
3899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3905 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3909 if test -n "$ac_ct_RANLIB"; then
3910 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3911 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3917 RANLIB=$ac_ct_RANLIB
3918 else
3919 RANLIB="$ac_cv_prog_RANLIB"
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3924 set dummy ${ac_tool_prefix}strip; ac_word=$2
3925 echo "$as_me:$LINENO: checking for $ac_word" >&5
3926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3927 if test "${ac_cv_prog_STRIP+set}" = set; then
3928 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930 if test -n "$STRIP"; then
3931 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3944 done
3945 done
3949 STRIP=$ac_cv_prog_STRIP
3950 if test -n "$STRIP"; then
3951 echo "$as_me:$LINENO: result: $STRIP" >&5
3952 echo "${ECHO_T}$STRIP" >&6
3953 else
3954 echo "$as_me:$LINENO: result: no" >&5
3955 echo "${ECHO_T}no" >&6
3959 if test -z "$ac_cv_prog_STRIP"; then
3960 ac_ct_STRIP=$STRIP
3961 # Extract the first word of "strip", so it can be a program name with args.
3962 set dummy strip; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 if test -n "$ac_ct_STRIP"; then
3969 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3970 else
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_ac_ct_STRIP="strip"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 break 2
3982 done
3983 done
3985 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3988 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3989 if test -n "$ac_ct_STRIP"; then
3990 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3991 echo "${ECHO_T}$ac_ct_STRIP" >&6
3992 else
3993 echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6
3997 STRIP=$ac_ct_STRIP
3998 else
3999 STRIP="$ac_cv_prog_STRIP"
4003 # Check for any special flags to pass to ltconfig.
4004 libtool_flags="--cache-file=$cache_file"
4005 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4006 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4007 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4008 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4009 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4012 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4013 if test "${enable_libtool_lock+set}" = set; then
4014 enableval="$enable_libtool_lock"
4017 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4018 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4021 # Check whether --with-pic or --without-pic was given.
4022 if test "${with_pic+set}" = set; then
4023 withval="$with_pic"
4024 pic_mode="$withval"
4025 else
4026 pic_mode=default
4028 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4029 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4031 # Some flags need to be propagated to the compiler or linker for good
4032 # libtool support.
4033 case $host in
4034 *-*-irix6*)
4035 # Find out which ABI we are using.
4036 echo '#line 4036 "configure"' > conftest.$ac_ext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4038 (eval $ac_compile) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; then
4042 if test "$lt_cv_prog_gnu_ld" = yes; then
4043 case `/usr/bin/file conftest.$ac_objext` in
4044 *32-bit*)
4045 LD="${LD-ld} -melf32bsmip"
4047 *N32*)
4048 LD="${LD-ld} -melf32bmipn32"
4050 *64-bit*)
4051 LD="${LD-ld} -melf64bmip"
4053 esac
4054 else
4055 case `/usr/bin/file conftest.$ac_objext` in
4056 *32-bit*)
4057 LD="${LD-ld} -32"
4059 *N32*)
4060 LD="${LD-ld} -n32"
4062 *64-bit*)
4063 LD="${LD-ld} -64"
4065 esac
4068 rm -rf conftest*
4071 ia64-*-hpux*)
4072 # Find out which ABI we are using.
4073 echo 'int i;' > conftest.$ac_ext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; then
4079 case "`/usr/bin/file conftest.o`" in
4080 *ELF-32*)
4081 HPUX_IA64_MODE="32"
4083 *ELF-64*)
4084 HPUX_IA64_MODE="64"
4086 esac
4088 rm -rf conftest*
4091 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4092 # Find out which ABI we are using.
4093 echo 'int i;' > conftest.$ac_ext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>&5
4096 ac_status=$?
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); }; then
4099 case "`/usr/bin/file conftest.o`" in
4100 *32-bit*)
4101 case $host in
4102 x86_64-*linux*)
4103 LD="${LD-ld} -m elf_i386"
4105 ppc64-*linux*|powerpc64-*linux*)
4106 LD="${LD-ld} -m elf32ppclinux"
4108 s390x-*linux*)
4109 LD="${LD-ld} -m elf_s390"
4111 sparc64-*linux*)
4112 LD="${LD-ld} -m elf32_sparc"
4114 esac
4116 *64-bit*)
4117 case $host in
4118 x86_64-*linux*)
4119 LD="${LD-ld} -m elf_x86_64"
4121 ppc*-*linux*|powerpc*-*linux*)
4122 LD="${LD-ld} -m elf64ppc"
4124 s390*-*linux*)
4125 LD="${LD-ld} -m elf64_s390"
4127 sparc*-*linux*)
4128 LD="${LD-ld} -m elf64_sparc"
4130 esac
4132 esac
4134 rm -rf conftest*
4137 *-*-sco3.2v5*)
4138 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4139 SAVE_CFLAGS="$CFLAGS"
4140 CFLAGS="$CFLAGS -belf"
4141 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4142 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4143 if test "${lt_cv_cc_needs_belf+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4148 ac_ext=c
4149 ac_cpp='$CPP $CPPFLAGS'
4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4162 main ()
4166 return 0;
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171 (eval $ac_link) 2>conftest.er1
4172 ac_status=$?
4173 grep -v '^ *+' conftest.er1 >conftest.err
4174 rm -f conftest.er1
4175 cat conftest.err >&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); } &&
4178 { ac_try='test -z "$ac_c_werror_flag"
4179 || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 (eval $ac_try) 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest$ac_exeext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4187 (eval $ac_try) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 lt_cv_cc_needs_belf=yes
4192 else
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 lt_cv_cc_needs_belf=no
4198 rm -f conftest.err conftest.$ac_objext \
4199 conftest$ac_exeext conftest.$ac_ext
4200 ac_ext=c
4201 ac_cpp='$CPP $CPPFLAGS'
4202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4208 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4209 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4210 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4211 CFLAGS="$SAVE_CFLAGS"
4216 esac
4219 # Save cache, so that ltconfig can load it
4220 cat >confcache <<\_ACEOF
4221 # This file is a shell script that caches the results of configure
4222 # tests run on this system so they can be shared between configure
4223 # scripts and configure runs, see configure's option --config-cache.
4224 # It is not useful on other systems. If it contains results you don't
4225 # want to keep, you may remove or edit it.
4227 # config.status only pays attention to the cache file if you give it
4228 # the --recheck option to rerun configure.
4230 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4231 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4232 # following values.
4234 _ACEOF
4236 # The following way of writing the cache mishandles newlines in values,
4237 # but we know of no workaround that is simple, portable, and efficient.
4238 # So, don't put newlines in cache variables' values.
4239 # Ultrix sh set writes to stderr and can't be redirected directly,
4240 # and sets the high bit in the cache file unless we assign to the vars.
4242 (set) 2>&1 |
4243 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4244 *ac_space=\ *)
4245 # `set' does not quote correctly, so add quotes (double-quote
4246 # substitution turns \\\\ into \\, and sed turns \\ into \).
4247 sed -n \
4248 "s/'/'\\\\''/g;
4249 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4252 # `set' quotes correctly as required by POSIX, so do not add quotes.
4253 sed -n \
4254 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4256 esac;
4258 sed '
4259 t clear
4260 : clear
4261 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 t end
4263 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 : end' >>confcache
4265 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4266 if test -w $cache_file; then
4267 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4268 cat confcache >$cache_file
4269 else
4270 echo "not updating unwritable cache $cache_file"
4273 rm -f confcache
4275 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4276 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4277 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4278 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4279 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4280 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4281 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4282 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4283 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4284 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4285 echo "$as_me: error: libtool configure failed" >&2;}
4286 { (exit 1); exit 1; }; }
4288 # Reload cache, that may have been modified by ltconfig
4289 if test -r "$cache_file"; then
4290 # Some versions of bash will fail to source /dev/null (special
4291 # files actually), so we avoid doing that.
4292 if test -f "$cache_file"; then
4293 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4294 echo "$as_me: loading cache $cache_file" >&6;}
4295 case $cache_file in
4296 [\\/]* | ?:[\\/]* ) . $cache_file;;
4297 *) . ./$cache_file;;
4298 esac
4300 else
4301 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4302 echo "$as_me: creating cache $cache_file" >&6;}
4303 >$cache_file
4307 # This can be used to rebuild libtool when needed
4308 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4310 # Always use our own libtool.
4311 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4313 # Redirect the config.log output again, so that the ltconfig log is not
4314 # clobbered by the next message.
4315 exec 5>>./config.log
4323 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4324 if test "${enable_64_bit_bfd+set}" = set; then
4325 enableval="$enable_64_bit_bfd"
4326 case "${enableval}" in
4327 yes) want64=true ;;
4328 no) want64=false ;;
4329 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4330 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4331 { (exit 1); exit 1; }; } ;;
4332 esac
4333 else
4334 want64=false
4335 fi; # Check whether --enable-targets or --disable-targets was given.
4336 if test "${enable_targets+set}" = set; then
4337 enableval="$enable_targets"
4338 case "${enableval}" in
4339 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4340 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4341 { (exit 1); exit 1; }; }
4343 no) enable_targets= ;;
4344 *) enable_targets=$enableval ;;
4345 esac
4346 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4347 if test "${enable_commonbfdlib+set}" = set; then
4348 enableval="$enable_commonbfdlib"
4349 case "${enableval}" in
4350 yes) commonbfdlib=true ;;
4351 no) commonbfdlib=false ;;
4352 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4353 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4355 esac
4357 # Check whether --with-mmap or --without-mmap was given.
4358 if test "${with_mmap+set}" = set; then
4359 withval="$with_mmap"
4360 case "${withval}" in
4361 yes) want_mmap=true ;;
4362 no) want_mmap=false ;;
4363 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4364 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4366 esac
4367 else
4368 want_mmap=false
4370 # Check whether --enable-secureplt or --disable-secureplt was given.
4371 if test "${enable_secureplt+set}" = set; then
4372 enableval="$enable_secureplt"
4373 case "${enableval}" in
4374 yes) use_secureplt=true ;;
4375 no) use_secureplt=false ;;
4376 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5
4377 echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379 esac
4380 else
4381 use_secureplt=false
4382 fi; if test $use_secureplt = true; then
4384 cat >>confdefs.h <<\_ACEOF
4385 #define USE_SECUREPLT 1
4386 _ACEOF
4390 # Package version. For an official FSF release, it is empty.
4392 # Check whether --with-pkgversion or --without-pkgversion was given.
4393 if test "${with_pkgversion+set}" = set; then
4394 withval="$with_pkgversion"
4395 case "$withval" in
4396 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
4397 echo "$as_me: error: package version not specified" >&2;}
4398 { (exit 1); exit 1; }; } ;;
4399 no) PKGVERSION= ;;
4400 *) PKGVERSION="($withval) " ;;
4401 esac
4402 else
4403 PKGVERSION=
4409 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4411 # Check whether --enable-werror or --disable-werror was given.
4412 if test "${enable_werror+set}" = set; then
4413 enableval="$enable_werror"
4414 case "${enableval}" in
4415 yes | y) ERROR_ON_WARNING="yes" ;;
4416 no | n) ERROR_ON_WARNING="no" ;;
4417 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
4418 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
4419 { (exit 1); exit 1; }; } ;;
4420 esac
4423 # Enable -Werror by default when using gcc
4424 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4425 ERROR_ON_WARNING=yes
4428 NO_WERROR=
4429 if test "${ERROR_ON_WARNING}" = yes ; then
4430 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
4431 NO_WERROR="-Wno-error"
4434 if test "${GCC}" = yes ; then
4435 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
4438 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4439 if test "${enable_build_warnings+set}" = set; then
4440 enableval="$enable_build_warnings"
4441 case "${enableval}" in
4442 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
4443 no) if test "${GCC}" = yes ; then
4444 WARN_CFLAGS="-w"
4445 fi;;
4446 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4447 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
4448 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4449 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
4450 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4451 esac
4454 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
4455 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
4462 ac_config_headers="$ac_config_headers config.h:config.in"
4465 if test -z "$target" ; then
4466 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4467 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4468 { (exit 1); exit 1; }; }
4471 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4472 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4473 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4474 if test "${enable_maintainer_mode+set}" = set; then
4475 enableval="$enable_maintainer_mode"
4476 USE_MAINTAINER_MODE=$enableval
4477 else
4478 USE_MAINTAINER_MODE=no
4480 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4481 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4484 if test $USE_MAINTAINER_MODE = yes; then
4485 MAINTAINER_MODE_TRUE=
4486 MAINTAINER_MODE_FALSE='#'
4487 else
4488 MAINTAINER_MODE_TRUE='#'
4489 MAINTAINER_MODE_FALSE=
4492 MAINT=$MAINTAINER_MODE_TRUE
4495 case ${build_alias} in
4496 "") build_noncanonical=${build} ;;
4497 *) build_noncanonical=${build_alias} ;;
4498 esac
4500 case ${host_alias} in
4501 "") host_noncanonical=${build_noncanonical} ;;
4502 *) host_noncanonical=${host_alias} ;;
4503 esac
4505 case ${target_alias} in
4506 "") target_noncanonical=${host_noncanonical} ;;
4507 *) target_noncanonical=${target_alias} ;;
4508 esac
4510 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4511 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4512 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4513 if test "${enable_install_libbfd+set}" = set; then
4514 enableval="$enable_install_libbfd"
4515 install_libbfd_p=$enableval
4516 else
4517 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4518 install_libbfd_p=yes
4519 else
4520 install_libbfd_p=no
4523 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4524 echo "${ECHO_T}$install_libbfd_p" >&6
4527 if test $install_libbfd_p = yes; then
4528 INSTALL_LIBBFD_TRUE=
4529 INSTALL_LIBBFD_FALSE='#'
4530 else
4531 INSTALL_LIBBFD_TRUE='#'
4532 INSTALL_LIBBFD_FALSE=
4535 # Need _noncanonical variables for this.
4540 # libbfd.a is a host library containing target dependent code
4541 bfdlibdir='$(libdir)'
4542 bfdincludedir='$(includedir)'
4543 if test "${host}" != "${target}"; then
4544 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4545 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4553 host64=false
4554 target64=false
4555 bfd_default_target_size=32
4557 # host stuff:
4559 ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564 if test -n "$ac_tool_prefix"; then
4565 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4566 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4567 echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4591 CC=$ac_cv_prog_CC
4592 if test -n "$CC"; then
4593 echo "$as_me:$LINENO: result: $CC" >&5
4594 echo "${ECHO_T}$CC" >&6
4595 else
4596 echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6
4601 if test -z "$ac_cv_prog_CC"; then
4602 ac_ct_CC=$CC
4603 # Extract the first word of "gcc", so it can be a program name with args.
4604 set dummy gcc; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610 if test -n "$ac_ct_CC"; then
4611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_ac_ct_CC="gcc"
4621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4629 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4630 if test -n "$ac_ct_CC"; then
4631 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4632 echo "${ECHO_T}$ac_ct_CC" >&6
4633 else
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4638 CC=$ac_ct_CC
4639 else
4640 CC="$ac_cv_prog_CC"
4643 if test -z "$CC"; then
4644 if test -n "$ac_tool_prefix"; then
4645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4646 set dummy ${ac_tool_prefix}cc; ac_word=$2
4647 echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4649 if test "${ac_cv_prog_CC+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652 if test -n "$CC"; then
4653 ac_cv_prog_CC="$CC" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_CC="${ac_tool_prefix}cc"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4666 done
4667 done
4671 CC=$ac_cv_prog_CC
4672 if test -n "$CC"; then
4673 echo "$as_me:$LINENO: result: $CC" >&5
4674 echo "${ECHO_T}$CC" >&6
4675 else
4676 echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6
4681 if test -z "$ac_cv_prog_CC"; then
4682 ac_ct_CC=$CC
4683 # Extract the first word of "cc", so it can be a program name with args.
4684 set dummy cc; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 if test -n "$ac_ct_CC"; then
4691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_ac_ct_CC="cc"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4704 done
4705 done
4709 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4710 if test -n "$ac_ct_CC"; then
4711 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4712 echo "${ECHO_T}$ac_ct_CC" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4718 CC=$ac_ct_CC
4719 else
4720 CC="$ac_cv_prog_CC"
4724 if test -z "$CC"; then
4725 # Extract the first word of "cc", so it can be a program name with args.
4726 set dummy cc; ac_word=$2
4727 echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4729 if test "${ac_cv_prog_CC+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 ac_prog_rejected=no
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4744 ac_prog_rejected=yes
4745 continue
4747 ac_cv_prog_CC="cc"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4751 done
4752 done
4754 if test $ac_prog_rejected = yes; then
4755 # We found a bogon in the path, so make sure we never use it.
4756 set dummy $ac_cv_prog_CC
4757 shift
4758 if test $# != 0; then
4759 # We chose a different compiler from the bogus one.
4760 # However, it has the same basename, so the bogon will be chosen
4761 # first if we set CC to just the basename; use the full file name.
4762 shift
4763 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4768 CC=$ac_cv_prog_CC
4769 if test -n "$CC"; then
4770 echo "$as_me:$LINENO: result: $CC" >&5
4771 echo "${ECHO_T}$CC" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774 echo "${ECHO_T}no" >&6
4778 if test -z "$CC"; then
4779 if test -n "$ac_tool_prefix"; then
4780 for ac_prog in cl
4782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4784 echo "$as_me:$LINENO: checking for $ac_word" >&5
4785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4786 if test "${ac_cv_prog_CC+set}" = set; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789 if test -n "$CC"; then
4790 ac_cv_prog_CC="$CC" # Let the user override the test.
4791 else
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4808 CC=$ac_cv_prog_CC
4809 if test -n "$CC"; then
4810 echo "$as_me:$LINENO: result: $CC" >&5
4811 echo "${ECHO_T}$CC" >&6
4812 else
4813 echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6
4817 test -n "$CC" && break
4818 done
4820 if test -z "$CC"; then
4821 ac_ct_CC=$CC
4822 for ac_prog in cl
4824 # Extract the first word of "$ac_prog", so it can be a program name with args.
4825 set dummy $ac_prog; ac_word=$2
4826 echo "$as_me:$LINENO: checking for $ac_word" >&5
4827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831 if test -n "$ac_ct_CC"; then
4832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841 ac_cv_prog_ac_ct_CC="$ac_prog"
4842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4851 if test -n "$ac_ct_CC"; then
4852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4853 echo "${ECHO_T}$ac_ct_CC" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6
4859 test -n "$ac_ct_CC" && break
4860 done
4862 CC=$ac_ct_CC
4868 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4869 See \`config.log' for more details." >&5
4870 echo "$as_me: error: no acceptable C compiler found in \$PATH
4871 See \`config.log' for more details." >&2;}
4872 { (exit 1); exit 1; }; }
4874 # Provide some information about the compiler.
4875 echo "$as_me:$LINENO:" \
4876 "checking for C compiler version" >&5
4877 ac_compiler=`set X $ac_compile; echo $2`
4878 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4879 (eval $ac_compiler --version </dev/null >&5) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }
4883 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4884 (eval $ac_compiler -v </dev/null >&5) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4889 (eval $ac_compiler -V </dev/null >&5) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4894 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4895 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4896 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 cat >conftest.$ac_ext <<_ACEOF
4900 /* confdefs.h. */
4901 _ACEOF
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4907 main ()
4909 #ifndef __GNUC__
4910 choke me
4911 #endif
4914 return 0;
4916 _ACEOF
4917 rm -f conftest.$ac_objext
4918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4919 (eval $ac_compile) 2>conftest.er1
4920 ac_status=$?
4921 grep -v '^ *+' conftest.er1 >conftest.err
4922 rm -f conftest.er1
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -z "$ac_c_werror_flag"
4927 || test ! -s conftest.err'
4928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 (eval $ac_try) 2>&5
4930 ac_status=$?
4931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932 (exit $ac_status); }; } &&
4933 { ac_try='test -s conftest.$ac_objext'
4934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4935 (eval $ac_try) 2>&5
4936 ac_status=$?
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_compiler_gnu=yes
4940 else
4941 echo "$as_me: failed program was:" >&5
4942 sed 's/^/| /' conftest.$ac_ext >&5
4944 ac_compiler_gnu=no
4946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4947 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4950 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4951 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4952 GCC=`test $ac_compiler_gnu = yes && echo yes`
4953 ac_test_CFLAGS=${CFLAGS+set}
4954 ac_save_CFLAGS=$CFLAGS
4955 CFLAGS="-g"
4956 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4957 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4958 if test "${ac_cv_prog_cc_g+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4961 cat >conftest.$ac_ext <<_ACEOF
4962 /* confdefs.h. */
4963 _ACEOF
4964 cat confdefs.h >>conftest.$ac_ext
4965 cat >>conftest.$ac_ext <<_ACEOF
4966 /* end confdefs.h. */
4969 main ()
4973 return 0;
4975 _ACEOF
4976 rm -f conftest.$ac_objext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978 (eval $ac_compile) 2>conftest.er1
4979 ac_status=$?
4980 grep -v '^ *+' conftest.er1 >conftest.err
4981 rm -f conftest.er1
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } &&
4985 { ac_try='test -z "$ac_c_werror_flag"
4986 || test ! -s conftest.err'
4987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 (eval $ac_try) 2>&5
4989 ac_status=$?
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 (eval $ac_try) 2>&5
4995 ac_status=$?
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_prog_cc_g=yes
4999 else
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_prog_cc_g=no
5005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5008 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5009 if test "$ac_test_CFLAGS" = set; then
5010 CFLAGS=$ac_save_CFLAGS
5011 elif test $ac_cv_prog_cc_g = yes; then
5012 if test "$GCC" = yes; then
5013 CFLAGS="-g -O2"
5014 else
5015 CFLAGS="-g"
5017 else
5018 if test "$GCC" = yes; then
5019 CFLAGS="-O2"
5020 else
5021 CFLAGS=
5024 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5025 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5026 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029 ac_cv_prog_cc_stdc=no
5030 ac_save_CC=$CC
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <stdarg.h>
5038 #include <stdio.h>
5039 #include <sys/types.h>
5040 #include <sys/stat.h>
5041 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5042 struct buf { int x; };
5043 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5044 static char *e (p, i)
5045 char **p;
5046 int i;
5048 return p[i];
5050 static char *f (char * (*g) (char **, int), char **p, ...)
5052 char *s;
5053 va_list v;
5054 va_start (v,p);
5055 s = g (p, va_arg (v,int));
5056 va_end (v);
5057 return s;
5060 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5061 function prototypes and stuff, but not '\xHH' hex character constants.
5062 These don't provoke an error unfortunately, instead are silently treated
5063 as 'x'. The following induces an error, until -std1 is added to get
5064 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5065 array size at least. It's necessary to write '\x00'==0 to get something
5066 that's true only with -std1. */
5067 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5069 int test (int i, double x);
5070 struct s1 {int (*f) (int a);};
5071 struct s2 {int (*f) (double a);};
5072 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5073 int argc;
5074 char **argv;
5076 main ()
5078 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5080 return 0;
5082 _ACEOF
5083 # Don't try gcc -ansi; that turns off useful extensions and
5084 # breaks some systems' header files.
5085 # AIX -qlanglvl=ansi
5086 # Ultrix and OSF/1 -std1
5087 # HP-UX 10.20 and later -Ae
5088 # HP-UX older versions -Aa -D_HPUX_SOURCE
5089 # SVR4 -Xc -D__EXTENSIONS__
5090 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5092 CC="$ac_save_CC $ac_arg"
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_cv_prog_cc_stdc=$ac_arg
5116 break
5117 else
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f conftest.err conftest.$ac_objext
5123 done
5124 rm -f conftest.$ac_ext conftest.$ac_objext
5125 CC=$ac_save_CC
5129 case "x$ac_cv_prog_cc_stdc" in
5130 x|xno)
5131 echo "$as_me:$LINENO: result: none needed" >&5
5132 echo "${ECHO_T}none needed" >&6 ;;
5134 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5135 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5136 CC="$CC $ac_cv_prog_cc_stdc" ;;
5137 esac
5139 # Some people use a C++ compiler to compile C. Since we use `exit',
5140 # in C++ we need to declare it. In case someone uses the same compiler
5141 # for both compiling C and C++ we need to have the C++ compiler decide
5142 # the declaration of exit, since it's the most demanding environment.
5143 cat >conftest.$ac_ext <<_ACEOF
5144 #ifndef __cplusplus
5145 choke me
5146 #endif
5147 _ACEOF
5148 rm -f conftest.$ac_objext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5150 (eval $ac_compile) 2>conftest.er1
5151 ac_status=$?
5152 grep -v '^ *+' conftest.er1 >conftest.err
5153 rm -f conftest.er1
5154 cat conftest.err >&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -z "$ac_c_werror_flag"
5158 || test ! -s conftest.err'
5159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 (eval $ac_try) 2>&5
5161 ac_status=$?
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); }; } &&
5164 { ac_try='test -s conftest.$ac_objext'
5165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 (eval $ac_try) 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }; }; then
5170 for ac_declaration in \
5171 '' \
5172 'extern "C" void std::exit (int) throw (); using std::exit;' \
5173 'extern "C" void std::exit (int); using std::exit;' \
5174 'extern "C" void exit (int) throw ();' \
5175 'extern "C" void exit (int);' \
5176 'void exit (int);'
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h. */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 $ac_declaration
5185 #include <stdlib.h>
5187 main ()
5189 exit (42);
5191 return 0;
5193 _ACEOF
5194 rm -f conftest.$ac_objext
5195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5196 (eval $ac_compile) 2>conftest.er1
5197 ac_status=$?
5198 grep -v '^ *+' conftest.er1 >conftest.err
5199 rm -f conftest.er1
5200 cat conftest.err >&5
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); } &&
5203 { ac_try='test -z "$ac_c_werror_flag"
5204 || test ! -s conftest.err'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; } &&
5210 { ac_try='test -s conftest.$ac_objext'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212 (eval $ac_try) 2>&5
5213 ac_status=$?
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; }; then
5217 else
5218 echo "$as_me: failed program was:" >&5
5219 sed 's/^/| /' conftest.$ac_ext >&5
5221 continue
5223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 $ac_declaration
5232 main ()
5234 exit (42);
5236 return 0;
5238 _ACEOF
5239 rm -f conftest.$ac_objext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } &&
5248 { ac_try='test -z "$ac_c_werror_flag"
5249 || test ! -s conftest.err'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 (eval $ac_try) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 break
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5268 done
5269 rm -f conftest*
5270 if test -n "$ac_declaration"; then
5271 echo '#ifdef __cplusplus' >>confdefs.h
5272 echo $ac_declaration >>confdefs.h
5273 echo '#endif' >>confdefs.h
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5282 ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289 cat >>confdefs.h <<\_ACEOF
5290 #define _GNU_SOURCE 1
5291 _ACEOF
5295 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi"
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5299 echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5301 if test "${ac_cv_prog_RANLIB+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 else
5304 if test -n "$RANLIB"; then
5305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5323 RANLIB=$ac_cv_prog_RANLIB
5324 if test -n "$RANLIB"; then
5325 echo "$as_me:$LINENO: result: $RANLIB" >&5
5326 echo "${ECHO_T}$RANLIB" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329 echo "${ECHO_T}no" >&6
5333 if test -z "$ac_cv_prog_RANLIB"; then
5334 ac_ct_RANLIB=$RANLIB
5335 # Extract the first word of "ranlib", so it can be a program name with args.
5336 set dummy ranlib; ac_word=$2
5337 echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5341 else
5342 if test -n "$ac_ct_RANLIB"; then
5343 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_ac_ct_RANLIB="ranlib"
5353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5359 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5363 if test -n "$ac_ct_RANLIB"; then
5364 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5365 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5366 else
5367 echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6
5371 RANLIB=$ac_ct_RANLIB
5372 else
5373 RANLIB="$ac_cv_prog_RANLIB"
5376 ac_ext=c
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5383 # On Suns, sometimes $CPP names a directory.
5384 if test -n "$CPP" && test -d "$CPP"; then
5385 CPP=
5387 if test -z "$CPP"; then
5388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5394 ac_preproc_ok=false
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat >conftest.$ac_ext <<_ACEOF
5404 /* confdefs.h. */
5405 _ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5409 #ifdef __STDC__
5410 # include <limits.h>
5411 #else
5412 # include <assert.h>
5413 #endif
5414 Syntax error
5415 _ACEOF
5416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5427 else
5428 ac_cpp_err=
5430 else
5431 ac_cpp_err=yes
5433 if test -z "$ac_cpp_err"; then
5435 else
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 # Broken: fails on valid input.
5440 continue
5442 rm -f conftest.err conftest.$ac_ext
5444 # OK, works on sane cases. Now check whether non-existent headers
5445 # can be detected and how.
5446 cat >conftest.$ac_ext <<_ACEOF
5447 /* confdefs.h. */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <ac_nonexistent.h>
5453 _ACEOF
5454 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } >/dev/null; then
5462 if test -s conftest.err; then
5463 ac_cpp_err=$ac_c_preproc_warn_flag
5464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5465 else
5466 ac_cpp_err=
5468 else
5469 ac_cpp_err=yes
5471 if test -z "$ac_cpp_err"; then
5472 # Broken: success on invalid input.
5473 continue
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 # Passes both tests.
5479 ac_preproc_ok=:
5480 break
5482 rm -f conftest.err conftest.$ac_ext
5484 done
5485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5486 rm -f conftest.err conftest.$ac_ext
5487 if $ac_preproc_ok; then
5488 break
5491 done
5492 ac_cv_prog_CPP=$CPP
5495 CPP=$ac_cv_prog_CPP
5496 else
5497 ac_cv_prog_CPP=$CPP
5499 echo "$as_me:$LINENO: result: $CPP" >&5
5500 echo "${ECHO_T}$CPP" >&6
5501 ac_preproc_ok=false
5502 for ac_c_preproc_warn_flag in '' yes
5504 # Use a header file that comes with gcc, so configuring glibc
5505 # with a fresh cross-compiler works.
5506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 # <limits.h> exists even on freestanding compilers.
5508 # On the NeXT, cc -E runs the code through the compiler's parser,
5509 # not just through cpp. "Syntax error" is here to catch this case.
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #ifdef __STDC__
5517 # include <limits.h>
5518 #else
5519 # include <assert.h>
5520 #endif
5521 Syntax error
5522 _ACEOF
5523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } >/dev/null; then
5531 if test -s conftest.err; then
5532 ac_cpp_err=$ac_c_preproc_warn_flag
5533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5534 else
5535 ac_cpp_err=
5537 else
5538 ac_cpp_err=yes
5540 if test -z "$ac_cpp_err"; then
5542 else
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5546 # Broken: fails on valid input.
5547 continue
5549 rm -f conftest.err conftest.$ac_ext
5551 # OK, works on sane cases. Now check whether non-existent headers
5552 # can be detected and how.
5553 cat >conftest.$ac_ext <<_ACEOF
5554 /* confdefs.h. */
5555 _ACEOF
5556 cat confdefs.h >>conftest.$ac_ext
5557 cat >>conftest.$ac_ext <<_ACEOF
5558 /* end confdefs.h. */
5559 #include <ac_nonexistent.h>
5560 _ACEOF
5561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null; then
5569 if test -s conftest.err; then
5570 ac_cpp_err=$ac_c_preproc_warn_flag
5571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5572 else
5573 ac_cpp_err=
5575 else
5576 ac_cpp_err=yes
5578 if test -z "$ac_cpp_err"; then
5579 # Broken: success on invalid input.
5580 continue
5581 else
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 # Passes both tests.
5586 ac_preproc_ok=:
5587 break
5589 rm -f conftest.err conftest.$ac_ext
5591 done
5592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5593 rm -f conftest.err conftest.$ac_ext
5594 if $ac_preproc_ok; then
5596 else
5597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5598 See \`config.log' for more details." >&5
5599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5600 See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
5604 ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611 echo "$as_me:$LINENO: checking for egrep" >&5
5612 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5613 if test "${ac_cv_prog_egrep+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 else
5616 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5617 then ac_cv_prog_egrep='grep -E'
5618 else ac_cv_prog_egrep='egrep'
5621 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5622 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5623 EGREP=$ac_cv_prog_egrep
5626 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5627 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5628 if test "${ac_cv_header_stdc+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 else
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <stdlib.h>
5638 #include <stdarg.h>
5639 #include <string.h>
5640 #include <float.h>
5643 main ()
5647 return 0;
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5652 (eval $ac_compile) 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_c_werror_flag"
5660 || test ! -s conftest.err'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; } &&
5666 { ac_try='test -s conftest.$ac_objext'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; }; then
5672 ac_cv_header_stdc=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_header_stdc=no
5679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5681 if test $ac_cv_header_stdc = yes; then
5682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683 cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h. */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5689 #include <string.h>
5691 _ACEOF
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 $EGREP "memchr" >/dev/null 2>&1; then
5695 else
5696 ac_cv_header_stdc=no
5698 rm -f conftest*
5702 if test $ac_cv_header_stdc = yes; then
5703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <stdlib.h>
5712 _ACEOF
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "free" >/dev/null 2>&1; then
5716 else
5717 ac_cv_header_stdc=no
5719 rm -f conftest*
5723 if test $ac_cv_header_stdc = yes; then
5724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5725 if test "$cross_compiling" = yes; then
5727 else
5728 cat >conftest.$ac_ext <<_ACEOF
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 #include <ctype.h>
5735 #if ((' ' & 0x0FF) == 0x020)
5736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5738 #else
5739 # define ISLOWER(c) \
5740 (('a' <= (c) && (c) <= 'i') \
5741 || ('j' <= (c) && (c) <= 'r') \
5742 || ('s' <= (c) && (c) <= 'z'))
5743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5744 #endif
5746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5748 main ()
5750 int i;
5751 for (i = 0; i < 256; i++)
5752 if (XOR (islower (i), ISLOWER (i))
5753 || toupper (i) != TOUPPER (i))
5754 exit(2);
5755 exit (0);
5757 _ACEOF
5758 rm -f conftest$ac_exeext
5759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5770 else
5771 echo "$as_me: program exited with status $ac_status" >&5
5772 echo "$as_me: failed program was:" >&5
5773 sed 's/^/| /' conftest.$ac_ext >&5
5775 ( exit $ac_status )
5776 ac_cv_header_stdc=no
5778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5782 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5783 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5784 if test $ac_cv_header_stdc = yes; then
5786 cat >>confdefs.h <<\_ACEOF
5787 #define STDC_HEADERS 1
5788 _ACEOF
5792 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5793 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5794 if test "${ac_cv_c_const+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 /* confdefs.h. */
5799 _ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5805 main ()
5807 /* FIXME: Include the comments suggested by Paul. */
5808 #ifndef __cplusplus
5809 /* Ultrix mips cc rejects this. */
5810 typedef int charset[2];
5811 const charset x;
5812 /* SunOS 4.1.1 cc rejects this. */
5813 char const *const *ccp;
5814 char **p;
5815 /* NEC SVR4.0.2 mips cc rejects this. */
5816 struct point {int x, y;};
5817 static struct point const zero = {0,0};
5818 /* AIX XL C 1.02.0.0 rejects this.
5819 It does not let you subtract one const X* pointer from another in
5820 an arm of an if-expression whose if-part is not a constant
5821 expression */
5822 const char *g = "string";
5823 ccp = &g + (g ? g-g : 0);
5824 /* HPUX 7.0 cc rejects these. */
5825 ++ccp;
5826 p = (char**) ccp;
5827 ccp = (char const *const *) p;
5828 { /* SCO 3.2v4 cc rejects this. */
5829 char *t;
5830 char const *s = 0 ? (char *) 0 : (char const *) 0;
5832 *t++ = 0;
5834 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5835 int x[] = {25, 17};
5836 const int *foo = &x[0];
5837 ++foo;
5839 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5840 typedef const int *iptr;
5841 iptr p = 0;
5842 ++p;
5844 { /* AIX XL C 1.02.0.0 rejects this saying
5845 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5846 struct s { int j; const int *ap[3]; };
5847 struct s *b; b->j = 5;
5849 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5850 const int foo = 10;
5852 #endif
5855 return 0;
5857 _ACEOF
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag"
5868 || test ! -s conftest.err'
5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870 (eval $ac_try) 2>&5
5871 ac_status=$?
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; } &&
5874 { ac_try='test -s conftest.$ac_objext'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
5880 ac_cv_c_const=yes
5881 else
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cv_c_const=no
5887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5890 echo "${ECHO_T}$ac_cv_c_const" >&6
5891 if test $ac_cv_c_const = no; then
5893 cat >>confdefs.h <<\_ACEOF
5894 #define const
5895 _ACEOF
5899 echo "$as_me:$LINENO: checking for inline" >&5
5900 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5901 if test "${ac_cv_c_inline+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 ac_cv_c_inline=no
5905 for ac_kw in inline __inline__ __inline; do
5906 cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h. */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #ifndef __cplusplus
5913 typedef int foo_t;
5914 static $ac_kw foo_t static_foo () {return 0; }
5915 $ac_kw foo_t foo () {return 0; }
5916 #endif
5918 _ACEOF
5919 rm -f conftest.$ac_objext
5920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921 (eval $ac_compile) 2>conftest.er1
5922 ac_status=$?
5923 grep -v '^ *+' conftest.er1 >conftest.err
5924 rm -f conftest.er1
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -z "$ac_c_werror_flag"
5929 || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest.$ac_objext'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; }; then
5941 ac_cv_c_inline=$ac_kw; break
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5948 done
5951 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5952 echo "${ECHO_T}$ac_cv_c_inline" >&6
5955 case $ac_cv_c_inline in
5956 inline | yes) ;;
5958 case $ac_cv_c_inline in
5959 no) ac_val=;;
5960 *) ac_val=$ac_cv_c_inline;;
5961 esac
5962 cat >>confdefs.h <<_ACEOF
5963 #ifndef __cplusplus
5964 #define inline $ac_val
5965 #endif
5966 _ACEOF
5968 esac
5970 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5981 inttypes.h stdint.h unistd.h
5983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5984 echo "$as_me:$LINENO: checking for $ac_header" >&5
5985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989 cat >conftest.$ac_ext <<_ACEOF
5990 /* confdefs.h. */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
5995 $ac_includes_default
5997 #include <$ac_header>
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } &&
6008 { ac_try='test -z "$ac_c_werror_flag"
6009 || test ! -s conftest.err'
6010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 (eval $ac_try) 2>&5
6012 ac_status=$?
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); }; } &&
6015 { ac_try='test -s conftest.$ac_objext'
6016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 (eval $ac_try) 2>&5
6018 ac_status=$?
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); }; }; then
6021 eval "$as_ac_Header=yes"
6022 else
6023 echo "$as_me: failed program was:" >&5
6024 sed 's/^/| /' conftest.$ac_ext >&5
6026 eval "$as_ac_Header=no"
6028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6030 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6031 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6033 cat >>confdefs.h <<_ACEOF
6034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 _ACEOF
6039 done
6042 echo "$as_me:$LINENO: checking for off_t" >&5
6043 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6044 if test "${ac_cv_type_off_t+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047 cat >conftest.$ac_ext <<_ACEOF
6048 /* confdefs.h. */
6049 _ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6055 main ()
6057 if ((off_t *) 0)
6058 return 0;
6059 if (sizeof (off_t))
6060 return 0;
6062 return 0;
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } &&
6074 { ac_try='test -z "$ac_c_werror_flag"
6075 || test ! -s conftest.err'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 (eval $ac_try) 2>&5
6084 ac_status=$?
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_cv_type_off_t=yes
6088 else
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_cv_type_off_t=no
6094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6096 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6097 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6098 if test $ac_cv_type_off_t = yes; then
6100 else
6102 cat >>confdefs.h <<_ACEOF
6103 #define off_t long
6104 _ACEOF
6108 echo "$as_me:$LINENO: checking for size_t" >&5
6109 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6110 if test "${ac_cv_type_size_t+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6112 else
6113 cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h. */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 $ac_includes_default
6121 main ()
6123 if ((size_t *) 0)
6124 return 0;
6125 if (sizeof (size_t))
6126 return 0;
6128 return 0;
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6133 (eval $ac_compile) 2>conftest.er1
6134 ac_status=$?
6135 grep -v '^ *+' conftest.er1 >conftest.err
6136 rm -f conftest.er1
6137 cat conftest.err >&5
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -z "$ac_c_werror_flag"
6141 || test ! -s conftest.err'
6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); }; } &&
6147 { ac_try='test -s conftest.$ac_objext'
6148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 (eval $ac_try) 2>&5
6150 ac_status=$?
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; }; then
6153 ac_cv_type_size_t=yes
6154 else
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 ac_cv_type_size_t=no
6160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6162 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6163 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6164 if test $ac_cv_type_size_t = yes; then
6166 else
6168 cat >>confdefs.h <<_ACEOF
6169 #define size_t unsigned
6170 _ACEOF
6174 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6175 # for constant arguments. Useless!
6176 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6177 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6178 if test "${ac_cv_working_alloca_h+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h. */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6187 #include <alloca.h>
6189 main ()
6191 char *p = (char *) alloca (2 * sizeof (int));
6193 return 0;
6195 _ACEOF
6196 rm -f conftest.$ac_objext conftest$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_c_werror_flag"
6206 || test ! -s conftest.err'
6207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208 (eval $ac_try) 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }; } &&
6212 { ac_try='test -s conftest$ac_exeext'
6213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214 (eval $ac_try) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6218 ac_cv_working_alloca_h=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_cv_working_alloca_h=no
6225 rm -f conftest.err conftest.$ac_objext \
6226 conftest$ac_exeext conftest.$ac_ext
6228 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6229 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6230 if test $ac_cv_working_alloca_h = yes; then
6232 cat >>confdefs.h <<\_ACEOF
6233 #define HAVE_ALLOCA_H 1
6234 _ACEOF
6238 echo "$as_me:$LINENO: checking for alloca" >&5
6239 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6240 if test "${ac_cv_func_alloca_works+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #ifdef __GNUC__
6250 # define alloca __builtin_alloca
6251 #else
6252 # ifdef _MSC_VER
6253 # include <malloc.h>
6254 # define alloca _alloca
6255 # else
6256 # if HAVE_ALLOCA_H
6257 # include <alloca.h>
6258 # else
6259 # ifdef _AIX
6260 #pragma alloca
6261 # else
6262 # ifndef alloca /* predefined by HP cc +Olibcalls */
6263 char *alloca ();
6264 # endif
6265 # endif
6266 # endif
6267 # endif
6268 #endif
6271 main ()
6273 char *p = (char *) alloca (1);
6275 return 0;
6277 _ACEOF
6278 rm -f conftest.$ac_objext conftest$ac_exeext
6279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280 (eval $ac_link) 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -z "$ac_c_werror_flag"
6288 || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6290 (eval $ac_try) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest$ac_exeext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 (eval $ac_try) 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6300 ac_cv_func_alloca_works=yes
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_cv_func_alloca_works=no
6307 rm -f conftest.err conftest.$ac_objext \
6308 conftest$ac_exeext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6311 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6313 if test $ac_cv_func_alloca_works = yes; then
6315 cat >>confdefs.h <<\_ACEOF
6316 #define HAVE_ALLOCA 1
6317 _ACEOF
6319 else
6320 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6321 # that cause trouble. Some versions do not even contain alloca or
6322 # contain a buggy version. If you still want to use their alloca,
6323 # use ar to extract alloca.o from them instead of compiling alloca.c.
6325 ALLOCA=alloca.$ac_objext
6327 cat >>confdefs.h <<\_ACEOF
6328 #define C_ALLOCA 1
6329 _ACEOF
6332 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6333 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6334 if test "${ac_cv_os_cray+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 else
6337 cat >conftest.$ac_ext <<_ACEOF
6338 /* confdefs.h. */
6339 _ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #if defined(CRAY) && ! defined(CRAY2)
6344 webecray
6345 #else
6346 wenotbecray
6347 #endif
6349 _ACEOF
6350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6351 $EGREP "webecray" >/dev/null 2>&1; then
6352 ac_cv_os_cray=yes
6353 else
6354 ac_cv_os_cray=no
6356 rm -f conftest*
6359 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6360 echo "${ECHO_T}$ac_cv_os_cray" >&6
6361 if test $ac_cv_os_cray = yes; then
6362 for ac_func in _getb67 GETB67 getb67; do
6363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6364 echo "$as_me:$LINENO: checking for $ac_func" >&5
6365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6366 if eval "test \"\${$as_ac_var+set}\" = set"; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369 cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h. */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h. */
6375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6377 #define $ac_func innocuous_$ac_func
6379 /* System header to define __stub macros and hopefully few prototypes,
6380 which can conflict with char $ac_func (); below.
6381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6382 <limits.h> exists even on freestanding compilers. */
6384 #ifdef __STDC__
6385 # include <limits.h>
6386 #else
6387 # include <assert.h>
6388 #endif
6390 #undef $ac_func
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 #ifdef __cplusplus
6394 extern "C"
6396 #endif
6397 /* We use char because int might match the return type of a gcc2
6398 builtin and then its argument prototype would still apply. */
6399 char $ac_func ();
6400 /* The GNU C library defines this for functions which it implements
6401 to always fail with ENOSYS. Some functions are actually named
6402 something starting with __ and the normal name is an alias. */
6403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6404 choke me
6405 #else
6406 char (*f) () = $ac_func;
6407 #endif
6408 #ifdef __cplusplus
6410 #endif
6413 main ()
6415 return f != $ac_func;
6417 return 0;
6419 _ACEOF
6420 rm -f conftest.$ac_objext conftest$ac_exeext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6422 (eval $ac_link) 2>conftest.er1
6423 ac_status=$?
6424 grep -v '^ *+' conftest.er1 >conftest.err
6425 rm -f conftest.er1
6426 cat conftest.err >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); } &&
6429 { ac_try='test -z "$ac_c_werror_flag"
6430 || test ! -s conftest.err'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 (eval $ac_try) 2>&5
6433 ac_status=$?
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; } &&
6436 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6442 eval "$as_ac_var=yes"
6443 else
6444 echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6447 eval "$as_ac_var=no"
6449 rm -f conftest.err conftest.$ac_objext \
6450 conftest$ac_exeext conftest.$ac_ext
6452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6454 if test `eval echo '${'$as_ac_var'}'` = yes; then
6456 cat >>confdefs.h <<_ACEOF
6457 #define CRAY_STACKSEG_END $ac_func
6458 _ACEOF
6460 break
6463 done
6466 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6467 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6468 if test "${ac_cv_c_stack_direction+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 if test "$cross_compiling" = yes; then
6472 ac_cv_c_stack_direction=0
6473 else
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6481 find_stack_direction ()
6483 static char *addr = 0;
6484 auto char dummy;
6485 if (addr == 0)
6487 addr = &dummy;
6488 return find_stack_direction ();
6490 else
6491 return (&dummy > addr) ? 1 : -1;
6495 main ()
6497 exit (find_stack_direction () < 0);
6499 _ACEOF
6500 rm -f conftest$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_c_stack_direction=1
6512 else
6513 echo "$as_me: program exited with status $ac_status" >&5
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ( exit $ac_status )
6518 ac_cv_c_stack_direction=-1
6520 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6523 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6524 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6526 cat >>confdefs.h <<_ACEOF
6527 #define STACK_DIRECTION $ac_cv_c_stack_direction
6528 _ACEOF
6535 for ac_header in stdlib.h unistd.h
6537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6538 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6539 echo "$as_me:$LINENO: checking for $ac_header" >&5
6540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6546 else
6547 # Is the header compilable?
6548 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 $ac_includes_default
6557 #include <$ac_header>
6558 _ACEOF
6559 rm -f conftest.$ac_objext
6560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } &&
6568 { ac_try='test -z "$ac_c_werror_flag"
6569 || test ! -s conftest.err'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 (eval $ac_try) 2>&5
6572 ac_status=$?
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; } &&
6575 { ac_try='test -s conftest.$ac_objext'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; }; then
6581 ac_header_compiler=yes
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6586 ac_header_compiler=no
6588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6589 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6590 echo "${ECHO_T}$ac_header_compiler" >&6
6592 # Is the header present?
6593 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <$ac_header>
6602 _ACEOF
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev/null; then
6611 if test -s conftest.err; then
6612 ac_cpp_err=$ac_c_preproc_warn_flag
6613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6614 else
6615 ac_cpp_err=
6617 else
6618 ac_cpp_err=yes
6620 if test -z "$ac_cpp_err"; then
6621 ac_header_preproc=yes
6622 else
6623 echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6626 ac_header_preproc=no
6628 rm -f conftest.err conftest.$ac_ext
6629 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6630 echo "${ECHO_T}$ac_header_preproc" >&6
6632 # So? What about this header?
6633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6634 yes:no: )
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6639 ac_header_preproc=yes
6641 no:yes:* )
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6655 cat <<\_ASBOX
6656 ## ------------------------------------------ ##
6657 ## Report this to the AC_PACKAGE_NAME lists. ##
6658 ## ------------------------------------------ ##
6659 _ASBOX
6661 sed "s/^/$as_me: WARNING: /" >&2
6663 esac
6664 echo "$as_me:$LINENO: checking for $ac_header" >&5
6665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 eval "$as_ac_Header=\$ac_header_preproc"
6671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6676 cat >>confdefs.h <<_ACEOF
6677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6678 _ACEOF
6682 done
6685 for ac_func in getpagesize
6687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6688 echo "$as_me:$LINENO: checking for $ac_func" >&5
6689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6690 if eval "test \"\${$as_ac_var+set}\" = set"; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6701 #define $ac_func innocuous_$ac_func
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char $ac_func (); below.
6705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706 <limits.h> exists even on freestanding compilers. */
6708 #ifdef __STDC__
6709 # include <limits.h>
6710 #else
6711 # include <assert.h>
6712 #endif
6714 #undef $ac_func
6716 /* Override any gcc2 internal prototype to avoid an error. */
6717 #ifdef __cplusplus
6718 extern "C"
6720 #endif
6721 /* We use char because int might match the return type of a gcc2
6722 builtin and then its argument prototype would still apply. */
6723 char $ac_func ();
6724 /* The GNU C library defines this for functions which it implements
6725 to always fail with ENOSYS. Some functions are actually named
6726 something starting with __ and the normal name is an alias. */
6727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6728 choke me
6729 #else
6730 char (*f) () = $ac_func;
6731 #endif
6732 #ifdef __cplusplus
6734 #endif
6737 main ()
6739 return f != $ac_func;
6741 return 0;
6743 _ACEOF
6744 rm -f conftest.$ac_objext conftest$ac_exeext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6746 (eval $ac_link) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest$ac_exeext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 (eval $ac_try) 2>&5
6763 ac_status=$?
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 eval "$as_ac_var=yes"
6767 else
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 eval "$as_ac_var=no"
6773 rm -f conftest.err conftest.$ac_objext \
6774 conftest$ac_exeext conftest.$ac_ext
6776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6778 if test `eval echo '${'$as_ac_var'}'` = yes; then
6779 cat >>confdefs.h <<_ACEOF
6780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6781 _ACEOF
6784 done
6786 echo "$as_me:$LINENO: checking for working mmap" >&5
6787 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6788 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 if test "$cross_compiling" = yes; then
6792 ac_cv_func_mmap_fixed_mapped=no
6793 else
6794 cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h. */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h. */
6800 $ac_includes_default
6801 /* malloc might have been renamed as rpl_malloc. */
6802 #undef malloc
6804 /* Thanks to Mike Haertel and Jim Avera for this test.
6805 Here is a matrix of mmap possibilities:
6806 mmap private not fixed
6807 mmap private fixed at somewhere currently unmapped
6808 mmap private fixed at somewhere already mapped
6809 mmap shared not fixed
6810 mmap shared fixed at somewhere currently unmapped
6811 mmap shared fixed at somewhere already mapped
6812 For private mappings, we should verify that changes cannot be read()
6813 back from the file, nor mmap's back from the file at a different
6814 address. (There have been systems where private was not correctly
6815 implemented like the infamous i386 svr4.0, and systems where the
6816 VM page cache was not coherent with the file system buffer cache
6817 like early versions of FreeBSD and possibly contemporary NetBSD.)
6818 For shared mappings, we should conversely verify that changes get
6819 propagated back to all the places they're supposed to be.
6821 Grep wants private fixed already mapped.
6822 The main things grep needs to know about mmap are:
6823 * does it exist and is it safe to write into the mmap'd area
6824 * how to use it (BSD variants) */
6826 #include <fcntl.h>
6827 #include <sys/mman.h>
6829 #if !STDC_HEADERS && !HAVE_STDLIB_H
6830 char *malloc ();
6831 #endif
6833 /* This mess was copied from the GNU getpagesize.h. */
6834 #if !HAVE_GETPAGESIZE
6835 /* Assume that all systems that can run configure have sys/param.h. */
6836 # if !HAVE_SYS_PARAM_H
6837 # define HAVE_SYS_PARAM_H 1
6838 # endif
6840 # ifdef _SC_PAGESIZE
6841 # define getpagesize() sysconf(_SC_PAGESIZE)
6842 # else /* no _SC_PAGESIZE */
6843 # if HAVE_SYS_PARAM_H
6844 # include <sys/param.h>
6845 # ifdef EXEC_PAGESIZE
6846 # define getpagesize() EXEC_PAGESIZE
6847 # else /* no EXEC_PAGESIZE */
6848 # ifdef NBPG
6849 # define getpagesize() NBPG * CLSIZE
6850 # ifndef CLSIZE
6851 # define CLSIZE 1
6852 # endif /* no CLSIZE */
6853 # else /* no NBPG */
6854 # ifdef NBPC
6855 # define getpagesize() NBPC
6856 # else /* no NBPC */
6857 # ifdef PAGESIZE
6858 # define getpagesize() PAGESIZE
6859 # endif /* PAGESIZE */
6860 # endif /* no NBPC */
6861 # endif /* no NBPG */
6862 # endif /* no EXEC_PAGESIZE */
6863 # else /* no HAVE_SYS_PARAM_H */
6864 # define getpagesize() 8192 /* punt totally */
6865 # endif /* no HAVE_SYS_PARAM_H */
6866 # endif /* no _SC_PAGESIZE */
6868 #endif /* no HAVE_GETPAGESIZE */
6871 main ()
6873 char *data, *data2, *data3;
6874 int i, pagesize;
6875 int fd;
6877 pagesize = getpagesize ();
6879 /* First, make a file with some known garbage in it. */
6880 data = (char *) malloc (pagesize);
6881 if (!data)
6882 exit (1);
6883 for (i = 0; i < pagesize; ++i)
6884 *(data + i) = rand ();
6885 umask (0);
6886 fd = creat ("conftest.mmap", 0600);
6887 if (fd < 0)
6888 exit (1);
6889 if (write (fd, data, pagesize) != pagesize)
6890 exit (1);
6891 close (fd);
6893 /* Next, try to mmap the file at a fixed address which already has
6894 something else allocated at it. If we can, also make sure that
6895 we see the same garbage. */
6896 fd = open ("conftest.mmap", O_RDWR);
6897 if (fd < 0)
6898 exit (1);
6899 data2 = (char *) malloc (2 * pagesize);
6900 if (!data2)
6901 exit (1);
6902 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6903 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6904 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6905 exit (1);
6906 for (i = 0; i < pagesize; ++i)
6907 if (*(data + i) != *(data2 + i))
6908 exit (1);
6910 /* Finally, make sure that changes to the mapped area do not
6911 percolate back to the file as seen by read(). (This is a bug on
6912 some variants of i386 svr4.0.) */
6913 for (i = 0; i < pagesize; ++i)
6914 *(data2 + i) = *(data2 + i) + 1;
6915 data3 = (char *) malloc (pagesize);
6916 if (!data3)
6917 exit (1);
6918 if (read (fd, data3, pagesize) != pagesize)
6919 exit (1);
6920 for (i = 0; i < pagesize; ++i)
6921 if (*(data + i) != *(data3 + i))
6922 exit (1);
6923 close (fd);
6924 exit (0);
6926 _ACEOF
6927 rm -f conftest$ac_exeext
6928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6929 (eval $ac_link) 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
6938 ac_cv_func_mmap_fixed_mapped=yes
6939 else
6940 echo "$as_me: program exited with status $ac_status" >&5
6941 echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6944 ( exit $ac_status )
6945 ac_cv_func_mmap_fixed_mapped=no
6947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6950 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6951 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6952 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6954 cat >>confdefs.h <<\_ACEOF
6955 #define HAVE_MMAP 1
6956 _ACEOF
6959 rm -f conftest.mmap
6971 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6972 unistd.h values.h sys/param.h
6974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6976 echo "$as_me:$LINENO: checking for $ac_header" >&5
6977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6982 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6983 else
6984 # Is the header compilable?
6985 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6986 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h. */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 $ac_includes_default
6994 #include <$ac_header>
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998 (eval $ac_compile) 2>conftest.er1
6999 ac_status=$?
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -z "$ac_c_werror_flag"
7006 || test ! -s conftest.err'
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; } &&
7012 { ac_try='test -s conftest.$ac_objext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 ac_header_compiler=yes
7019 else
7020 echo "$as_me: failed program was:" >&5
7021 sed 's/^/| /' conftest.$ac_ext >&5
7023 ac_header_compiler=no
7025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7026 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7027 echo "${ECHO_T}$ac_header_compiler" >&6
7029 # Is the header present?
7030 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <$ac_header>
7039 _ACEOF
7040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } >/dev/null; then
7048 if test -s conftest.err; then
7049 ac_cpp_err=$ac_c_preproc_warn_flag
7050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7051 else
7052 ac_cpp_err=
7054 else
7055 ac_cpp_err=yes
7057 if test -z "$ac_cpp_err"; then
7058 ac_header_preproc=yes
7059 else
7060 echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 ac_header_preproc=no
7065 rm -f conftest.err conftest.$ac_ext
7066 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7067 echo "${ECHO_T}$ac_header_preproc" >&6
7069 # So? What about this header?
7070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7071 yes:no: )
7072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7076 ac_header_preproc=yes
7078 no:yes:* )
7079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7092 cat <<\_ASBOX
7093 ## ------------------------------------------ ##
7094 ## Report this to the AC_PACKAGE_NAME lists. ##
7095 ## ------------------------------------------ ##
7096 _ASBOX
7098 sed "s/^/$as_me: WARNING: /" >&2
7100 esac
7101 echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 eval "$as_ac_Header=\$ac_header_preproc"
7108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7113 cat >>confdefs.h <<_ACEOF
7114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7115 _ACEOF
7119 done
7131 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
7132 __argz_count __argz_stringify __argz_next
7134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7135 echo "$as_me:$LINENO: checking for $ac_func" >&5
7136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7137 if eval "test \"\${$as_ac_var+set}\" = set"; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7148 #define $ac_func innocuous_$ac_func
7150 /* System header to define __stub macros and hopefully few prototypes,
7151 which can conflict with char $ac_func (); below.
7152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7153 <limits.h> exists even on freestanding compilers. */
7155 #ifdef __STDC__
7156 # include <limits.h>
7157 #else
7158 # include <assert.h>
7159 #endif
7161 #undef $ac_func
7163 /* Override any gcc2 internal prototype to avoid an error. */
7164 #ifdef __cplusplus
7165 extern "C"
7167 #endif
7168 /* We use char because int might match the return type of a gcc2
7169 builtin and then its argument prototype would still apply. */
7170 char $ac_func ();
7171 /* The GNU C library defines this for functions which it implements
7172 to always fail with ENOSYS. Some functions are actually named
7173 something starting with __ and the normal name is an alias. */
7174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7175 choke me
7176 #else
7177 char (*f) () = $ac_func;
7178 #endif
7179 #ifdef __cplusplus
7181 #endif
7184 main ()
7186 return f != $ac_func;
7188 return 0;
7190 _ACEOF
7191 rm -f conftest.$ac_objext conftest$ac_exeext
7192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7193 (eval $ac_link) 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } &&
7200 { ac_try='test -z "$ac_c_werror_flag"
7201 || test ! -s conftest.err'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; } &&
7207 { ac_try='test -s conftest$ac_exeext'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7213 eval "$as_ac_var=yes"
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7218 eval "$as_ac_var=no"
7220 rm -f conftest.err conftest.$ac_objext \
7221 conftest$ac_exeext conftest.$ac_ext
7223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7225 if test `eval echo '${'$as_ac_var'}'` = yes; then
7226 cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7228 _ACEOF
7231 done
7234 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7236 for ac_func in stpcpy
7238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7239 echo "$as_me:$LINENO: checking for $ac_func" >&5
7240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7241 if eval "test \"\${$as_ac_var+set}\" = set"; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244 cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h. */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7252 #define $ac_func innocuous_$ac_func
7254 /* System header to define __stub macros and hopefully few prototypes,
7255 which can conflict with char $ac_func (); below.
7256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7257 <limits.h> exists even on freestanding compilers. */
7259 #ifdef __STDC__
7260 # include <limits.h>
7261 #else
7262 # include <assert.h>
7263 #endif
7265 #undef $ac_func
7267 /* Override any gcc2 internal prototype to avoid an error. */
7268 #ifdef __cplusplus
7269 extern "C"
7271 #endif
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274 char $ac_func ();
7275 /* The GNU C library defines this for functions which it implements
7276 to always fail with ENOSYS. Some functions are actually named
7277 something starting with __ and the normal name is an alias. */
7278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279 choke me
7280 #else
7281 char (*f) () = $ac_func;
7282 #endif
7283 #ifdef __cplusplus
7285 #endif
7288 main ()
7290 return f != $ac_func;
7292 return 0;
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 (eval $ac_try) 2>&5
7308 ac_status=$?
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest$ac_exeext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7317 eval "$as_ac_var=yes"
7318 else
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 eval "$as_ac_var=no"
7324 rm -f conftest.err conftest.$ac_objext \
7325 conftest$ac_exeext conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7329 if test `eval echo '${'$as_ac_var'}'` = yes; then
7330 cat >>confdefs.h <<_ACEOF
7331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7332 _ACEOF
7335 done
7338 if test "${ac_cv_func_stpcpy}" = "yes"; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_STPCPY 1
7342 _ACEOF
7346 if test $ac_cv_header_locale_h = yes; then
7347 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7348 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7349 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7350 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352 cat >conftest.$ac_ext <<_ACEOF
7353 /* confdefs.h. */
7354 _ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7358 #include <locale.h>
7360 main ()
7362 return LC_MESSAGES
7364 return 0;
7366 _ACEOF
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>conftest.er1
7370 ac_status=$?
7371 grep -v '^ *+' conftest.er1 >conftest.err
7372 rm -f conftest.er1
7373 cat conftest.err >&5
7374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375 (exit $ac_status); } &&
7376 { ac_try='test -z "$ac_c_werror_flag"
7377 || test ! -s conftest.err'
7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379 (eval $ac_try) 2>&5
7380 ac_status=$?
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); }; } &&
7383 { ac_try='test -s conftest$ac_exeext'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 (eval $ac_try) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; }; then
7389 am_cv_val_LC_MESSAGES=yes
7390 else
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 am_cv_val_LC_MESSAGES=no
7396 rm -f conftest.err conftest.$ac_objext \
7397 conftest$ac_exeext conftest.$ac_ext
7399 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7400 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7401 if test $am_cv_val_LC_MESSAGES = yes; then
7403 cat >>confdefs.h <<\_ACEOF
7404 #define HAVE_LC_MESSAGES 1
7405 _ACEOF
7409 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7410 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7411 # Check whether --enable-nls or --disable-nls was given.
7412 if test "${enable_nls+set}" = set; then
7413 enableval="$enable_nls"
7414 USE_NLS=$enableval
7415 else
7416 USE_NLS=yes
7418 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7419 echo "${ECHO_T}$USE_NLS" >&6
7422 USE_INCLUDED_LIBINTL=no
7424 if test "$USE_NLS" = "yes"; then
7425 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7426 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7428 # Check whether --with-included-gettext or --without-included-gettext was given.
7429 if test "${with_included_gettext+set}" = set; then
7430 withval="$with_included_gettext"
7431 nls_cv_force_use_gnu_gettext=$withval
7432 else
7433 nls_cv_force_use_gnu_gettext=no
7435 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7436 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7438 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7439 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7440 nls_cv_header_intl=
7441 nls_cv_header_libgt=
7442 CATOBJEXT=
7444 if test "${ac_cv_header_libintl_h+set}" = set; then
7445 echo "$as_me:$LINENO: checking for libintl.h" >&5
7446 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7447 if test "${ac_cv_header_libintl_h+set}" = set; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7451 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7452 else
7453 # Is the header compilable?
7454 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7455 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 $ac_includes_default
7463 #include <libintl.h>
7464 _ACEOF
7465 rm -f conftest.$ac_objext
7466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7467 (eval $ac_compile) 2>conftest.er1
7468 ac_status=$?
7469 grep -v '^ *+' conftest.er1 >conftest.err
7470 rm -f conftest.er1
7471 cat conftest.err >&5
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); } &&
7474 { ac_try='test -z "$ac_c_werror_flag"
7475 || test ! -s conftest.err'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 (eval $ac_try) 2>&5
7478 ac_status=$?
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; } &&
7481 { ac_try='test -s conftest.$ac_objext'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; }; then
7487 ac_header_compiler=yes
7488 else
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 ac_header_compiler=no
7494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6
7498 # Is the header present?
7499 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7500 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h. */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 #include <libintl.h>
7508 _ACEOF
7509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } >/dev/null; then
7517 if test -s conftest.err; then
7518 ac_cpp_err=$ac_c_preproc_warn_flag
7519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7520 else
7521 ac_cpp_err=
7523 else
7524 ac_cpp_err=yes
7526 if test -z "$ac_cpp_err"; then
7527 ac_header_preproc=yes
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_header_preproc=no
7534 rm -f conftest.err conftest.$ac_ext
7535 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7536 echo "${ECHO_T}$ac_header_preproc" >&6
7538 # So? What about this header?
7539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7540 yes:no: )
7541 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7542 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7544 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7545 ac_header_preproc=yes
7547 no:yes:* )
7548 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7549 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7551 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7552 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7553 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7554 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7555 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7556 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7557 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7559 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7561 cat <<\_ASBOX
7562 ## ------------------------------------------ ##
7563 ## Report this to the AC_PACKAGE_NAME lists. ##
7564 ## ------------------------------------------ ##
7565 _ASBOX
7567 sed "s/^/$as_me: WARNING: /" >&2
7569 esac
7570 echo "$as_me:$LINENO: checking for libintl.h" >&5
7571 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7572 if test "${ac_cv_header_libintl_h+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 ac_cv_header_libintl_h=$ac_header_preproc
7577 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7578 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7581 if test $ac_cv_header_libintl_h = yes; then
7582 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7583 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7584 if test "${gt_cv_func_gettext_libc+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 #include <libintl.h>
7595 main ()
7597 return (int) gettext ("")
7599 return 0;
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7604 (eval $ac_link) 2>conftest.er1
7605 ac_status=$?
7606 grep -v '^ *+' conftest.er1 >conftest.err
7607 rm -f conftest.er1
7608 cat conftest.err >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); } &&
7611 { ac_try='test -z "$ac_c_werror_flag"
7612 || test ! -s conftest.err'
7613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7614 (eval $ac_try) 2>&5
7615 ac_status=$?
7616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); }; } &&
7618 { ac_try='test -s conftest$ac_exeext'
7619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 (eval $ac_try) 2>&5
7621 ac_status=$?
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7624 gt_cv_func_gettext_libc=yes
7625 else
7626 echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7629 gt_cv_func_gettext_libc=no
7631 rm -f conftest.err conftest.$ac_objext \
7632 conftest$ac_exeext conftest.$ac_ext
7634 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7635 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7637 if test "$gt_cv_func_gettext_libc" != "yes"; then
7638 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7639 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7640 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7641 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 else
7643 ac_check_lib_save_LIBS=$LIBS
7644 LIBS="-lintl $LIBS"
7645 cat >conftest.$ac_ext <<_ACEOF
7646 /* confdefs.h. */
7647 _ACEOF
7648 cat confdefs.h >>conftest.$ac_ext
7649 cat >>conftest.$ac_ext <<_ACEOF
7650 /* end confdefs.h. */
7652 /* Override any gcc2 internal prototype to avoid an error. */
7653 #ifdef __cplusplus
7654 extern "C"
7655 #endif
7656 /* We use char because int might match the return type of a gcc2
7657 builtin and then its argument prototype would still apply. */
7658 char bindtextdomain ();
7660 main ()
7662 bindtextdomain ();
7664 return 0;
7666 _ACEOF
7667 rm -f conftest.$ac_objext conftest$ac_exeext
7668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7669 (eval $ac_link) 2>conftest.er1
7670 ac_status=$?
7671 grep -v '^ *+' conftest.er1 >conftest.err
7672 rm -f conftest.er1
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } &&
7676 { ac_try='test -z "$ac_c_werror_flag"
7677 || test ! -s conftest.err'
7678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 (eval $ac_try) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest$ac_exeext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_lib_intl_bindtextdomain=yes
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 ac_cv_lib_intl_bindtextdomain=no
7696 rm -f conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7698 LIBS=$ac_check_lib_save_LIBS
7700 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7701 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7702 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7703 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7704 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7705 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h. */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7716 main ()
7718 return (int) gettext ("")
7720 return 0;
7722 _ACEOF
7723 rm -f conftest.$ac_objext conftest$ac_exeext
7724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7725 (eval $ac_link) 2>conftest.er1
7726 ac_status=$?
7727 grep -v '^ *+' conftest.er1 >conftest.err
7728 rm -f conftest.er1
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -z "$ac_c_werror_flag"
7733 || test ! -s conftest.err'
7734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 (eval $ac_try) 2>&5
7736 ac_status=$?
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; } &&
7739 { ac_try='test -s conftest$ac_exeext'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 (eval $ac_try) 2>&5
7742 ac_status=$?
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; }; then
7745 gt_cv_func_gettext_libintl=yes
7746 else
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 gt_cv_func_gettext_libintl=no
7752 rm -f conftest.err conftest.$ac_objext \
7753 conftest$ac_exeext conftest.$ac_ext
7755 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7756 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7761 if test "$gt_cv_func_gettext_libc" = "yes" \
7762 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_GETTEXT 1
7766 _ACEOF
7768 # Extract the first word of "msgfmt", so it can be a program name with args.
7769 set dummy msgfmt; ac_word=$2
7770 echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772 if test "${ac_cv_path_MSGFMT+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775 case "$MSGFMT" in
7777 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7780 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7781 for ac_dir in $PATH; do
7782 test -z "$ac_dir" && ac_dir=.
7783 if test -f $ac_dir/$ac_word; then
7784 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7785 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7786 break
7789 done
7790 IFS="$ac_save_ifs"
7791 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7793 esac
7795 MSGFMT="$ac_cv_path_MSGFMT"
7796 if test -n "$MSGFMT"; then
7797 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7798 echo "${ECHO_T}$MSGFMT" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7803 if test "$MSGFMT" != "no"; then
7805 for ac_func in dcgettext
7807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7808 echo "$as_me:$LINENO: checking for $ac_func" >&5
7809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7810 if eval "test \"\${$as_ac_var+set}\" = set"; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7821 #define $ac_func innocuous_$ac_func
7823 /* System header to define __stub macros and hopefully few prototypes,
7824 which can conflict with char $ac_func (); below.
7825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7826 <limits.h> exists even on freestanding compilers. */
7828 #ifdef __STDC__
7829 # include <limits.h>
7830 #else
7831 # include <assert.h>
7832 #endif
7834 #undef $ac_func
7836 /* Override any gcc2 internal prototype to avoid an error. */
7837 #ifdef __cplusplus
7838 extern "C"
7840 #endif
7841 /* We use char because int might match the return type of a gcc2
7842 builtin and then its argument prototype would still apply. */
7843 char $ac_func ();
7844 /* The GNU C library defines this for functions which it implements
7845 to always fail with ENOSYS. Some functions are actually named
7846 something starting with __ and the normal name is an alias. */
7847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7848 choke me
7849 #else
7850 char (*f) () = $ac_func;
7851 #endif
7852 #ifdef __cplusplus
7854 #endif
7857 main ()
7859 return f != $ac_func;
7861 return 0;
7863 _ACEOF
7864 rm -f conftest.$ac_objext conftest$ac_exeext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7866 (eval $ac_link) 2>conftest.er1
7867 ac_status=$?
7868 grep -v '^ *+' conftest.er1 >conftest.err
7869 rm -f conftest.er1
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag"
7874 || test ! -s conftest.err'
7875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876 (eval $ac_try) 2>&5
7877 ac_status=$?
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); }; } &&
7880 { ac_try='test -s conftest$ac_exeext'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; }; then
7886 eval "$as_ac_var=yes"
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 eval "$as_ac_var=no"
7893 rm -f conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7897 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7898 if test `eval echo '${'$as_ac_var'}'` = yes; then
7899 cat >>confdefs.h <<_ACEOF
7900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7901 _ACEOF
7904 done
7906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7907 set dummy gmsgfmt; ac_word=$2
7908 echo "$as_me:$LINENO: checking for $ac_word" >&5
7909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7910 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912 else
7913 case $GMSGFMT in
7914 [\\/]* | ?:[\\/]*)
7915 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7921 IFS=$as_save_IFS
7922 test -z "$as_dir" && as_dir=.
7923 for ac_exec_ext in '' $ac_executable_extensions; do
7924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7925 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927 break 2
7929 done
7930 done
7932 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7934 esac
7936 GMSGFMT=$ac_cv_path_GMSGFMT
7938 if test -n "$GMSGFMT"; then
7939 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7940 echo "${ECHO_T}$GMSGFMT" >&6
7941 else
7942 echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6
7946 # Extract the first word of "xgettext", so it can be a program name with args.
7947 set dummy xgettext; ac_word=$2
7948 echo "$as_me:$LINENO: checking for $ac_word" >&5
7949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7950 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 case "$XGETTEXT" in
7955 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7959 for ac_dir in $PATH; do
7960 test -z "$ac_dir" && ac_dir=.
7961 if test -f $ac_dir/$ac_word; then
7962 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7963 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7964 break
7967 done
7968 IFS="$ac_save_ifs"
7969 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7971 esac
7973 XGETTEXT="$ac_cv_path_XGETTEXT"
7974 if test -n "$XGETTEXT"; then
7975 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7976 echo "${ECHO_T}$XGETTEXT" >&6
7977 else
7978 echo "$as_me:$LINENO: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7990 main ()
7992 extern int _nl_msg_cat_cntr;
7993 return _nl_msg_cat_cntr
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext conftest$ac_exeext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 CATOBJEXT=.gmo
8021 DATADIRNAME=share
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 CATOBJEXT=.mo
8027 DATADIRNAME=lib
8029 rm -f conftest.err conftest.$ac_objext \
8030 conftest$ac_exeext conftest.$ac_ext
8031 INSTOBJEXT=.mo
8040 if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then
8041 # Neither gettext nor catgets in included in the C library.
8042 # Fall back on GNU gettext library (assuming it is present).
8043 nls_cv_use_gnu_gettext=yes
8047 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8048 INTLOBJS="\$(GETTOBJS)"
8049 # Extract the first word of "msgfmt", so it can be a program name with args.
8050 set dummy msgfmt; ac_word=$2
8051 echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053 if test "${ac_cv_path_MSGFMT+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 else
8056 case "$MSGFMT" in
8058 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8062 for ac_dir in $PATH; do
8063 test -z "$ac_dir" && ac_dir=.
8064 if test -f $ac_dir/$ac_word; then
8065 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8066 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8067 break
8070 done
8071 IFS="$ac_save_ifs"
8072 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
8074 esac
8076 MSGFMT="$ac_cv_path_MSGFMT"
8077 if test -n "$MSGFMT"; then
8078 echo "$as_me:$LINENO: result: $MSGFMT" >&5
8079 echo "${ECHO_T}$MSGFMT" >&6
8080 else
8081 echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6
8085 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8086 set dummy gmsgfmt; ac_word=$2
8087 echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8089 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 case $GMSGFMT in
8093 [\\/]* | ?:[\\/]*)
8094 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 for as_dir in $PATH
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8104 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8106 break 2
8108 done
8109 done
8111 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8113 esac
8115 GMSGFMT=$ac_cv_path_GMSGFMT
8117 if test -n "$GMSGFMT"; then
8118 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8119 echo "${ECHO_T}$GMSGFMT" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8125 # Extract the first word of "xgettext", so it can be a program name with args.
8126 set dummy xgettext; ac_word=$2
8127 echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8129 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 case "$XGETTEXT" in
8134 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8138 for ac_dir in $PATH; do
8139 test -z "$ac_dir" && ac_dir=.
8140 if test -f $ac_dir/$ac_word; then
8141 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8142 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8143 break
8146 done
8147 IFS="$ac_save_ifs"
8148 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8150 esac
8152 XGETTEXT="$ac_cv_path_XGETTEXT"
8153 if test -n "$XGETTEXT"; then
8154 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8155 echo "${ECHO_T}$XGETTEXT" >&6
8156 else
8157 echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6
8162 USE_INCLUDED_LIBINTL=yes
8163 CATOBJEXT=.gmo
8164 INSTOBJEXT=.mo
8165 DATADIRNAME=share
8166 INTLDEPS='$(top_builddir)/../intl/libintl.a'
8167 INTLLIBS=$INTLDEPS
8168 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8169 nls_cv_header_intl=libintl.h
8170 nls_cv_header_libgt=libgettext.h
8173 if test "$XGETTEXT" != ":"; then
8174 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8176 else
8177 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
8178 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
8179 XGETTEXT=":"
8183 # We need to process the po/ directory.
8184 POSUB=po
8185 else
8186 DATADIRNAME=share
8187 nls_cv_header_intl=libintl.h
8188 nls_cv_header_libgt=libgettext.h
8191 # If this is used in GNU gettext we have to set USE_NLS to `yes'
8192 # because some of the sources are only built for this goal.
8193 if test "$PACKAGE" = gettext; then
8194 USE_NLS=yes
8195 USE_INCLUDED_LIBINTL=yes
8198 for lang in $ALL_LINGUAS; do
8199 GMOFILES="$GMOFILES $lang.gmo"
8200 POFILES="$POFILES $lang.po"
8201 done
8214 if test "x$CATOBJEXT" != "x"; then
8216 cat >>confdefs.h <<\_ACEOF
8217 #define ENABLE_NLS 1
8218 _ACEOF
8223 if test "x$CATOBJEXT" != "x"; then
8224 if test "x$ALL_LINGUAS" = "x"; then
8225 LINGUAS=
8226 else
8227 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8228 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8229 NEW_LINGUAS=
8230 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8231 case "$ALL_LINGUAS" in
8232 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8233 esac
8234 done
8235 LINGUAS=$NEW_LINGUAS
8236 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8237 echo "${ECHO_T}$LINGUAS" >&6
8240 if test -n "$LINGUAS"; then
8241 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8245 if test $ac_cv_header_locale_h = yes; then
8246 INCLUDE_LOCALE_H="#include <locale.h>"
8247 else
8248 INCLUDE_LOCALE_H="\
8249 /* The system does not provide the header <locale.h>. Take care yourself. */"
8253 if test -f $srcdir/po2tbl.sed.in; then
8254 if test "$CATOBJEXT" = ".cat"; then
8255 if test "${ac_cv_header_linux_version_h+set}" = set; then
8256 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8257 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8258 if test "${ac_cv_header_linux_version_h+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8262 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8263 else
8264 # Is the header compilable?
8265 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8266 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h. */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 $ac_includes_default
8274 #include <linux/version.h>
8275 _ACEOF
8276 rm -f conftest.$ac_objext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8278 (eval $ac_compile) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_header_compiler=yes
8299 else
8300 echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8303 ac_header_compiler=no
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8307 echo "${ECHO_T}$ac_header_compiler" >&6
8309 # Is the header present?
8310 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8311 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 #include <linux/version.h>
8319 _ACEOF
8320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } >/dev/null; then
8328 if test -s conftest.err; then
8329 ac_cpp_err=$ac_c_preproc_warn_flag
8330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8331 else
8332 ac_cpp_err=
8334 else
8335 ac_cpp_err=yes
8337 if test -z "$ac_cpp_err"; then
8338 ac_header_preproc=yes
8339 else
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_header_preproc=no
8345 rm -f conftest.err conftest.$ac_ext
8346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6
8349 # So? What about this header?
8350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351 yes:no: )
8352 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8355 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8356 ac_header_preproc=yes
8358 no:yes:* )
8359 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8360 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8362 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8364 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8366 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8369 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8370 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8372 cat <<\_ASBOX
8373 ## ------------------------------------------ ##
8374 ## Report this to the AC_PACKAGE_NAME lists. ##
8375 ## ------------------------------------------ ##
8376 _ASBOX
8378 sed "s/^/$as_me: WARNING: /" >&2
8380 esac
8381 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8382 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8383 if test "${ac_cv_header_linux_version_h+set}" = set; then
8384 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 else
8386 ac_cv_header_linux_version_h=$ac_header_preproc
8388 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8389 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8392 if test $ac_cv_header_linux_version_h = yes; then
8393 msgformat=linux
8394 else
8395 msgformat=xopen
8400 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8402 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8403 $srcdir/po2tbl.sed.in > po2tbl.sed
8406 if test "$PACKAGE" = "gettext"; then
8407 GT_NO="#NO#"
8408 GT_YES=
8409 else
8410 GT_NO=
8411 GT_YES="#YES#"
8416 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8422 if test -f $srcdir/po/POTFILES.in; then
8423 test -d po || mkdir po
8424 if test "x$srcdir" != "x."; then
8425 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8426 posrcprefix="$srcdir/"
8427 else
8428 posrcprefix="../$srcdir/"
8430 else
8431 posrcprefix="../"
8433 rm -f po/POTFILES
8434 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8435 < $srcdir/po/POTFILES.in > po/POTFILES
8439 # Permit host specific settings.
8440 . ${srcdir}/configure.host
8443 # Find a good install program. We prefer a C program (faster),
8444 # so one script is as good as another. But avoid the broken or
8445 # incompatible versions:
8446 # SysV /etc/install, /usr/sbin/install
8447 # SunOS /usr/etc/install
8448 # IRIX /sbin/install
8449 # AIX /bin/install
8450 # AmigaOS /C/install, which installs bootblocks on floppy discs
8451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8454 # OS/2's system install, which has a completely different semantic
8455 # ./install, which can be erroneously created by make from ./install.sh.
8456 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8457 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8458 if test -z "$INSTALL"; then
8459 if test "${ac_cv_path_install+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 # Account for people who put trailing slashes in PATH elements.
8468 case $as_dir/ in
8469 ./ | .// | /cC/* | \
8470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8471 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8472 /usr/ucb/* ) ;;
8474 # OSF1 and SCO ODT 3.0 have their own names for install.
8475 # Don't use installbsd from OSF since it installs stuff as root
8476 # by default.
8477 for ac_prog in ginstall scoinst install; do
8478 for ac_exec_ext in '' $ac_executable_extensions; do
8479 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8480 if test $ac_prog = install &&
8481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8482 # AIX install. It has an incompatible calling convention.
8484 elif test $ac_prog = install &&
8485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8486 # program-specific install script used by HP pwplus--don't use.
8488 else
8489 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8490 break 3
8493 done
8494 done
8496 esac
8497 done
8501 if test "${ac_cv_path_install+set}" = set; then
8502 INSTALL=$ac_cv_path_install
8503 else
8504 # As a last resort, use the slow shell script. We don't cache a
8505 # path for INSTALL within a source directory, because that will
8506 # break other packages using the cache if that directory is
8507 # removed, or if the path is relative.
8508 INSTALL=$ac_install_sh
8511 echo "$as_me:$LINENO: result: $INSTALL" >&5
8512 echo "${ECHO_T}$INSTALL" >&6
8514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8515 # It thinks the first close brace ends the variable substitution.
8516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8523 BFD_HOST_64BIT_LONG=0
8524 BFD_HOST_LONG_LONG=0
8525 BFD_HOST_64_BIT_DEFINED=0
8526 BFD_HOST_64_BIT=
8527 BFD_HOST_U_64_BIT=
8529 echo "$as_me:$LINENO: checking for long long" >&5
8530 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8531 if test "${bfd_cv_has_long_long+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8542 main ()
8544 unsigned long long ll = 18446744073709551615ULL;
8546 return 0;
8548 _ACEOF
8549 rm -f conftest.$ac_objext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8551 (eval $ac_compile) 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } &&
8558 { ac_try='test -z "$ac_c_werror_flag"
8559 || test ! -s conftest.err'
8560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 (eval $ac_try) 2>&5
8562 ac_status=$?
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); }; } &&
8565 { ac_try='test -s conftest.$ac_objext'
8566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 (eval $ac_try) 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
8571 bfd_cv_has_long_long=yes
8572 else
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 bfd_cv_has_long_long=no
8578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8581 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8582 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8583 if test $bfd_cv_has_long_long = yes; then
8584 BFD_HOST_LONG_LONG=1
8585 echo "$as_me:$LINENO: checking for long long" >&5
8586 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8587 if test "${ac_cv_type_long_long+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 cat >conftest.$ac_ext <<_ACEOF
8591 /* confdefs.h. */
8592 _ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 $ac_includes_default
8598 main ()
8600 if ((long long *) 0)
8601 return 0;
8602 if (sizeof (long long))
8603 return 0;
8605 return 0;
8607 _ACEOF
8608 rm -f conftest.$ac_objext
8609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8610 (eval $ac_compile) 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag"
8618 || test ! -s conftest.err'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8620 (eval $ac_try) 2>&5
8621 ac_status=$?
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; } &&
8624 { ac_try='test -s conftest.$ac_objext'
8625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8626 (eval $ac_try) 2>&5
8627 ac_status=$?
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); }; }; then
8630 ac_cv_type_long_long=yes
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cv_type_long_long=no
8637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8639 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8640 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8642 echo "$as_me:$LINENO: checking size of long long" >&5
8643 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8644 if test "${ac_cv_sizeof_long_long+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 else
8647 if test "$ac_cv_type_long_long" = yes; then
8648 # The cast to unsigned long works around a bug in the HP C Compiler
8649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8651 # This bug is HP SR number 8606223364.
8652 if test "$cross_compiling" = yes; then
8653 # Depending upon the size, compute the lo and hi bounds.
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8662 main ()
8664 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8665 test_array [0] = 0
8668 return 0;
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8673 (eval $ac_compile) 2>conftest.er1
8674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 (eval $ac_try) 2>&5
8684 ac_status=$?
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest.$ac_objext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8689 (eval $ac_try) 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 ac_lo=0 ac_mid=0
8694 while :; do
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h. */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8701 $ac_includes_default
8703 main ()
8705 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8706 test_array [0] = 0
8709 return 0;
8711 _ACEOF
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -z "$ac_c_werror_flag"
8722 || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 (eval $ac_try) 2>&5
8725 ac_status=$?
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest.$ac_objext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_hi=$ac_mid; break
8735 else
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 ac_lo=`expr $ac_mid + 1`
8740 if test $ac_lo -le $ac_mid; then
8741 ac_lo= ac_hi=
8742 break
8744 ac_mid=`expr 2 '*' $ac_mid + 1`
8746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8747 done
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758 $ac_includes_default
8760 main ()
8762 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
8763 test_array [0] = 0
8766 return 0;
8768 _ACEOF
8769 rm -f conftest.$ac_objext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8771 (eval $ac_compile) 2>conftest.er1
8772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag"
8779 || test ! -s conftest.err'
8780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 (eval $ac_try) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); }; } &&
8785 { ac_try='test -s conftest.$ac_objext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_hi=-1 ac_mid=-1
8792 while :; do
8793 cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h. */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8801 main ()
8803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
8804 test_array [0] = 0
8807 return 0;
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8812 (eval $ac_compile) 2>conftest.er1
8813 ac_status=$?
8814 grep -v '^ *+' conftest.er1 >conftest.err
8815 rm -f conftest.er1
8816 cat conftest.err >&5
8817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8818 (exit $ac_status); } &&
8819 { ac_try='test -z "$ac_c_werror_flag"
8820 || test ! -s conftest.err'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 (eval $ac_try) 2>&5
8823 ac_status=$?
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 (eval $ac_try) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); }; }; then
8832 ac_lo=$ac_mid; break
8833 else
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 ac_hi=`expr '(' $ac_mid ')' - 1`
8838 if test $ac_mid -le $ac_hi; then
8839 ac_lo= ac_hi=
8840 break
8842 ac_mid=`expr 2 '*' $ac_mid`
8844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8845 done
8846 else
8847 echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8850 ac_lo= ac_hi=
8852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8855 # Binary search between lo and hi bounds.
8856 while test "x$ac_lo" != "x$ac_hi"; do
8857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864 $ac_includes_default
8866 main ()
8868 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
8869 test_array [0] = 0
8872 return 0;
8874 _ACEOF
8875 rm -f conftest.$ac_objext
8876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8877 (eval $ac_compile) 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -z "$ac_c_werror_flag"
8885 || test ! -s conftest.err'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; } &&
8891 { ac_try='test -s conftest.$ac_objext'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8893 (eval $ac_try) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; }; then
8897 ac_hi=$ac_mid
8898 else
8899 echo "$as_me: failed program was:" >&5
8900 sed 's/^/| /' conftest.$ac_ext >&5
8902 ac_lo=`expr '(' $ac_mid ')' + 1`
8904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8905 done
8906 case $ac_lo in
8907 ?*) ac_cv_sizeof_long_long=$ac_lo;;
8908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8909 See \`config.log' for more details." >&5
8910 echo "$as_me: error: cannot compute sizeof (long long), 77
8911 See \`config.log' for more details." >&2;}
8912 { (exit 1); exit 1; }; } ;;
8913 esac
8914 else
8915 if test "$cross_compiling" = yes; then
8916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8917 See \`config.log' for more details." >&5
8918 echo "$as_me: error: cannot run test program while cross compiling
8919 See \`config.log' for more details." >&2;}
8920 { (exit 1); exit 1; }; }
8921 else
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8929 long longval () { return (long) (sizeof (long long)); }
8930 unsigned long ulongval () { return (long) (sizeof (long long)); }
8931 #include <stdio.h>
8932 #include <stdlib.h>
8934 main ()
8937 FILE *f = fopen ("conftest.val", "w");
8938 if (! f)
8939 exit (1);
8940 if (((long) (sizeof (long long))) < 0)
8942 long i = longval ();
8943 if (i != ((long) (sizeof (long long))))
8944 exit (1);
8945 fprintf (f, "%ld\n", i);
8947 else
8949 unsigned long i = ulongval ();
8950 if (i != ((long) (sizeof (long long))))
8951 exit (1);
8952 fprintf (f, "%lu\n", i);
8954 exit (ferror (f) || fclose (f) != 0);
8957 return 0;
8959 _ACEOF
8960 rm -f conftest$ac_exeext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8962 (eval $ac_link) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8967 (eval $ac_try) 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_sizeof_long_long=`cat conftest.val`
8972 else
8973 echo "$as_me: program exited with status $ac_status" >&5
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ( exit $ac_status )
8978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
8979 See \`config.log' for more details." >&5
8980 echo "$as_me: error: cannot compute sizeof (long long), 77
8981 See \`config.log' for more details." >&2;}
8982 { (exit 1); exit 1; }; }
8984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8987 rm -f conftest.val
8988 else
8989 ac_cv_sizeof_long_long=0
8992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8993 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8994 cat >>confdefs.h <<_ACEOF
8995 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8996 _ACEOF
9001 echo "$as_me:$LINENO: checking for long" >&5
9002 echo $ECHO_N "checking for long... $ECHO_C" >&6
9003 if test "${ac_cv_type_long+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9005 else
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h. */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 $ac_includes_default
9014 main ()
9016 if ((long *) 0)
9017 return 0;
9018 if (sizeof (long))
9019 return 0;
9021 return 0;
9023 _ACEOF
9024 rm -f conftest.$ac_objext
9025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9026 (eval $ac_compile) 2>conftest.er1
9027 ac_status=$?
9028 grep -v '^ *+' conftest.er1 >conftest.err
9029 rm -f conftest.er1
9030 cat conftest.err >&5
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); } &&
9033 { ac_try='test -z "$ac_c_werror_flag"
9034 || test ! -s conftest.err'
9035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 (eval $ac_try) 2>&5
9037 ac_status=$?
9038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); }; } &&
9040 { ac_try='test -s conftest.$ac_objext'
9041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042 (eval $ac_try) 2>&5
9043 ac_status=$?
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 ac_cv_type_long=yes
9047 else
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 ac_cv_type_long=no
9053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9055 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9056 echo "${ECHO_T}$ac_cv_type_long" >&6
9058 echo "$as_me:$LINENO: checking size of long" >&5
9059 echo $ECHO_N "checking size of long... $ECHO_C" >&6
9060 if test "${ac_cv_sizeof_long+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 if test "$ac_cv_type_long" = yes; then
9064 # The cast to unsigned long works around a bug in the HP C Compiler
9065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9067 # This bug is HP SR number 8606223364.
9068 if test "$cross_compiling" = yes; then
9069 # Depending upon the size, compute the lo and hi bounds.
9070 cat >conftest.$ac_ext <<_ACEOF
9071 /* confdefs.h. */
9072 _ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9076 $ac_includes_default
9078 main ()
9080 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9081 test_array [0] = 0
9084 return 0;
9086 _ACEOF
9087 rm -f conftest.$ac_objext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9089 (eval $ac_compile) 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest.$ac_objext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_lo=0 ac_mid=0
9110 while :; do
9111 cat >conftest.$ac_ext <<_ACEOF
9112 /* confdefs.h. */
9113 _ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9119 main ()
9121 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9122 test_array [0] = 0
9125 return 0;
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>conftest.er1
9131 ac_status=$?
9132 grep -v '^ *+' conftest.er1 >conftest.err
9133 rm -f conftest.er1
9134 cat conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); } &&
9137 { ac_try='test -z "$ac_c_werror_flag"
9138 || test ! -s conftest.err'
9139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9140 (eval $ac_try) 2>&5
9141 ac_status=$?
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); }; } &&
9144 { ac_try='test -s conftest.$ac_objext'
9145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9146 (eval $ac_try) 2>&5
9147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; }; then
9150 ac_hi=$ac_mid; break
9151 else
9152 echo "$as_me: failed program was:" >&5
9153 sed 's/^/| /' conftest.$ac_ext >&5
9155 ac_lo=`expr $ac_mid + 1`
9156 if test $ac_lo -le $ac_mid; then
9157 ac_lo= ac_hi=
9158 break
9160 ac_mid=`expr 2 '*' $ac_mid + 1`
9162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9163 done
9164 else
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.$ac_ext >&5
9168 cat >conftest.$ac_ext <<_ACEOF
9169 /* confdefs.h. */
9170 _ACEOF
9171 cat confdefs.h >>conftest.$ac_ext
9172 cat >>conftest.$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 $ac_includes_default
9176 main ()
9178 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9179 test_array [0] = 0
9182 return 0;
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>conftest.er1
9188 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err
9190 rm -f conftest.er1
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag"
9195 || test ! -s conftest.err'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9203 (eval $ac_try) 2>&5
9204 ac_status=$?
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); }; }; then
9207 ac_hi=-1 ac_mid=-1
9208 while :; do
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h. */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h. */
9215 $ac_includes_default
9217 main ()
9219 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9220 test_array [0] = 0
9223 return 0;
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9228 (eval $ac_compile) 2>conftest.er1
9229 ac_status=$?
9230 grep -v '^ *+' conftest.er1 >conftest.err
9231 rm -f conftest.er1
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } &&
9235 { ac_try='test -z "$ac_c_werror_flag"
9236 || test ! -s conftest.err'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 (eval $ac_try) 2>&5
9239 ac_status=$?
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; } &&
9242 { ac_try='test -s conftest.$ac_objext'
9243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244 (eval $ac_try) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_lo=$ac_mid; break
9249 else
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 ac_hi=`expr '(' $ac_mid ')' - 1`
9254 if test $ac_mid -le $ac_hi; then
9255 ac_lo= ac_hi=
9256 break
9258 ac_mid=`expr 2 '*' $ac_mid`
9260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9261 done
9262 else
9263 echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9266 ac_lo= ac_hi=
9268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9271 # Binary search between lo and hi bounds.
9272 while test "x$ac_lo" != "x$ac_hi"; do
9273 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9274 cat >conftest.$ac_ext <<_ACEOF
9275 /* confdefs.h. */
9276 _ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9280 $ac_includes_default
9282 main ()
9284 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9285 test_array [0] = 0
9288 return 0;
9290 _ACEOF
9291 rm -f conftest.$ac_objext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9293 (eval $ac_compile) 2>conftest.er1
9294 ac_status=$?
9295 grep -v '^ *+' conftest.er1 >conftest.err
9296 rm -f conftest.er1
9297 cat conftest.err >&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } &&
9300 { ac_try='test -z "$ac_c_werror_flag"
9301 || test ! -s conftest.err'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; } &&
9307 { ac_try='test -s conftest.$ac_objext'
9308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 (eval $ac_try) 2>&5
9310 ac_status=$?
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); }; }; then
9313 ac_hi=$ac_mid
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9318 ac_lo=`expr '(' $ac_mid ')' + 1`
9320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9321 done
9322 case $ac_lo in
9323 ?*) ac_cv_sizeof_long=$ac_lo;;
9324 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9325 See \`config.log' for more details." >&5
9326 echo "$as_me: error: cannot compute sizeof (long), 77
9327 See \`config.log' for more details." >&2;}
9328 { (exit 1); exit 1; }; } ;;
9329 esac
9330 else
9331 if test "$cross_compiling" = yes; then
9332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9333 See \`config.log' for more details." >&5
9334 echo "$as_me: error: cannot run test program while cross compiling
9335 See \`config.log' for more details." >&2;}
9336 { (exit 1); exit 1; }; }
9337 else
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 $ac_includes_default
9345 long longval () { return (long) (sizeof (long)); }
9346 unsigned long ulongval () { return (long) (sizeof (long)); }
9347 #include <stdio.h>
9348 #include <stdlib.h>
9350 main ()
9353 FILE *f = fopen ("conftest.val", "w");
9354 if (! f)
9355 exit (1);
9356 if (((long) (sizeof (long))) < 0)
9358 long i = longval ();
9359 if (i != ((long) (sizeof (long))))
9360 exit (1);
9361 fprintf (f, "%ld\n", i);
9363 else
9365 unsigned long i = ulongval ();
9366 if (i != ((long) (sizeof (long))))
9367 exit (1);
9368 fprintf (f, "%lu\n", i);
9370 exit (ferror (f) || fclose (f) != 0);
9373 return 0;
9375 _ACEOF
9376 rm -f conftest$ac_exeext
9377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 (eval $ac_try) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; }; then
9387 ac_cv_sizeof_long=`cat conftest.val`
9388 else
9389 echo "$as_me: program exited with status $ac_status" >&5
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ( exit $ac_status )
9394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9395 See \`config.log' for more details." >&5
9396 echo "$as_me: error: cannot compute sizeof (long), 77
9397 See \`config.log' for more details." >&2;}
9398 { (exit 1); exit 1; }; }
9400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9403 rm -f conftest.val
9404 else
9405 ac_cv_sizeof_long=0
9408 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9409 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
9410 cat >>confdefs.h <<_ACEOF
9411 #define SIZEOF_LONG $ac_cv_sizeof_long
9412 _ACEOF
9415 if test "x${ac_cv_sizeof_long}" = "x8"; then
9416 host64=true
9417 BFD_HOST_64BIT_LONG=1
9418 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
9419 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
9420 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
9421 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
9422 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
9425 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
9426 BFD_HOST_64_BIT_DEFINED=1
9427 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
9428 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9437 # Put a plausible default for CC_FOR_BUILD in Makefile.
9438 if test -z "$CC_FOR_BUILD"; then
9439 if test "x$cross_compiling" = "xno"; then
9440 CC_FOR_BUILD='$(CC)'
9441 else
9442 CC_FOR_BUILD=gcc
9446 # Also set EXEEXT_FOR_BUILD.
9447 if test "x$cross_compiling" = "xno"; then
9448 EXEEXT_FOR_BUILD='$(EXEEXT)'
9449 else
9450 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
9451 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
9452 if test "${bfd_cv_build_exeext+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9454 else
9455 rm -f conftest*
9456 echo 'int main () { return 0; }' > conftest.c
9457 bfd_cv_build_exeext=
9458 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
9459 for file in conftest.*; do
9460 case $file in
9461 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
9462 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
9463 esac
9464 done
9465 rm -f conftest*
9466 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
9468 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
9469 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
9470 EXEEXT_FOR_BUILD=""
9471 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
9481 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
9483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9485 echo "$as_me:$LINENO: checking for $ac_header" >&5
9486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9492 else
9493 # Is the header compilable?
9494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9496 cat >conftest.$ac_ext <<_ACEOF
9497 /* confdefs.h. */
9498 _ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 $ac_includes_default
9503 #include <$ac_header>
9504 _ACEOF
9505 rm -f conftest.$ac_objext
9506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9507 (eval $ac_compile) 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } &&
9514 { ac_try='test -z "$ac_c_werror_flag"
9515 || test ! -s conftest.err'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; } &&
9521 { ac_try='test -s conftest.$ac_objext'
9522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9523 (eval $ac_try) 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); }; }; then
9527 ac_header_compiler=yes
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_header_compiler=no
9534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9536 echo "${ECHO_T}$ac_header_compiler" >&6
9538 # Is the header present?
9539 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9542 /* confdefs.h. */
9543 _ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9547 #include <$ac_header>
9548 _ACEOF
9549 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } >/dev/null; then
9557 if test -s conftest.err; then
9558 ac_cpp_err=$ac_c_preproc_warn_flag
9559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9560 else
9561 ac_cpp_err=
9563 else
9564 ac_cpp_err=yes
9566 if test -z "$ac_cpp_err"; then
9567 ac_header_preproc=yes
9568 else
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_header_preproc=no
9574 rm -f conftest.err conftest.$ac_ext
9575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9576 echo "${ECHO_T}$ac_header_preproc" >&6
9578 # So? What about this header?
9579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9580 yes:no: )
9581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9585 ac_header_preproc=yes
9587 no:yes:* )
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9601 cat <<\_ASBOX
9602 ## ------------------------------------------ ##
9603 ## Report this to the AC_PACKAGE_NAME lists. ##
9604 ## ------------------------------------------ ##
9605 _ASBOX
9607 sed "s/^/$as_me: WARNING: /" >&2
9609 esac
9610 echo "$as_me:$LINENO: checking for $ac_header" >&5
9611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 eval "$as_ac_Header=\$ac_header_preproc"
9617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9618 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9622 cat >>confdefs.h <<_ACEOF
9623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9624 _ACEOF
9628 done
9633 for ac_header in fcntl.h sys/file.h sys/time.h
9635 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9637 echo "$as_me:$LINENO: checking for $ac_header" >&5
9638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9644 else
9645 # Is the header compilable?
9646 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9648 cat >conftest.$ac_ext <<_ACEOF
9649 /* confdefs.h. */
9650 _ACEOF
9651 cat confdefs.h >>conftest.$ac_ext
9652 cat >>conftest.$ac_ext <<_ACEOF
9653 /* end confdefs.h. */
9654 $ac_includes_default
9655 #include <$ac_header>
9656 _ACEOF
9657 rm -f conftest.$ac_objext
9658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9659 (eval $ac_compile) 2>conftest.er1
9660 ac_status=$?
9661 grep -v '^ *+' conftest.er1 >conftest.err
9662 rm -f conftest.er1
9663 cat conftest.err >&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } &&
9666 { ac_try='test -z "$ac_c_werror_flag"
9667 || test ! -s conftest.err'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; } &&
9673 { ac_try='test -s conftest.$ac_objext'
9674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9675 (eval $ac_try) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_header_compiler=yes
9680 else
9681 echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9684 ac_header_compiler=no
9686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9688 echo "${ECHO_T}$ac_header_compiler" >&6
9690 # Is the header present?
9691 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9692 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 #include <$ac_header>
9700 _ACEOF
9701 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } >/dev/null; then
9709 if test -s conftest.err; then
9710 ac_cpp_err=$ac_c_preproc_warn_flag
9711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9712 else
9713 ac_cpp_err=
9715 else
9716 ac_cpp_err=yes
9718 if test -z "$ac_cpp_err"; then
9719 ac_header_preproc=yes
9720 else
9721 echo "$as_me: failed program was:" >&5
9722 sed 's/^/| /' conftest.$ac_ext >&5
9724 ac_header_preproc=no
9726 rm -f conftest.err conftest.$ac_ext
9727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9728 echo "${ECHO_T}$ac_header_preproc" >&6
9730 # So? What about this header?
9731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9732 yes:no: )
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9737 ac_header_preproc=yes
9739 no:yes:* )
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9753 cat <<\_ASBOX
9754 ## ------------------------------------------ ##
9755 ## Report this to the AC_PACKAGE_NAME lists. ##
9756 ## ------------------------------------------ ##
9757 _ASBOX
9759 sed "s/^/$as_me: WARNING: /" >&2
9761 esac
9762 echo "$as_me:$LINENO: checking for $ac_header" >&5
9763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9765 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 else
9767 eval "$as_ac_Header=\$ac_header_preproc"
9769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9770 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9774 cat >>confdefs.h <<_ACEOF
9775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9776 _ACEOF
9780 done
9782 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9783 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9784 if test "${ac_cv_header_time+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 #include <sys/types.h>
9794 #include <sys/time.h>
9795 #include <time.h>
9798 main ()
9800 if ((struct tm *) 0)
9801 return 0;
9803 return 0;
9805 _ACEOF
9806 rm -f conftest.$ac_objext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag"
9816 || test ! -s conftest.err'
9817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 (eval $ac_try) 2>&5
9819 ac_status=$?
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; } &&
9822 { ac_try='test -s conftest.$ac_objext'
9823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 (eval $ac_try) 2>&5
9825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 ac_cv_header_time=yes
9829 else
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9833 ac_cv_header_time=no
9835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9837 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9838 echo "${ECHO_T}$ac_cv_header_time" >&6
9839 if test $ac_cv_header_time = yes; then
9841 cat >>confdefs.h <<\_ACEOF
9842 #define TIME_WITH_SYS_TIME 1
9843 _ACEOF
9852 ac_header_dirent=no
9853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9854 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9855 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9856 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h. */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h. */
9866 #include <sys/types.h>
9867 #include <$ac_hdr>
9870 main ()
9872 if ((DIR *) 0)
9873 return 0;
9875 return 0;
9877 _ACEOF
9878 rm -f conftest.$ac_objext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880 (eval $ac_compile) 2>conftest.er1
9881 ac_status=$?
9882 grep -v '^ *+' conftest.er1 >conftest.err
9883 rm -f conftest.er1
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag"
9888 || test ! -s conftest.err'
9889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 (eval $ac_try) 2>&5
9891 ac_status=$?
9892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893 (exit $ac_status); }; } &&
9894 { ac_try='test -s conftest.$ac_objext'
9895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9896 (eval $ac_try) 2>&5
9897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; }; then
9900 eval "$as_ac_Header=yes"
9901 else
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9905 eval "$as_ac_Header=no"
9907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9912 cat >>confdefs.h <<_ACEOF
9913 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9914 _ACEOF
9916 ac_header_dirent=$ac_hdr; break
9919 done
9920 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9921 if test $ac_header_dirent = dirent.h; then
9922 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9923 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9924 if test "${ac_cv_search_opendir+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926 else
9927 ac_func_search_save_LIBS=$LIBS
9928 ac_cv_search_opendir=no
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h. */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9936 /* Override any gcc2 internal prototype to avoid an error. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9942 char opendir ();
9944 main ()
9946 opendir ();
9948 return 0;
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953 (eval $ac_link) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag"
9961 || test ! -s conftest.err'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_search_opendir="none required"
9974 else
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9979 rm -f conftest.err conftest.$ac_objext \
9980 conftest$ac_exeext conftest.$ac_ext
9981 if test "$ac_cv_search_opendir" = no; then
9982 for ac_lib in dir; do
9983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9984 cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h. */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 /* We use char because int might match the return type of a gcc2
9996 builtin and then its argument prototype would still apply. */
9997 char opendir ();
9999 main ()
10001 opendir ();
10003 return 0;
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } &&
10015 { ac_try='test -z "$ac_c_werror_flag"
10016 || test ! -s conftest.err'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10019 ac_status=$?
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10025 ac_status=$?
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ac_cv_search_opendir="-l$ac_lib"
10029 break
10030 else
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10035 rm -f conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037 done
10039 LIBS=$ac_func_search_save_LIBS
10041 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10042 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10043 if test "$ac_cv_search_opendir" != no; then
10044 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10048 else
10049 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10050 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10051 if test "${ac_cv_search_opendir+set}" = set; then
10052 echo $ECHO_N "(cached) $ECHO_C" >&6
10053 else
10054 ac_func_search_save_LIBS=$LIBS
10055 ac_cv_search_opendir=no
10056 cat >conftest.$ac_ext <<_ACEOF
10057 /* confdefs.h. */
10058 _ACEOF
10059 cat confdefs.h >>conftest.$ac_ext
10060 cat >>conftest.$ac_ext <<_ACEOF
10061 /* end confdefs.h. */
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 #ifdef __cplusplus
10065 extern "C"
10066 #endif
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char opendir ();
10071 main ()
10073 opendir ();
10075 return 0;
10077 _ACEOF
10078 rm -f conftest.$ac_objext conftest$ac_exeext
10079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10080 (eval $ac_link) 2>conftest.er1
10081 ac_status=$?
10082 grep -v '^ *+' conftest.er1 >conftest.err
10083 rm -f conftest.er1
10084 cat conftest.err >&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); } &&
10087 { ac_try='test -z "$ac_c_werror_flag"
10088 || test ! -s conftest.err'
10089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10090 (eval $ac_try) 2>&5
10091 ac_status=$?
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); }; } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_cv_search_opendir="none required"
10101 else
10102 echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10106 rm -f conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10108 if test "$ac_cv_search_opendir" = no; then
10109 for ac_lib in x; do
10110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10111 cat >conftest.$ac_ext <<_ACEOF
10112 /* confdefs.h. */
10113 _ACEOF
10114 cat confdefs.h >>conftest.$ac_ext
10115 cat >>conftest.$ac_ext <<_ACEOF
10116 /* end confdefs.h. */
10118 /* Override any gcc2 internal prototype to avoid an error. */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 /* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */
10124 char opendir ();
10126 main ()
10128 opendir ();
10130 return 0;
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135 (eval $ac_link) 2>conftest.er1
10136 ac_status=$?
10137 grep -v '^ *+' conftest.er1 >conftest.err
10138 rm -f conftest.er1
10139 cat conftest.err >&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); } &&
10142 { ac_try='test -z "$ac_c_werror_flag"
10143 || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151 (eval $ac_try) 2>&5
10152 ac_status=$?
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; }; then
10155 ac_cv_search_opendir="-l$ac_lib"
10156 break
10157 else
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10162 rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
10164 done
10166 LIBS=$ac_func_search_save_LIBS
10168 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10169 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10170 if test "$ac_cv_search_opendir" != no; then
10171 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10177 echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
10178 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6
10179 if test "${gcc_cv_header_string+set}" = set; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 #include <string.h>
10189 #include <strings.h>
10191 main ()
10195 return 0;
10197 _ACEOF
10198 rm -f conftest.$ac_objext
10199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10200 (eval $ac_compile) 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest.$ac_objext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 gcc_cv_header_string=yes
10221 else
10222 echo "$as_me: failed program was:" >&5
10223 sed 's/^/| /' conftest.$ac_ext >&5
10225 gcc_cv_header_string=no
10227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10229 echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
10230 echo "${ECHO_T}$gcc_cv_header_string" >&6
10231 if test $gcc_cv_header_string = yes; then
10233 cat >>confdefs.h <<\_ACEOF
10234 #define STRING_WITH_STRINGS 1
10235 _ACEOF
10246 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
10248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10249 echo "$as_me:$LINENO: checking for $ac_func" >&5
10250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10251 if eval "test \"\${$as_ac_var+set}\" = set"; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254 cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h. */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10262 #define $ac_func innocuous_$ac_func
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char $ac_func (); below.
10266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10267 <limits.h> exists even on freestanding compilers. */
10269 #ifdef __STDC__
10270 # include <limits.h>
10271 #else
10272 # include <assert.h>
10273 #endif
10275 #undef $ac_func
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 #ifdef __cplusplus
10279 extern "C"
10281 #endif
10282 /* We use char because int might match the return type of a gcc2
10283 builtin and then its argument prototype would still apply. */
10284 char $ac_func ();
10285 /* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
10288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10289 choke me
10290 #else
10291 char (*f) () = $ac_func;
10292 #endif
10293 #ifdef __cplusplus
10295 #endif
10298 main ()
10300 return f != $ac_func;
10302 return 0;
10304 _ACEOF
10305 rm -f conftest.$ac_objext conftest$ac_exeext
10306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10307 (eval $ac_link) 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -z "$ac_c_werror_flag"
10315 || test ! -s conftest.err'
10316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10317 (eval $ac_try) 2>&5
10318 ac_status=$?
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; } &&
10321 { ac_try='test -s conftest$ac_exeext'
10322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10323 (eval $ac_try) 2>&5
10324 ac_status=$?
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); }; }; then
10327 eval "$as_ac_var=yes"
10328 else
10329 echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10332 eval "$as_ac_var=no"
10334 rm -f conftest.err conftest.$ac_objext \
10335 conftest$ac_exeext conftest.$ac_ext
10337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10339 if test `eval echo '${'$as_ac_var'}'` = yes; then
10340 cat >>confdefs.h <<_ACEOF
10341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10342 _ACEOF
10345 done
10348 for ac_func in strtoull
10350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10351 echo "$as_me:$LINENO: checking for $ac_func" >&5
10352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10353 if eval "test \"\${$as_ac_var+set}\" = set"; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356 cat >conftest.$ac_ext <<_ACEOF
10357 /* confdefs.h. */
10358 _ACEOF
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10364 #define $ac_func innocuous_$ac_func
10366 /* System header to define __stub macros and hopefully few prototypes,
10367 which can conflict with char $ac_func (); below.
10368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10369 <limits.h> exists even on freestanding compilers. */
10371 #ifdef __STDC__
10372 # include <limits.h>
10373 #else
10374 # include <assert.h>
10375 #endif
10377 #undef $ac_func
10379 /* Override any gcc2 internal prototype to avoid an error. */
10380 #ifdef __cplusplus
10381 extern "C"
10383 #endif
10384 /* We use char because int might match the return type of a gcc2
10385 builtin and then its argument prototype would still apply. */
10386 char $ac_func ();
10387 /* The GNU C library defines this for functions which it implements
10388 to always fail with ENOSYS. Some functions are actually named
10389 something starting with __ and the normal name is an alias. */
10390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10391 choke me
10392 #else
10393 char (*f) () = $ac_func;
10394 #endif
10395 #ifdef __cplusplus
10397 #endif
10400 main ()
10402 return f != $ac_func;
10404 return 0;
10406 _ACEOF
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10409 (eval $ac_link) 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } &&
10416 { ac_try='test -z "$ac_c_werror_flag"
10417 || test ! -s conftest.err'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest$ac_exeext'
10424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425 (eval $ac_try) 2>&5
10426 ac_status=$?
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; }; then
10429 eval "$as_ac_var=yes"
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10434 eval "$as_ac_var=no"
10436 rm -f conftest.err conftest.$ac_objext \
10437 conftest$ac_exeext conftest.$ac_ext
10439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10441 if test `eval echo '${'$as_ac_var'}'` = yes; then
10442 cat >>confdefs.h <<_ACEOF
10443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10444 _ACEOF
10447 done
10450 echo "$as_me:$LINENO: checking whether basename is declared" >&5
10451 echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6
10452 if test "${ac_cv_have_decl_basename+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10454 else
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 $ac_includes_default
10463 main ()
10465 #ifndef basename
10466 char *p = (char *) basename;
10467 #endif
10470 return 0;
10472 _ACEOF
10473 rm -f conftest.$ac_objext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10475 (eval $ac_compile) 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag"
10483 || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest.$ac_objext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10495 ac_cv_have_decl_basename=yes
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 ac_cv_have_decl_basename=no
10502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10504 echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5
10505 echo "${ECHO_T}$ac_cv_have_decl_basename" >&6
10506 if test $ac_cv_have_decl_basename = yes; then
10508 cat >>confdefs.h <<_ACEOF
10509 #define HAVE_DECL_BASENAME 1
10510 _ACEOF
10513 else
10514 cat >>confdefs.h <<_ACEOF
10515 #define HAVE_DECL_BASENAME 0
10516 _ACEOF
10522 echo "$as_me:$LINENO: checking whether ftello is declared" >&5
10523 echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6
10524 if test "${ac_cv_have_decl_ftello+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526 else
10527 cat >conftest.$ac_ext <<_ACEOF
10528 /* confdefs.h. */
10529 _ACEOF
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 $ac_includes_default
10535 main ()
10537 #ifndef ftello
10538 char *p = (char *) ftello;
10539 #endif
10542 return 0;
10544 _ACEOF
10545 rm -f conftest.$ac_objext
10546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>conftest.er1
10548 ac_status=$?
10549 grep -v '^ *+' conftest.er1 >conftest.err
10550 rm -f conftest.er1
10551 cat conftest.err >&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -z "$ac_c_werror_flag"
10555 || test ! -s conftest.err'
10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; } &&
10561 { ac_try='test -s conftest.$ac_objext'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; }; then
10567 ac_cv_have_decl_ftello=yes
10568 else
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 ac_cv_have_decl_ftello=no
10574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10576 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5
10577 echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6
10578 if test $ac_cv_have_decl_ftello = yes; then
10580 cat >>confdefs.h <<_ACEOF
10581 #define HAVE_DECL_FTELLO 1
10582 _ACEOF
10585 else
10586 cat >>confdefs.h <<_ACEOF
10587 #define HAVE_DECL_FTELLO 0
10588 _ACEOF
10594 echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5
10595 echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6
10596 if test "${ac_cv_have_decl_ftello64+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 else
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605 $ac_includes_default
10607 main ()
10609 #ifndef ftello64
10610 char *p = (char *) ftello64;
10611 #endif
10614 return 0;
10616 _ACEOF
10617 rm -f conftest.$ac_objext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_c_werror_flag"
10627 || test ! -s conftest.err'
10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629 (eval $ac_try) 2>&5
10630 ac_status=$?
10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632 (exit $ac_status); }; } &&
10633 { ac_try='test -s conftest.$ac_objext'
10634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10636 ac_status=$?
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 ac_cv_have_decl_ftello64=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 ac_cv_have_decl_ftello64=no
10646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5
10649 echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6
10650 if test $ac_cv_have_decl_ftello64 = yes; then
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_DECL_FTELLO64 1
10654 _ACEOF
10657 else
10658 cat >>confdefs.h <<_ACEOF
10659 #define HAVE_DECL_FTELLO64 0
10660 _ACEOF
10666 echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
10667 echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6
10668 if test "${ac_cv_have_decl_fseeko+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671 cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h. */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 $ac_includes_default
10679 main ()
10681 #ifndef fseeko
10682 char *p = (char *) fseeko;
10683 #endif
10686 return 0;
10688 _ACEOF
10689 rm -f conftest.$ac_objext
10690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691 (eval $ac_compile) 2>conftest.er1
10692 ac_status=$?
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
10698 { ac_try='test -z "$ac_c_werror_flag"
10699 || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest.$ac_objext'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_have_decl_fseeko=yes
10712 else
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_cv_have_decl_fseeko=no
10718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10720 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
10721 echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6
10722 if test $ac_cv_have_decl_fseeko = yes; then
10724 cat >>confdefs.h <<_ACEOF
10725 #define HAVE_DECL_FSEEKO 1
10726 _ACEOF
10729 else
10730 cat >>confdefs.h <<_ACEOF
10731 #define HAVE_DECL_FSEEKO 0
10732 _ACEOF
10738 echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5
10739 echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6
10740 if test "${ac_cv_have_decl_fseeko64+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 cat >conftest.$ac_ext <<_ACEOF
10744 /* confdefs.h. */
10745 _ACEOF
10746 cat confdefs.h >>conftest.$ac_ext
10747 cat >>conftest.$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 $ac_includes_default
10751 main ()
10753 #ifndef fseeko64
10754 char *p = (char *) fseeko64;
10755 #endif
10758 return 0;
10760 _ACEOF
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10764 ac_status=$?
10765 grep -v '^ *+' conftest.er1 >conftest.err
10766 rm -f conftest.er1
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_c_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 ac_cv_have_decl_fseeko64=yes
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_cv_have_decl_fseeko64=no
10790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10792 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5
10793 echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6
10794 if test $ac_cv_have_decl_fseeko64 = yes; then
10796 cat >>confdefs.h <<_ACEOF
10797 #define HAVE_DECL_FSEEKO64 1
10798 _ACEOF
10801 else
10802 cat >>confdefs.h <<_ACEOF
10803 #define HAVE_DECL_FSEEKO64 0
10804 _ACEOF
10812 case "${host}" in
10813 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
10815 cat >>confdefs.h <<\_ACEOF
10816 #define USE_BINARY_FOPEN 1
10817 _ACEOF
10819 esac
10821 echo "$as_me:$LINENO: checking whether ffs is declared" >&5
10822 echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6
10823 if test "${ac_cv_have_decl_ffs+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825 else
10826 cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h. */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h. */
10832 $ac_includes_default
10834 main ()
10836 #ifndef ffs
10837 char *p = (char *) ffs;
10838 #endif
10841 return 0;
10843 _ACEOF
10844 rm -f conftest.$ac_objext
10845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846 (eval $ac_compile) 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
10853 { ac_try='test -z "$ac_c_werror_flag"
10854 || test ! -s conftest.err'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; } &&
10860 { ac_try='test -s conftest.$ac_objext'
10861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10862 (eval $ac_try) 2>&5
10863 ac_status=$?
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); }; }; then
10866 ac_cv_have_decl_ffs=yes
10867 else
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10871 ac_cv_have_decl_ffs=no
10873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10875 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5
10876 echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6
10877 if test $ac_cv_have_decl_ffs = yes; then
10879 cat >>confdefs.h <<_ACEOF
10880 #define HAVE_DECL_FFS 1
10881 _ACEOF
10884 else
10885 cat >>confdefs.h <<_ACEOF
10886 #define HAVE_DECL_FFS 0
10887 _ACEOF
10893 echo "$as_me:$LINENO: checking whether free is declared" >&5
10894 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
10895 if test "${ac_cv_have_decl_free+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 else
10898 cat >conftest.$ac_ext <<_ACEOF
10899 /* confdefs.h. */
10900 _ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 $ac_includes_default
10906 main ()
10908 #ifndef free
10909 char *p = (char *) free;
10910 #endif
10913 return 0;
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918 (eval $ac_compile) 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } &&
10925 { ac_try='test -z "$ac_c_werror_flag"
10926 || test ! -s conftest.err'
10927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928 (eval $ac_try) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10935 ac_status=$?
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10938 ac_cv_have_decl_free=yes
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_cv_have_decl_free=no
10945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10947 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
10948 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
10949 if test $ac_cv_have_decl_free = yes; then
10951 cat >>confdefs.h <<_ACEOF
10952 #define HAVE_DECL_FREE 1
10953 _ACEOF
10956 else
10957 cat >>confdefs.h <<_ACEOF
10958 #define HAVE_DECL_FREE 0
10959 _ACEOF
10965 echo "$as_me:$LINENO: checking whether getenv is declared" >&5
10966 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6
10967 if test "${ac_cv_have_decl_getenv+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h. */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 $ac_includes_default
10978 main ()
10980 #ifndef getenv
10981 char *p = (char *) getenv;
10982 #endif
10985 return 0;
10987 _ACEOF
10988 rm -f conftest.$ac_objext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10990 (eval $ac_compile) 2>conftest.er1
10991 ac_status=$?
10992 grep -v '^ *+' conftest.er1 >conftest.err
10993 rm -f conftest.er1
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } &&
10997 { ac_try='test -z "$ac_c_werror_flag"
10998 || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11001 ac_status=$?
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try='test -s conftest.$ac_objext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 ac_cv_have_decl_getenv=yes
11011 else
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 ac_cv_have_decl_getenv=no
11017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11019 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
11020 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6
11021 if test $ac_cv_have_decl_getenv = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define HAVE_DECL_GETENV 1
11025 _ACEOF
11028 else
11029 cat >>confdefs.h <<_ACEOF
11030 #define HAVE_DECL_GETENV 0
11031 _ACEOF
11037 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
11038 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
11039 if test "${ac_cv_have_decl_malloc+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 $ac_includes_default
11050 main ()
11052 #ifndef malloc
11053 char *p = (char *) malloc;
11054 #endif
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>conftest.er1
11063 ac_status=$?
11064 grep -v '^ *+' conftest.er1 >conftest.err
11065 rm -f conftest.er1
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag"
11070 || test ! -s conftest.err'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; } &&
11076 { ac_try='test -s conftest.$ac_objext'
11077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11079 ac_status=$?
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11082 ac_cv_have_decl_malloc=yes
11083 else
11084 echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11087 ac_cv_have_decl_malloc=no
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11091 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
11092 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
11093 if test $ac_cv_have_decl_malloc = yes; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define HAVE_DECL_MALLOC 1
11097 _ACEOF
11100 else
11101 cat >>confdefs.h <<_ACEOF
11102 #define HAVE_DECL_MALLOC 0
11103 _ACEOF
11109 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
11110 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
11111 if test "${ac_cv_have_decl_realloc+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 else
11114 cat >conftest.$ac_ext <<_ACEOF
11115 /* confdefs.h. */
11116 _ACEOF
11117 cat confdefs.h >>conftest.$ac_ext
11118 cat >>conftest.$ac_ext <<_ACEOF
11119 /* end confdefs.h. */
11120 $ac_includes_default
11122 main ()
11124 #ifndef realloc
11125 char *p = (char *) realloc;
11126 #endif
11129 return 0;
11131 _ACEOF
11132 rm -f conftest.$ac_objext
11133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11134 (eval $ac_compile) 2>conftest.er1
11135 ac_status=$?
11136 grep -v '^ *+' conftest.er1 >conftest.err
11137 rm -f conftest.er1
11138 cat conftest.err >&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } &&
11141 { ac_try='test -z "$ac_c_werror_flag"
11142 || test ! -s conftest.err'
11143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11144 (eval $ac_try) 2>&5
11145 ac_status=$?
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; } &&
11148 { ac_try='test -s conftest.$ac_objext'
11149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11150 (eval $ac_try) 2>&5
11151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_cv_have_decl_realloc=yes
11155 else
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 ac_cv_have_decl_realloc=no
11161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11163 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
11164 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
11165 if test $ac_cv_have_decl_realloc = yes; then
11167 cat >>confdefs.h <<_ACEOF
11168 #define HAVE_DECL_REALLOC 1
11169 _ACEOF
11172 else
11173 cat >>confdefs.h <<_ACEOF
11174 #define HAVE_DECL_REALLOC 0
11175 _ACEOF
11181 echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5
11182 echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6
11183 if test "${ac_cv_have_decl_stpcpy+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 else
11186 cat >conftest.$ac_ext <<_ACEOF
11187 /* confdefs.h. */
11188 _ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11194 main ()
11196 #ifndef stpcpy
11197 char *p = (char *) stpcpy;
11198 #endif
11201 return 0;
11203 _ACEOF
11204 rm -f conftest.$ac_objext
11205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11206 (eval $ac_compile) 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -z "$ac_c_werror_flag"
11214 || test ! -s conftest.err'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try='test -s conftest.$ac_objext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 ac_cv_have_decl_stpcpy=yes
11227 else
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_cv_have_decl_stpcpy=no
11233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5
11236 echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6
11237 if test $ac_cv_have_decl_stpcpy = yes; then
11239 cat >>confdefs.h <<_ACEOF
11240 #define HAVE_DECL_STPCPY 1
11241 _ACEOF
11244 else
11245 cat >>confdefs.h <<_ACEOF
11246 #define HAVE_DECL_STPCPY 0
11247 _ACEOF
11253 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
11254 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
11255 if test "${ac_cv_have_decl_strstr+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 cat >conftest.$ac_ext <<_ACEOF
11259 /* confdefs.h. */
11260 _ACEOF
11261 cat confdefs.h >>conftest.$ac_ext
11262 cat >>conftest.$ac_ext <<_ACEOF
11263 /* end confdefs.h. */
11264 $ac_includes_default
11266 main ()
11268 #ifndef strstr
11269 char *p = (char *) strstr;
11270 #endif
11273 return 0;
11275 _ACEOF
11276 rm -f conftest.$ac_objext
11277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11278 (eval $ac_compile) 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } &&
11285 { ac_try='test -z "$ac_c_werror_flag"
11286 || test ! -s conftest.err'
11287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11288 (eval $ac_try) 2>&5
11289 ac_status=$?
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); }; } &&
11292 { ac_try='test -s conftest.$ac_objext'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11295 ac_status=$?
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; }; then
11298 ac_cv_have_decl_strstr=yes
11299 else
11300 echo "$as_me: failed program was:" >&5
11301 sed 's/^/| /' conftest.$ac_ext >&5
11303 ac_cv_have_decl_strstr=no
11305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11307 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
11308 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
11309 if test $ac_cv_have_decl_strstr = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define HAVE_DECL_STRSTR 1
11313 _ACEOF
11316 else
11317 cat >>confdefs.h <<_ACEOF
11318 #define HAVE_DECL_STRSTR 0
11319 _ACEOF
11325 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
11326 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
11327 if test "${ac_cv_have_decl_snprintf+set}" = set; then
11328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 else
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11338 main ()
11340 #ifndef snprintf
11341 char *p = (char *) snprintf;
11342 #endif
11345 return 0;
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350 (eval $ac_compile) 2>conftest.er1
11351 ac_status=$?
11352 grep -v '^ *+' conftest.er1 >conftest.err
11353 rm -f conftest.er1
11354 cat conftest.err >&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -z "$ac_c_werror_flag"
11358 || test ! -s conftest.err'
11359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest.$ac_objext'
11365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366 (eval $ac_try) 2>&5
11367 ac_status=$?
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); }; }; then
11370 ac_cv_have_decl_snprintf=yes
11371 else
11372 echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11375 ac_cv_have_decl_snprintf=no
11377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11379 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
11380 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
11381 if test $ac_cv_have_decl_snprintf = yes; then
11383 cat >>confdefs.h <<_ACEOF
11384 #define HAVE_DECL_SNPRINTF 1
11385 _ACEOF
11388 else
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_DECL_SNPRINTF 0
11391 _ACEOF
11397 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
11398 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
11399 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402 cat >conftest.$ac_ext <<_ACEOF
11403 /* confdefs.h. */
11404 _ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 $ac_includes_default
11410 main ()
11412 #ifndef vsnprintf
11413 char *p = (char *) vsnprintf;
11414 #endif
11417 return 0;
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11422 (eval $ac_compile) 2>conftest.er1
11423 ac_status=$?
11424 grep -v '^ *+' conftest.er1 >conftest.err
11425 rm -f conftest.er1
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag"
11430 || test ! -s conftest.err'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; }; then
11442 ac_cv_have_decl_vsnprintf=yes
11443 else
11444 echo "$as_me: failed program was:" >&5
11445 sed 's/^/| /' conftest.$ac_ext >&5
11447 ac_cv_have_decl_vsnprintf=no
11449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11451 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
11452 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
11453 if test $ac_cv_have_decl_vsnprintf = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define HAVE_DECL_VSNPRINTF 1
11457 _ACEOF
11460 else
11461 cat >>confdefs.h <<_ACEOF
11462 #define HAVE_DECL_VSNPRINTF 0
11463 _ACEOF
11470 # If we are configured native, pick a core file support file.
11471 COREFILE=
11472 COREFLAG=
11473 TRAD_HEADER=
11474 if test "${target}" = "${host}"; then
11475 case "${host}" in
11476 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
11477 COREFILE=''
11479 alpha*-*-linux-*)
11480 COREFILE=trad-core.lo
11481 TRAD_HEADER='"hosts/alphalinux.h"'
11483 alpha*-*-netbsd* | alpha*-*-openbsd*)
11484 COREFILE=netbsd-core.lo
11486 alpha*-*-*) COREFILE=osf-core.lo ;;
11487 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
11488 COREFILE='' ;;
11489 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
11490 arm-*-riscix) COREFILE=trad-core.lo ;;
11491 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
11492 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
11493 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
11494 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
11495 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
11496 hppa*-*-netbsd* | hppa*-*-openbsd*)
11497 COREFILE=netbsd-core.lo
11500 i370-*-*)
11501 COREFILE=trad-core.lo
11502 TRAD_HEADER='"hosts/i370linux.h"'
11505 i[3-7]86-sequent-bsd*)
11506 COREFILE=trad-core.lo
11507 TRAD_HEADER='"hosts/symmetry.h"'
11509 i[3-7]86-sequent-sysv4*) ;;
11510 i[3-7]86-sequent-sysv*)
11511 COREFILE=trad-core.lo
11512 TRAD_HEADER='"hosts/symmetry.h"'
11514 i[3-7]86-*-bsdi)
11515 COREFILE=
11517 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
11518 COREFILE=trad-core.lo
11519 TRAD_HEADER='"hosts/i386bsd.h"'
11521 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
11522 COREFILE=''
11523 TRAD_HEADER='"hosts/i386bsd.h"'
11525 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
11526 COREFILE=netbsd-core.lo
11528 i[3-7]86-esix-sysv3*)
11529 COREFILE=trad-core.lo
11530 TRAD_HEADER='"hosts/esix.h"'
11532 i[3-7]86-*-sco3.2v5*)
11533 COREFILE=sco5-core.lo
11535 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
11536 COREFILE=trad-core.lo
11537 TRAD_HEADER='"hosts/i386sco.h"'
11539 i[3-7]86-*-mach3*)
11540 COREFILE=trad-core.lo
11541 TRAD_HEADER='"hosts/i386mach3.h"'
11543 i[3-7]86-*-linux-*)
11544 COREFILE=trad-core.lo
11545 TRAD_HEADER='"hosts/i386linux.h"'
11547 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
11548 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
11549 i860-*-mach3* | i860-*-osf1*)
11550 COREFILE=trad-core.lo
11551 TRAD_HEADER='"hosts/i860mach3.h"'
11553 mips-*-netbsd* | mips*-*-openbsd*)
11554 COREFILE=netbsd-core.lo
11556 mips-dec-*)
11557 COREFILE=trad-core.lo
11558 TRAD_HEADER='"hosts/decstation.h"'
11560 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
11561 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
11562 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
11563 mips-*-sysv4*) ;;
11564 mips-*-sysv* | mips-*-riscos*)
11565 COREFILE=trad-core.lo
11566 TRAD_HEADER='"hosts/riscos.h"'
11568 mips-sony-bsd*)
11569 COREFILE=trad-core.lo
11570 TRAD_HEADER='"hosts/news-mips.h"'
11572 m68*-bull*-sysv*)
11573 COREFILE=trad-core.lo
11574 TRAD_HEADER='"hosts/dpx2.h"'
11576 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
11577 m68*-hp-bsd*)
11578 COREFILE=trad-core.lo
11579 TRAD_HEADER='"hosts/hp300bsd.h"'
11581 m68*-*-linux-*)
11582 COREFILE=trad-core.lo
11583 TRAD_HEADER='"hosts/m68klinux.h"'
11585 m68*-motorola-sysv*)
11586 COREFILE=trad-core.lo
11587 TRAD_HEADER='"hosts/delta68.h"'
11589 m68*-sony-*)
11590 COREFILE=trad-core.lo
11591 TRAD_HEADER='"hosts/news.h"'
11593 m68*-*-netbsd* | m68*-*-openbsd*)
11594 COREFILE=netbsd-core.lo
11596 m68*-apple-aux*)
11597 COREFILE=trad-core.lo
11598 TRAD_HEADER='"hosts/m68kaux.h"'
11600 m88*-*-sysv4*)
11602 m88*-motorola-sysv*)
11603 COREFILE=ptrace-core.lo
11605 m88*-*-mach3*)
11606 COREFILE=trad-core.lo
11607 TRAD_HEADER='"hosts/m88kmach3.h"'
11609 m88*-*-openbsd*)
11610 COREFILE=netbsd-core.lo
11612 ns32k-pc532-mach)
11613 COREFILE=trad-core.lo
11614 TRAD_HEADER='"hosts/pc532mach.h"'
11616 ns32k-*-netbsd* | ns32k-*-openbsd*)
11617 COREFILE=netbsd-core.lo
11619 rs6000-*-lynx*)
11620 COREFILE=lynx-core.lo
11622 rs6000-*-aix5.* | powerpc-*-aix5.*)
11623 COREFILE=rs6000-core.lo
11624 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
11626 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
11627 COREFILE=rs6000-core.lo
11628 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
11629 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
11630 # have c_impl as a member of struct core_dumpx
11631 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
11632 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
11633 cat >conftest.$ac_ext <<_ACEOF
11634 /* confdefs.h. */
11635 _ACEOF
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 #include <core.h>
11641 main ()
11643 struct core_dumpx c; c.c_impl = 0;
11645 return 0;
11647 _ACEOF
11648 rm -f conftest.$ac_objext
11649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11650 (eval $ac_compile) 2>conftest.er1
11651 ac_status=$?
11652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -z "$ac_c_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest.$ac_objext'
11665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11671 cat >>confdefs.h <<\_ACEOF
11672 #define HAVE_ST_C_IMPL 1
11673 _ACEOF
11675 echo "$as_me:$LINENO: result: yes" >&5
11676 echo "${ECHO_T}yes" >&6
11677 else
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 echo "$as_me:$LINENO: result: no" >&5
11682 echo "${ECHO_T}no" >&6
11684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11686 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
11687 rs6000-*-*) COREFILE=rs6000-core.lo ;;
11688 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
11689 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
11690 powerpc-*-beos*) ;;
11691 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
11692 COREFILE='' ;;
11693 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
11694 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
11695 s390*-*-*) COREFILE=trad-core.lo ;;
11696 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
11697 sparc-*-netbsd* | sparc*-*-openbsd*)
11698 COREFILE=netbsd-core.lo
11700 tahoe-*-*)
11701 COREFILE=trad-core.lo
11702 TRAD_HEADER='"hosts/tahoe.h"'
11704 vax-*-netbsd* | vax-*-openbsd*)
11705 COREFILE=netbsd-core.lo
11707 vax-*-ultrix2*)
11708 COREFILE=trad-core.lo
11709 TRAD_HEADER='"hosts/vaxult2.h"'
11711 vax-*-ultrix*)
11712 COREFILE=trad-core.lo
11713 TRAD_HEADER='"hosts/vaxult2.h"'
11715 vax-*-linux-*)
11716 COREFILE=trad-core.lo
11717 TRAD_HEADER='"hosts/vaxlinux.h"'
11719 vax-*-*)
11720 COREFILE=trad-core.lo
11721 TRAD_HEADER='"hosts/vaxbsd.h"'
11723 x86_64-*-netbsd* | x86_64-*-openbsd*)
11724 COREFILE=netbsd-core.lo
11726 esac
11728 case "$COREFILE" in
11729 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
11730 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
11731 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
11732 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
11733 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
11734 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
11735 osf-core.lo) COREFLAG=-DOSF_CORE ;;
11736 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
11737 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
11738 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
11739 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
11740 esac
11742 # ELF corefile support has several flavors, but all of
11743 # them use something called <sys/procfs.h>
11745 for ac_header in sys/procfs.h
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11749 echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11756 else
11757 # Is the header compilable?
11758 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 #include <$ac_header>
11768 _ACEOF
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag"
11779 || test ! -s conftest.err'
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest.$ac_objext'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 ac_header_compiler=yes
11792 else
11793 echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11796 ac_header_compiler=no
11798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11799 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800 echo "${ECHO_T}$ac_header_compiler" >&6
11802 # Is the header present?
11803 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <$ac_header>
11812 _ACEOF
11813 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11814 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null; then
11821 if test -s conftest.err; then
11822 ac_cpp_err=$ac_c_preproc_warn_flag
11823 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11824 else
11825 ac_cpp_err=
11827 else
11828 ac_cpp_err=yes
11830 if test -z "$ac_cpp_err"; then
11831 ac_header_preproc=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 ac_header_preproc=no
11838 rm -f conftest.err conftest.$ac_ext
11839 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11840 echo "${ECHO_T}$ac_header_preproc" >&6
11842 # So? What about this header?
11843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11844 yes:no: )
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11849 ac_header_preproc=yes
11851 no:yes:* )
11852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11865 cat <<\_ASBOX
11866 ## ------------------------------------------ ##
11867 ## Report this to the AC_PACKAGE_NAME lists. ##
11868 ## ------------------------------------------ ##
11869 _ASBOX
11871 sed "s/^/$as_me: WARNING: /" >&2
11873 esac
11874 echo "$as_me:$LINENO: checking for $ac_header" >&5
11875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879 eval "$as_ac_Header=\$ac_header_preproc"
11881 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11882 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11886 cat >>confdefs.h <<_ACEOF
11887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11888 _ACEOF
11892 done
11894 if test "$ac_cv_header_sys_procfs_h" = yes; then
11895 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
11896 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
11897 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900 cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h. */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h. */
11907 #define _SYSCALL32
11908 #include <sys/procfs.h>
11910 main ()
11912 prstatus_t avar
11914 return 0;
11916 _ACEOF
11917 rm -f conftest.$ac_objext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11919 (eval $ac_compile) 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -z "$ac_c_werror_flag"
11927 || test ! -s conftest.err'
11928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; } &&
11933 { ac_try='test -s conftest.$ac_objext'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; }; then
11939 bfd_cv_have_sys_procfs_type_prstatus_t=yes
11940 else
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 bfd_cv_have_sys_procfs_type_prstatus_t=no
11947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11950 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
11952 cat >>confdefs.h <<\_ACEOF
11953 #define HAVE_PRSTATUS_T 1
11954 _ACEOF
11957 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
11958 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
11960 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
11961 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
11962 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11972 #define _SYSCALL32
11973 #include <sys/procfs.h>
11975 main ()
11977 prstatus32_t avar
11979 return 0;
11981 _ACEOF
11982 rm -f conftest.$ac_objext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11984 (eval $ac_compile) 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try='test -z "$ac_c_werror_flag"
11992 || test ! -s conftest.err'
11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11995 ac_status=$?
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); }; } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
12005 else
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 bfd_cv_have_sys_procfs_type_prstatus32_t=no
12012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12015 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
12017 cat >>confdefs.h <<\_ACEOF
12018 #define HAVE_PRSTATUS32_T 1
12019 _ACEOF
12022 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
12023 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
12025 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
12026 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12027 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030 cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h. */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12037 #define _SYSCALL32
12038 #include <sys/procfs.h>
12040 main ()
12042 prstatus_t avar; void* aref = (void*) &avar.pr_who
12044 return 0;
12046 _ACEOF
12047 rm -f conftest.$ac_objext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_c_werror_flag"
12057 || test ! -s conftest.err'
12058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059 (eval $ac_try) 2>&5
12060 ac_status=$?
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); }; } &&
12063 { ac_try='test -s conftest.$ac_objext'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12066 ac_status=$?
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; }; then
12069 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
12077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12080 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_PRSTATUS_T_PR_WHO 1
12084 _ACEOF
12087 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
12088 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
12090 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
12091 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
12092 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 cat >conftest.$ac_ext <<_ACEOF
12096 /* confdefs.h. */
12097 _ACEOF
12098 cat confdefs.h >>conftest.$ac_ext
12099 cat >>conftest.$ac_ext <<_ACEOF
12100 /* end confdefs.h. */
12102 #define _SYSCALL32
12103 #include <sys/procfs.h>
12105 main ()
12107 prstatus32_t avar; void* aref = (void*) &avar.pr_who
12109 return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12114 (eval $ac_compile) 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
12121 { ac_try='test -z "$ac_c_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest.$ac_objext'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
12135 else
12136 echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
12147 cat >>confdefs.h <<\_ACEOF
12148 #define HAVE_PRSTATUS32_T_PR_WHO 1
12149 _ACEOF
12152 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
12153 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
12155 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
12156 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
12157 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12167 #define _SYSCALL32
12168 #include <sys/procfs.h>
12170 main ()
12172 pstatus_t avar
12174 return 0;
12176 _ACEOF
12177 rm -f conftest.$ac_objext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>conftest.er1
12180 ac_status=$?
12181 grep -v '^ *+' conftest.er1 >conftest.err
12182 rm -f conftest.er1
12183 cat conftest.err >&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try='test -z "$ac_c_werror_flag"
12187 || test ! -s conftest.err'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12190 ac_status=$?
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12196 ac_status=$?
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 bfd_cv_have_sys_procfs_type_pstatus_t=yes
12200 else
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 bfd_cv_have_sys_procfs_type_pstatus_t=no
12207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12210 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12212 cat >>confdefs.h <<\_ACEOF
12213 #define HAVE_PSTATUS_T 1
12214 _ACEOF
12217 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12218 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
12220 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
12221 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
12222 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 cat >conftest.$ac_ext <<_ACEOF
12226 /* confdefs.h. */
12227 _ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12232 #define _SYSCALL32
12233 #include <sys/procfs.h>
12235 main ()
12237 pxstatus_t avar
12239 return 0;
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
12265 else
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 bfd_cv_have_sys_procfs_type_pxstatus_t=no
12272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12275 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
12277 cat >>confdefs.h <<\_ACEOF
12278 #define HAVE_PXSTATUS_T 1
12279 _ACEOF
12282 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
12283 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
12285 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
12286 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
12287 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h. */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h. */
12297 #define _SYSCALL32
12298 #include <sys/procfs.h>
12300 main ()
12302 pstatus32_t avar
12304 return 0;
12306 _ACEOF
12307 rm -f conftest.$ac_objext
12308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12309 (eval $ac_compile) 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } &&
12316 { ac_try='test -z "$ac_c_werror_flag"
12317 || test ! -s conftest.err'
12318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12320 ac_status=$?
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; } &&
12323 { ac_try='test -s conftest.$ac_objext'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
12330 else
12331 echo "$as_me: failed program was:" >&5
12332 sed 's/^/| /' conftest.$ac_ext >&5
12334 bfd_cv_have_sys_procfs_type_pstatus32_t=no
12337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12340 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
12342 cat >>confdefs.h <<\_ACEOF
12343 #define HAVE_PSTATUS32_T 1
12344 _ACEOF
12347 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
12348 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
12350 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
12351 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
12352 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
12353 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 else
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h. */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12362 #define _SYSCALL32
12363 #include <sys/procfs.h>
12365 main ()
12367 prpsinfo_t avar
12369 return 0;
12371 _ACEOF
12372 rm -f conftest.$ac_objext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374 (eval $ac_compile) 2>conftest.er1
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); } &&
12381 { ac_try='test -z "$ac_c_werror_flag"
12382 || test ! -s conftest.err'
12383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12384 (eval $ac_try) 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; } &&
12388 { ac_try='test -s conftest.$ac_objext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
12402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12405 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
12407 cat >>confdefs.h <<\_ACEOF
12408 #define HAVE_PRPSINFO_T 1
12409 _ACEOF
12412 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
12413 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
12415 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
12416 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
12417 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 cat >conftest.$ac_ext <<_ACEOF
12421 /* confdefs.h. */
12422 _ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12427 #define _SYSCALL32
12428 #include <sys/procfs.h>
12430 main ()
12432 prpsinfo32_t avar
12434 return 0;
12436 _ACEOF
12437 rm -f conftest.$ac_objext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439 (eval $ac_compile) 2>conftest.er1
12440 ac_status=$?
12441 grep -v '^ *+' conftest.er1 >conftest.err
12442 rm -f conftest.er1
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_c_werror_flag"
12447 || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest.$ac_objext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12456 ac_status=$?
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
12460 else
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
12467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12470 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define HAVE_PRPSINFO32_T 1
12474 _ACEOF
12477 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
12478 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
12480 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
12481 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
12482 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 else
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h. */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12492 #define _SYSCALL32
12493 #include <sys/procfs.h>
12495 main ()
12497 psinfo_t avar
12499 return 0;
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 bfd_cv_have_sys_procfs_type_psinfo_t=yes
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 bfd_cv_have_sys_procfs_type_psinfo_t=no
12532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12535 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
12537 cat >>confdefs.h <<\_ACEOF
12538 #define HAVE_PSINFO_T 1
12539 _ACEOF
12542 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
12543 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
12545 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
12546 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
12547 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 else
12550 cat >conftest.$ac_ext <<_ACEOF
12551 /* confdefs.h. */
12552 _ACEOF
12553 cat confdefs.h >>conftest.$ac_ext
12554 cat >>conftest.$ac_ext <<_ACEOF
12555 /* end confdefs.h. */
12557 #define _SYSCALL32
12558 #include <sys/procfs.h>
12560 main ()
12562 psinfo32_t avar
12564 return 0;
12566 _ACEOF
12567 rm -f conftest.$ac_objext
12568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12569 (eval $ac_compile) 2>conftest.er1
12570 ac_status=$?
12571 grep -v '^ *+' conftest.er1 >conftest.err
12572 rm -f conftest.er1
12573 cat conftest.err >&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -z "$ac_c_werror_flag"
12577 || test ! -s conftest.err'
12578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579 (eval $ac_try) 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try='test -s conftest.$ac_objext'
12584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12586 ac_status=$?
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; }; then
12589 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
12590 else
12591 echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12594 bfd_cv_have_sys_procfs_type_psinfo32_t=no
12597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12600 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_PSINFO32_T 1
12604 _ACEOF
12607 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
12608 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
12610 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
12611 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
12612 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12622 #define _SYSCALL32
12623 #include <sys/procfs.h>
12625 main ()
12627 lwpstatus_t avar
12629 return 0;
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
12655 else
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
12662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
12667 cat >>confdefs.h <<\_ACEOF
12668 #define HAVE_LWPSTATUS_T 1
12669 _ACEOF
12672 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
12673 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
12675 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
12676 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
12677 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12679 else
12680 cat >conftest.$ac_ext <<_ACEOF
12681 /* confdefs.h. */
12682 _ACEOF
12683 cat confdefs.h >>conftest.$ac_ext
12684 cat >>conftest.$ac_ext <<_ACEOF
12685 /* end confdefs.h. */
12687 #define _SYSCALL32
12688 #include <sys/procfs.h>
12690 main ()
12692 lwpxstatus_t avar
12694 return 0;
12696 _ACEOF
12697 rm -f conftest.$ac_objext
12698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12699 (eval $ac_compile) 2>conftest.er1
12700 ac_status=$?
12701 grep -v '^ *+' conftest.er1 >conftest.err
12702 rm -f conftest.er1
12703 cat conftest.err >&5
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); } &&
12706 { ac_try='test -z "$ac_c_werror_flag"
12707 || test ! -s conftest.err'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12710 ac_status=$?
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; } &&
12713 { ac_try='test -s conftest.$ac_objext'
12714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
12720 else
12721 echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12724 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
12727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12730 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
12732 cat >>confdefs.h <<\_ACEOF
12733 #define HAVE_LWPXSTATUS_T 1
12734 _ACEOF
12737 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
12738 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
12740 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
12741 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
12742 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 else
12745 cat >conftest.$ac_ext <<_ACEOF
12746 /* confdefs.h. */
12747 _ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12752 #define _SYSCALL32
12753 #include <sys/procfs.h>
12755 main ()
12757 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
12759 return 0;
12761 _ACEOF
12762 rm -f conftest.$ac_objext
12763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12764 (eval $ac_compile) 2>conftest.er1
12765 ac_status=$?
12766 grep -v '^ *+' conftest.er1 >conftest.err
12767 rm -f conftest.er1
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag"
12772 || test ! -s conftest.err'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12775 ac_status=$?
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; } &&
12778 { ac_try='test -s conftest.$ac_objext'
12779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12780 (eval $ac_try) 2>&5
12781 ac_status=$?
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; }; then
12784 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
12785 else
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12789 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
12792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12795 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
12797 cat >>confdefs.h <<\_ACEOF
12798 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
12799 _ACEOF
12802 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
12803 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
12805 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
12806 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
12807 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
12808 echo $ECHO_N "(cached) $ECHO_C" >&6
12809 else
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h. */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12817 #define _SYSCALL32
12818 #include <sys/procfs.h>
12820 main ()
12822 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
12824 return 0;
12826 _ACEOF
12827 rm -f conftest.$ac_objext
12828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12829 (eval $ac_compile) 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag"
12837 || test ! -s conftest.err'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; } &&
12843 { ac_try='test -s conftest.$ac_objext'
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; }; then
12849 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
12850 else
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
12857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12860 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
12862 cat >>confdefs.h <<\_ACEOF
12863 #define HAVE_LWPSTATUS_T_PR_REG 1
12864 _ACEOF
12867 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
12868 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
12870 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
12871 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
12872 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h. */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 #define _SYSCALL32
12883 #include <sys/procfs.h>
12885 main ()
12887 win32_pstatus_t avar
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>conftest.er1
12895 ac_status=$?
12896 grep -v '^ *+' conftest.er1 >conftest.err
12897 rm -f conftest.er1
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } &&
12901 { ac_try='test -z "$ac_c_werror_flag"
12902 || test ! -s conftest.err'
12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12904 (eval $ac_try) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest.$ac_objext'
12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12910 (eval $ac_try) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); }; }; then
12914 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
12915 else
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
12922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
12927 cat >>confdefs.h <<\_ACEOF
12928 #define HAVE_WIN32_PSTATUS_T 1
12929 _ACEOF
12932 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
12933 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
12939 if test -n "$TRAD_HEADER"; then
12941 cat >>confdefs.h <<_ACEOF
12942 #define TRAD_HEADER $TRAD_HEADER
12943 _ACEOF
12947 # Horrible hacks to build DLLs on Windows.
12948 WIN32LDFLAGS=
12949 WIN32LIBADD=
12950 case "${host}" in
12951 *-*-cygwin*)
12952 if test "$enable_shared" = "yes"; then
12953 WIN32LDFLAGS="-no-undefined"
12954 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
12957 *-*-linux*)
12958 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
12959 # libiberty.a.
12960 case "${host}" in
12961 mips*-*-linux*)
12962 # Linux/MIPS uses PIC by default.
12963 if test "$enable_shared" = "yes"; then
12964 WIN32LIBADD="-L../libiberty -liberty"
12968 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
12969 if test -n "$x"; then
12970 WIN32LIBADD="-L../libiberty/pic -liberty"
12973 esac
12975 esac
12979 # target stuff:
12981 # Canonicalize the secondary target names.
12982 if test -n "$enable_targets" ; then
12983 for targ in `echo $enable_targets | sed 's/,/ /g'`
12985 result=`$ac_config_sub $targ 2>/dev/null`
12986 if test -n "$result" ; then
12987 canon_targets="$canon_targets $result"
12988 else
12989 # Allow targets that config.sub doesn't recognize, like "all".
12990 canon_targets="$canon_targets $targ"
12992 done
12995 all_targets=false
12996 defvec=
12997 selvecs=
12998 assocvecs=
12999 selarchs=
13000 TDEFINES=
13001 for targ in $target $canon_targets
13003 if test "x$targ" = "xall"; then
13004 all_targets=true
13005 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
13006 else
13007 . $srcdir/config.bfd
13008 if test "x$targ" = "x$target"; then
13009 defvec=$targ_defvec
13011 selvecs="$selvecs $targ_defvec $targ_selvecs"
13012 selarchs="$selarchs $targ_archs"
13013 TDEFINES="$TDEFINES $targ_cflags"
13015 done
13018 # This processing still needs to be done if we're to decide properly whether
13019 # 64-bit support needs to be compiled in. Currently, it will be included if
13020 # the default or any other explicitly requested target requires it; it
13021 # will not be included on a 32-bit host if no 64-bit target is requested, and
13022 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13023 # used.
13025 # uniq the default and selected vectors in all the configured targets.
13026 f=""
13027 for i in $selvecs ; do
13028 case " $f " in
13029 *" $i "*) ;;
13030 *) f="$f $i" ;;
13031 esac
13032 done
13033 selvecs="$f"
13036 # uniq the associated vectors in all the configured targets.
13037 f=""
13038 for i in $assocvecs ; do
13039 case " $f " in
13040 *" $i "*) ;;
13041 *) f="$f $i" ;;
13042 esac
13043 done
13044 assocvecs="$f"
13047 # uniq the architectures in all the configured targets.
13048 f=""
13049 for i in $selarchs ; do
13050 case " $f " in
13051 *" $i "*) ;;
13052 *) f="$f $i" ;;
13053 esac
13054 done
13055 selarchs="$f"
13057 # Target backend .o files.
13060 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
13062 for vec in $selvecs
13064 target_size=32
13065 case "$vec" in
13066 # This list is alphabetized to make it easy to compare
13067 # with the two vector lists in targets.c. For the same reason,
13068 # use one entry per line, even though this leads to long lines.
13069 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
13070 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13071 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
13072 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13073 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
13074 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
13075 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13076 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
13077 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13078 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
13079 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13080 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
13081 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
13082 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13083 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
13084 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13085 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
13086 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
13087 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
13088 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
13089 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
13090 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13091 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13092 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13093 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13094 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13095 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13096 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13097 bfd_elf32_bigarm_symbian_vec)
13098 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13099 bfd_elf32_bigarm_vxworks_vec)
13100 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13101 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13102 bfd_elf32_bigmips_vxworks_vec)
13103 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13104 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
13105 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13106 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13107 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13108 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13109 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13110 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13111 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13112 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13113 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13114 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13115 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13116 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13117 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
13118 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13119 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13120 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;;
13121 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13122 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
13123 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
13124 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
13125 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
13126 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13127 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13128 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13129 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13130 bfd_elf32_littlearm_symbian_vec)
13131 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13132 bfd_elf32_littlearm_vxworks_vec)
13133 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13134 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
13135 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13136 bfd_elf32_littlemips_vxworks_vec)
13137 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13138 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13139 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13140 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13141 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13142 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13143 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13144 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13145 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13146 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
13147 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13148 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13149 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13150 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13151 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13152 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13153 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13154 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13155 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13156 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13157 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
13158 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
13159 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13160 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
13161 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13162 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13163 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13164 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13165 # FIXME: We include cofflink.lo not because it's needed for
13166 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
13167 # which needs it but does not list it. Should be fixed in right place.
13168 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13169 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13170 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13171 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
13172 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13173 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
13174 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13175 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13176 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
13177 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
13178 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13179 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13180 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
13181 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13182 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13183 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13184 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
13185 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13186 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13187 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13188 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13189 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
13190 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13191 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13192 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13193 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13194 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13195 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13196 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13197 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13198 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13199 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13200 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
13201 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13202 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13203 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13204 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13205 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13206 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13207 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13208 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13209 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13210 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13211 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13212 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
13213 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13214 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13215 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
13216 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
13217 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13218 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13219 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13220 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
13221 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
13222 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13223 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13224 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13225 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13226 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
13227 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
13228 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
13229 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
13230 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
13231 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
13232 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13233 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
13234 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
13235 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13236 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13237 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
13238 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
13239 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
13240 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
13241 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13242 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
13243 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
13244 i386msdos_vec) tb="$tb i386msdos.lo" ;;
13245 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
13246 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
13247 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
13248 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
13249 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
13250 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13251 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
13252 ieee_vec) tb="$tb ieee.lo" ;;
13253 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
13254 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
13255 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
13256 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
13257 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
13258 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
13259 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
13260 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
13261 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
13262 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
13263 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
13264 mach_o_be_vec) tb="$tb mach-o.lo" ;;
13265 mach_o_le_vec) tb="$tb mach-o.lo" ;;
13266 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
13267 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13268 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
13269 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13270 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
13271 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
13272 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
13273 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
13274 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
13275 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
13276 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
13277 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
13278 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
13279 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13280 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13281 pef_vec) tb="$tb pef.lo" ;;
13282 pef_xlib_vec) tb="$tb pef.lo" ;;
13283 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13284 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13285 ppcboot_vec) tb="$tb ppcboot.lo" ;;
13286 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
13287 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
13288 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
13289 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13290 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13291 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13292 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
13293 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13294 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
13295 som_vec) tb="$tb som.lo" ;;
13296 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
13297 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
13298 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
13299 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
13300 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
13301 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
13302 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
13303 sym_vec) tb="$tb xsym.lo" ;;
13304 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
13305 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
13306 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
13307 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
13308 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
13309 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
13310 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
13311 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
13312 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
13313 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
13314 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
13315 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
13316 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
13317 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
13318 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
13319 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13320 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13321 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
13322 versados_vec) tb="$tb versados.lo" ;;
13323 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
13324 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
13325 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
13326 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
13327 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
13328 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
13330 # These appear out of order in targets.c
13331 srec_vec) tb="$tb srec.lo" ;;
13332 symbolsrec_vec) tb="$tb srec.lo" ;;
13333 tekhex_vec) tb="$tb tekhex.lo" ;;
13334 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
13335 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
13337 "") ;;
13338 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
13339 echo "$as_me: error: *** unknown target vector $vec" >&2;}
13340 { (exit 1); exit 1; }; } ;;
13341 esac
13343 if test ${target_size} = 64; then
13344 target64=true
13346 if test x"${vec}" = x"${defvec}"; then
13347 bfd_default_target_size=${target_size}
13349 done
13351 # Target architecture .o files.
13352 # A couple of CPUs use shorter file names to avoid problems on DOS
13353 # filesystems.
13354 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13356 # Weed out duplicate .o files.
13357 f=""
13358 for i in $tb ; do
13359 case " $f " in
13360 *" $i "*) ;;
13361 *) f="$f $i" ;;
13362 esac
13363 done
13364 tb="$f"
13366 f=""
13367 for i in $ta ; do
13368 case " $f " in
13369 *" $i "*) ;;
13370 *) f="$f $i" ;;
13371 esac
13372 done
13373 ta="$f"
13375 bfd_backends="$tb"
13376 bfd_machines="$ta"
13378 if test x${all_targets} = xtrue ; then
13379 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13380 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13381 selvecs=
13382 havevecs=
13383 selarchs=
13384 test -n "$assocvecs" &&
13385 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13386 else # all_targets is true
13387 # Only set these if they will be nonempty, for the clever echo.
13388 havevecs=
13389 assocvecs=
13390 test -n "$selvecs" &&
13391 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13392 test -n "$selvecs" &&
13393 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13394 test -n "$selarchs" &&
13395 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13396 fi # all_targets is true
13398 case ${host64}-${target64}-${want64} in
13399 *true*)
13400 wordsize=64
13401 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
13402 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13403 if test $BFD_HOST_64_BIT_DEFINED = 0; then
13404 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
13405 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
13407 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
13409 if test -n "$GCC" ; then
13410 bad_64bit_gcc=no;
13411 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
13412 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
13413 # Add more tests for gcc versions with non-working 64-bit support here.
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h. */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 :__GNUC__:__GNUC_MINOR__:__i386__:
13421 _ACEOF
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
13424 bad_64bit_gcc=yes;
13425 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13426 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
13427 else
13428 echo "$as_me:$LINENO: result: no" >&5
13429 echo "${ECHO_T}no" >&6
13431 rm -f conftest*
13433 if test $bad_64bit_gcc = yes ; then
13434 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
13435 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
13436 { (exit 1); exit 1; }; }
13440 false-false-false)
13441 wordsize=32
13442 bfd_libs='$(BFD32_LIBS)'
13443 all_backends='$(BFD32_BACKENDS)'
13445 esac
13454 # Determine the host dependant file_ptr a.k.a. off_t type. In order
13455 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
13456 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
13457 # Hopefully a reasonable assumption since fseeko et.al. should be
13458 # upward compatible.
13464 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
13466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13467 echo "$as_me:$LINENO: checking for $ac_func" >&5
13468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13469 if eval "test \"\${$as_ac_var+set}\" = set"; then
13470 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h. */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13480 #define $ac_func innocuous_$ac_func
13482 /* System header to define __stub macros and hopefully few prototypes,
13483 which can conflict with char $ac_func (); below.
13484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13485 <limits.h> exists even on freestanding compilers. */
13487 #ifdef __STDC__
13488 # include <limits.h>
13489 #else
13490 # include <assert.h>
13491 #endif
13493 #undef $ac_func
13495 /* Override any gcc2 internal prototype to avoid an error. */
13496 #ifdef __cplusplus
13497 extern "C"
13499 #endif
13500 /* We use char because int might match the return type of a gcc2
13501 builtin and then its argument prototype would still apply. */
13502 char $ac_func ();
13503 /* The GNU C library defines this for functions which it implements
13504 to always fail with ENOSYS. Some functions are actually named
13505 something starting with __ and the normal name is an alias. */
13506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13507 choke me
13508 #else
13509 char (*f) () = $ac_func;
13510 #endif
13511 #ifdef __cplusplus
13513 #endif
13516 main ()
13518 return f != $ac_func;
13520 return 0;
13522 _ACEOF
13523 rm -f conftest.$ac_objext conftest$ac_exeext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13525 (eval $ac_link) 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_c_werror_flag"
13533 || test ! -s conftest.err'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13536 ac_status=$?
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13542 ac_status=$?
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 eval "$as_ac_var=yes"
13546 else
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 eval "$as_ac_var=no"
13552 rm -f conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13556 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13557 if test `eval echo '${'$as_ac_var'}'` = yes; then
13558 cat >>confdefs.h <<_ACEOF
13559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13560 _ACEOF
13563 done
13565 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
13566 echo "$as_me:$LINENO: checking for off_t" >&5
13567 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13568 if test "${ac_cv_type_off_t+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h. */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h. */
13577 $ac_includes_default
13579 main ()
13581 if ((off_t *) 0)
13582 return 0;
13583 if (sizeof (off_t))
13584 return 0;
13586 return 0;
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } &&
13598 { ac_try='test -z "$ac_c_werror_flag"
13599 || test ! -s conftest.err'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13602 ac_status=$?
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; } &&
13605 { ac_try='test -s conftest.$ac_objext'
13606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 ac_cv_type_off_t=yes
13612 else
13613 echo "$as_me: failed program was:" >&5
13614 sed 's/^/| /' conftest.$ac_ext >&5
13616 ac_cv_type_off_t=no
13618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13620 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13621 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13623 echo "$as_me:$LINENO: checking size of off_t" >&5
13624 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
13625 if test "${ac_cv_sizeof_off_t+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 else
13628 if test "$ac_cv_type_off_t" = yes; then
13629 # The cast to unsigned long works around a bug in the HP C Compiler
13630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13632 # This bug is HP SR number 8606223364.
13633 if test "$cross_compiling" = yes; then
13634 # Depending upon the size, compute the lo and hi bounds.
13635 cat >conftest.$ac_ext <<_ACEOF
13636 /* confdefs.h. */
13637 _ACEOF
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 $ac_includes_default
13643 main ()
13645 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
13646 test_array [0] = 0
13649 return 0;
13651 _ACEOF
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag"
13662 || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13665 ac_status=$?
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13671 ac_status=$?
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_lo=0 ac_mid=0
13675 while :; do
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13682 $ac_includes_default
13684 main ()
13686 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13687 test_array [0] = 0
13690 return 0;
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13695 (eval $ac_compile) 2>conftest.er1
13696 ac_status=$?
13697 grep -v '^ *+' conftest.er1 >conftest.err
13698 rm -f conftest.er1
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } &&
13702 { ac_try='test -z "$ac_c_werror_flag"
13703 || test ! -s conftest.err'
13704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13706 ac_status=$?
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; } &&
13709 { ac_try='test -s conftest.$ac_objext'
13710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13711 (eval $ac_try) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; }; then
13715 ac_hi=$ac_mid; break
13716 else
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_lo=`expr $ac_mid + 1`
13721 if test $ac_lo -le $ac_mid; then
13722 ac_lo= ac_hi=
13723 break
13725 ac_mid=`expr 2 '*' $ac_mid + 1`
13727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13728 done
13729 else
13730 echo "$as_me: failed program was:" >&5
13731 sed 's/^/| /' conftest.$ac_ext >&5
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h. */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 $ac_includes_default
13741 main ()
13743 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13744 test_array [0] = 0
13747 return 0;
13749 _ACEOF
13750 rm -f conftest.$ac_objext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13752 (eval $ac_compile) 2>conftest.er1
13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } &&
13759 { ac_try='test -z "$ac_c_werror_flag"
13760 || test ! -s conftest.err'
13761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; } &&
13766 { ac_try='test -s conftest.$ac_objext'
13767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13768 (eval $ac_try) 2>&5
13769 ac_status=$?
13770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771 (exit $ac_status); }; }; then
13772 ac_hi=-1 ac_mid=-1
13773 while :; do
13774 cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h. */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h. */
13780 $ac_includes_default
13782 main ()
13784 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13785 test_array [0] = 0
13788 return 0;
13790 _ACEOF
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793 (eval $ac_compile) 2>conftest.er1
13794 ac_status=$?
13795 grep -v '^ *+' conftest.er1 >conftest.err
13796 rm -f conftest.er1
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag"
13801 || test ! -s conftest.err'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest.$ac_objext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_lo=$ac_mid; break
13814 else
13815 echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13818 ac_hi=`expr '(' $ac_mid ')' - 1`
13819 if test $ac_mid -le $ac_hi; then
13820 ac_lo= ac_hi=
13821 break
13823 ac_mid=`expr 2 '*' $ac_mid`
13825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13826 done
13827 else
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13831 ac_lo= ac_hi=
13833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 # Binary search between lo and hi bounds.
13837 while test "x$ac_lo" != "x$ac_hi"; do
13838 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13839 cat >conftest.$ac_ext <<_ACEOF
13840 /* confdefs.h. */
13841 _ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 $ac_includes_default
13847 main ()
13849 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13850 test_array [0] = 0
13853 return 0;
13855 _ACEOF
13856 rm -f conftest.$ac_objext
13857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13858 (eval $ac_compile) 2>conftest.er1
13859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } &&
13865 { ac_try='test -z "$ac_c_werror_flag"
13866 || test ! -s conftest.err'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest.$ac_objext'
13873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13875 ac_status=$?
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 ac_hi=$ac_mid
13879 else
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13883 ac_lo=`expr '(' $ac_mid ')' + 1`
13885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13886 done
13887 case $ac_lo in
13888 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13889 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13890 See \`config.log' for more details." >&5
13891 echo "$as_me: error: cannot compute sizeof (off_t), 77
13892 See \`config.log' for more details." >&2;}
13893 { (exit 1); exit 1; }; } ;;
13894 esac
13895 else
13896 if test "$cross_compiling" = yes; then
13897 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13898 See \`config.log' for more details." >&5
13899 echo "$as_me: error: cannot run test program while cross compiling
13900 See \`config.log' for more details." >&2;}
13901 { (exit 1); exit 1; }; }
13902 else
13903 cat >conftest.$ac_ext <<_ACEOF
13904 /* confdefs.h. */
13905 _ACEOF
13906 cat confdefs.h >>conftest.$ac_ext
13907 cat >>conftest.$ac_ext <<_ACEOF
13908 /* end confdefs.h. */
13909 $ac_includes_default
13910 long longval () { return (long) (sizeof (off_t)); }
13911 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13912 #include <stdio.h>
13913 #include <stdlib.h>
13915 main ()
13918 FILE *f = fopen ("conftest.val", "w");
13919 if (! f)
13920 exit (1);
13921 if (((long) (sizeof (off_t))) < 0)
13923 long i = longval ();
13924 if (i != ((long) (sizeof (off_t))))
13925 exit (1);
13926 fprintf (f, "%ld\n", i);
13928 else
13930 unsigned long i = ulongval ();
13931 if (i != ((long) (sizeof (off_t))))
13932 exit (1);
13933 fprintf (f, "%lu\n", i);
13935 exit (ferror (f) || fclose (f) != 0);
13938 return 0;
13940 _ACEOF
13941 rm -f conftest$ac_exeext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13943 (eval $ac_link) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13949 ac_status=$?
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_cv_sizeof_off_t=`cat conftest.val`
13953 else
13954 echo "$as_me: program exited with status $ac_status" >&5
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ( exit $ac_status )
13959 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13960 See \`config.log' for more details." >&5
13961 echo "$as_me: error: cannot compute sizeof (off_t), 77
13962 See \`config.log' for more details." >&2;}
13963 { (exit 1); exit 1; }; }
13965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13968 rm -f conftest.val
13969 else
13970 ac_cv_sizeof_off_t=0
13973 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13974 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13975 cat >>confdefs.h <<_ACEOF
13976 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13977 _ACEOF
13981 echo "$as_me:$LINENO: checking file_ptr type" >&5
13982 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
13983 bfd_file_ptr="long"
13984 bfd_ufile_ptr="unsigned long"
13985 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
13986 -o x"${ac_cv_sizeof_off_t}" = x8; then
13987 bfd_file_ptr=BFD_HOST_64_BIT
13988 bfd_ufile_ptr=BFD_HOST_U_64_BIT
13990 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
13991 echo "${ECHO_T}$bfd_file_ptr" >&6
13996 tdefaults=""
13997 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
13998 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
13999 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14000 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14001 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
14006 for ac_header in stdlib.h unistd.h
14008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14010 echo "$as_me:$LINENO: checking for $ac_header" >&5
14011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14017 else
14018 # Is the header compilable?
14019 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14021 cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h. */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 $ac_includes_default
14028 #include <$ac_header>
14029 _ACEOF
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032 (eval $ac_compile) 2>conftest.er1
14033 ac_status=$?
14034 grep -v '^ *+' conftest.er1 >conftest.err
14035 rm -f conftest.er1
14036 cat conftest.err >&5
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); } &&
14039 { ac_try='test -z "$ac_c_werror_flag"
14040 || test ! -s conftest.err'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; } &&
14046 { ac_try='test -s conftest.$ac_objext'
14047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14048 (eval $ac_try) 2>&5
14049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 ac_header_compiler=yes
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14057 ac_header_compiler=no
14059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14060 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14061 echo "${ECHO_T}$ac_header_compiler" >&6
14063 # Is the header present?
14064 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14065 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14066 cat >conftest.$ac_ext <<_ACEOF
14067 /* confdefs.h. */
14068 _ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 #include <$ac_header>
14073 _ACEOF
14074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } >/dev/null; then
14082 if test -s conftest.err; then
14083 ac_cpp_err=$ac_c_preproc_warn_flag
14084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14085 else
14086 ac_cpp_err=
14088 else
14089 ac_cpp_err=yes
14091 if test -z "$ac_cpp_err"; then
14092 ac_header_preproc=yes
14093 else
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14097 ac_header_preproc=no
14099 rm -f conftest.err conftest.$ac_ext
14100 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14101 echo "${ECHO_T}$ac_header_preproc" >&6
14103 # So? What about this header?
14104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14105 yes:no: )
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14110 ac_header_preproc=yes
14112 no:yes:* )
14113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14126 cat <<\_ASBOX
14127 ## ------------------------------------------ ##
14128 ## Report this to the AC_PACKAGE_NAME lists. ##
14129 ## ------------------------------------------ ##
14130 _ASBOX
14132 sed "s/^/$as_me: WARNING: /" >&2
14134 esac
14135 echo "$as_me:$LINENO: checking for $ac_header" >&5
14136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140 eval "$as_ac_Header=\$ac_header_preproc"
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14147 cat >>confdefs.h <<_ACEOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14149 _ACEOF
14153 done
14156 for ac_func in getpagesize
14158 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14159 echo "$as_me:$LINENO: checking for $ac_func" >&5
14160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14161 if eval "test \"\${$as_ac_var+set}\" = set"; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163 else
14164 cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h. */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14172 #define $ac_func innocuous_$ac_func
14174 /* System header to define __stub macros and hopefully few prototypes,
14175 which can conflict with char $ac_func (); below.
14176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14177 <limits.h> exists even on freestanding compilers. */
14179 #ifdef __STDC__
14180 # include <limits.h>
14181 #else
14182 # include <assert.h>
14183 #endif
14185 #undef $ac_func
14187 /* Override any gcc2 internal prototype to avoid an error. */
14188 #ifdef __cplusplus
14189 extern "C"
14191 #endif
14192 /* We use char because int might match the return type of a gcc2
14193 builtin and then its argument prototype would still apply. */
14194 char $ac_func ();
14195 /* The GNU C library defines this for functions which it implements
14196 to always fail with ENOSYS. Some functions are actually named
14197 something starting with __ and the normal name is an alias. */
14198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14199 choke me
14200 #else
14201 char (*f) () = $ac_func;
14202 #endif
14203 #ifdef __cplusplus
14205 #endif
14208 main ()
14210 return f != $ac_func;
14212 return 0;
14214 _ACEOF
14215 rm -f conftest.$ac_objext conftest$ac_exeext
14216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14217 (eval $ac_link) 2>conftest.er1
14218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } &&
14224 { ac_try='test -z "$ac_c_werror_flag"
14225 || test ! -s conftest.err'
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5
14228 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; } &&
14231 { ac_try='test -s conftest$ac_exeext'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; }; then
14237 eval "$as_ac_var=yes"
14238 else
14239 echo "$as_me: failed program was:" >&5
14240 sed 's/^/| /' conftest.$ac_ext >&5
14242 eval "$as_ac_var=no"
14244 rm -f conftest.err conftest.$ac_objext \
14245 conftest$ac_exeext conftest.$ac_ext
14247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14249 if test `eval echo '${'$as_ac_var'}'` = yes; then
14250 cat >>confdefs.h <<_ACEOF
14251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14252 _ACEOF
14255 done
14257 echo "$as_me:$LINENO: checking for working mmap" >&5
14258 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14259 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 if test "$cross_compiling" = yes; then
14263 ac_cv_func_mmap_fixed_mapped=no
14264 else
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 $ac_includes_default
14272 /* malloc might have been renamed as rpl_malloc. */
14273 #undef malloc
14275 /* Thanks to Mike Haertel and Jim Avera for this test.
14276 Here is a matrix of mmap possibilities:
14277 mmap private not fixed
14278 mmap private fixed at somewhere currently unmapped
14279 mmap private fixed at somewhere already mapped
14280 mmap shared not fixed
14281 mmap shared fixed at somewhere currently unmapped
14282 mmap shared fixed at somewhere already mapped
14283 For private mappings, we should verify that changes cannot be read()
14284 back from the file, nor mmap's back from the file at a different
14285 address. (There have been systems where private was not correctly
14286 implemented like the infamous i386 svr4.0, and systems where the
14287 VM page cache was not coherent with the file system buffer cache
14288 like early versions of FreeBSD and possibly contemporary NetBSD.)
14289 For shared mappings, we should conversely verify that changes get
14290 propagated back to all the places they're supposed to be.
14292 Grep wants private fixed already mapped.
14293 The main things grep needs to know about mmap are:
14294 * does it exist and is it safe to write into the mmap'd area
14295 * how to use it (BSD variants) */
14297 #include <fcntl.h>
14298 #include <sys/mman.h>
14300 #if !STDC_HEADERS && !HAVE_STDLIB_H
14301 char *malloc ();
14302 #endif
14304 /* This mess was copied from the GNU getpagesize.h. */
14305 #if !HAVE_GETPAGESIZE
14306 /* Assume that all systems that can run configure have sys/param.h. */
14307 # if !HAVE_SYS_PARAM_H
14308 # define HAVE_SYS_PARAM_H 1
14309 # endif
14311 # ifdef _SC_PAGESIZE
14312 # define getpagesize() sysconf(_SC_PAGESIZE)
14313 # else /* no _SC_PAGESIZE */
14314 # if HAVE_SYS_PARAM_H
14315 # include <sys/param.h>
14316 # ifdef EXEC_PAGESIZE
14317 # define getpagesize() EXEC_PAGESIZE
14318 # else /* no EXEC_PAGESIZE */
14319 # ifdef NBPG
14320 # define getpagesize() NBPG * CLSIZE
14321 # ifndef CLSIZE
14322 # define CLSIZE 1
14323 # endif /* no CLSIZE */
14324 # else /* no NBPG */
14325 # ifdef NBPC
14326 # define getpagesize() NBPC
14327 # else /* no NBPC */
14328 # ifdef PAGESIZE
14329 # define getpagesize() PAGESIZE
14330 # endif /* PAGESIZE */
14331 # endif /* no NBPC */
14332 # endif /* no NBPG */
14333 # endif /* no EXEC_PAGESIZE */
14334 # else /* no HAVE_SYS_PARAM_H */
14335 # define getpagesize() 8192 /* punt totally */
14336 # endif /* no HAVE_SYS_PARAM_H */
14337 # endif /* no _SC_PAGESIZE */
14339 #endif /* no HAVE_GETPAGESIZE */
14342 main ()
14344 char *data, *data2, *data3;
14345 int i, pagesize;
14346 int fd;
14348 pagesize = getpagesize ();
14350 /* First, make a file with some known garbage in it. */
14351 data = (char *) malloc (pagesize);
14352 if (!data)
14353 exit (1);
14354 for (i = 0; i < pagesize; ++i)
14355 *(data + i) = rand ();
14356 umask (0);
14357 fd = creat ("conftest.mmap", 0600);
14358 if (fd < 0)
14359 exit (1);
14360 if (write (fd, data, pagesize) != pagesize)
14361 exit (1);
14362 close (fd);
14364 /* Next, try to mmap the file at a fixed address which already has
14365 something else allocated at it. If we can, also make sure that
14366 we see the same garbage. */
14367 fd = open ("conftest.mmap", O_RDWR);
14368 if (fd < 0)
14369 exit (1);
14370 data2 = (char *) malloc (2 * pagesize);
14371 if (!data2)
14372 exit (1);
14373 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14374 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14375 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14376 exit (1);
14377 for (i = 0; i < pagesize; ++i)
14378 if (*(data + i) != *(data2 + i))
14379 exit (1);
14381 /* Finally, make sure that changes to the mapped area do not
14382 percolate back to the file as seen by read(). (This is a bug on
14383 some variants of i386 svr4.0.) */
14384 for (i = 0; i < pagesize; ++i)
14385 *(data2 + i) = *(data2 + i) + 1;
14386 data3 = (char *) malloc (pagesize);
14387 if (!data3)
14388 exit (1);
14389 if (read (fd, data3, pagesize) != pagesize)
14390 exit (1);
14391 for (i = 0; i < pagesize; ++i)
14392 if (*(data + i) != *(data3 + i))
14393 exit (1);
14394 close (fd);
14395 exit (0);
14397 _ACEOF
14398 rm -f conftest$ac_exeext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14400 (eval $ac_link) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_func_mmap_fixed_mapped=yes
14410 else
14411 echo "$as_me: program exited with status $ac_status" >&5
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ( exit $ac_status )
14416 ac_cv_func_mmap_fixed_mapped=no
14418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14421 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14422 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14423 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14425 cat >>confdefs.h <<\_ACEOF
14426 #define HAVE_MMAP 1
14427 _ACEOF
14430 rm -f conftest.mmap
14434 for ac_func in madvise mprotect
14436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14437 echo "$as_me:$LINENO: checking for $ac_func" >&5
14438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14439 if eval "test \"\${$as_ac_var+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442 cat >conftest.$ac_ext <<_ACEOF
14443 /* confdefs.h. */
14444 _ACEOF
14445 cat confdefs.h >>conftest.$ac_ext
14446 cat >>conftest.$ac_ext <<_ACEOF
14447 /* end confdefs.h. */
14448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14450 #define $ac_func innocuous_$ac_func
14452 /* System header to define __stub macros and hopefully few prototypes,
14453 which can conflict with char $ac_func (); below.
14454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14455 <limits.h> exists even on freestanding compilers. */
14457 #ifdef __STDC__
14458 # include <limits.h>
14459 #else
14460 # include <assert.h>
14461 #endif
14463 #undef $ac_func
14465 /* Override any gcc2 internal prototype to avoid an error. */
14466 #ifdef __cplusplus
14467 extern "C"
14469 #endif
14470 /* We use char because int might match the return type of a gcc2
14471 builtin and then its argument prototype would still apply. */
14472 char $ac_func ();
14473 /* The GNU C library defines this for functions which it implements
14474 to always fail with ENOSYS. Some functions are actually named
14475 something starting with __ and the normal name is an alias. */
14476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14477 choke me
14478 #else
14479 char (*f) () = $ac_func;
14480 #endif
14481 #ifdef __cplusplus
14483 #endif
14486 main ()
14488 return f != $ac_func;
14490 return 0;
14492 _ACEOF
14493 rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14495 (eval $ac_link) 2>conftest.er1
14496 ac_status=$?
14497 grep -v '^ *+' conftest.er1 >conftest.err
14498 rm -f conftest.er1
14499 cat conftest.err >&5
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14501 (exit $ac_status); } &&
14502 { ac_try='test -z "$ac_c_werror_flag"
14503 || test ! -s conftest.err'
14504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505 (eval $ac_try) 2>&5
14506 ac_status=$?
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); }; } &&
14509 { ac_try='test -s conftest$ac_exeext'
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; }; then
14515 eval "$as_ac_var=yes"
14516 else
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14520 eval "$as_ac_var=no"
14522 rm -f conftest.err conftest.$ac_objext \
14523 conftest$ac_exeext conftest.$ac_ext
14525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14527 if test `eval echo '${'$as_ac_var'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14530 _ACEOF
14533 done
14535 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
14536 true+yes )
14537 cat >>confdefs.h <<\_ACEOF
14538 #define USE_MMAP 1
14539 _ACEOF
14541 esac
14543 rm -f doc/config.status
14544 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
14546 ac_config_commands="$ac_config_commands default"
14553 cat >confcache <<\_ACEOF
14554 # This file is a shell script that caches the results of configure
14555 # tests run on this system so they can be shared between configure
14556 # scripts and configure runs, see configure's option --config-cache.
14557 # It is not useful on other systems. If it contains results you don't
14558 # want to keep, you may remove or edit it.
14560 # config.status only pays attention to the cache file if you give it
14561 # the --recheck option to rerun configure.
14563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14565 # following values.
14567 _ACEOF
14569 # The following way of writing the cache mishandles newlines in values,
14570 # but we know of no workaround that is simple, portable, and efficient.
14571 # So, don't put newlines in cache variables' values.
14572 # Ultrix sh set writes to stderr and can't be redirected directly,
14573 # and sets the high bit in the cache file unless we assign to the vars.
14575 (set) 2>&1 |
14576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14577 *ac_space=\ *)
14578 # `set' does not quote correctly, so add quotes (double-quote
14579 # substitution turns \\\\ into \\, and sed turns \\ into \).
14580 sed -n \
14581 "s/'/'\\\\''/g;
14582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14585 # `set' quotes correctly as required by POSIX, so do not add quotes.
14586 sed -n \
14587 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14589 esac;
14591 sed '
14592 t clear
14593 : clear
14594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14595 t end
14596 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14597 : end' >>confcache
14598 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14599 if test -w $cache_file; then
14600 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14601 cat confcache >$cache_file
14602 else
14603 echo "not updating unwritable cache $cache_file"
14606 rm -f confcache
14608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14609 # Let make expand exec_prefix.
14610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14612 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14613 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14614 # trailing colons and then remove the whole line if VPATH becomes empty
14615 # (actually we leave an empty line to preserve line numbers).
14616 if test "x$srcdir" = x.; then
14617 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14618 s/:*\$(srcdir):*/:/;
14619 s/:*\${srcdir}:*/:/;
14620 s/:*@srcdir@:*/:/;
14621 s/^\([^=]*=[ ]*\):*/\1/;
14622 s/:*$//;
14623 s/^[^=]*=[ ]*$//;
14627 DEFS=-DHAVE_CONFIG_H
14629 ac_libobjs=
14630 ac_ltlibobjs=
14631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14632 # 1. Remove the extension, and $U if already installed.
14633 ac_i=`echo "$ac_i" |
14634 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14635 # 2. Add them.
14636 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14637 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14638 done
14639 LIBOBJS=$ac_libobjs
14641 LTLIBOBJS=$ac_ltlibobjs
14644 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14645 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14646 Usually this means the macro was only invoked conditionally." >&5
14647 echo "$as_me: error: conditional \"AMDEP\" was never defined.
14648 Usually this means the macro was only invoked conditionally." >&2;}
14649 { (exit 1); exit 1; }; }
14651 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14652 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14653 Usually this means the macro was only invoked conditionally." >&5
14654 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14655 Usually this means the macro was only invoked conditionally." >&2;}
14656 { (exit 1); exit 1; }; }
14658 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14659 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
14660 Usually this means the macro was only invoked conditionally." >&5
14661 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
14662 Usually this means the macro was only invoked conditionally." >&2;}
14663 { (exit 1); exit 1; }; }
14665 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
14666 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
14667 Usually this means the macro was only invoked conditionally." >&5
14668 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
14669 Usually this means the macro was only invoked conditionally." >&2;}
14670 { (exit 1); exit 1; }; }
14673 : ${CONFIG_STATUS=./config.status}
14674 ac_clean_files_save=$ac_clean_files
14675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14676 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14677 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14678 cat >$CONFIG_STATUS <<_ACEOF
14679 #! $SHELL
14680 # Generated by $as_me.
14681 # Run this file to recreate the current configuration.
14682 # Compiler output produced by configure, useful for debugging
14683 # configure, is in config.log if it exists.
14685 debug=false
14686 ac_cs_recheck=false
14687 ac_cs_silent=false
14688 SHELL=\${CONFIG_SHELL-$SHELL}
14689 _ACEOF
14691 cat >>$CONFIG_STATUS <<\_ACEOF
14692 ## --------------------- ##
14693 ## M4sh Initialization. ##
14694 ## --------------------- ##
14696 # Be Bourne compatible
14697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14698 emulate sh
14699 NULLCMD=:
14700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14701 # is contrary to our usage. Disable this feature.
14702 alias -g '${1+"$@"}'='"$@"'
14703 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14704 set -o posix
14706 DUALCASE=1; export DUALCASE # for MKS sh
14708 # Support unset when possible.
14709 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14710 as_unset=unset
14711 else
14712 as_unset=false
14716 # Work around bugs in pre-3.0 UWIN ksh.
14717 $as_unset ENV MAIL MAILPATH
14718 PS1='$ '
14719 PS2='> '
14720 PS4='+ '
14722 # NLS nuisances.
14723 for as_var in \
14724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14726 LC_TELEPHONE LC_TIME
14728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14729 eval $as_var=C; export $as_var
14730 else
14731 $as_unset $as_var
14733 done
14735 # Required to use basename.
14736 if expr a : '\(a\)' >/dev/null 2>&1; then
14737 as_expr=expr
14738 else
14739 as_expr=false
14742 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14743 as_basename=basename
14744 else
14745 as_basename=false
14749 # Name of the executable.
14750 as_me=`$as_basename "$0" ||
14751 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14752 X"$0" : 'X\(//\)$' \| \
14753 X"$0" : 'X\(/\)$' \| \
14754 . : '\(.\)' 2>/dev/null ||
14755 echo X/"$0" |
14756 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14757 /^X\/\(\/\/\)$/{ s//\1/; q; }
14758 /^X\/\(\/\).*/{ s//\1/; q; }
14759 s/.*/./; q'`
14762 # PATH needs CR, and LINENO needs CR and PATH.
14763 # Avoid depending upon Character Ranges.
14764 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14765 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14766 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14767 as_cr_digits='0123456789'
14768 as_cr_alnum=$as_cr_Letters$as_cr_digits
14770 # The user is always right.
14771 if test "${PATH_SEPARATOR+set}" != set; then
14772 echo "#! /bin/sh" >conf$$.sh
14773 echo "exit 0" >>conf$$.sh
14774 chmod +x conf$$.sh
14775 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14776 PATH_SEPARATOR=';'
14777 else
14778 PATH_SEPARATOR=:
14780 rm -f conf$$.sh
14784 as_lineno_1=$LINENO
14785 as_lineno_2=$LINENO
14786 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14787 test "x$as_lineno_1" != "x$as_lineno_2" &&
14788 test "x$as_lineno_3" = "x$as_lineno_2" || {
14789 # Find who we are. Look in the path if we contain no path at all
14790 # relative or not.
14791 case $0 in
14792 *[\\/]* ) as_myself=$0 ;;
14793 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $PATH
14796 IFS=$as_save_IFS
14797 test -z "$as_dir" && as_dir=.
14798 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14799 done
14802 esac
14803 # We did not find ourselves, most probably we were run as `sh COMMAND'
14804 # in which case we are not to be found in the path.
14805 if test "x$as_myself" = x; then
14806 as_myself=$0
14808 if test ! -f "$as_myself"; then
14809 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14810 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14811 { (exit 1); exit 1; }; }
14813 case $CONFIG_SHELL in
14815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14816 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14818 IFS=$as_save_IFS
14819 test -z "$as_dir" && as_dir=.
14820 for as_base in sh bash ksh sh5; do
14821 case $as_dir in
14823 if ("$as_dir/$as_base" -c '
14824 as_lineno_1=$LINENO
14825 as_lineno_2=$LINENO
14826 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14827 test "x$as_lineno_1" != "x$as_lineno_2" &&
14828 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14829 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14830 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14831 CONFIG_SHELL=$as_dir/$as_base
14832 export CONFIG_SHELL
14833 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14834 fi;;
14835 esac
14836 done
14837 done
14839 esac
14841 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14842 # uniformly replaced by the line number. The first 'sed' inserts a
14843 # line-number line before each line; the second 'sed' does the real
14844 # work. The second script uses 'N' to pair each line-number line
14845 # with the numbered line, and appends trailing '-' during
14846 # substitution so that $LINENO is not a special case at line end.
14847 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14848 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14849 sed '=' <$as_myself |
14850 sed '
14852 s,$,-,
14853 : loop
14854 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14855 t loop
14856 s,-$,,
14857 s,^['$as_cr_digits']*\n,,
14858 ' >$as_me.lineno &&
14859 chmod +x $as_me.lineno ||
14860 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14861 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14862 { (exit 1); exit 1; }; }
14864 # Don't try to exec as it changes $[0], causing all sort of problems
14865 # (the dirname of $[0] is not the place where we might find the
14866 # original and so on. Autoconf is especially sensible to this).
14867 . ./$as_me.lineno
14868 # Exit status is that of the last command.
14869 exit
14873 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14874 *c*,-n*) ECHO_N= ECHO_C='
14875 ' ECHO_T=' ' ;;
14876 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14877 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14878 esac
14880 if expr a : '\(a\)' >/dev/null 2>&1; then
14881 as_expr=expr
14882 else
14883 as_expr=false
14886 rm -f conf$$ conf$$.exe conf$$.file
14887 echo >conf$$.file
14888 if ln -s conf$$.file conf$$ 2>/dev/null; then
14889 # We could just check for DJGPP; but this test a) works b) is more generic
14890 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14891 if test -f conf$$.exe; then
14892 # Don't use ln at all; we don't have any links
14893 as_ln_s='cp -p'
14894 else
14895 as_ln_s='ln -s'
14897 elif ln conf$$.file conf$$ 2>/dev/null; then
14898 as_ln_s=ln
14899 else
14900 as_ln_s='cp -p'
14902 rm -f conf$$ conf$$.exe conf$$.file
14904 if mkdir -p . 2>/dev/null; then
14905 as_mkdir_p=:
14906 else
14907 test -d ./-p && rmdir ./-p
14908 as_mkdir_p=false
14911 as_executable_p="test -f"
14913 # Sed expression to map a string onto a valid CPP name.
14914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14916 # Sed expression to map a string onto a valid variable name.
14917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14920 # IFS
14921 # We need space, tab and new line, in precisely that order.
14922 as_nl='
14924 IFS=" $as_nl"
14926 # CDPATH.
14927 $as_unset CDPATH
14929 exec 6>&1
14931 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14932 # report actual input values of CONFIG_FILES etc. instead of their
14933 # values after options handling. Logging --version etc. is OK.
14934 exec 5>>config.log
14936 echo
14937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14938 ## Running $as_me. ##
14939 _ASBOX
14940 } >&5
14941 cat >&5 <<_CSEOF
14943 This file was extended by $as_me, which was
14944 generated by GNU Autoconf 2.59. Invocation command line was
14946 CONFIG_FILES = $CONFIG_FILES
14947 CONFIG_HEADERS = $CONFIG_HEADERS
14948 CONFIG_LINKS = $CONFIG_LINKS
14949 CONFIG_COMMANDS = $CONFIG_COMMANDS
14950 $ $0 $@
14952 _CSEOF
14953 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14954 echo >&5
14955 _ACEOF
14957 # Files that config.status was made for.
14958 if test -n "$ac_config_files"; then
14959 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14962 if test -n "$ac_config_headers"; then
14963 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14966 if test -n "$ac_config_links"; then
14967 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14970 if test -n "$ac_config_commands"; then
14971 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14974 cat >>$CONFIG_STATUS <<\_ACEOF
14976 ac_cs_usage="\
14977 \`$as_me' instantiates files from templates according to the
14978 current configuration.
14980 Usage: $0 [OPTIONS] [FILE]...
14982 -h, --help print this help, then exit
14983 -V, --version print version number, then exit
14984 -q, --quiet do not print progress messages
14985 -d, --debug don't remove temporary files
14986 --recheck update $as_me by reconfiguring in the same conditions
14987 --file=FILE[:TEMPLATE]
14988 instantiate the configuration file FILE
14989 --header=FILE[:TEMPLATE]
14990 instantiate the configuration header FILE
14992 Configuration files:
14993 $config_files
14995 Configuration headers:
14996 $config_headers
14998 Configuration commands:
14999 $config_commands
15001 Report bugs to <bug-autoconf@gnu.org>."
15002 _ACEOF
15004 cat >>$CONFIG_STATUS <<_ACEOF
15005 ac_cs_version="\\
15006 config.status
15007 configured by $0, generated by GNU Autoconf 2.59,
15008 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15010 Copyright (C) 2003 Free Software Foundation, Inc.
15011 This config.status script is free software; the Free Software Foundation
15012 gives unlimited permission to copy, distribute and modify it."
15013 srcdir=$srcdir
15014 INSTALL="$INSTALL"
15015 _ACEOF
15017 cat >>$CONFIG_STATUS <<\_ACEOF
15018 # If no file are specified by the user, then we need to provide default
15019 # value. By we need to know if files were specified by the user.
15020 ac_need_defaults=:
15021 while test $# != 0
15023 case $1 in
15024 --*=*)
15025 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15026 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15027 ac_shift=:
15030 ac_option=$1
15031 ac_optarg=$2
15032 ac_shift=shift
15034 *) # This is not an option, so the user has probably given explicit
15035 # arguments.
15036 ac_option=$1
15037 ac_need_defaults=false;;
15038 esac
15040 case $ac_option in
15041 # Handling of the options.
15042 _ACEOF
15043 cat >>$CONFIG_STATUS <<\_ACEOF
15044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15045 ac_cs_recheck=: ;;
15046 --version | --vers* | -V )
15047 echo "$ac_cs_version"; exit 0 ;;
15048 --he | --h)
15049 # Conflict between --help and --header
15050 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15051 Try \`$0 --help' for more information." >&5
15052 echo "$as_me: error: ambiguous option: $1
15053 Try \`$0 --help' for more information." >&2;}
15054 { (exit 1); exit 1; }; };;
15055 --help | --hel | -h )
15056 echo "$ac_cs_usage"; exit 0 ;;
15057 --debug | --d* | -d )
15058 debug=: ;;
15059 --file | --fil | --fi | --f )
15060 $ac_shift
15061 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15062 ac_need_defaults=false;;
15063 --header | --heade | --head | --hea )
15064 $ac_shift
15065 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15066 ac_need_defaults=false;;
15067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15069 ac_cs_silent=: ;;
15071 # This is an error.
15072 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15073 Try \`$0 --help' for more information." >&5
15074 echo "$as_me: error: unrecognized option: $1
15075 Try \`$0 --help' for more information." >&2;}
15076 { (exit 1); exit 1; }; } ;;
15078 *) ac_config_targets="$ac_config_targets $1" ;;
15080 esac
15081 shift
15082 done
15084 ac_configure_extra_args=
15086 if $ac_cs_silent; then
15087 exec 6>/dev/null
15088 ac_configure_extra_args="$ac_configure_extra_args --silent"
15091 _ACEOF
15092 cat >>$CONFIG_STATUS <<_ACEOF
15093 if \$ac_cs_recheck; then
15094 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15095 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15098 _ACEOF
15100 cat >>$CONFIG_STATUS <<_ACEOF
15102 # INIT-COMMANDS section.
15105 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15108 _ACEOF
15112 cat >>$CONFIG_STATUS <<\_ACEOF
15113 for ac_config_target in $ac_config_targets
15115 case "$ac_config_target" in
15116 # Handling of arguments.
15117 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15118 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15119 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
15120 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15121 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15122 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15123 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15124 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15125 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15126 { (exit 1); exit 1; }; };;
15127 esac
15128 done
15130 # If the user did not use the arguments to specify the items to instantiate,
15131 # then the envvar interface is used. Set only those that are not.
15132 # We use the long form for the default assignment because of an extremely
15133 # bizarre bug on SunOS 4.1.3.
15134 if $ac_need_defaults; then
15135 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15136 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15137 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15140 # Have a temporary directory for convenience. Make it in the build tree
15141 # simply because there is no reason to put it here, and in addition,
15142 # creating and moving files from /tmp can sometimes cause problems.
15143 # Create a temporary directory, and hook for its removal unless debugging.
15144 $debug ||
15146 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15147 trap '{ (exit 1); exit 1; }' 1 2 13 15
15150 # Create a (secure) tmp directory for tmp files.
15153 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15154 test -n "$tmp" && test -d "$tmp"
15155 } ||
15157 tmp=./confstat$$-$RANDOM
15158 (umask 077 && mkdir $tmp)
15159 } ||
15161 echo "$me: cannot create a temporary directory in ." >&2
15162 { (exit 1); exit 1; }
15165 _ACEOF
15167 cat >>$CONFIG_STATUS <<_ACEOF
15170 # CONFIG_FILES section.
15173 # No need to generate the scripts if there are no CONFIG_FILES.
15174 # This happens for instance when ./config.status config.h
15175 if test -n "\$CONFIG_FILES"; then
15176 # Protect against being on the right side of a sed subst in config.status.
15177 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15178 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15179 s,@SHELL@,$SHELL,;t t
15180 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15181 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15182 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15183 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15184 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15185 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15186 s,@exec_prefix@,$exec_prefix,;t t
15187 s,@prefix@,$prefix,;t t
15188 s,@program_transform_name@,$program_transform_name,;t t
15189 s,@bindir@,$bindir,;t t
15190 s,@sbindir@,$sbindir,;t t
15191 s,@libexecdir@,$libexecdir,;t t
15192 s,@datadir@,$datadir,;t t
15193 s,@sysconfdir@,$sysconfdir,;t t
15194 s,@sharedstatedir@,$sharedstatedir,;t t
15195 s,@localstatedir@,$localstatedir,;t t
15196 s,@libdir@,$libdir,;t t
15197 s,@includedir@,$includedir,;t t
15198 s,@oldincludedir@,$oldincludedir,;t t
15199 s,@infodir@,$infodir,;t t
15200 s,@mandir@,$mandir,;t t
15201 s,@build_alias@,$build_alias,;t t
15202 s,@host_alias@,$host_alias,;t t
15203 s,@target_alias@,$target_alias,;t t
15204 s,@DEFS@,$DEFS,;t t
15205 s,@ECHO_C@,$ECHO_C,;t t
15206 s,@ECHO_N@,$ECHO_N,;t t
15207 s,@ECHO_T@,$ECHO_T,;t t
15208 s,@LIBS@,$LIBS,;t t
15209 s,@build@,$build,;t t
15210 s,@build_cpu@,$build_cpu,;t t
15211 s,@build_vendor@,$build_vendor,;t t
15212 s,@build_os@,$build_os,;t t
15213 s,@host@,$host,;t t
15214 s,@host_cpu@,$host_cpu,;t t
15215 s,@host_vendor@,$host_vendor,;t t
15216 s,@host_os@,$host_os,;t t
15217 s,@target@,$target,;t t
15218 s,@target_cpu@,$target_cpu,;t t
15219 s,@target_vendor@,$target_vendor,;t t
15220 s,@target_os@,$target_os,;t t
15221 s,@CC@,$CC,;t t
15222 s,@CFLAGS@,$CFLAGS,;t t
15223 s,@LDFLAGS@,$LDFLAGS,;t t
15224 s,@CPPFLAGS@,$CPPFLAGS,;t t
15225 s,@ac_ct_CC@,$ac_ct_CC,;t t
15226 s,@EXEEXT@,$EXEEXT,;t t
15227 s,@OBJEXT@,$OBJEXT,;t t
15228 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15229 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15230 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15231 s,@CYGPATH_W@,$CYGPATH_W,;t t
15232 s,@PACKAGE@,$PACKAGE,;t t
15233 s,@VERSION@,$VERSION,;t t
15234 s,@ACLOCAL@,$ACLOCAL,;t t
15235 s,@AUTOCONF@,$AUTOCONF,;t t
15236 s,@AUTOMAKE@,$AUTOMAKE,;t t
15237 s,@AUTOHEADER@,$AUTOHEADER,;t t
15238 s,@MAKEINFO@,$MAKEINFO,;t t
15239 s,@install_sh@,$install_sh,;t t
15240 s,@STRIP@,$STRIP,;t t
15241 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15242 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15243 s,@mkdir_p@,$mkdir_p,;t t
15244 s,@AWK@,$AWK,;t t
15245 s,@SET_MAKE@,$SET_MAKE,;t t
15246 s,@am__leading_dot@,$am__leading_dot,;t t
15247 s,@AMTAR@,$AMTAR,;t t
15248 s,@am__tar@,$am__tar,;t t
15249 s,@am__untar@,$am__untar,;t t
15250 s,@DEPDIR@,$DEPDIR,;t t
15251 s,@am__include@,$am__include,;t t
15252 s,@am__quote@,$am__quote,;t t
15253 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
15254 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
15255 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
15256 s,@CCDEPMODE@,$CCDEPMODE,;t t
15257 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
15258 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
15259 s,@AR@,$AR,;t t
15260 s,@ac_ct_AR@,$ac_ct_AR,;t t
15261 s,@RANLIB@,$RANLIB,;t t
15262 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15263 s,@LN_S@,$LN_S,;t t
15264 s,@LIBTOOL@,$LIBTOOL,;t t
15265 s,@PKGVERSION@,$PKGVERSION,;t t
15266 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
15267 s,@NO_WERROR@,$NO_WERROR,;t t
15268 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15269 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15270 s,@MAINT@,$MAINT,;t t
15271 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
15272 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
15273 s,@host_noncanonical@,$host_noncanonical,;t t
15274 s,@target_noncanonical@,$target_noncanonical,;t t
15275 s,@bfdlibdir@,$bfdlibdir,;t t
15276 s,@bfdincludedir@,$bfdincludedir,;t t
15277 s,@CPP@,$CPP,;t t
15278 s,@EGREP@,$EGREP,;t t
15279 s,@ALLOCA@,$ALLOCA,;t t
15280 s,@USE_NLS@,$USE_NLS,;t t
15281 s,@MSGFMT@,$MSGFMT,;t t
15282 s,@GMSGFMT@,$GMSGFMT,;t t
15283 s,@XGETTEXT@,$XGETTEXT,;t t
15284 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
15285 s,@CATALOGS@,$CATALOGS,;t t
15286 s,@CATOBJEXT@,$CATOBJEXT,;t t
15287 s,@DATADIRNAME@,$DATADIRNAME,;t t
15288 s,@GMOFILES@,$GMOFILES,;t t
15289 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
15290 s,@INTLDEPS@,$INTLDEPS,;t t
15291 s,@INTLLIBS@,$INTLLIBS,;t t
15292 s,@INTLOBJS@,$INTLOBJS,;t t
15293 s,@POFILES@,$POFILES,;t t
15294 s,@POSUB@,$POSUB,;t t
15295 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
15296 s,@GT_NO@,$GT_NO,;t t
15297 s,@GT_YES@,$GT_YES,;t t
15298 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
15299 s,@l@,$l,;t t
15300 s,@HDEFINES@,$HDEFINES,;t t
15301 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
15302 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
15303 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
15304 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
15305 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
15306 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
15307 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
15308 s,@COREFILE@,$COREFILE,;t t
15309 s,@COREFLAG@,$COREFLAG,;t t
15310 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
15311 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
15312 s,@TDEFINES@,$TDEFINES,;t t
15313 s,@wordsize@,$wordsize,;t t
15314 s,@bfd_libs@,$bfd_libs,;t t
15315 s,@all_backends@,$all_backends,;t t
15316 s,@bfd_backends@,$bfd_backends,;t t
15317 s,@bfd_machines@,$bfd_machines,;t t
15318 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
15319 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
15320 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
15321 s,@tdefaults@,$tdefaults,;t t
15322 s,@datarootdir@,$datarootdir,;t t
15323 s,@docdir@,$docdir,;t t
15324 s,@htmldir@,$htmldir,;t t
15325 s,@LIBOBJS@,$LIBOBJS,;t t
15326 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15327 CEOF
15329 _ACEOF
15331 cat >>$CONFIG_STATUS <<\_ACEOF
15332 # Split the substitutions into bite-sized pieces for seds with
15333 # small command number limits, like on Digital OSF/1 and HP-UX.
15334 ac_max_sed_lines=48
15335 ac_sed_frag=1 # Number of current file.
15336 ac_beg=1 # First line for current file.
15337 ac_end=$ac_max_sed_lines # Line after last line for current file.
15338 ac_more_lines=:
15339 ac_sed_cmds=
15340 while $ac_more_lines; do
15341 if test $ac_beg -gt 1; then
15342 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15343 else
15344 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15346 if test ! -s $tmp/subs.frag; then
15347 ac_more_lines=false
15348 else
15349 # The purpose of the label and of the branching condition is to
15350 # speed up the sed processing (if there are no `@' at all, there
15351 # is no need to browse any of the substitutions).
15352 # These are the two extra sed commands mentioned above.
15353 (echo ':t
15354 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15355 if test -z "$ac_sed_cmds"; then
15356 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15357 else
15358 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15360 ac_sed_frag=`expr $ac_sed_frag + 1`
15361 ac_beg=$ac_end
15362 ac_end=`expr $ac_end + $ac_max_sed_lines`
15364 done
15365 if test -z "$ac_sed_cmds"; then
15366 ac_sed_cmds=cat
15368 fi # test -n "$CONFIG_FILES"
15370 _ACEOF
15371 cat >>$CONFIG_STATUS <<\_ACEOF
15372 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15373 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15374 case $ac_file in
15375 - | *:- | *:-:* ) # input from stdin
15376 cat >$tmp/stdin
15377 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15378 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15379 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15380 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15381 * ) ac_file_in=$ac_file.in ;;
15382 esac
15384 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15385 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15387 X"$ac_file" : 'X\(//\)[^/]' \| \
15388 X"$ac_file" : 'X\(//\)$' \| \
15389 X"$ac_file" : 'X\(/\)' \| \
15390 . : '\(.\)' 2>/dev/null ||
15391 echo X"$ac_file" |
15392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15393 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15394 /^X\(\/\/\)$/{ s//\1/; q; }
15395 /^X\(\/\).*/{ s//\1/; q; }
15396 s/.*/./; q'`
15397 { if $as_mkdir_p; then
15398 mkdir -p "$ac_dir"
15399 else
15400 as_dir="$ac_dir"
15401 as_dirs=
15402 while test ! -d "$as_dir"; do
15403 as_dirs="$as_dir $as_dirs"
15404 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15406 X"$as_dir" : 'X\(//\)[^/]' \| \
15407 X"$as_dir" : 'X\(//\)$' \| \
15408 X"$as_dir" : 'X\(/\)' \| \
15409 . : '\(.\)' 2>/dev/null ||
15410 echo X"$as_dir" |
15411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15412 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15413 /^X\(\/\/\)$/{ s//\1/; q; }
15414 /^X\(\/\).*/{ s//\1/; q; }
15415 s/.*/./; q'`
15416 done
15417 test ! -n "$as_dirs" || mkdir $as_dirs
15418 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15419 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15420 { (exit 1); exit 1; }; }; }
15422 ac_builddir=.
15424 if test "$ac_dir" != .; then
15425 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15426 # A "../" for each directory in $ac_dir_suffix.
15427 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15428 else
15429 ac_dir_suffix= ac_top_builddir=
15432 case $srcdir in
15433 .) # No --srcdir option. We are building in place.
15434 ac_srcdir=.
15435 if test -z "$ac_top_builddir"; then
15436 ac_top_srcdir=.
15437 else
15438 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15439 fi ;;
15440 [\\/]* | ?:[\\/]* ) # Absolute path.
15441 ac_srcdir=$srcdir$ac_dir_suffix;
15442 ac_top_srcdir=$srcdir ;;
15443 *) # Relative path.
15444 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15445 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15446 esac
15448 # Do not use `cd foo && pwd` to compute absolute paths, because
15449 # the directories may not exist.
15450 case `pwd` in
15451 .) ac_abs_builddir="$ac_dir";;
15453 case "$ac_dir" in
15454 .) ac_abs_builddir=`pwd`;;
15455 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15456 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15457 esac;;
15458 esac
15459 case $ac_abs_builddir in
15460 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15462 case ${ac_top_builddir}. in
15463 .) ac_abs_top_builddir=$ac_abs_builddir;;
15464 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15465 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15466 esac;;
15467 esac
15468 case $ac_abs_builddir in
15469 .) ac_abs_srcdir=$ac_srcdir;;
15471 case $ac_srcdir in
15472 .) ac_abs_srcdir=$ac_abs_builddir;;
15473 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15474 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15475 esac;;
15476 esac
15477 case $ac_abs_builddir in
15478 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15480 case $ac_top_srcdir in
15481 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15482 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15483 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15484 esac;;
15485 esac
15488 case $INSTALL in
15489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15490 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15491 esac
15493 if test x"$ac_file" != x-; then
15494 { echo "$as_me:$LINENO: creating $ac_file" >&5
15495 echo "$as_me: creating $ac_file" >&6;}
15496 rm -f "$ac_file"
15498 # Let's still pretend it is `configure' which instantiates (i.e., don't
15499 # use $as_me), people would be surprised to read:
15500 # /* config.h. Generated by config.status. */
15501 if test x"$ac_file" = x-; then
15502 configure_input=
15503 else
15504 configure_input="$ac_file. "
15506 configure_input=$configure_input"Generated from `echo $ac_file_in |
15507 sed 's,.*/,,'` by configure."
15509 # First look for the input files in the build tree, otherwise in the
15510 # src tree.
15511 ac_file_inputs=`IFS=:
15512 for f in $ac_file_in; do
15513 case $f in
15514 -) echo $tmp/stdin ;;
15515 [\\/$]*)
15516 # Absolute (can't be DOS-style, as IFS=:)
15517 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15518 echo "$as_me: error: cannot find input file: $f" >&2;}
15519 { (exit 1); exit 1; }; }
15520 echo "$f";;
15521 *) # Relative
15522 if test -f "$f"; then
15523 # Build tree
15524 echo "$f"
15525 elif test -f "$srcdir/$f"; then
15526 # Source tree
15527 echo "$srcdir/$f"
15528 else
15529 # /dev/null tree
15530 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15531 echo "$as_me: error: cannot find input file: $f" >&2;}
15532 { (exit 1); exit 1; }; }
15533 fi;;
15534 esac
15535 done` || { (exit 1); exit 1; }
15536 _ACEOF
15537 cat >>$CONFIG_STATUS <<_ACEOF
15538 sed "$ac_vpsub
15539 $extrasub
15540 _ACEOF
15541 cat >>$CONFIG_STATUS <<\_ACEOF
15543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15544 s,@configure_input@,$configure_input,;t t
15545 s,@srcdir@,$ac_srcdir,;t t
15546 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15547 s,@top_srcdir@,$ac_top_srcdir,;t t
15548 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15549 s,@builddir@,$ac_builddir,;t t
15550 s,@abs_builddir@,$ac_abs_builddir,;t t
15551 s,@top_builddir@,$ac_top_builddir,;t t
15552 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15553 s,@INSTALL@,$ac_INSTALL,;t t
15554 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15555 rm -f $tmp/stdin
15556 if test x"$ac_file" != x-; then
15557 mv $tmp/out $ac_file
15558 else
15559 cat $tmp/out
15560 rm -f $tmp/out
15563 done
15564 _ACEOF
15565 cat >>$CONFIG_STATUS <<\_ACEOF
15568 # CONFIG_HEADER section.
15571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15574 # ac_d sets the value in "#define NAME VALUE" lines.
15575 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15576 ac_dB='[ ].*$,\1#\2'
15577 ac_dC=' '
15578 ac_dD=',;t'
15579 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15580 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15581 ac_uB='$,\1#\2define\3'
15582 ac_uC=' '
15583 ac_uD=',;t'
15585 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15586 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15587 case $ac_file in
15588 - | *:- | *:-:* ) # input from stdin
15589 cat >$tmp/stdin
15590 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15591 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15592 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15594 * ) ac_file_in=$ac_file.in ;;
15595 esac
15597 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15598 echo "$as_me: creating $ac_file" >&6;}
15600 # First look for the input files in the build tree, otherwise in the
15601 # src tree.
15602 ac_file_inputs=`IFS=:
15603 for f in $ac_file_in; do
15604 case $f in
15605 -) echo $tmp/stdin ;;
15606 [\\/$]*)
15607 # Absolute (can't be DOS-style, as IFS=:)
15608 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15609 echo "$as_me: error: cannot find input file: $f" >&2;}
15610 { (exit 1); exit 1; }; }
15611 # Do quote $f, to prevent DOS paths from being IFS'd.
15612 echo "$f";;
15613 *) # Relative
15614 if test -f "$f"; then
15615 # Build tree
15616 echo "$f"
15617 elif test -f "$srcdir/$f"; then
15618 # Source tree
15619 echo "$srcdir/$f"
15620 else
15621 # /dev/null tree
15622 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15623 echo "$as_me: error: cannot find input file: $f" >&2;}
15624 { (exit 1); exit 1; }; }
15625 fi;;
15626 esac
15627 done` || { (exit 1); exit 1; }
15628 # Remove the trailing spaces.
15629 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15631 _ACEOF
15633 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15634 # `conftest.undefs', that substitutes the proper values into
15635 # config.h.in to produce config.h. The first handles `#define'
15636 # templates, and the second `#undef' templates.
15637 # And first: Protect against being on the right side of a sed subst in
15638 # config.status. Protect against being in an unquoted here document
15639 # in config.status.
15640 rm -f conftest.defines conftest.undefs
15641 # Using a here document instead of a string reduces the quoting nightmare.
15642 # Putting comments in sed scripts is not portable.
15644 # `end' is used to avoid that the second main sed command (meant for
15645 # 0-ary CPP macros) applies to n-ary macro definitions.
15646 # See the Autoconf documentation for `clear'.
15647 cat >confdef2sed.sed <<\_ACEOF
15648 s/[\\&,]/\\&/g
15649 s,[\\$`],\\&,g
15650 t clear
15651 : clear
15652 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15653 t end
15654 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15655 : end
15656 _ACEOF
15657 # If some macros were called several times there might be several times
15658 # the same #defines, which is useless. Nevertheless, we may not want to
15659 # sort them, since we want the *last* AC-DEFINE to be honored.
15660 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15661 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15662 rm -f confdef2sed.sed
15664 # This sed command replaces #undef with comments. This is necessary, for
15665 # example, in the case of _POSIX_SOURCE, which is predefined and required
15666 # on some systems where configure will not decide to define it.
15667 cat >>conftest.undefs <<\_ACEOF
15668 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15669 _ACEOF
15671 # Break up conftest.defines because some shells have a limit on the size
15672 # of here documents, and old seds have small limits too (100 cmds).
15673 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15674 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15675 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15676 echo ' :' >>$CONFIG_STATUS
15677 rm -f conftest.tail
15678 while grep . conftest.defines >/dev/null
15680 # Write a limited-size here document to $tmp/defines.sed.
15681 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15682 # Speed up: don't consider the non `#define' lines.
15683 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15684 # Work around the forget-to-reset-the-flag bug.
15685 echo 't clr' >>$CONFIG_STATUS
15686 echo ': clr' >>$CONFIG_STATUS
15687 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15688 echo 'CEOF
15689 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15690 rm -f $tmp/in
15691 mv $tmp/out $tmp/in
15692 ' >>$CONFIG_STATUS
15693 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15694 rm -f conftest.defines
15695 mv conftest.tail conftest.defines
15696 done
15697 rm -f conftest.defines
15698 echo ' fi # grep' >>$CONFIG_STATUS
15699 echo >>$CONFIG_STATUS
15701 # Break up conftest.undefs because some shells have a limit on the size
15702 # of here documents, and old seds have small limits too (100 cmds).
15703 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15704 rm -f conftest.tail
15705 while grep . conftest.undefs >/dev/null
15707 # Write a limited-size here document to $tmp/undefs.sed.
15708 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15709 # Speed up: don't consider the non `#undef'
15710 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15711 # Work around the forget-to-reset-the-flag bug.
15712 echo 't clr' >>$CONFIG_STATUS
15713 echo ': clr' >>$CONFIG_STATUS
15714 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15715 echo 'CEOF
15716 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15717 rm -f $tmp/in
15718 mv $tmp/out $tmp/in
15719 ' >>$CONFIG_STATUS
15720 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15721 rm -f conftest.undefs
15722 mv conftest.tail conftest.undefs
15723 done
15724 rm -f conftest.undefs
15726 cat >>$CONFIG_STATUS <<\_ACEOF
15727 # Let's still pretend it is `configure' which instantiates (i.e., don't
15728 # use $as_me), people would be surprised to read:
15729 # /* config.h. Generated by config.status. */
15730 if test x"$ac_file" = x-; then
15731 echo "/* Generated by configure. */" >$tmp/config.h
15732 else
15733 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15735 cat $tmp/in >>$tmp/config.h
15736 rm -f $tmp/in
15737 if test x"$ac_file" != x-; then
15738 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15739 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15740 echo "$as_me: $ac_file is unchanged" >&6;}
15741 else
15742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15744 X"$ac_file" : 'X\(//\)[^/]' \| \
15745 X"$ac_file" : 'X\(//\)$' \| \
15746 X"$ac_file" : 'X\(/\)' \| \
15747 . : '\(.\)' 2>/dev/null ||
15748 echo X"$ac_file" |
15749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15751 /^X\(\/\/\)$/{ s//\1/; q; }
15752 /^X\(\/\).*/{ s//\1/; q; }
15753 s/.*/./; q'`
15754 { if $as_mkdir_p; then
15755 mkdir -p "$ac_dir"
15756 else
15757 as_dir="$ac_dir"
15758 as_dirs=
15759 while test ! -d "$as_dir"; do
15760 as_dirs="$as_dir $as_dirs"
15761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15763 X"$as_dir" : 'X\(//\)[^/]' \| \
15764 X"$as_dir" : 'X\(//\)$' \| \
15765 X"$as_dir" : 'X\(/\)' \| \
15766 . : '\(.\)' 2>/dev/null ||
15767 echo X"$as_dir" |
15768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15770 /^X\(\/\/\)$/{ s//\1/; q; }
15771 /^X\(\/\).*/{ s//\1/; q; }
15772 s/.*/./; q'`
15773 done
15774 test ! -n "$as_dirs" || mkdir $as_dirs
15775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15777 { (exit 1); exit 1; }; }; }
15779 rm -f $ac_file
15780 mv $tmp/config.h $ac_file
15782 else
15783 cat $tmp/config.h
15784 rm -f $tmp/config.h
15786 # Compute $ac_file's index in $config_headers.
15787 _am_stamp_count=1
15788 for _am_header in $config_headers :; do
15789 case $_am_header in
15790 $ac_file | $ac_file:* )
15791 break ;;
15793 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15794 esac
15795 done
15796 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15797 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15798 X$ac_file : 'X\(//\)[^/]' \| \
15799 X$ac_file : 'X\(//\)$' \| \
15800 X$ac_file : 'X\(/\)' \| \
15801 . : '\(.\)' 2>/dev/null ||
15802 echo X$ac_file |
15803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15804 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15805 /^X\(\/\/\)$/{ s//\1/; q; }
15806 /^X\(\/\).*/{ s//\1/; q; }
15807 s/.*/./; q'`/stamp-h$_am_stamp_count
15808 done
15809 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF
15813 # CONFIG_COMMANDS section.
15815 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15820 X"$ac_dest" : 'X\(//\)[^/]' \| \
15821 X"$ac_dest" : 'X\(//\)$' \| \
15822 X"$ac_dest" : 'X\(/\)' \| \
15823 . : '\(.\)' 2>/dev/null ||
15824 echo X"$ac_dest" |
15825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15827 /^X\(\/\/\)$/{ s//\1/; q; }
15828 /^X\(\/\).*/{ s//\1/; q; }
15829 s/.*/./; q'`
15830 { if $as_mkdir_p; then
15831 mkdir -p "$ac_dir"
15832 else
15833 as_dir="$ac_dir"
15834 as_dirs=
15835 while test ! -d "$as_dir"; do
15836 as_dirs="$as_dir $as_dirs"
15837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15839 X"$as_dir" : 'X\(//\)[^/]' \| \
15840 X"$as_dir" : 'X\(//\)$' \| \
15841 X"$as_dir" : 'X\(/\)' \| \
15842 . : '\(.\)' 2>/dev/null ||
15843 echo X"$as_dir" |
15844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15846 /^X\(\/\/\)$/{ s//\1/; q; }
15847 /^X\(\/\).*/{ s//\1/; q; }
15848 s/.*/./; q'`
15849 done
15850 test ! -n "$as_dirs" || mkdir $as_dirs
15851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15853 { (exit 1); exit 1; }; }; }
15855 ac_builddir=.
15857 if test "$ac_dir" != .; then
15858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15859 # A "../" for each directory in $ac_dir_suffix.
15860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15861 else
15862 ac_dir_suffix= ac_top_builddir=
15865 case $srcdir in
15866 .) # No --srcdir option. We are building in place.
15867 ac_srcdir=.
15868 if test -z "$ac_top_builddir"; then
15869 ac_top_srcdir=.
15870 else
15871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15872 fi ;;
15873 [\\/]* | ?:[\\/]* ) # Absolute path.
15874 ac_srcdir=$srcdir$ac_dir_suffix;
15875 ac_top_srcdir=$srcdir ;;
15876 *) # Relative path.
15877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15879 esac
15881 # Do not use `cd foo && pwd` to compute absolute paths, because
15882 # the directories may not exist.
15883 case `pwd` in
15884 .) ac_abs_builddir="$ac_dir";;
15886 case "$ac_dir" in
15887 .) ac_abs_builddir=`pwd`;;
15888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15890 esac;;
15891 esac
15892 case $ac_abs_builddir in
15893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15895 case ${ac_top_builddir}. in
15896 .) ac_abs_top_builddir=$ac_abs_builddir;;
15897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15899 esac;;
15900 esac
15901 case $ac_abs_builddir in
15902 .) ac_abs_srcdir=$ac_srcdir;;
15904 case $ac_srcdir in
15905 .) ac_abs_srcdir=$ac_abs_builddir;;
15906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15908 esac;;
15909 esac
15910 case $ac_abs_builddir in
15911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15913 case $ac_top_srcdir in
15914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15917 esac;;
15918 esac
15921 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15922 echo "$as_me: executing $ac_dest commands" >&6;}
15923 case $ac_dest in
15924 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15925 # Strip MF so we end up with the name of the file.
15926 mf=`echo "$mf" | sed -e 's/:.*$//'`
15927 # Check whether this is an Automake generated Makefile or not.
15928 # We used to match only the files named `Makefile.in', but
15929 # some people rename them; so instead we look at the file content.
15930 # Grep'ing the first line is not enough: some people post-process
15931 # each Makefile.in and add a new line on top of each file to say so.
15932 # So let's grep whole file.
15933 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15934 dirpart=`(dirname "$mf") 2>/dev/null ||
15935 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15936 X"$mf" : 'X\(//\)[^/]' \| \
15937 X"$mf" : 'X\(//\)$' \| \
15938 X"$mf" : 'X\(/\)' \| \
15939 . : '\(.\)' 2>/dev/null ||
15940 echo X"$mf" |
15941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15943 /^X\(\/\/\)$/{ s//\1/; q; }
15944 /^X\(\/\).*/{ s//\1/; q; }
15945 s/.*/./; q'`
15946 else
15947 continue
15949 # Extract the definition of DEPDIR, am__include, and am__quote
15950 # from the Makefile without running `make'.
15951 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15952 test -z "$DEPDIR" && continue
15953 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15954 test -z "am__include" && continue
15955 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15956 # When using ansi2knr, U may be empty or an underscore; expand it
15957 U=`sed -n 's/^U = //p' < "$mf"`
15958 # Find all dependency output files, they are included files with
15959 # $(DEPDIR) in their names. We invoke sed twice because it is the
15960 # simplest approach to changing $(DEPDIR) to its actual value in the
15961 # expansion.
15962 for file in `sed -n "
15963 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15964 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15965 # Make sure the directory exists.
15966 test -f "$dirpart/$file" && continue
15967 fdir=`(dirname "$file") 2>/dev/null ||
15968 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15969 X"$file" : 'X\(//\)[^/]' \| \
15970 X"$file" : 'X\(//\)$' \| \
15971 X"$file" : 'X\(/\)' \| \
15972 . : '\(.\)' 2>/dev/null ||
15973 echo X"$file" |
15974 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15975 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15976 /^X\(\/\/\)$/{ s//\1/; q; }
15977 /^X\(\/\).*/{ s//\1/; q; }
15978 s/.*/./; q'`
15979 { if $as_mkdir_p; then
15980 mkdir -p $dirpart/$fdir
15981 else
15982 as_dir=$dirpart/$fdir
15983 as_dirs=
15984 while test ! -d "$as_dir"; do
15985 as_dirs="$as_dir $as_dirs"
15986 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15988 X"$as_dir" : 'X\(//\)[^/]' \| \
15989 X"$as_dir" : 'X\(//\)$' \| \
15990 X"$as_dir" : 'X\(/\)' \| \
15991 . : '\(.\)' 2>/dev/null ||
15992 echo X"$as_dir" |
15993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15995 /^X\(\/\/\)$/{ s//\1/; q; }
15996 /^X\(\/\).*/{ s//\1/; q; }
15997 s/.*/./; q'`
15998 done
15999 test ! -n "$as_dirs" || mkdir $as_dirs
16000 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16001 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16002 { (exit 1); exit 1; }; }; }
16004 # echo "creating $dirpart/$file"
16005 echo '# dummy' > "$dirpart/$file"
16006 done
16007 done
16009 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
16010 esac
16011 done
16012 _ACEOF
16014 cat >>$CONFIG_STATUS <<\_ACEOF
16016 { (exit 0); exit 0; }
16017 _ACEOF
16018 chmod +x $CONFIG_STATUS
16019 ac_clean_files=$ac_clean_files_save
16022 # configure is writing to config.log, and then calls config.status.
16023 # config.status does its own redirection, appending to config.log.
16024 # Unfortunately, on DOS this fails, as config.log is still kept open
16025 # by configure, so config.status won't be able to write to it; its
16026 # output is simply discarded. So we exec the FD to /dev/null,
16027 # effectively closing config.log, so it can be properly (re)opened and
16028 # appended to by config.status. When coming back to configure, we
16029 # need to make the FD available again.
16030 if test "$no_create" != yes; then
16031 ac_cs_success=:
16032 ac_config_status_args=
16033 test "$silent" = yes &&
16034 ac_config_status_args="$ac_config_status_args --quiet"
16035 exec 5>/dev/null
16036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16037 exec 5>>config.log
16038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16039 # would make configure fail if this is the last instruction.
16040 $ac_cs_success || { (exit 1); exit 1; }