./
[binutils.git] / bfd / configure
blobfed139abd6ce778a2f3902ebb6f667fdfb4ce895
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 WARN_CFLAGS 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 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-build-warnings Enable build-time compiler warnings if gcc is used
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --enable-install-libbfd controls installation of libbfd and related headers
866 --disable-nls do not use Native Language Support
868 Optional Packages:
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-gnu-ld assume the C compiler uses GNU ld default=no
872 --with-pic try to use only PIC/non-PIC objects default=use both
873 --with-mmap try using mmap for BFD input files if available
874 --with-included-gettext use the GNU gettext library included here
876 Some influential environment variables:
877 CC C compiler command
878 CFLAGS C compiler flags
879 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
880 nonstandard directory <lib dir>
881 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
882 headers in a nonstandard directory <include dir>
883 CPP C preprocessor
885 Use these variables to override the choices made by `configure' or to help
886 it to find libraries and programs with nonstandard names/locations.
888 _ACEOF
891 if test "$ac_init_help" = "recursive"; then
892 # If there are subdirs, report their specific --help.
893 ac_popdir=`pwd`
894 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
895 test -d $ac_dir || continue
896 ac_builddir=.
898 if test "$ac_dir" != .; then
899 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
900 # A "../" for each directory in $ac_dir_suffix.
901 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 else
903 ac_dir_suffix= ac_top_builddir=
906 case $srcdir in
907 .) # No --srcdir option. We are building in place.
908 ac_srcdir=.
909 if test -z "$ac_top_builddir"; then
910 ac_top_srcdir=.
911 else
912 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 fi ;;
914 [\\/]* | ?:[\\/]* ) # Absolute path.
915 ac_srcdir=$srcdir$ac_dir_suffix;
916 ac_top_srcdir=$srcdir ;;
917 *) # Relative path.
918 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
919 ac_top_srcdir=$ac_top_builddir$srcdir ;;
920 esac
922 # Do not use `cd foo && pwd` to compute absolute paths, because
923 # the directories may not exist.
924 case `pwd` in
925 .) ac_abs_builddir="$ac_dir";;
927 case "$ac_dir" in
928 .) ac_abs_builddir=`pwd`;;
929 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
930 *) ac_abs_builddir=`pwd`/"$ac_dir";;
931 esac;;
932 esac
933 case $ac_abs_builddir in
934 .) ac_abs_top_builddir=${ac_top_builddir}.;;
936 case ${ac_top_builddir}. in
937 .) ac_abs_top_builddir=$ac_abs_builddir;;
938 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
939 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
940 esac;;
941 esac
942 case $ac_abs_builddir in
943 .) ac_abs_srcdir=$ac_srcdir;;
945 case $ac_srcdir in
946 .) ac_abs_srcdir=$ac_abs_builddir;;
947 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
948 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
949 esac;;
950 esac
951 case $ac_abs_builddir in
952 .) ac_abs_top_srcdir=$ac_top_srcdir;;
954 case $ac_top_srcdir in
955 .) ac_abs_top_srcdir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
957 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
958 esac;;
959 esac
961 cd $ac_dir
962 # Check for guested configure; otherwise get Cygnus style configure.
963 if test -f $ac_srcdir/configure.gnu; then
964 echo
965 $SHELL $ac_srcdir/configure.gnu --help=recursive
966 elif test -f $ac_srcdir/configure; then
967 echo
968 $SHELL $ac_srcdir/configure --help=recursive
969 elif test -f $ac_srcdir/configure.ac ||
970 test -f $ac_srcdir/configure.in; then
971 echo
972 $ac_configure --help
973 else
974 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
976 cd "$ac_popdir"
977 done
980 test -n "$ac_init_help" && exit 0
981 if $ac_init_version; then
982 cat <<\_ACEOF
984 Copyright (C) 2003 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
987 _ACEOF
988 exit 0
990 exec 5>config.log
991 cat >&5 <<_ACEOF
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.59. Invocation command line was
998 $ $0 $@
1000 _ACEOF
1002 cat <<_ASUNAME
1003 ## --------- ##
1004 ## Platform. ##
1005 ## --------- ##
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 _ASUNAME
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027 for as_dir in $PATH
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032 done
1034 } >&5
1036 cat >&5 <<_ACEOF
1039 ## ----------- ##
1040 ## Core tests. ##
1041 ## ----------- ##
1043 _ACEOF
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1051 ac_configure_args=
1052 ac_configure_args0=
1053 ac_configure_args1=
1054 ac_sep=
1055 ac_must_keep_next=false
1056 for ac_pass in 1 2
1058 for ac_arg
1060 case $ac_arg in
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 continue ;;
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 esac
1068 case $ac_pass in
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1074 else
1075 case $ac_arg in
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 esac
1084 -* ) ac_must_keep_next=true ;;
1085 esac
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1089 ac_sep=" "
1091 esac
1092 done
1093 done
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1105 echo
1107 cat <<\_ASBOX
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1111 _ASBOX
1112 echo
1113 # The following way of writing the cache mishandles newlines in values,
1115 (set) 2>&1 |
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 *ac_space=\ *)
1118 sed -n \
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 sed -n \
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126 esac;
1128 echo
1130 cat <<\_ASBOX
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1134 _ASBOX
1135 echo
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1140 done | sort
1141 echo
1143 if test -n "$ac_subst_files"; then
1144 cat <<\_ASBOX
1145 ## ------------- ##
1146 ## Output files. ##
1147 ## ------------- ##
1148 _ASBOX
1149 echo
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1154 done | sort
1155 echo
1158 if test -s confdefs.h; then
1159 cat <<\_ASBOX
1160 ## ----------- ##
1161 ## confdefs.h. ##
1162 ## ----------- ##
1163 _ASBOX
1164 echo
1165 sed "/^$/d" confdefs.h | sort
1166 echo
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1171 } >&5
1172 rm -f core *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 exit $exit_status
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178 done
1179 ac_signal=0
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 echo >confdefs.h
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1205 _ACEOF
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1210 _ACEOF
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 else
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1229 done
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1242 else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1248 # Check that the precious variables saved in the cache have kept the same
1249 # value.
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1258 set,)
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1262 ,set)
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1266 ,);;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1276 fi;;
1277 esac
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1280 case $ac_new_val in
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1284 esac
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1288 esac
1290 done
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1299 ac_ext=c
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1325 ac_aux_dir=
1326 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1327 if test -f $ac_dir/install-sh; then
1328 ac_aux_dir=$ac_dir
1329 ac_install_sh="$ac_aux_dir/install-sh -c"
1330 break
1331 elif test -f $ac_dir/install.sh; then
1332 ac_aux_dir=$ac_dir
1333 ac_install_sh="$ac_aux_dir/install.sh -c"
1334 break
1335 elif test -f $ac_dir/shtool; then
1336 ac_aux_dir=$ac_dir
1337 ac_install_sh="$ac_aux_dir/shtool install -c"
1338 break
1340 done
1341 if test -z "$ac_aux_dir"; then
1342 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1343 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1344 { (exit 1); exit 1; }; }
1346 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1347 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1348 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1350 # Make sure we can run config.sub.
1351 $ac_config_sub sun4 >/dev/null 2>&1 ||
1352 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1353 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1354 { (exit 1); exit 1; }; }
1356 echo "$as_me:$LINENO: checking build system type" >&5
1357 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1358 if test "${ac_cv_build+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361 ac_cv_build_alias=$build_alias
1362 test -z "$ac_cv_build_alias" &&
1363 ac_cv_build_alias=`$ac_config_guess`
1364 test -z "$ac_cv_build_alias" &&
1365 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1366 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1367 { (exit 1); exit 1; }; }
1368 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1369 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1370 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1371 { (exit 1); exit 1; }; }
1374 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1375 echo "${ECHO_T}$ac_cv_build" >&6
1376 build=$ac_cv_build
1377 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382 echo "$as_me:$LINENO: checking host system type" >&5
1383 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1384 if test "${ac_cv_host+set}" = set; then
1385 echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387 ac_cv_host_alias=$host_alias
1388 test -z "$ac_cv_host_alias" &&
1389 ac_cv_host_alias=$ac_cv_build_alias
1390 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1391 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1392 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1393 { (exit 1); exit 1; }; }
1396 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1397 echo "${ECHO_T}$ac_cv_host" >&6
1398 host=$ac_cv_host
1399 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1400 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1401 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1404 echo "$as_me:$LINENO: checking target system type" >&5
1405 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1406 if test "${ac_cv_target+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 ac_cv_target_alias=$target_alias
1410 test "x$ac_cv_target_alias" = "x" &&
1411 ac_cv_target_alias=$ac_cv_host_alias
1412 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1413 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1414 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1415 { (exit 1); exit 1; }; }
1418 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1419 echo "${ECHO_T}$ac_cv_target" >&6
1420 target=$ac_cv_target
1421 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1422 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1423 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1426 # The aliases save the names the user supplied, while $host etc.
1427 # will get canonicalized.
1428 test -n "$target_alias" &&
1429 test "$program_prefix$program_suffix$program_transform_name" = \
1430 NONENONEs,x,x, &&
1431 program_prefix=${target_alias}-
1432 ac_ext=c
1433 ac_cpp='$CPP $CPPFLAGS'
1434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437 if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1459 done
1460 done
1464 CC=$ac_cv_prog_CC
1465 if test -n "$CC"; then
1466 echo "$as_me:$LINENO: result: $CC" >&5
1467 echo "${ECHO_T}$CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1474 if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477 set dummy gcc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485 else
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1497 done
1498 done
1502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503 if test -n "$ac_ct_CC"; then
1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505 echo "${ECHO_T}$ac_ct_CC" >&6
1506 else
1507 echo "$as_me:$LINENO: result: no" >&5
1508 echo "${ECHO_T}no" >&6
1511 CC=$ac_ct_CC
1512 else
1513 CC="$ac_cv_prog_CC"
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1539 done
1540 done
1544 CC=$ac_cv_prog_CC
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
1556 # Extract the first word of "cc", so it can be a program name with args.
1557 set dummy cc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562 else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565 else
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567 for as_dir in $PATH
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1577 done
1578 done
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1586 else
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1591 CC=$ac_ct_CC
1592 else
1593 CC="$ac_cv_prog_CC"
1597 if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599 set dummy cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607 else
1608 ac_prog_rejected=no
1609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 for as_dir in $PATH
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1624 done
1625 done
1627 if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
1631 if test $# != 0; then
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1641 CC=$ac_cv_prog_CC
1642 if test -n "$CC"; then
1643 echo "$as_me:$LINENO: result: $CC" >&5
1644 echo "${ECHO_T}$CC" >&6
1645 else
1646 echo "$as_me:$LINENO: result: no" >&5
1647 echo "${ECHO_T}no" >&6
1651 if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1657 echo "$as_me:$LINENO: checking for $ac_word" >&5
1658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659 if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661 else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 for as_dir in $PATH
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1676 done
1677 done
1681 CC=$ac_cv_prog_CC
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1685 else
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1690 test -n "$CC" && break
1691 done
1693 if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698 set dummy $ac_prog; ac_word=$2
1699 echo "$as_me:$LINENO: checking for $ac_word" >&5
1700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706 else
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1718 done
1719 done
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6
1727 else
1728 echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6
1732 test -n "$ac_ct_CC" && break
1733 done
1735 CC=$ac_ct_CC
1741 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742 See \`config.log' for more details." >&5
1743 echo "$as_me: error: no acceptable C compiler found in \$PATH
1744 See \`config.log' for more details." >&2;}
1745 { (exit 1); exit 1; }; }
1747 # Provide some information about the compiler.
1748 echo "$as_me:$LINENO:" \
1749 "checking for C compiler version" >&5
1750 ac_compiler=`set X $ac_compile; echo $2`
1751 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1755 (exit $ac_status); }
1756 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1760 (exit $ac_status); }
1761 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1765 (exit $ac_status); }
1767 cat >conftest.$ac_ext <<_ACEOF
1768 /* confdefs.h. */
1769 _ACEOF
1770 cat confdefs.h >>conftest.$ac_ext
1771 cat >>conftest.$ac_ext <<_ACEOF
1772 /* end confdefs.h. */
1775 main ()
1779 return 0;
1781 _ACEOF
1782 ac_clean_files_save=$ac_clean_files
1783 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1784 # Try to create an executable without -o first, disregard a.out.
1785 # It will help us diagnose broken compilers, and finding out an intuition
1786 # of exeext.
1787 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1788 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1789 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1790 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1791 (eval $ac_link_default) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; then
1795 # Find the output, starting from the most likely. This scheme is
1796 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1797 # resort.
1799 # Be careful to initialize this variable, since it used to be cached.
1800 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1801 ac_cv_exeext=
1802 # b.out is created by i960 compilers.
1803 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805 test -f "$ac_file" || continue
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 conftest.$ac_ext )
1810 # This is the source file.
1812 [ab].out )
1813 # We found the default executable, but exeext='' is most
1814 # certainly right.
1815 break;;
1816 *.* )
1817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818 # FIXME: I believe we export ac_cv_exeext for Libtool,
1819 # but it would be cool to find out if it's true. Does anybody
1820 # maintain Libtool? --akim.
1821 export ac_cv_exeext
1822 break;;
1824 break;;
1825 esac
1826 done
1827 else
1828 echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1831 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1832 See \`config.log' for more details." >&5
1833 echo "$as_me: error: C compiler cannot create executables
1834 See \`config.log' for more details." >&2;}
1835 { (exit 77); exit 77; }; }
1838 ac_exeext=$ac_cv_exeext
1839 echo "$as_me:$LINENO: result: $ac_file" >&5
1840 echo "${ECHO_T}$ac_file" >&6
1842 # Check the compiler produces executables we can run. If not, either
1843 # the compiler is broken, or we cross compile.
1844 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1845 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1846 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1847 # If not cross compiling, check that we can run a simple program.
1848 if test "$cross_compiling" != yes; then
1849 if { ac_try='./$ac_file'
1850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1851 (eval $ac_try) 2>&5
1852 ac_status=$?
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1855 cross_compiling=no
1856 else
1857 if test "$cross_compiling" = maybe; then
1858 cross_compiling=yes
1859 else
1860 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1861 If you meant to cross compile, use \`--host'.
1862 See \`config.log' for more details." >&5
1863 echo "$as_me: error: cannot run C compiled programs.
1864 If you meant to cross compile, use \`--host'.
1865 See \`config.log' for more details." >&2;}
1866 { (exit 1); exit 1; }; }
1870 echo "$as_me:$LINENO: result: yes" >&5
1871 echo "${ECHO_T}yes" >&6
1873 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1874 ac_clean_files=$ac_clean_files_save
1875 # Check the compiler produces executables we can run. If not, either
1876 # the compiler is broken, or we cross compile.
1877 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1878 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1879 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1880 echo "${ECHO_T}$cross_compiling" >&6
1882 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1883 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1885 (eval $ac_link) 2>&5
1886 ac_status=$?
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); }; then
1889 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1890 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1891 # work properly (i.e., refer to `conftest.exe'), while it won't with
1892 # `rm'.
1893 for ac_file in conftest.exe conftest conftest.*; do
1894 test -f "$ac_file" || continue
1895 case $ac_file in
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1897 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898 export ac_cv_exeext
1899 break;;
1900 * ) break;;
1901 esac
1902 done
1903 else
1904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1905 See \`config.log' for more details." >&5
1906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1907 See \`config.log' for more details." >&2;}
1908 { (exit 1); exit 1; }; }
1911 rm -f conftest$ac_cv_exeext
1912 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1913 echo "${ECHO_T}$ac_cv_exeext" >&6
1915 rm -f conftest.$ac_ext
1916 EXEEXT=$ac_cv_exeext
1917 ac_exeext=$EXEEXT
1918 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1920 if test "${ac_cv_objext+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 cat >conftest.$ac_ext <<_ACEOF
1924 /* confdefs.h. */
1925 _ACEOF
1926 cat confdefs.h >>conftest.$ac_ext
1927 cat >>conftest.$ac_ext <<_ACEOF
1928 /* end confdefs.h. */
1931 main ()
1935 return 0;
1937 _ACEOF
1938 rm -f conftest.o conftest.obj
1939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1940 (eval $ac_compile) 2>&5
1941 ac_status=$?
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; then
1944 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1945 case $ac_file in
1946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1947 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1948 break;;
1949 esac
1950 done
1951 else
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1964 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1965 echo "${ECHO_T}$ac_cv_objext" >&6
1966 OBJEXT=$ac_cv_objext
1967 ac_objext=$OBJEXT
1968 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1969 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 cat >conftest.$ac_ext <<_ACEOF
1974 /* confdefs.h. */
1975 _ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1981 main ()
1983 #ifndef __GNUC__
1984 choke me
1985 #endif
1988 return 0;
1990 _ACEOF
1991 rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993 (eval $ac_compile) 2>conftest.er1
1994 ac_status=$?
1995 grep -v '^ *+' conftest.er1 >conftest.err
1996 rm -f conftest.er1
1997 cat conftest.err >&5
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); } &&
2000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
2012 ac_compiler_gnu=yes
2013 else
2014 echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_compiler_gnu=no
2019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2023 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2024 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2025 GCC=`test $ac_compiler_gnu = yes && echo yes`
2026 ac_test_CFLAGS=${CFLAGS+set}
2027 ac_save_CFLAGS=$CFLAGS
2028 CFLAGS="-g"
2029 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2030 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2031 if test "${ac_cv_prog_cc_g+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 /* confdefs.h. */
2036 _ACEOF
2037 cat confdefs.h >>conftest.$ac_ext
2038 cat >>conftest.$ac_ext <<_ACEOF
2039 /* end confdefs.h. */
2042 main ()
2046 return 0;
2048 _ACEOF
2049 rm -f conftest.$ac_objext
2050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2051 (eval $ac_compile) 2>conftest.er1
2052 ac_status=$?
2053 grep -v '^ *+' conftest.er1 >conftest.err
2054 rm -f conftest.er1
2055 cat conftest.err >&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); } &&
2058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2060 (eval $ac_try) 2>&5
2061 ac_status=$?
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }; } &&
2064 { ac_try='test -s conftest.$ac_objext'
2065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 (eval $ac_try) 2>&5
2067 ac_status=$?
2068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069 (exit $ac_status); }; }; then
2070 ac_cv_prog_cc_g=yes
2071 else
2072 echo "$as_me: failed program was:" >&5
2073 sed 's/^/| /' conftest.$ac_ext >&5
2075 ac_cv_prog_cc_g=no
2077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2079 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2080 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2081 if test "$ac_test_CFLAGS" = set; then
2082 CFLAGS=$ac_save_CFLAGS
2083 elif test $ac_cv_prog_cc_g = yes; then
2084 if test "$GCC" = yes; then
2085 CFLAGS="-g -O2"
2086 else
2087 CFLAGS="-g"
2089 else
2090 if test "$GCC" = yes; then
2091 CFLAGS="-O2"
2092 else
2093 CFLAGS=
2096 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2097 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 ac_cv_prog_cc_stdc=no
2102 ac_save_CC=$CC
2103 cat >conftest.$ac_ext <<_ACEOF
2104 /* confdefs.h. */
2105 _ACEOF
2106 cat confdefs.h >>conftest.$ac_ext
2107 cat >>conftest.$ac_ext <<_ACEOF
2108 /* end confdefs.h. */
2109 #include <stdarg.h>
2110 #include <stdio.h>
2111 #include <sys/types.h>
2112 #include <sys/stat.h>
2113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2114 struct buf { int x; };
2115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2116 static char *e (p, i)
2117 char **p;
2118 int i;
2120 return p[i];
2122 static char *f (char * (*g) (char **, int), char **p, ...)
2124 char *s;
2125 va_list v;
2126 va_start (v,p);
2127 s = g (p, va_arg (v,int));
2128 va_end (v);
2129 return s;
2132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2133 function prototypes and stuff, but not '\xHH' hex character constants.
2134 These don't provoke an error unfortunately, instead are silently treated
2135 as 'x'. The following induces an error, until -std1 is added to get
2136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2137 array size at least. It's necessary to write '\x00'==0 to get something
2138 that's true only with -std1. */
2139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2141 int test (int i, double x);
2142 struct s1 {int (*f) (int a);};
2143 struct s2 {int (*f) (double a);};
2144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2145 int argc;
2146 char **argv;
2148 main ()
2150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2152 return 0;
2154 _ACEOF
2155 # Don't try gcc -ansi; that turns off useful extensions and
2156 # breaks some systems' header files.
2157 # AIX -qlanglvl=ansi
2158 # Ultrix and OSF/1 -std1
2159 # HP-UX 10.20 and later -Ae
2160 # HP-UX older versions -Aa -D_HPUX_SOURCE
2161 # SVR4 -Xc -D__EXTENSIONS__
2162 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2164 CC="$ac_save_CC $ac_arg"
2165 rm -f conftest.$ac_objext
2166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2167 (eval $ac_compile) 2>conftest.er1
2168 ac_status=$?
2169 grep -v '^ *+' conftest.er1 >conftest.err
2170 rm -f conftest.er1
2171 cat conftest.err >&5
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); } &&
2174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; } &&
2180 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187 break
2188 else
2189 echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2193 rm -f conftest.err conftest.$ac_objext
2194 done
2195 rm -f conftest.$ac_ext conftest.$ac_objext
2196 CC=$ac_save_CC
2200 case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203 echo "${ECHO_T}none needed" >&6 ;;
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208 esac
2210 # Some people use a C++ compiler to compile C. Since we use `exit',
2211 # in C++ we need to declare it. In case someone uses the same compiler
2212 # for both compiling C and C++ we need to have the C++ compiler decide
2213 # the declaration of exit, since it's the most demanding environment.
2214 cat >conftest.$ac_ext <<_ACEOF
2215 #ifndef __cplusplus
2216 choke me
2217 #endif
2218 _ACEOF
2219 rm -f conftest.$ac_objext
2220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>conftest.er1
2222 ac_status=$?
2223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2230 (eval $ac_try) 2>&5
2231 ac_status=$?
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 (eval $ac_try) 2>&5
2237 ac_status=$?
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 for ac_declaration in \
2241 '' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2246 'void exit (int);'
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2254 $ac_declaration
2255 #include <stdlib.h>
2257 main ()
2259 exit (42);
2261 return 0;
2263 _ACEOF
2264 rm -f conftest.$ac_objext
2265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2266 (eval $ac_compile) 2>conftest.er1
2267 ac_status=$?
2268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2286 else
2287 echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2290 continue
2292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
2294 /* confdefs.h. */
2295 _ACEOF
2296 cat confdefs.h >>conftest.$ac_ext
2297 cat >>conftest.$ac_ext <<_ACEOF
2298 /* end confdefs.h. */
2299 $ac_declaration
2301 main ()
2303 exit (42);
2305 return 0;
2307 _ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2311 ac_status=$?
2312 grep -v '^ *+' conftest.er1 >conftest.err
2313 rm -f conftest.er1
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 (eval $ac_try) 2>&5
2320 ac_status=$?
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 (eval $ac_try) 2>&5
2326 ac_status=$?
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 break
2330 else
2331 echo "$as_me: failed program was:" >&5
2332 sed 's/^/| /' conftest.$ac_ext >&5
2335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2336 done
2337 rm -f conftest*
2338 if test -n "$ac_declaration"; then
2339 echo '#ifdef __cplusplus' >>confdefs.h
2340 echo $ac_declaration >>confdefs.h
2341 echo '#endif' >>confdefs.h
2344 else
2345 echo "$as_me: failed program was:" >&5
2346 sed 's/^/| /' conftest.$ac_ext >&5
2349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350 ac_ext=c
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2358 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2359 if test "${ac_cv_search_strerror+set}" = set; then
2360 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 else
2362 ac_func_search_save_LIBS=$LIBS
2363 ac_cv_search_strerror=no
2364 cat >conftest.$ac_ext <<_ACEOF
2365 /* confdefs.h. */
2366 _ACEOF
2367 cat confdefs.h >>conftest.$ac_ext
2368 cat >>conftest.$ac_ext <<_ACEOF
2369 /* end confdefs.h. */
2371 /* Override any gcc2 internal prototype to avoid an error. */
2372 #ifdef __cplusplus
2373 extern "C"
2374 #endif
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2377 char strerror ();
2379 main ()
2381 strerror ();
2383 return 0;
2385 _ACEOF
2386 rm -f conftest.$ac_objext conftest$ac_exeext
2387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2388 (eval $ac_link) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest$ac_exeext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 (eval $ac_try) 2>&5
2404 ac_status=$?
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 ac_cv_search_strerror="none required"
2408 else
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f conftest.err conftest.$ac_objext \
2414 conftest$ac_exeext conftest.$ac_ext
2415 if test "$ac_cv_search_strerror" = no; then
2416 for ac_lib in cposix; do
2417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2425 /* Override any gcc2 internal prototype to avoid an error. */
2426 #ifdef __cplusplus
2427 extern "C"
2428 #endif
2429 /* We use char because int might match the return type of a gcc2
2430 builtin and then its argument prototype would still apply. */
2431 char strerror ();
2433 main ()
2435 strerror ();
2437 return 0;
2439 _ACEOF
2440 rm -f conftest.$ac_objext conftest$ac_exeext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2442 (eval $ac_link) 2>conftest.er1
2443 ac_status=$?
2444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; } &&
2455 { ac_try='test -s conftest$ac_exeext'
2456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457 (eval $ac_try) 2>&5
2458 ac_status=$?
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); }; }; then
2461 ac_cv_search_strerror="-l$ac_lib"
2462 break
2463 else
2464 echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2468 rm -f conftest.err conftest.$ac_objext \
2469 conftest$ac_exeext conftest.$ac_ext
2470 done
2472 LIBS=$ac_func_search_save_LIBS
2474 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2475 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2476 if test "$ac_cv_search_strerror" != no; then
2477 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2482 am__api_version="1.9"
2483 # Find a good install program. We prefer a C program (faster),
2484 # so one script is as good as another. But avoid the broken or
2485 # incompatible versions:
2486 # SysV /etc/install, /usr/sbin/install
2487 # SunOS /usr/etc/install
2488 # IRIX /sbin/install
2489 # AIX /bin/install
2490 # AmigaOS /C/install, which installs bootblocks on floppy discs
2491 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2492 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2493 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2494 # OS/2's system install, which has a completely different semantic
2495 # ./install, which can be erroneously created by make from ./install.sh.
2496 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2497 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2498 if test -z "$INSTALL"; then
2499 if test "${ac_cv_path_install+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2505 IFS=$as_save_IFS
2506 test -z "$as_dir" && as_dir=.
2507 # Account for people who put trailing slashes in PATH elements.
2508 case $as_dir/ in
2509 ./ | .// | /cC/* | \
2510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2511 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2512 /usr/ucb/* ) ;;
2514 # OSF1 and SCO ODT 3.0 have their own names for install.
2515 # Don't use installbsd from OSF since it installs stuff as root
2516 # by default.
2517 for ac_prog in ginstall scoinst install; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2520 if test $ac_prog = install &&
2521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2522 # AIX install. It has an incompatible calling convention.
2524 elif test $ac_prog = install &&
2525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526 # program-specific install script used by HP pwplus--don't use.
2528 else
2529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2530 break 3
2533 done
2534 done
2536 esac
2537 done
2541 if test "${ac_cv_path_install+set}" = set; then
2542 INSTALL=$ac_cv_path_install
2543 else
2544 # As a last resort, use the slow shell script. We don't cache a
2545 # path for INSTALL within a source directory, because that will
2546 # break other packages using the cache if that directory is
2547 # removed, or if the path is relative.
2548 INSTALL=$ac_install_sh
2551 echo "$as_me:$LINENO: result: $INSTALL" >&5
2552 echo "${ECHO_T}$INSTALL" >&6
2554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2555 # It thinks the first close brace ends the variable substitution.
2556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2562 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2563 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2564 # Just in case
2565 sleep 1
2566 echo timestamp > conftest.file
2567 # Do `set' in a subshell so we don't clobber the current shell's
2568 # arguments. Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2571 # directory).
2572 if (
2573 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2574 if test "$*" = "X"; then
2575 # -L didn't work.
2576 set X `ls -t $srcdir/configure conftest.file`
2578 rm -f conftest.file
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" >&5
2588 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2589 alias in your environment" >&2;}
2590 { (exit 1); exit 1; }; }
2593 test "$2" = conftest.file
2595 then
2596 # Ok.
2598 else
2599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2600 Check your system clock" >&5
2601 echo "$as_me: error: newly created file is older than distributed files!
2602 Check your system clock" >&2;}
2603 { (exit 1); exit 1; }; }
2605 echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6
2607 test "$program_prefix" != NONE &&
2608 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2609 # Use a double $ so make ignores it.
2610 test "$program_suffix" != NONE &&
2611 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2612 # Double any \ or $. echo might interpret backslashes.
2613 # By default was `s,x,x', remove it if useless.
2614 cat <<\_ACEOF >conftest.sed
2615 s/[\\$]/&&/g;s/;s,x,x,$//
2616 _ACEOF
2617 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2618 rm conftest.sed
2620 # expand $ac_aux_dir to an absolute path
2621 am_aux_dir=`cd $ac_aux_dir && pwd`
2623 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2624 # Use eval to expand $SHELL
2625 if eval "$MISSING --run true"; then
2626 am_missing_run="$MISSING --run "
2627 else
2628 am_missing_run=
2629 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2630 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2633 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2634 # We used to keeping the `.' as first argument, in order to
2635 # allow $(mkdir_p) to be used without argument. As in
2636 # $(mkdir_p) $(somedir)
2637 # where $(somedir) is conditionally defined. However this is wrong
2638 # for two reasons:
2639 # 1. if the package is installed by a user who cannot write `.'
2640 # make install will fail,
2641 # 2. the above comment should most certainly read
2642 # $(mkdir_p) $(DESTDIR)$(somedir)
2643 # so it does not work when $(somedir) is undefined and
2644 # $(DESTDIR) is not.
2645 # To support the latter case, we have to write
2646 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2647 # so the `.' trick is pointless.
2648 mkdir_p='mkdir -p --'
2649 else
2650 # On NextStep and OpenStep, the `mkdir' command does not
2651 # recognize any option. It will interpret all options as
2652 # directories to create, and then abort because `.' already
2653 # exists.
2654 for d in ./-p ./--version;
2656 test -d $d && rmdir $d
2657 done
2658 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2659 if test -f "$ac_aux_dir/mkinstalldirs"; then
2660 mkdir_p='$(mkinstalldirs)'
2661 else
2662 mkdir_p='$(install_sh) -d'
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2672 if test "${ac_cv_prog_AWK+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696 echo "$as_me:$LINENO: result: $AWK" >&5
2697 echo "${ECHO_T}$AWK" >&6
2698 else
2699 echo "$as_me:$LINENO: result: no" >&5
2700 echo "${ECHO_T}no" >&6
2703 test -n "$AWK" && break
2704 done
2706 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2708 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2709 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 cat >conftest.make <<\_ACEOF
2713 all:
2714 @echo 'ac_maketemp="$(MAKE)"'
2715 _ACEOF
2716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2717 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2718 if test -n "$ac_maketemp"; then
2719 eval ac_cv_prog_make_${ac_make}_set=yes
2720 else
2721 eval ac_cv_prog_make_${ac_make}_set=no
2723 rm -f conftest.make
2725 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2726 echo "$as_me:$LINENO: result: yes" >&5
2727 echo "${ECHO_T}yes" >&6
2728 SET_MAKE=
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6
2732 SET_MAKE="MAKE=${MAKE-make}"
2735 rm -rf .tst 2>/dev/null
2736 mkdir .tst 2>/dev/null
2737 if test -d .tst; then
2738 am__leading_dot=.
2739 else
2740 am__leading_dot=_
2742 rmdir .tst 2>/dev/null
2744 DEPDIR="${am__leading_dot}deps"
2746 ac_config_commands="$ac_config_commands depfiles"
2749 am_make=${MAKE-make}
2750 cat > confinc << 'END'
2751 am__doit:
2752 @echo done
2753 .PHONY: am__doit
2755 # If we don't find an include directive, just comment out the code.
2756 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2757 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2758 am__include="#"
2759 am__quote=
2760 _am_result=none
2761 # First try GNU make style include.
2762 echo "include confinc" > confmf
2763 # We grep out `Entering directory' and `Leaving directory'
2764 # messages which can occur if `w' ends up in MAKEFLAGS.
2765 # In particular we don't look at `^make:' because GNU make might
2766 # be invoked under some other name (usually "gmake"), in which
2767 # case it prints its new name instead of `make'.
2768 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2769 am__include=include
2770 am__quote=
2771 _am_result=GNU
2773 # Now try BSD make style include.
2774 if test "$am__include" = "#"; then
2775 echo '.include "confinc"' > confmf
2776 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2777 am__include=.include
2778 am__quote="\""
2779 _am_result=BSD
2784 echo "$as_me:$LINENO: result: $_am_result" >&5
2785 echo "${ECHO_T}$_am_result" >&6
2786 rm -f confinc confmf
2788 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2789 if test "${enable_dependency_tracking+set}" = set; then
2790 enableval="$enable_dependency_tracking"
2793 if test "x$enable_dependency_tracking" != xno; then
2794 am_depcomp="$ac_aux_dir/depcomp"
2795 AMDEPBACKSLASH='\'
2799 if test "x$enable_dependency_tracking" != xno; then
2800 AMDEP_TRUE=
2801 AMDEP_FALSE='#'
2802 else
2803 AMDEP_TRUE='#'
2804 AMDEP_FALSE=
2809 # test to see if srcdir already configured
2810 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2811 test -f $srcdir/config.status; then
2812 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2813 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2814 { (exit 1); exit 1; }; }
2817 # test whether we have cygpath
2818 if test -z "$CYGPATH_W"; then
2819 if (cygpath --version) >/dev/null 2>/dev/null; then
2820 CYGPATH_W='cygpath -w'
2821 else
2822 CYGPATH_W=echo
2827 # Define the identity of the package.
2828 PACKAGE=bfd
2829 VERSION=2.15.94
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE "$PACKAGE"
2834 _ACEOF
2837 cat >>confdefs.h <<_ACEOF
2838 #define VERSION "$VERSION"
2839 _ACEOF
2841 # Some tools Automake needs.
2843 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2857 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2859 # Installed binaries are usually stripped using `strip' when the user
2860 # run `make install-strip'. However `strip' might not be the right
2861 # tool to use in cross-compilation environments, therefore Automake
2862 # will honor the `STRIP' environment variable to overrule this program.
2863 if test "$cross_compiling" != no; then
2864 if test -n "$ac_tool_prefix"; then
2865 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2866 set dummy ${ac_tool_prefix}strip; ac_word=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_STRIP+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 else
2872 if test -n "$STRIP"; then
2873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2891 STRIP=$ac_cv_prog_STRIP
2892 if test -n "$STRIP"; then
2893 echo "$as_me:$LINENO: result: $STRIP" >&5
2894 echo "${ECHO_T}$STRIP" >&6
2895 else
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2901 if test -z "$ac_cv_prog_STRIP"; then
2902 ac_ct_STRIP=$STRIP
2903 # Extract the first word of "strip", so it can be a program name with args.
2904 set dummy strip; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910 if test -n "$ac_ct_STRIP"; then
2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920 ac_cv_prog_ac_ct_STRIP="strip"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2924 done
2925 done
2927 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2931 if test -n "$ac_ct_STRIP"; then
2932 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2933 echo "${ECHO_T}$ac_ct_STRIP" >&6
2934 else
2935 echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6
2939 STRIP=$ac_ct_STRIP
2940 else
2941 STRIP="$ac_cv_prog_STRIP"
2945 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2947 # We need awk for the "check" target. The system "awk" is bad on
2948 # some platforms.
2949 # Always define AMTAR for backward compatibility.
2951 AMTAR=${AMTAR-"${am_missing_run}tar"}
2953 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2958 depcc="$CC" am_compiler_list=
2960 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2961 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2962 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 else
2965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2966 # We make a subdir and do the tests there. Otherwise we can end up
2967 # making bogus files that we don't know about and never remove. For
2968 # instance it was reported that on HP-UX the gcc test will end up
2969 # making a dummy file named `D' -- because `-MD' means `put the output
2970 # in D'.
2971 mkdir conftest.dir
2972 # Copy depcomp to subdir because otherwise we won't find it if we're
2973 # using a relative directory.
2974 cp "$am_depcomp" conftest.dir
2975 cd conftest.dir
2976 # We will build objects and dependencies in a subdirectory because
2977 # it helps to detect inapplicable dependency modes. For instance
2978 # both Tru64's cc and ICC support -MD to output dependencies as a
2979 # side effect of compilation, but ICC will put the dependencies in
2980 # the current directory while Tru64 will put them in the object
2981 # directory.
2982 mkdir sub
2984 am_cv_CC_dependencies_compiler_type=none
2985 if test "$am_compiler_list" = ""; then
2986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2988 for depmode in $am_compiler_list; do
2989 # Setup a source with many dependencies, because some compilers
2990 # like to wrap large dependency lists on column 80 (with \), and
2991 # we should not choose a depcomp mode which is confused by this.
2993 # We need to recreate these files for each test, as the compiler may
2994 # overwrite some of them when testing with obscure command lines.
2995 # This happens at least with the AIX C compiler.
2996 : > sub/conftest.c
2997 for i in 1 2 3 4 5 6; do
2998 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2999 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3000 # Solaris 8's {/usr,}/bin/sh.
3001 touch sub/conftst$i.h
3002 done
3003 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3005 case $depmode in
3006 nosideeffect)
3007 # after this tag, mechanisms are not by side-effect, so they'll
3008 # only be used when explicitly requested
3009 if test "x$enable_dependency_tracking" = xyes; then
3010 continue
3011 else
3012 break
3015 none) break ;;
3016 esac
3017 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3018 # mode. It turns out that the SunPro C++ compiler does not properly
3019 # handle `-M -o', and we need to detect this.
3020 if depmode=$depmode \
3021 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3022 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3023 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3024 >/dev/null 2>conftest.err &&
3025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3026 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3028 # icc doesn't choke on unknown options, it will just issue warnings
3029 # or remarks (even with -Werror). So we grep stderr for any message
3030 # that says an option was ignored or not supported.
3031 # When given -MP, icc 7.0 and 7.1 complain thusly:
3032 # icc: Command line warning: ignoring option '-M'; no argument required
3033 # The diagnosis changed in icc 8.0:
3034 # icc: Command line remark: option '-MP' not supported
3035 if (grep 'ignoring option' conftest.err ||
3036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3037 am_cv_CC_dependencies_compiler_type=$depmode
3038 break
3041 done
3043 cd ..
3044 rm -rf conftest.dir
3045 else
3046 am_cv_CC_dependencies_compiler_type=none
3050 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3051 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3057 test "x$enable_dependency_tracking" != xno \
3058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3059 am__fastdepCC_TRUE=
3060 am__fastdepCC_FALSE='#'
3061 else
3062 am__fastdepCC_TRUE='#'
3063 am__fastdepCC_FALSE=
3069 if test -n "$ac_tool_prefix"; then
3070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3071 set dummy ${ac_tool_prefix}ar; ac_word=$2
3072 echo "$as_me:$LINENO: checking for $ac_word" >&5
3073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074 if test "${ac_cv_prog_AR+set}" = set; then
3075 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 else
3077 if test -n "$AR"; then
3078 ac_cv_prog_AR="$AR" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087 ac_cv_prog_AR="${ac_tool_prefix}ar"
3088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3091 done
3092 done
3096 AR=$ac_cv_prog_AR
3097 if test -n "$AR"; then
3098 echo "$as_me:$LINENO: result: $AR" >&5
3099 echo "${ECHO_T}$AR" >&6
3100 else
3101 echo "$as_me:$LINENO: result: no" >&5
3102 echo "${ECHO_T}no" >&6
3106 if test -z "$ac_cv_prog_AR"; then
3107 ac_ct_AR=$AR
3108 # Extract the first word of "ar", so it can be a program name with args.
3109 set dummy ar; ac_word=$2
3110 echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3112 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 if test -n "$ac_ct_AR"; then
3116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_exec_ext in '' $ac_executable_extensions; do
3124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125 ac_cv_prog_ac_ct_AR="ar"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3134 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3135 if test -n "$ac_ct_AR"; then
3136 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3137 echo "${ECHO_T}$ac_ct_AR" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3143 AR=$ac_ct_AR
3144 else
3145 AR="$ac_cv_prog_AR"
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3170 done
3171 done
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3208 done
3209 done
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3218 else
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 RANLIB=$ac_ct_RANLIB
3224 else
3225 RANLIB="$ac_cv_prog_RANLIB"
3229 # Check whether --enable-shared or --disable-shared was given.
3230 if test "${enable_shared+set}" = set; then
3231 enableval="$enable_shared"
3232 p=${PACKAGE-default}
3233 case $enableval in
3234 yes) enable_shared=yes ;;
3235 no) enable_shared=no ;;
3237 enable_shared=no
3238 # Look at the argument we got. We use all the common list separators.
3239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3240 for pkg in $enableval; do
3241 if test "X$pkg" = "X$p"; then
3242 enable_shared=yes
3244 done
3245 IFS="$ac_save_ifs"
3247 esac
3248 else
3249 enable_shared=no
3252 # Check whether --enable-static or --disable-static was given.
3253 if test "${enable_static+set}" = set; then
3254 enableval="$enable_static"
3255 p=${PACKAGE-default}
3256 case $enableval in
3257 yes) enable_static=yes ;;
3258 no) enable_static=no ;;
3260 enable_static=no
3261 # Look at the argument we got. We use all the common list separators.
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3263 for pkg in $enableval; do
3264 if test "X$pkg" = "X$p"; then
3265 enable_static=yes
3267 done
3268 IFS="$ac_save_ifs"
3270 esac
3271 else
3272 enable_static=yes
3274 # Check whether --enable-fast-install or --disable-fast-install was given.
3275 if test "${enable_fast_install+set}" = set; then
3276 enableval="$enable_fast_install"
3277 p=${PACKAGE-default}
3278 case $enableval in
3279 yes) enable_fast_install=yes ;;
3280 no) enable_fast_install=no ;;
3282 enable_fast_install=no
3283 # Look at the argument we got. We use all the common list separators.
3284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3285 for pkg in $enableval; do
3286 if test "X$pkg" = "X$p"; then
3287 enable_fast_install=yes
3289 done
3290 IFS="$ac_save_ifs"
3292 esac
3293 else
3294 enable_fast_install=yes
3297 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3298 if test "${with_gnu_ld+set}" = set; then
3299 withval="$with_gnu_ld"
3300 test "$withval" = no || with_gnu_ld=yes
3301 else
3302 with_gnu_ld=no
3304 ac_prog=ld
3305 if test "$GCC" = yes; then
3306 # Check if gcc -print-prog-name=ld gives a path.
3307 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3308 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3309 case $host in
3310 *-*-mingw*)
3311 # gcc leaves a trailing carriage return which upsets mingw
3312 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3314 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3315 esac
3316 case $ac_prog in
3317 # Accept absolute paths.
3318 [\\/]* | [A-Za-z]:[\\/]*)
3319 re_direlt='/[^/][^/]*/\.\./'
3320 # Canonicalize the path of ld
3321 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3322 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3323 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3324 done
3325 test -z "$LD" && LD="$ac_prog"
3328 # If it fails, then pretend we aren't using GCC.
3329 ac_prog=ld
3332 # If it is relative, then search for the first ld in PATH.
3333 with_gnu_ld=unknown
3335 esac
3336 elif test "$with_gnu_ld" = yes; then
3337 echo "$as_me:$LINENO: checking for GNU ld" >&5
3338 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3339 else
3340 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3341 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3343 if test "${lt_cv_path_LD+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346 if test -z "$LD"; then
3347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3348 for ac_dir in $PATH; do
3349 test -z "$ac_dir" && ac_dir=.
3350 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3351 lt_cv_path_LD="$ac_dir/$ac_prog"
3352 # Check to see if the program is GNU ld. I'd rather use --version,
3353 # but apparently some GNU ld's only accept -v.
3354 # Break only if it was the GNU/non-GNU ld that we prefer.
3355 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3356 test "$with_gnu_ld" != no && break
3357 else
3358 test "$with_gnu_ld" != yes && break
3361 done
3362 IFS="$ac_save_ifs"
3363 else
3364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3368 LD="$lt_cv_path_LD"
3369 if test -n "$LD"; then
3370 echo "$as_me:$LINENO: result: $LD" >&5
3371 echo "${ECHO_T}$LD" >&6
3372 else
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3376 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3377 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3378 { (exit 1); exit 1; }; }
3379 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3380 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3381 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3385 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3386 lt_cv_prog_gnu_ld=yes
3387 else
3388 lt_cv_prog_gnu_ld=no
3391 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3392 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3393 with_gnu_ld=$lt_cv_prog_gnu_ld
3396 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3397 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3398 if test "${lt_cv_ld_reload_flag+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 else
3401 lt_cv_ld_reload_flag='-r'
3403 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3404 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3405 reload_flag=$lt_cv_ld_reload_flag
3406 test -n "$reload_flag" && reload_flag=" $reload_flag"
3408 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3409 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3410 if test "${lt_cv_path_NM+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 else
3413 if test -n "$NM"; then
3414 # Let the user override the test.
3415 lt_cv_path_NM="$NM"
3416 else
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3418 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3419 test -z "$ac_dir" && ac_dir=.
3420 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3421 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3422 # Check to see if the nm accepts a BSD-compat flag.
3423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3424 # nm: unknown option "B" ignored
3425 # Tru64's nm complains that /dev/null is an invalid object file
3426 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3427 lt_cv_path_NM="$tmp_nm -B"
3428 break
3429 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3430 lt_cv_path_NM="$tmp_nm -p"
3431 break
3432 else
3433 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3434 continue # so that we can try to find one that supports BSD flags
3437 done
3438 IFS="$ac_save_ifs"
3439 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3443 NM="$lt_cv_path_NM"
3444 echo "$as_me:$LINENO: result: $NM" >&5
3445 echo "${ECHO_T}$NM" >&6
3447 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3448 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3449 LN_S=$as_ln_s
3450 if test "$LN_S" = "ln -s"; then
3451 echo "$as_me:$LINENO: result: yes" >&5
3452 echo "${ECHO_T}yes" >&6
3453 else
3454 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3455 echo "${ECHO_T}no, using $LN_S" >&6
3458 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3459 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3460 if test "${lt_cv_deplibs_check_method+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463 lt_cv_file_magic_cmd='$MAGIC_CMD'
3464 lt_cv_file_magic_test_file=
3465 lt_cv_deplibs_check_method='unknown'
3466 # Need to set the preceding variable on all platforms that support
3467 # interlibrary dependencies.
3468 # 'none' -- dependencies not supported.
3469 # `unknown' -- same as none, but documents that we really don't know.
3470 # 'pass_all' -- all dependencies passed with no checks.
3471 # 'test_compile' -- check by making test program.
3472 # 'file_magic [regex]' -- check by looking for files in library path
3473 # which responds to the $file_magic_cmd with a given egrep regex.
3474 # If you have `file' or equivalent on your system and you're not sure
3475 # whether `pass_all' will *always* work, you probably want this one.
3477 case $host_os in
3478 aix*)
3479 lt_cv_deplibs_check_method=pass_all
3482 beos*)
3483 lt_cv_deplibs_check_method=pass_all
3486 bsdi4*)
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3488 lt_cv_file_magic_cmd='/usr/bin/file -L'
3489 lt_cv_file_magic_test_file=/shlib/libc.so
3492 cygwin* | mingw* |pw32*)
3493 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3494 lt_cv_file_magic_cmd='$OBJDUMP -f'
3497 darwin* | rhapsody*)
3498 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3499 lt_cv_file_magic_cmd='/usr/bin/file -L'
3500 case "$host_os" in
3501 rhapsody* | darwin1.012)
3502 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3504 *) # Darwin 1.3 on
3505 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3507 esac
3510 freebsd* | kfreebsd*-gnu)
3511 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3512 case $host_cpu in
3513 i*86 )
3514 # Not sure whether the presence of OpenBSD here was a mistake.
3515 # Let's accept both of them until this is cleared up.
3516 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3517 lt_cv_file_magic_cmd=/usr/bin/file
3518 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3520 esac
3521 else
3522 lt_cv_deplibs_check_method=pass_all
3526 gnu*)
3527 lt_cv_deplibs_check_method=pass_all
3530 hpux10.20*|hpux11*)
3531 case $host_cpu in
3532 hppa*)
3533 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3534 lt_cv_file_magic_cmd=/usr/bin/file
3535 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3537 ia64*)
3538 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3539 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3542 esac
3545 irix5* | irix6*)
3546 case $host_os in
3547 irix5*)
3548 # this will be overridden with pass_all, but let us keep it just in case
3549 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3552 case $LD in
3553 *-32|*"-32 ") libmagic=32-bit;;
3554 *-n32|*"-n32 ") libmagic=N32;;
3555 *-64|*"-64 ") libmagic=64-bit;;
3556 *) libmagic=never-match;;
3557 esac
3558 # this will be overridden with pass_all, but let us keep it just in case
3559 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3561 esac
3562 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3563 lt_cv_deplibs_check_method=pass_all
3566 # This must be Linux ELF.
3567 linux-gnu*)
3568 case $host_cpu in
3569 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3570 lt_cv_deplibs_check_method=pass_all ;;
3572 # glibc up to 2.1.1 does not perform some relocations on ARM
3573 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3574 esac
3575 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3578 netbsd* | knetbsd*-gnu)
3579 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3580 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3581 else
3582 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3586 newsos6)
3587 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3588 lt_cv_file_magic_cmd=/usr/bin/file
3589 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3592 osf3* | osf4* | osf5*)
3593 # this will be overridden with pass_all, but let us keep it just in case
3594 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3595 lt_cv_file_magic_test_file=/shlib/libc.so
3596 lt_cv_deplibs_check_method=pass_all
3599 sco3.2v5*)
3600 lt_cv_deplibs_check_method=pass_all
3603 solaris*)
3604 lt_cv_deplibs_check_method=pass_all
3605 lt_cv_file_magic_test_file=/lib/libc.so
3608 sysv5uw[78]* | sysv4*uw2*)
3609 lt_cv_deplibs_check_method=pass_all
3612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3613 case $host_vendor in
3614 ncr)
3615 lt_cv_deplibs_check_method=pass_all
3617 motorola)
3618 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]'
3619 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3621 esac
3623 esac
3626 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3627 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3628 file_magic_cmd=$lt_cv_file_magic_cmd
3629 deplibs_check_method=$lt_cv_deplibs_check_method
3634 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3636 # Only perform the check for file, if the check method requires it
3637 case $deplibs_check_method in
3638 file_magic*)
3639 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3640 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3641 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3642 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 case $MAGIC_CMD in
3647 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3649 ?:/*)
3650 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3653 ac_save_MAGIC_CMD="$MAGIC_CMD"
3654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3655 ac_dummy="/usr/bin:$PATH"
3656 for ac_dir in $ac_dummy; do
3657 test -z "$ac_dir" && ac_dir=.
3658 if test -f $ac_dir/${ac_tool_prefix}file; then
3659 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3660 if test -n "$file_magic_test_file"; then
3661 case $deplibs_check_method in
3662 "file_magic "*)
3663 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3666 egrep "$file_magic_regex" > /dev/null; then
3668 else
3669 cat <<EOF 1>&2
3671 *** Warning: the command libtool uses to detect shared libraries,
3672 *** $file_magic_cmd, produces output that libtool cannot recognize.
3673 *** The result is that libtool may fail to recognize shared libraries
3674 *** as such. This will affect the creation of libtool libraries that
3675 *** depend on shared libraries, but programs linked with such libtool
3676 *** libraries will work regardless of this problem. Nevertheless, you
3677 *** may want to report the problem to your system manager and/or to
3678 *** bug-libtool@gnu.org
3681 fi ;;
3682 esac
3684 break
3686 done
3687 IFS="$ac_save_ifs"
3688 MAGIC_CMD="$ac_save_MAGIC_CMD"
3690 esac
3693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3694 if test -n "$MAGIC_CMD"; then
3695 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3696 echo "${ECHO_T}$MAGIC_CMD" >&6
3697 else
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3702 if test -z "$lt_cv_path_MAGIC_CMD"; then
3703 if test -n "$ac_tool_prefix"; then
3704 echo "$as_me:$LINENO: checking for file" >&5
3705 echo $ECHO_N "checking for file... $ECHO_C" >&6
3706 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 case $MAGIC_CMD in
3711 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3713 ?:/*)
3714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3717 ac_save_MAGIC_CMD="$MAGIC_CMD"
3718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3719 ac_dummy="/usr/bin:$PATH"
3720 for ac_dir in $ac_dummy; do
3721 test -z "$ac_dir" && ac_dir=.
3722 if test -f $ac_dir/file; then
3723 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3724 if test -n "$file_magic_test_file"; then
3725 case $deplibs_check_method in
3726 "file_magic "*)
3727 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3730 egrep "$file_magic_regex" > /dev/null; then
3732 else
3733 cat <<EOF 1>&2
3735 *** Warning: the command libtool uses to detect shared libraries,
3736 *** $file_magic_cmd, produces output that libtool cannot recognize.
3737 *** The result is that libtool may fail to recognize shared libraries
3738 *** as such. This will affect the creation of libtool libraries that
3739 *** depend on shared libraries, but programs linked with such libtool
3740 *** libraries will work regardless of this problem. Nevertheless, you
3741 *** may want to report the problem to your system manager and/or to
3742 *** bug-libtool@gnu.org
3745 fi ;;
3746 esac
3748 break
3750 done
3751 IFS="$ac_save_ifs"
3752 MAGIC_CMD="$ac_save_MAGIC_CMD"
3754 esac
3757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3758 if test -n "$MAGIC_CMD"; then
3759 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3760 echo "${ECHO_T}$MAGIC_CMD" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3766 else
3767 MAGIC_CMD=:
3773 esac
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_prog_RANLIB+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783 if test -n "$RANLIB"; then
3784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3797 done
3798 done
3802 RANLIB=$ac_cv_prog_RANLIB
3803 if test -n "$RANLIB"; then
3804 echo "$as_me:$LINENO: result: $RANLIB" >&5
3805 echo "${ECHO_T}$RANLIB" >&6
3806 else
3807 echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6
3812 if test -z "$ac_cv_prog_RANLIB"; then
3813 ac_ct_RANLIB=$RANLIB
3814 # Extract the first word of "ranlib", so it can be a program name with args.
3815 set dummy ranlib; ac_word=$2
3816 echo "$as_me:$LINENO: checking for $ac_word" >&5
3817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 if test -n "$ac_ct_RANLIB"; then
3822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3823 else
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_ac_ct_RANLIB="ranlib"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3835 done
3836 done
3838 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3842 if test -n "$ac_ct_RANLIB"; then
3843 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3844 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3845 else
3846 echo "$as_me:$LINENO: result: no" >&5
3847 echo "${ECHO_T}no" >&6
3850 RANLIB=$ac_ct_RANLIB
3851 else
3852 RANLIB="$ac_cv_prog_RANLIB"
3855 if test -n "$ac_tool_prefix"; then
3856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3857 set dummy ${ac_tool_prefix}strip; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_prog_STRIP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 if test -n "$STRIP"; then
3864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3865 else
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 for as_dir in $PATH
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 break 2
3877 done
3878 done
3882 STRIP=$ac_cv_prog_STRIP
3883 if test -n "$STRIP"; then
3884 echo "$as_me:$LINENO: result: $STRIP" >&5
3885 echo "${ECHO_T}$STRIP" >&6
3886 else
3887 echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6
3892 if test -z "$ac_cv_prog_STRIP"; then
3893 ac_ct_STRIP=$STRIP
3894 # Extract the first word of "strip", so it can be a program name with args.
3895 set dummy strip; ac_word=$2
3896 echo "$as_me:$LINENO: checking for $ac_word" >&5
3897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3898 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 if test -n "$ac_ct_STRIP"; then
3902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_ac_ct_STRIP="strip"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3915 done
3916 done
3918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3921 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3922 if test -n "$ac_ct_STRIP"; then
3923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3924 echo "${ECHO_T}$ac_ct_STRIP" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927 echo "${ECHO_T}no" >&6
3930 STRIP=$ac_ct_STRIP
3931 else
3932 STRIP="$ac_cv_prog_STRIP"
3936 # Check for any special flags to pass to ltconfig.
3937 libtool_flags="--cache-file=$cache_file"
3938 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3939 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3940 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3941 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3942 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3945 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3946 if test "${enable_libtool_lock+set}" = set; then
3947 enableval="$enable_libtool_lock"
3950 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3951 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3954 # Check whether --with-pic or --without-pic was given.
3955 if test "${with_pic+set}" = set; then
3956 withval="$with_pic"
3957 pic_mode="$withval"
3958 else
3959 pic_mode=default
3961 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3962 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3964 # Some flags need to be propagated to the compiler or linker for good
3965 # libtool support.
3966 case $host in
3967 *-*-irix6*)
3968 # Find out which ABI we are using.
3969 echo '#line 3969 "configure"' > conftest.$ac_ext
3970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3971 (eval $ac_compile) 2>&5
3972 ac_status=$?
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; then
3975 if test "$lt_cv_prog_gnu_ld" = yes; then
3976 case `/usr/bin/file conftest.$ac_objext` in
3977 *32-bit*)
3978 LD="${LD-ld} -melf32bsmip"
3980 *N32*)
3981 LD="${LD-ld} -melf32bmipn32"
3983 *64-bit*)
3984 LD="${LD-ld} -melf64bmip"
3986 esac
3987 else
3988 case `/usr/bin/file conftest.$ac_objext` in
3989 *32-bit*)
3990 LD="${LD-ld} -32"
3992 *N32*)
3993 LD="${LD-ld} -n32"
3995 *64-bit*)
3996 LD="${LD-ld} -64"
3998 esac
4001 rm -rf conftest*
4004 ia64-*-hpux*)
4005 # Find out which ABI we are using.
4006 echo 'int i;' > conftest.$ac_ext
4007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4008 (eval $ac_compile) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; then
4012 case "`/usr/bin/file conftest.o`" in
4013 *ELF-32*)
4014 HPUX_IA64_MODE="32"
4016 *ELF-64*)
4017 HPUX_IA64_MODE="64"
4019 esac
4021 rm -rf conftest*
4024 *-*-sco3.2v5*)
4025 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4026 SAVE_CFLAGS="$CFLAGS"
4027 CFLAGS="$CFLAGS -belf"
4028 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4029 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4030 if test "${lt_cv_cc_needs_belf+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h. */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4049 main ()
4053 return 0;
4055 _ACEOF
4056 rm -f conftest.$ac_objext conftest$ac_exeext
4057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058 (eval $ac_link) 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; } &&
4071 { ac_try='test -s conftest$ac_exeext'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; }; then
4077 lt_cv_cc_needs_belf=yes
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 lt_cv_cc_needs_belf=no
4084 rm -f conftest.err conftest.$ac_objext \
4085 conftest$ac_exeext conftest.$ac_ext
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4094 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4095 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4096 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4097 CFLAGS="$SAVE_CFLAGS"
4102 esac
4105 # Save cache, so that ltconfig can load it
4106 cat >confcache <<\_ACEOF
4107 # This file is a shell script that caches the results of configure
4108 # tests run on this system so they can be shared between configure
4109 # scripts and configure runs, see configure's option --config-cache.
4110 # It is not useful on other systems. If it contains results you don't
4111 # want to keep, you may remove or edit it.
4113 # config.status only pays attention to the cache file if you give it
4114 # the --recheck option to rerun configure.
4116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4118 # following values.
4120 _ACEOF
4122 # The following way of writing the cache mishandles newlines in values,
4123 # but we know of no workaround that is simple, portable, and efficient.
4124 # So, don't put newlines in cache variables' values.
4125 # Ultrix sh set writes to stderr and can't be redirected directly,
4126 # and sets the high bit in the cache file unless we assign to the vars.
4128 (set) 2>&1 |
4129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4130 *ac_space=\ *)
4131 # `set' does not quote correctly, so add quotes (double-quote
4132 # substitution turns \\\\ into \\, and sed turns \\ into \).
4133 sed -n \
4134 "s/'/'\\\\''/g;
4135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4138 # `set' quotes correctly as required by POSIX, so do not add quotes.
4139 sed -n \
4140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4142 esac;
4144 sed '
4145 t clear
4146 : clear
4147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4148 t end
4149 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4150 : end' >>confcache
4151 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4152 if test -w $cache_file; then
4153 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4154 cat confcache >$cache_file
4155 else
4156 echo "not updating unwritable cache $cache_file"
4159 rm -f confcache
4161 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4162 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4163 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4164 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4165 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4166 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4167 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4168 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4169 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4170 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4171 echo "$as_me: error: libtool configure failed" >&2;}
4172 { (exit 1); exit 1; }; }
4174 # Reload cache, that may have been modified by ltconfig
4175 if test -r "$cache_file"; then
4176 # Some versions of bash will fail to source /dev/null (special
4177 # files actually), so we avoid doing that.
4178 if test -f "$cache_file"; then
4179 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4180 echo "$as_me: loading cache $cache_file" >&6;}
4181 case $cache_file in
4182 [\\/]* | ?:[\\/]* ) . $cache_file;;
4183 *) . ./$cache_file;;
4184 esac
4186 else
4187 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4188 echo "$as_me: creating cache $cache_file" >&6;}
4189 >$cache_file
4193 # This can be used to rebuild libtool when needed
4194 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4196 # Always use our own libtool.
4197 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4199 # Redirect the config.log output again, so that the ltconfig log is not
4200 # clobbered by the next message.
4201 exec 5>>./config.log
4209 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
4210 if test "${enable_64_bit_bfd+set}" = set; then
4211 enableval="$enable_64_bit_bfd"
4212 case "${enableval}" in
4213 yes) want64=true ;;
4214 no) want64=false ;;
4215 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
4216 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
4217 { (exit 1); exit 1; }; } ;;
4218 esac
4219 else
4220 want64=false
4221 fi; # Check whether --enable-targets or --disable-targets was given.
4222 if test "${enable_targets+set}" = set; then
4223 enableval="$enable_targets"
4224 case "${enableval}" in
4225 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
4226 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
4227 { (exit 1); exit 1; }; }
4229 no) enable_targets= ;;
4230 *) enable_targets=$enableval ;;
4231 esac
4232 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
4233 if test "${enable_commonbfdlib+set}" = set; then
4234 enableval="$enable_commonbfdlib"
4235 case "${enableval}" in
4236 yes) commonbfdlib=true ;;
4237 no) commonbfdlib=false ;;
4238 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5
4239 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
4240 { (exit 1); exit 1; }; } ;;
4241 esac
4243 # Check whether --with-mmap or --without-mmap was given.
4244 if test "${with_mmap+set}" = set; then
4245 withval="$with_mmap"
4246 case "${withval}" in
4247 yes) want_mmap=true ;;
4248 no) want_mmap=false ;;
4249 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5
4250 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
4251 { (exit 1); exit 1; }; } ;;
4252 esac
4253 else
4254 want_mmap=false
4256 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
4257 # Check whether --enable-build-warnings or --disable-build-warnings was given.
4258 if test "${enable_build_warnings+set}" = set; then
4259 enableval="$enable_build_warnings"
4260 case "${enableval}" in
4261 yes) ;;
4262 no) build_warnings="-w";;
4263 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4264 build_warnings="${build_warnings} ${t}";;
4265 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
4266 build_warnings="${t} ${build_warnings}";;
4267 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
4268 esac
4269 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4270 echo "Setting warning flags = $build_warnings" 6>&1
4272 fi; WARN_CFLAGS=""
4273 if test "x${build_warnings}" != x && test "x$GCC" = xyes ; then
4274 WARN_CFLAGS="${build_warnings}"
4278 ac_config_headers="$ac_config_headers config.h:config.in"
4281 if test -z "$target" ; then
4282 { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5
4283 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
4284 { (exit 1); exit 1; }; }
4287 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4288 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4289 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4290 if test "${enable_maintainer_mode+set}" = set; then
4291 enableval="$enable_maintainer_mode"
4292 USE_MAINTAINER_MODE=$enableval
4293 else
4294 USE_MAINTAINER_MODE=no
4296 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4297 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4300 if test $USE_MAINTAINER_MODE = yes; then
4301 MAINTAINER_MODE_TRUE=
4302 MAINTAINER_MODE_FALSE='#'
4303 else
4304 MAINTAINER_MODE_TRUE='#'
4305 MAINTAINER_MODE_FALSE=
4308 MAINT=$MAINTAINER_MODE_TRUE
4311 case ${build_alias} in
4312 "") build_noncanonical=${build} ;;
4313 *) build_noncanonical=${build_alias} ;;
4314 esac
4316 case ${host_alias} in
4317 "") host_noncanonical=${build_noncanonical} ;;
4318 *) host_noncanonical=${host_alias} ;;
4319 esac
4321 case ${target_alias} in
4322 "") target_noncanonical=${host_noncanonical} ;;
4323 *) target_noncanonical=${target_alias} ;;
4324 esac
4326 echo "$as_me:$LINENO: checking whether to install libbfd" >&5
4327 echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6
4328 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
4329 if test "${enable_install_libbfd+set}" = set; then
4330 enableval="$enable_install_libbfd"
4331 install_libbfd_p=$enableval
4332 else
4333 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
4334 install_libbfd_p=yes
4335 else
4336 install_libbfd_p=no
4339 echo "$as_me:$LINENO: result: $install_libbfd_p" >&5
4340 echo "${ECHO_T}$install_libbfd_p" >&6
4343 if test $install_libbfd_p = yes; then
4344 INSTALL_LIBBFD_TRUE=
4345 INSTALL_LIBBFD_FALSE='#'
4346 else
4347 INSTALL_LIBBFD_TRUE='#'
4348 INSTALL_LIBBFD_FALSE=
4351 # Need _noncanonical variables for this.
4356 # libbfd.a is a host library containing target dependent code
4357 bfdlibdir='$(libdir)'
4358 bfdincludedir='$(includedir)'
4359 if test "${host}" != "${target}"; then
4360 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
4361 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
4369 host64=false
4370 target64=false
4371 bfd_default_target_size=32
4373 # host stuff:
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4383 echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4385 if test "${ac_cv_prog_CC+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 if test -n "$CC"; then
4389 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 else
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400 break 2
4402 done
4403 done
4407 CC=$ac_cv_prog_CC
4408 if test -n "$CC"; then
4409 echo "$as_me:$LINENO: result: $CC" >&5
4410 echo "${ECHO_T}$CC" >&6
4411 else
4412 echo "$as_me:$LINENO: result: no" >&5
4413 echo "${ECHO_T}no" >&6
4417 if test -z "$ac_cv_prog_CC"; then
4418 ac_ct_CC=$CC
4419 # Extract the first word of "gcc", so it can be a program name with args.
4420 set dummy gcc; ac_word=$2
4421 echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426 if test -n "$ac_ct_CC"; then
4427 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_prog_ac_ct_CC="gcc"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4440 done
4441 done
4445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4446 if test -n "$ac_ct_CC"; then
4447 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4448 echo "${ECHO_T}$ac_ct_CC" >&6
4449 else
4450 echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6
4454 CC=$ac_ct_CC
4455 else
4456 CC="$ac_cv_prog_CC"
4459 if test -z "$CC"; then
4460 if test -n "$ac_tool_prefix"; then
4461 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4462 set dummy ${ac_tool_prefix}cc; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_prog_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$CC"; then
4469 ac_cv_prog_CC="$CC" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_prog_CC="${ac_tool_prefix}cc"
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4487 CC=$ac_cv_prog_CC
4488 if test -n "$CC"; then
4489 echo "$as_me:$LINENO: result: $CC" >&5
4490 echo "${ECHO_T}$CC" >&6
4491 else
4492 echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6
4497 if test -z "$ac_cv_prog_CC"; then
4498 ac_ct_CC=$CC
4499 # Extract the first word of "cc", so it can be a program name with args.
4500 set dummy cc; ac_word=$2
4501 echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4503 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 else
4506 if test -n "$ac_ct_CC"; then
4507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4508 else
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_prog_ac_ct_CC="cc"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
4520 done
4521 done
4525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4526 if test -n "$ac_ct_CC"; then
4527 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4528 echo "${ECHO_T}$ac_ct_CC" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531 echo "${ECHO_T}no" >&6
4534 CC=$ac_ct_CC
4535 else
4536 CC="$ac_cv_prog_CC"
4540 if test -z "$CC"; then
4541 # Extract the first word of "cc", so it can be a program name with args.
4542 set dummy cc; ac_word=$2
4543 echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4545 if test "${ac_cv_prog_CC+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548 if test -n "$CC"; then
4549 ac_cv_prog_CC="$CC" # Let the user override the test.
4550 else
4551 ac_prog_rejected=no
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4560 ac_prog_rejected=yes
4561 continue
4563 ac_cv_prog_CC="cc"
4564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4570 if test $ac_prog_rejected = yes; then
4571 # We found a bogon in the path, so make sure we never use it.
4572 set dummy $ac_cv_prog_CC
4573 shift
4574 if test $# != 0; then
4575 # We chose a different compiler from the bogus one.
4576 # However, it has the same basename, so the bogon will be chosen
4577 # first if we set CC to just the basename; use the full file name.
4578 shift
4579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4584 CC=$ac_cv_prog_CC
4585 if test -n "$CC"; then
4586 echo "$as_me:$LINENO: result: $CC" >&5
4587 echo "${ECHO_T}$CC" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590 echo "${ECHO_T}no" >&6
4594 if test -z "$CC"; then
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in cl
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4600 echo "$as_me:$LINENO: checking for $ac_word" >&5
4601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602 if test "${ac_cv_prog_CC+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604 else
4605 if test -n "$CC"; then
4606 ac_cv_prog_CC="$CC" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4619 done
4620 done
4624 CC=$ac_cv_prog_CC
4625 if test -n "$CC"; then
4626 echo "$as_me:$LINENO: result: $CC" >&5
4627 echo "${ECHO_T}$CC" >&6
4628 else
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4633 test -n "$CC" && break
4634 done
4636 if test -z "$CC"; then
4637 ac_ct_CC=$CC
4638 for ac_prog in cl
4640 # Extract the first word of "$ac_prog", so it can be a program name with args.
4641 set dummy $ac_prog; ac_word=$2
4642 echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647 if test -n "$ac_ct_CC"; then
4648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4657 ac_cv_prog_ac_ct_CC="$ac_prog"
4658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 break 2
4661 done
4662 done
4666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4667 if test -n "$ac_ct_CC"; then
4668 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4669 echo "${ECHO_T}$ac_ct_CC" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672 echo "${ECHO_T}no" >&6
4675 test -n "$ac_ct_CC" && break
4676 done
4678 CC=$ac_ct_CC
4684 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4685 See \`config.log' for more details." >&5
4686 echo "$as_me: error: no acceptable C compiler found in \$PATH
4687 See \`config.log' for more details." >&2;}
4688 { (exit 1); exit 1; }; }
4690 # Provide some information about the compiler.
4691 echo "$as_me:$LINENO:" \
4692 "checking for C compiler version" >&5
4693 ac_compiler=`set X $ac_compile; echo $2`
4694 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4695 (eval $ac_compiler --version </dev/null >&5) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }
4699 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4700 (eval $ac_compiler -v </dev/null >&5) 2>&5
4701 ac_status=$?
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }
4704 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4705 (eval $ac_compiler -V </dev/null >&5) 2>&5
4706 ac_status=$?
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }
4710 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4711 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4712 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 else
4715 cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4723 main ()
4725 #ifndef __GNUC__
4726 choke me
4727 #endif
4730 return 0;
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_compiler_gnu=yes
4755 else
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4759 ac_compiler_gnu=no
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4765 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4767 GCC=`test $ac_compiler_gnu = yes && echo yes`
4768 ac_test_CFLAGS=${CFLAGS+set}
4769 ac_save_CFLAGS=$CFLAGS
4770 CFLAGS="-g"
4771 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4772 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4773 if test "${ac_cv_prog_cc_g+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 else
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4784 main ()
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; } &&
4806 { ac_try='test -s conftest.$ac_objext'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; }; then
4812 ac_cv_prog_cc_g=yes
4813 else
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 ac_cv_prog_cc_g=no
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4821 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4822 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4831 else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4838 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4839 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4840 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843 ac_cv_prog_cc_stdc=no
4844 ac_save_CC=$CC
4845 cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h. */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <stdarg.h>
4852 #include <stdio.h>
4853 #include <sys/types.h>
4854 #include <sys/stat.h>
4855 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4856 struct buf { int x; };
4857 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4858 static char *e (p, i)
4859 char **p;
4860 int i;
4862 return p[i];
4864 static char *f (char * (*g) (char **, int), char **p, ...)
4866 char *s;
4867 va_list v;
4868 va_start (v,p);
4869 s = g (p, va_arg (v,int));
4870 va_end (v);
4871 return s;
4874 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4875 function prototypes and stuff, but not '\xHH' hex character constants.
4876 These don't provoke an error unfortunately, instead are silently treated
4877 as 'x'. The following induces an error, until -std1 is added to get
4878 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4879 array size at least. It's necessary to write '\x00'==0 to get something
4880 that's true only with -std1. */
4881 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4883 int test (int i, double x);
4884 struct s1 {int (*f) (int a);};
4885 struct s2 {int (*f) (double a);};
4886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4887 int argc;
4888 char **argv;
4890 main ()
4892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 return 0;
4896 _ACEOF
4897 # Don't try gcc -ansi; that turns off useful extensions and
4898 # breaks some systems' header files.
4899 # AIX -qlanglvl=ansi
4900 # Ultrix and OSF/1 -std1
4901 # HP-UX 10.20 and later -Ae
4902 # HP-UX older versions -Aa -D_HPUX_SOURCE
4903 # SVR4 -Xc -D__EXTENSIONS__
4904 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906 CC="$ac_save_CC $ac_arg"
4907 rm -f conftest.$ac_objext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4909 (eval $ac_compile) 2>conftest.er1
4910 ac_status=$?
4911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
4914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915 (exit $ac_status); } &&
4916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 (eval $ac_try) 2>&5
4919 ac_status=$?
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; } &&
4922 { ac_try='test -s conftest.$ac_objext'
4923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4924 (eval $ac_try) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; }; then
4928 ac_cv_prog_cc_stdc=$ac_arg
4929 break
4930 else
4931 echo "$as_me: failed program was:" >&5
4932 sed 's/^/| /' conftest.$ac_ext >&5
4935 rm -f conftest.err conftest.$ac_objext
4936 done
4937 rm -f conftest.$ac_ext conftest.$ac_objext
4938 CC=$ac_save_CC
4942 case "x$ac_cv_prog_cc_stdc" in
4943 x|xno)
4944 echo "$as_me:$LINENO: result: none needed" >&5
4945 echo "${ECHO_T}none needed" >&6 ;;
4947 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4948 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4949 CC="$CC $ac_cv_prog_cc_stdc" ;;
4950 esac
4952 # Some people use a C++ compiler to compile C. Since we use `exit',
4953 # in C++ we need to declare it. In case someone uses the same compiler
4954 # for both compiling C and C++ we need to have the C++ compiler decide
4955 # the declaration of exit, since it's the most demanding environment.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #ifndef __cplusplus
4958 choke me
4959 #endif
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963 (eval $ac_compile) 2>conftest.er1
4964 ac_status=$?
4965 grep -v '^ *+' conftest.er1 >conftest.err
4966 rm -f conftest.er1
4967 cat conftest.err >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); } &&
4970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4972 (eval $ac_try) 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; } &&
4976 { ac_try='test -s conftest.$ac_objext'
4977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 (eval $ac_try) 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); }; }; then
4982 for ac_declaration in \
4983 '' \
4984 'extern "C" void std::exit (int) throw (); using std::exit;' \
4985 'extern "C" void std::exit (int); using std::exit;' \
4986 'extern "C" void exit (int) throw ();' \
4987 'extern "C" void exit (int);' \
4988 'void exit (int);'
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 $ac_declaration
4997 #include <stdlib.h>
4999 main ()
5001 exit (42);
5003 return 0;
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5008 (eval $ac_compile) 2>conftest.er1
5009 ac_status=$?
5010 grep -v '^ *+' conftest.er1 >conftest.err
5011 rm -f conftest.er1
5012 cat conftest.err >&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } &&
5015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 (eval $ac_try) 2>&5
5018 ac_status=$?
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; } &&
5021 { ac_try='test -s conftest.$ac_objext'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; }; then
5028 else
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 continue
5034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_declaration
5043 main ()
5045 exit (42);
5047 return 0;
5049 _ACEOF
5050 rm -f conftest.$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5061 (eval $ac_try) 2>&5
5062 ac_status=$?
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5067 (eval $ac_try) 2>&5
5068 ac_status=$?
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 break
5072 else
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078 done
5079 rm -f conftest*
5080 if test -n "$ac_declaration"; then
5081 echo '#ifdef __cplusplus' >>confdefs.h
5082 echo $ac_declaration >>confdefs.h
5083 echo '#endif' >>confdefs.h
5086 else
5087 echo "$as_me: failed program was:" >&5
5088 sed 's/^/| /' conftest.$ac_ext >&5
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5099 ALL_LINGUAS="fr tr ja es sv da zh_CN ro"
5100 if test -n "$ac_tool_prefix"; then
5101 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5102 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5103 echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5105 if test "${ac_cv_prog_RANLIB+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 if test -n "$RANLIB"; then
5109 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5110 else
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112 for as_dir in $PATH
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5122 done
5123 done
5127 RANLIB=$ac_cv_prog_RANLIB
5128 if test -n "$RANLIB"; then
5129 echo "$as_me:$LINENO: result: $RANLIB" >&5
5130 echo "${ECHO_T}$RANLIB" >&6
5131 else
5132 echo "$as_me:$LINENO: result: no" >&5
5133 echo "${ECHO_T}no" >&6
5137 if test -z "$ac_cv_prog_RANLIB"; then
5138 ac_ct_RANLIB=$RANLIB
5139 # Extract the first word of "ranlib", so it can be a program name with args.
5140 set dummy ranlib; ac_word=$2
5141 echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 else
5146 if test -n "$ac_ct_RANLIB"; then
5147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5148 else
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_ac_ct_RANLIB="ranlib"
5157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 break 2
5160 done
5161 done
5163 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5167 if test -n "$ac_ct_RANLIB"; then
5168 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5169 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5170 else
5171 echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6
5175 RANLIB=$ac_ct_RANLIB
5176 else
5177 RANLIB="$ac_cv_prog_RANLIB"
5180 ac_ext=c
5181 ac_cpp='$CPP $CPPFLAGS'
5182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5185 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5186 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5187 # On Suns, sometimes $CPP names a directory.
5188 if test -n "$CPP" && test -d "$CPP"; then
5189 CPP=
5191 if test -z "$CPP"; then
5192 if test "${ac_cv_prog_CPP+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 # Double quotes because CPP needs to be expanded
5196 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5198 ac_preproc_ok=false
5199 for ac_c_preproc_warn_flag in '' yes
5201 # Use a header file that comes with gcc, so configuring glibc
5202 # with a fresh cross-compiler works.
5203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204 # <limits.h> exists even on freestanding compilers.
5205 # On the NeXT, cc -E runs the code through the compiler's parser,
5206 # not just through cpp. "Syntax error" is here to catch this case.
5207 cat >conftest.$ac_ext <<_ACEOF
5208 /* confdefs.h. */
5209 _ACEOF
5210 cat confdefs.h >>conftest.$ac_ext
5211 cat >>conftest.$ac_ext <<_ACEOF
5212 /* end confdefs.h. */
5213 #ifdef __STDC__
5214 # include <limits.h>
5215 #else
5216 # include <assert.h>
5217 #endif
5218 Syntax error
5219 _ACEOF
5220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } >/dev/null; then
5228 if test -s conftest.err; then
5229 ac_cpp_err=$ac_c_preproc_warn_flag
5230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5231 else
5232 ac_cpp_err=
5234 else
5235 ac_cpp_err=yes
5237 if test -z "$ac_cpp_err"; then
5239 else
5240 echo "$as_me: failed program was:" >&5
5241 sed 's/^/| /' conftest.$ac_ext >&5
5243 # Broken: fails on valid input.
5244 continue
5246 rm -f conftest.err conftest.$ac_ext
5248 # OK, works on sane cases. Now check whether non-existent headers
5249 # can be detected and how.
5250 cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h. */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5256 #include <ac_nonexistent.h>
5257 _ACEOF
5258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } >/dev/null; then
5266 if test -s conftest.err; then
5267 ac_cpp_err=$ac_c_preproc_warn_flag
5268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5269 else
5270 ac_cpp_err=
5272 else
5273 ac_cpp_err=yes
5275 if test -z "$ac_cpp_err"; then
5276 # Broken: success on invalid input.
5277 continue
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 # Passes both tests.
5283 ac_preproc_ok=:
5284 break
5286 rm -f conftest.err conftest.$ac_ext
5288 done
5289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5290 rm -f conftest.err conftest.$ac_ext
5291 if $ac_preproc_ok; then
5292 break
5295 done
5296 ac_cv_prog_CPP=$CPP
5299 CPP=$ac_cv_prog_CPP
5300 else
5301 ac_cv_prog_CPP=$CPP
5303 echo "$as_me:$LINENO: result: $CPP" >&5
5304 echo "${ECHO_T}$CPP" >&6
5305 ac_preproc_ok=false
5306 for ac_c_preproc_warn_flag in '' yes
5308 # Use a header file that comes with gcc, so configuring glibc
5309 # with a fresh cross-compiler works.
5310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 # <limits.h> exists even on freestanding compilers.
5312 # On the NeXT, cc -E runs the code through the compiler's parser,
5313 # not just through cpp. "Syntax error" is here to catch this case.
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320 #ifdef __STDC__
5321 # include <limits.h>
5322 #else
5323 # include <assert.h>
5324 #endif
5325 Syntax error
5326 _ACEOF
5327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5329 ac_status=$?
5330 grep -v '^ *+' conftest.er1 >conftest.err
5331 rm -f conftest.er1
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } >/dev/null; then
5335 if test -s conftest.err; then
5336 ac_cpp_err=$ac_c_preproc_warn_flag
5337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5338 else
5339 ac_cpp_err=
5341 else
5342 ac_cpp_err=yes
5344 if test -z "$ac_cpp_err"; then
5346 else
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 # Broken: fails on valid input.
5351 continue
5353 rm -f conftest.err conftest.$ac_ext
5355 # OK, works on sane cases. Now check whether non-existent headers
5356 # can be detected and how.
5357 cat >conftest.$ac_ext <<_ACEOF
5358 /* confdefs.h. */
5359 _ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 #include <ac_nonexistent.h>
5364 _ACEOF
5365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } >/dev/null; then
5373 if test -s conftest.err; then
5374 ac_cpp_err=$ac_c_preproc_warn_flag
5375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5376 else
5377 ac_cpp_err=
5379 else
5380 ac_cpp_err=yes
5382 if test -z "$ac_cpp_err"; then
5383 # Broken: success on invalid input.
5384 continue
5385 else
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 # Passes both tests.
5390 ac_preproc_ok=:
5391 break
5393 rm -f conftest.err conftest.$ac_ext
5395 done
5396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5397 rm -f conftest.err conftest.$ac_ext
5398 if $ac_preproc_ok; then
5400 else
5401 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5402 See \`config.log' for more details." >&5
5403 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5404 See \`config.log' for more details." >&2;}
5405 { (exit 1); exit 1; }; }
5408 ac_ext=c
5409 ac_cpp='$CPP $CPPFLAGS'
5410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5415 echo "$as_me:$LINENO: checking for egrep" >&5
5416 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5417 if test "${ac_cv_prog_egrep+set}" = set; then
5418 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 else
5420 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5421 then ac_cv_prog_egrep='grep -E'
5422 else ac_cv_prog_egrep='egrep'
5425 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5426 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5427 EGREP=$ac_cv_prog_egrep
5430 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5432 if test "${ac_cv_header_stdc+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 else
5435 cat >conftest.$ac_ext <<_ACEOF
5436 /* confdefs.h. */
5437 _ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 #include <stdlib.h>
5442 #include <stdarg.h>
5443 #include <string.h>
5444 #include <float.h>
5447 main ()
5451 return 0;
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456 (eval $ac_compile) 2>conftest.er1
5457 ac_status=$?
5458 grep -v '^ *+' conftest.er1 >conftest.err
5459 rm -f conftest.er1
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } &&
5463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest.$ac_objext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_header_stdc=yes
5476 else
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 ac_cv_header_stdc=no
5482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 if test $ac_cv_header_stdc = yes; then
5485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5486 cat >conftest.$ac_ext <<_ACEOF
5487 /* confdefs.h. */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 #include <string.h>
5494 _ACEOF
5495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5496 $EGREP "memchr" >/dev/null 2>&1; then
5498 else
5499 ac_cv_header_stdc=no
5501 rm -f conftest*
5505 if test $ac_cv_header_stdc = yes; then
5506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 #include <stdlib.h>
5515 _ACEOF
5516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5517 $EGREP "free" >/dev/null 2>&1; then
5519 else
5520 ac_cv_header_stdc=no
5522 rm -f conftest*
5526 if test $ac_cv_header_stdc = yes; then
5527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5528 if test "$cross_compiling" = yes; then
5530 else
5531 cat >conftest.$ac_ext <<_ACEOF
5532 /* confdefs.h. */
5533 _ACEOF
5534 cat confdefs.h >>conftest.$ac_ext
5535 cat >>conftest.$ac_ext <<_ACEOF
5536 /* end confdefs.h. */
5537 #include <ctype.h>
5538 #if ((' ' & 0x0FF) == 0x020)
5539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5541 #else
5542 # define ISLOWER(c) \
5543 (('a' <= (c) && (c) <= 'i') \
5544 || ('j' <= (c) && (c) <= 'r') \
5545 || ('s' <= (c) && (c) <= 'z'))
5546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5547 #endif
5549 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5551 main ()
5553 int i;
5554 for (i = 0; i < 256; i++)
5555 if (XOR (islower (i), ISLOWER (i))
5556 || toupper (i) != TOUPPER (i))
5557 exit(2);
5558 exit (0);
5560 _ACEOF
5561 rm -f conftest$ac_exeext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5563 (eval $ac_link) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; }; then
5573 else
5574 echo "$as_me: program exited with status $ac_status" >&5
5575 echo "$as_me: failed program was:" >&5
5576 sed 's/^/| /' conftest.$ac_ext >&5
5578 ( exit $ac_status )
5579 ac_cv_header_stdc=no
5581 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5585 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5586 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5587 if test $ac_cv_header_stdc = yes; then
5589 cat >>confdefs.h <<\_ACEOF
5590 #define STDC_HEADERS 1
5591 _ACEOF
5595 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5596 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5597 if test "${ac_cv_c_const+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5608 main ()
5610 /* FIXME: Include the comments suggested by Paul. */
5611 #ifndef __cplusplus
5612 /* Ultrix mips cc rejects this. */
5613 typedef int charset[2];
5614 const charset x;
5615 /* SunOS 4.1.1 cc rejects this. */
5616 char const *const *ccp;
5617 char **p;
5618 /* NEC SVR4.0.2 mips cc rejects this. */
5619 struct point {int x, y;};
5620 static struct point const zero = {0,0};
5621 /* AIX XL C 1.02.0.0 rejects this.
5622 It does not let you subtract one const X* pointer from another in
5623 an arm of an if-expression whose if-part is not a constant
5624 expression */
5625 const char *g = "string";
5626 ccp = &g + (g ? g-g : 0);
5627 /* HPUX 7.0 cc rejects these. */
5628 ++ccp;
5629 p = (char**) ccp;
5630 ccp = (char const *const *) p;
5631 { /* SCO 3.2v4 cc rejects this. */
5632 char *t;
5633 char const *s = 0 ? (char *) 0 : (char const *) 0;
5635 *t++ = 0;
5637 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5638 int x[] = {25, 17};
5639 const int *foo = &x[0];
5640 ++foo;
5642 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5643 typedef const int *iptr;
5644 iptr p = 0;
5645 ++p;
5647 { /* AIX XL C 1.02.0.0 rejects this saying
5648 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5649 struct s { int j; const int *ap[3]; };
5650 struct s *b; b->j = 5;
5652 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5653 const int foo = 10;
5655 #endif
5658 return 0;
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; } &&
5676 { ac_try='test -s conftest.$ac_objext'
5677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5678 (eval $ac_try) 2>&5
5679 ac_status=$?
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); }; }; then
5682 ac_cv_c_const=yes
5683 else
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.$ac_ext >&5
5687 ac_cv_c_const=no
5689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5692 echo "${ECHO_T}$ac_cv_c_const" >&6
5693 if test $ac_cv_c_const = no; then
5695 cat >>confdefs.h <<\_ACEOF
5696 #define const
5697 _ACEOF
5701 echo "$as_me:$LINENO: checking for inline" >&5
5702 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5703 if test "${ac_cv_c_inline+set}" = set; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706 ac_cv_c_inline=no
5707 for ac_kw in inline __inline__ __inline; do
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714 #ifndef __cplusplus
5715 typedef int foo_t;
5716 static $ac_kw foo_t static_foo () {return 0; }
5717 $ac_kw foo_t foo () {return 0; }
5718 #endif
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5723 (eval $ac_compile) 2>conftest.er1
5724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } &&
5730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_c_inline=$ac_kw; break
5743 else
5744 echo "$as_me: failed program was:" >&5
5745 sed 's/^/| /' conftest.$ac_ext >&5
5748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5749 done
5752 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5753 echo "${ECHO_T}$ac_cv_c_inline" >&6
5756 case $ac_cv_c_inline in
5757 inline | yes) ;;
5759 case $ac_cv_c_inline in
5760 no) ac_val=;;
5761 *) ac_val=$ac_cv_c_inline;;
5762 esac
5763 cat >>confdefs.h <<_ACEOF
5764 #ifndef __cplusplus
5765 #define inline $ac_val
5766 #endif
5767 _ACEOF
5769 esac
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 echo "$as_me:$LINENO: checking for $ac_header" >&5
5786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 #include <$ac_header>
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 (eval $ac_try) 2>&5
5812 ac_status=$?
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817 (eval $ac_try) 2>&5
5818 ac_status=$?
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 eval "$as_ac_Header=yes"
5822 else
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 eval "$as_ac_Header=no"
5828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5831 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5833 cat >>confdefs.h <<_ACEOF
5834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5835 _ACEOF
5839 done
5842 echo "$as_me:$LINENO: checking for off_t" >&5
5843 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5844 if test "${ac_cv_type_off_t+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5855 main ()
5857 if ((off_t *) 0)
5858 return 0;
5859 if (sizeof (off_t))
5860 return 0;
5862 return 0;
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867 (eval $ac_compile) 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
5880 { ac_try='test -s conftest.$ac_objext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
5886 ac_cv_type_off_t=yes
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5891 ac_cv_type_off_t=no
5893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5896 echo "${ECHO_T}$ac_cv_type_off_t" >&6
5897 if test $ac_cv_type_off_t = yes; then
5899 else
5901 cat >>confdefs.h <<_ACEOF
5902 #define off_t long
5903 _ACEOF
5907 echo "$as_me:$LINENO: checking for size_t" >&5
5908 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5909 if test "${ac_cv_type_size_t+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 else
5912 cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h. */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 $ac_includes_default
5920 main ()
5922 if ((size_t *) 0)
5923 return 0;
5924 if (sizeof (size_t))
5925 return 0;
5927 return 0;
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5932 (eval $ac_compile) 2>conftest.er1
5933 ac_status=$?
5934 grep -v '^ *+' conftest.er1 >conftest.err
5935 rm -f conftest.er1
5936 cat conftest.err >&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_type_size_t=yes
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 ac_cv_type_size_t=no
5958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5961 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5962 if test $ac_cv_type_size_t = yes; then
5964 else
5966 cat >>confdefs.h <<_ACEOF
5967 #define size_t unsigned
5968 _ACEOF
5972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5973 # for constant arguments. Useless!
5974 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5976 if test "${ac_cv_working_alloca_h+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979 cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h. */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h. */
5985 #include <alloca.h>
5987 main ()
5989 char *p = (char *) alloca (2 * sizeof (int));
5991 return 0;
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996 (eval $ac_link) 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } &&
6003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 (eval $ac_try) 2>&5
6006 ac_status=$?
6007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); }; } &&
6009 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6015 ac_cv_working_alloca_h=yes
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6020 ac_cv_working_alloca_h=no
6022 rm -f conftest.err conftest.$ac_objext \
6023 conftest$ac_exeext conftest.$ac_ext
6025 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6026 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6027 if test $ac_cv_working_alloca_h = yes; then
6029 cat >>confdefs.h <<\_ACEOF
6030 #define HAVE_ALLOCA_H 1
6031 _ACEOF
6035 echo "$as_me:$LINENO: checking for alloca" >&5
6036 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6037 if test "${ac_cv_func_alloca_works+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040 cat >conftest.$ac_ext <<_ACEOF
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #ifdef __GNUC__
6047 # define alloca __builtin_alloca
6048 #else
6049 # ifdef _MSC_VER
6050 # include <malloc.h>
6051 # define alloca _alloca
6052 # else
6053 # if HAVE_ALLOCA_H
6054 # include <alloca.h>
6055 # else
6056 # ifdef _AIX
6057 #pragma alloca
6058 # else
6059 # ifndef alloca /* predefined by HP cc +Olibcalls */
6060 char *alloca ();
6061 # endif
6062 # endif
6063 # endif
6064 # endif
6065 #endif
6068 main ()
6070 char *p = (char *) alloca (1);
6072 return 0;
6074 _ACEOF
6075 rm -f conftest.$ac_objext conftest$ac_exeext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_func_alloca_works=yes
6097 else
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 ac_cv_func_alloca_works=no
6103 rm -f conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6107 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6109 if test $ac_cv_func_alloca_works = yes; then
6111 cat >>confdefs.h <<\_ACEOF
6112 #define HAVE_ALLOCA 1
6113 _ACEOF
6115 else
6116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6117 # that cause trouble. Some versions do not even contain alloca or
6118 # contain a buggy version. If you still want to use their alloca,
6119 # use ar to extract alloca.o from them instead of compiling alloca.c.
6121 ALLOCA=alloca.$ac_objext
6123 cat >>confdefs.h <<\_ACEOF
6124 #define C_ALLOCA 1
6125 _ACEOF
6128 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6129 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6130 if test "${ac_cv_os_cray+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #if defined(CRAY) && ! defined(CRAY2)
6140 webecray
6141 #else
6142 wenotbecray
6143 #endif
6145 _ACEOF
6146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147 $EGREP "webecray" >/dev/null 2>&1; then
6148 ac_cv_os_cray=yes
6149 else
6150 ac_cv_os_cray=no
6152 rm -f conftest*
6155 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6156 echo "${ECHO_T}$ac_cv_os_cray" >&6
6157 if test $ac_cv_os_cray = yes; then
6158 for ac_func in _getb67 GETB67 getb67; do
6159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6160 echo "$as_me:$LINENO: checking for $ac_func" >&5
6161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6162 if eval "test \"\${$as_ac_var+set}\" = set"; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6172 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6173 #define $ac_func innocuous_$ac_func
6175 /* System header to define __stub macros and hopefully few prototypes,
6176 which can conflict with char $ac_func (); below.
6177 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6178 <limits.h> exists even on freestanding compilers. */
6180 #ifdef __STDC__
6181 # include <limits.h>
6182 #else
6183 # include <assert.h>
6184 #endif
6186 #undef $ac_func
6188 /* Override any gcc2 internal prototype to avoid an error. */
6189 #ifdef __cplusplus
6190 extern "C"
6192 #endif
6193 /* We use char because int might match the return type of a gcc2
6194 builtin and then its argument prototype would still apply. */
6195 char $ac_func ();
6196 /* The GNU C library defines this for functions which it implements
6197 to always fail with ENOSYS. Some functions are actually named
6198 something starting with __ and the normal name is an alias. */
6199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6200 choke me
6201 #else
6202 char (*f) () = $ac_func;
6203 #endif
6204 #ifdef __cplusplus
6206 #endif
6209 main ()
6211 return f != $ac_func;
6213 return 0;
6215 _ACEOF
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>conftest.er1
6219 ac_status=$?
6220 grep -v '^ *+' conftest.er1 >conftest.err
6221 rm -f conftest.er1
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227 (eval $ac_try) 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest$ac_exeext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233 (eval $ac_try) 2>&5
6234 ac_status=$?
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 eval "$as_ac_var=yes"
6238 else
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 eval "$as_ac_var=no"
6244 rm -f conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
6247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6249 if test `eval echo '${'$as_ac_var'}'` = yes; then
6251 cat >>confdefs.h <<_ACEOF
6252 #define CRAY_STACKSEG_END $ac_func
6253 _ACEOF
6255 break
6258 done
6261 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6262 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6263 if test "${ac_cv_c_stack_direction+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 if test "$cross_compiling" = yes; then
6267 ac_cv_c_stack_direction=0
6268 else
6269 cat >conftest.$ac_ext <<_ACEOF
6270 /* confdefs.h. */
6271 _ACEOF
6272 cat confdefs.h >>conftest.$ac_ext
6273 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */
6276 find_stack_direction ()
6278 static char *addr = 0;
6279 auto char dummy;
6280 if (addr == 0)
6282 addr = &dummy;
6283 return find_stack_direction ();
6285 else
6286 return (&dummy > addr) ? 1 : -1;
6290 main ()
6292 exit (find_stack_direction () < 0);
6294 _ACEOF
6295 rm -f conftest$ac_exeext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6297 (eval $ac_link) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 (eval $ac_try) 2>&5
6303 ac_status=$?
6304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); }; }; then
6306 ac_cv_c_stack_direction=1
6307 else
6308 echo "$as_me: program exited with status $ac_status" >&5
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ( exit $ac_status )
6313 ac_cv_c_stack_direction=-1
6315 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6318 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6321 cat >>confdefs.h <<_ACEOF
6322 #define STACK_DIRECTION $ac_cv_c_stack_direction
6323 _ACEOF
6330 for ac_header in stdlib.h unistd.h
6332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo "$as_me:$LINENO: checking for $ac_header" >&5
6335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 else
6342 # Is the header compilable?
6343 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6352 #include <$ac_header>
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6356 (eval $ac_compile) 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_header_compiler=yes
6376 else
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_header_compiler=no
6382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6384 echo "${ECHO_T}$ac_header_compiler" >&6
6386 # Is the header present?
6387 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 #include <$ac_header>
6396 _ACEOF
6397 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } >/dev/null; then
6405 if test -s conftest.err; then
6406 ac_cpp_err=$ac_c_preproc_warn_flag
6407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6408 else
6409 ac_cpp_err=
6411 else
6412 ac_cpp_err=yes
6414 if test -z "$ac_cpp_err"; then
6415 ac_header_preproc=yes
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_header_preproc=no
6422 rm -f conftest.err conftest.$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6424 echo "${ECHO_T}$ac_header_preproc" >&6
6426 # So? What about this header?
6427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6428 yes:no: )
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6433 ac_header_preproc=yes
6435 no:yes:* )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6449 cat <<\_ASBOX
6450 ## ------------------------------------------ ##
6451 ## Report this to the AC_PACKAGE_NAME lists. ##
6452 ## ------------------------------------------ ##
6453 _ASBOX
6455 sed "s/^/$as_me: WARNING: /" >&2
6457 esac
6458 echo "$as_me:$LINENO: checking for $ac_header" >&5
6459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 eval "$as_ac_Header=\$ac_header_preproc"
6465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6472 _ACEOF
6476 done
6479 for ac_func in getpagesize
6481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6482 echo "$as_me:$LINENO: checking for $ac_func" >&5
6483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6484 if eval "test \"\${$as_ac_var+set}\" = set"; then
6485 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 else
6487 cat >conftest.$ac_ext <<_ACEOF
6488 /* confdefs.h. */
6489 _ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6495 #define $ac_func innocuous_$ac_func
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char $ac_func (); below.
6499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500 <limits.h> exists even on freestanding compilers. */
6502 #ifdef __STDC__
6503 # include <limits.h>
6504 #else
6505 # include <assert.h>
6506 #endif
6508 #undef $ac_func
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 #ifdef __cplusplus
6512 extern "C"
6514 #endif
6515 /* We use char because int might match the return type of a gcc2
6516 builtin and then its argument prototype would still apply. */
6517 char $ac_func ();
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6522 choke me
6523 #else
6524 char (*f) () = $ac_func;
6525 #endif
6526 #ifdef __cplusplus
6528 #endif
6531 main ()
6533 return f != $ac_func;
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext conftest$ac_exeext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>conftest.er1
6541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); } &&
6547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549 (eval $ac_try) 2>&5
6550 ac_status=$?
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); }; } &&
6553 { ac_try='test -s conftest$ac_exeext'
6554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555 (eval $ac_try) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6559 eval "$as_ac_var=yes"
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 eval "$as_ac_var=no"
6566 rm -f conftest.err conftest.$ac_objext \
6567 conftest$ac_exeext conftest.$ac_ext
6569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6570 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6571 if test `eval echo '${'$as_ac_var'}'` = yes; then
6572 cat >>confdefs.h <<_ACEOF
6573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6574 _ACEOF
6577 done
6579 echo "$as_me:$LINENO: checking for working mmap" >&5
6580 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6581 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 else
6584 if test "$cross_compiling" = yes; then
6585 ac_cv_func_mmap_fixed_mapped=no
6586 else
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 $ac_includes_default
6594 /* malloc might have been renamed as rpl_malloc. */
6595 #undef malloc
6597 /* Thanks to Mike Haertel and Jim Avera for this test.
6598 Here is a matrix of mmap possibilities:
6599 mmap private not fixed
6600 mmap private fixed at somewhere currently unmapped
6601 mmap private fixed at somewhere already mapped
6602 mmap shared not fixed
6603 mmap shared fixed at somewhere currently unmapped
6604 mmap shared fixed at somewhere already mapped
6605 For private mappings, we should verify that changes cannot be read()
6606 back from the file, nor mmap's back from the file at a different
6607 address. (There have been systems where private was not correctly
6608 implemented like the infamous i386 svr4.0, and systems where the
6609 VM page cache was not coherent with the file system buffer cache
6610 like early versions of FreeBSD and possibly contemporary NetBSD.)
6611 For shared mappings, we should conversely verify that changes get
6612 propagated back to all the places they're supposed to be.
6614 Grep wants private fixed already mapped.
6615 The main things grep needs to know about mmap are:
6616 * does it exist and is it safe to write into the mmap'd area
6617 * how to use it (BSD variants) */
6619 #include <fcntl.h>
6620 #include <sys/mman.h>
6622 #if !STDC_HEADERS && !HAVE_STDLIB_H
6623 char *malloc ();
6624 #endif
6626 /* This mess was copied from the GNU getpagesize.h. */
6627 #if !HAVE_GETPAGESIZE
6628 /* Assume that all systems that can run configure have sys/param.h. */
6629 # if !HAVE_SYS_PARAM_H
6630 # define HAVE_SYS_PARAM_H 1
6631 # endif
6633 # ifdef _SC_PAGESIZE
6634 # define getpagesize() sysconf(_SC_PAGESIZE)
6635 # else /* no _SC_PAGESIZE */
6636 # if HAVE_SYS_PARAM_H
6637 # include <sys/param.h>
6638 # ifdef EXEC_PAGESIZE
6639 # define getpagesize() EXEC_PAGESIZE
6640 # else /* no EXEC_PAGESIZE */
6641 # ifdef NBPG
6642 # define getpagesize() NBPG * CLSIZE
6643 # ifndef CLSIZE
6644 # define CLSIZE 1
6645 # endif /* no CLSIZE */
6646 # else /* no NBPG */
6647 # ifdef NBPC
6648 # define getpagesize() NBPC
6649 # else /* no NBPC */
6650 # ifdef PAGESIZE
6651 # define getpagesize() PAGESIZE
6652 # endif /* PAGESIZE */
6653 # endif /* no NBPC */
6654 # endif /* no NBPG */
6655 # endif /* no EXEC_PAGESIZE */
6656 # else /* no HAVE_SYS_PARAM_H */
6657 # define getpagesize() 8192 /* punt totally */
6658 # endif /* no HAVE_SYS_PARAM_H */
6659 # endif /* no _SC_PAGESIZE */
6661 #endif /* no HAVE_GETPAGESIZE */
6664 main ()
6666 char *data, *data2, *data3;
6667 int i, pagesize;
6668 int fd;
6670 pagesize = getpagesize ();
6672 /* First, make a file with some known garbage in it. */
6673 data = (char *) malloc (pagesize);
6674 if (!data)
6675 exit (1);
6676 for (i = 0; i < pagesize; ++i)
6677 *(data + i) = rand ();
6678 umask (0);
6679 fd = creat ("conftest.mmap", 0600);
6680 if (fd < 0)
6681 exit (1);
6682 if (write (fd, data, pagesize) != pagesize)
6683 exit (1);
6684 close (fd);
6686 /* Next, try to mmap the file at a fixed address which already has
6687 something else allocated at it. If we can, also make sure that
6688 we see the same garbage. */
6689 fd = open ("conftest.mmap", O_RDWR);
6690 if (fd < 0)
6691 exit (1);
6692 data2 = (char *) malloc (2 * pagesize);
6693 if (!data2)
6694 exit (1);
6695 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6696 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6697 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6698 exit (1);
6699 for (i = 0; i < pagesize; ++i)
6700 if (*(data + i) != *(data2 + i))
6701 exit (1);
6703 /* Finally, make sure that changes to the mapped area do not
6704 percolate back to the file as seen by read(). (This is a bug on
6705 some variants of i386 svr4.0.) */
6706 for (i = 0; i < pagesize; ++i)
6707 *(data2 + i) = *(data2 + i) + 1;
6708 data3 = (char *) malloc (pagesize);
6709 if (!data3)
6710 exit (1);
6711 if (read (fd, data3, pagesize) != pagesize)
6712 exit (1);
6713 for (i = 0; i < pagesize; ++i)
6714 if (*(data + i) != *(data3 + i))
6715 exit (1);
6716 close (fd);
6717 exit (0);
6719 _ACEOF
6720 rm -f conftest$ac_exeext
6721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6722 (eval $ac_link) 2>&5
6723 ac_status=$?
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6727 (eval $ac_try) 2>&5
6728 ac_status=$?
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6731 ac_cv_func_mmap_fixed_mapped=yes
6732 else
6733 echo "$as_me: program exited with status $ac_status" >&5
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 ( exit $ac_status )
6738 ac_cv_func_mmap_fixed_mapped=no
6740 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6743 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6744 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6745 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_MMAP 1
6749 _ACEOF
6752 rm -f conftest.mmap
6764 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
6765 unistd.h values.h sys/param.h
6767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6769 echo "$as_me:$LINENO: checking for $ac_header" >&5
6770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6776 else
6777 # Is the header compilable?
6778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6781 /* confdefs.h. */
6782 _ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 $ac_includes_default
6787 #include <$ac_header>
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6791 (eval $ac_compile) 2>conftest.er1
6792 ac_status=$?
6793 grep -v '^ *+' conftest.er1 >conftest.err
6794 rm -f conftest.er1
6795 cat conftest.err >&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6800 (eval $ac_try) 2>&5
6801 ac_status=$?
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6806 (eval $ac_try) 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_header_compiler=yes
6811 else
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 ac_header_compiler=no
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6819 echo "${ECHO_T}$ac_header_compiler" >&6
6821 # Is the header present?
6822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6824 cat >conftest.$ac_ext <<_ACEOF
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 #include <$ac_header>
6831 _ACEOF
6832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } >/dev/null; then
6840 if test -s conftest.err; then
6841 ac_cpp_err=$ac_c_preproc_warn_flag
6842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6843 else
6844 ac_cpp_err=
6846 else
6847 ac_cpp_err=yes
6849 if test -z "$ac_cpp_err"; then
6850 ac_header_preproc=yes
6851 else
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_header_preproc=no
6857 rm -f conftest.err conftest.$ac_ext
6858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6859 echo "${ECHO_T}$ac_header_preproc" >&6
6861 # So? What about this header?
6862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6863 yes:no: )
6864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6868 ac_header_preproc=yes
6870 no:yes:* )
6871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6884 cat <<\_ASBOX
6885 ## ------------------------------------------ ##
6886 ## Report this to the AC_PACKAGE_NAME lists. ##
6887 ## ------------------------------------------ ##
6888 _ASBOX
6890 sed "s/^/$as_me: WARNING: /" >&2
6892 esac
6893 echo "$as_me:$LINENO: checking for $ac_header" >&5
6894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6896 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898 eval "$as_ac_Header=\$ac_header_preproc"
6900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6905 cat >>confdefs.h <<_ACEOF
6906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6907 _ACEOF
6911 done
6923 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
6924 __argz_count __argz_stringify __argz_next
6926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6927 echo "$as_me:$LINENO: checking for $ac_func" >&5
6928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6929 if eval "test \"\${$as_ac_var+set}\" = set"; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 else
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6940 #define $ac_func innocuous_$ac_func
6942 /* System header to define __stub macros and hopefully few prototypes,
6943 which can conflict with char $ac_func (); below.
6944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6945 <limits.h> exists even on freestanding compilers. */
6947 #ifdef __STDC__
6948 # include <limits.h>
6949 #else
6950 # include <assert.h>
6951 #endif
6953 #undef $ac_func
6955 /* Override any gcc2 internal prototype to avoid an error. */
6956 #ifdef __cplusplus
6957 extern "C"
6959 #endif
6960 /* We use char because int might match the return type of a gcc2
6961 builtin and then its argument prototype would still apply. */
6962 char $ac_func ();
6963 /* The GNU C library defines this for functions which it implements
6964 to always fail with ENOSYS. Some functions are actually named
6965 something starting with __ and the normal name is an alias. */
6966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6967 choke me
6968 #else
6969 char (*f) () = $ac_func;
6970 #endif
6971 #ifdef __cplusplus
6973 #endif
6976 main ()
6978 return f != $ac_func;
6980 return 0;
6982 _ACEOF
6983 rm -f conftest.$ac_objext conftest$ac_exeext
6984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6985 (eval $ac_link) 2>conftest.er1
6986 ac_status=$?
6987 grep -v '^ *+' conftest.er1 >conftest.err
6988 rm -f conftest.er1
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 (eval $ac_try) 2>&5
6995 ac_status=$?
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; } &&
6998 { ac_try='test -s conftest$ac_exeext'
6999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 (eval $ac_try) 2>&5
7001 ac_status=$?
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); }; }; then
7004 eval "$as_ac_var=yes"
7005 else
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 eval "$as_ac_var=no"
7011 rm -f conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7016 if test `eval echo '${'$as_ac_var'}'` = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7019 _ACEOF
7022 done
7025 if test "${ac_cv_func_stpcpy+set}" != "set"; then
7027 for ac_func in stpcpy
7029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7030 echo "$as_me:$LINENO: checking for $ac_func" >&5
7031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7032 if eval "test \"\${$as_ac_var+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035 cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h. */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7043 #define $ac_func innocuous_$ac_func
7045 /* System header to define __stub macros and hopefully few prototypes,
7046 which can conflict with char $ac_func (); below.
7047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048 <limits.h> exists even on freestanding compilers. */
7050 #ifdef __STDC__
7051 # include <limits.h>
7052 #else
7053 # include <assert.h>
7054 #endif
7056 #undef $ac_func
7058 /* Override any gcc2 internal prototype to avoid an error. */
7059 #ifdef __cplusplus
7060 extern "C"
7062 #endif
7063 /* We use char because int might match the return type of a gcc2
7064 builtin and then its argument prototype would still apply. */
7065 char $ac_func ();
7066 /* The GNU C library defines this for functions which it implements
7067 to always fail with ENOSYS. Some functions are actually named
7068 something starting with __ and the normal name is an alias. */
7069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7070 choke me
7071 #else
7072 char (*f) () = $ac_func;
7073 #endif
7074 #ifdef __cplusplus
7076 #endif
7079 main ()
7081 return f != $ac_func;
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088 (eval $ac_link) 2>conftest.er1
7089 ac_status=$?
7090 grep -v '^ *+' conftest.er1 >conftest.err
7091 rm -f conftest.er1
7092 cat conftest.err >&5
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097 (eval $ac_try) 2>&5
7098 ac_status=$?
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; } &&
7101 { ac_try='test -s conftest$ac_exeext'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 (eval $ac_try) 2>&5
7104 ac_status=$?
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; }; then
7107 eval "$as_ac_var=yes"
7108 else
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 eval "$as_ac_var=no"
7114 rm -f conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7119 if test `eval echo '${'$as_ac_var'}'` = yes; then
7120 cat >>confdefs.h <<_ACEOF
7121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7122 _ACEOF
7125 done
7128 if test "${ac_cv_func_stpcpy}" = "yes"; then
7130 cat >>confdefs.h <<\_ACEOF
7131 #define HAVE_STPCPY 1
7132 _ACEOF
7136 if test $ac_cv_header_locale_h = yes; then
7137 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7138 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
7139 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 else
7142 cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h. */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h. */
7148 #include <locale.h>
7150 main ()
7152 return LC_MESSAGES
7154 return 0;
7156 _ACEOF
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 am_cv_val_LC_MESSAGES=yes
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 am_cv_val_LC_MESSAGES=no
7185 rm -f conftest.err conftest.$ac_objext \
7186 conftest$ac_exeext conftest.$ac_ext
7188 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7189 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
7190 if test $am_cv_val_LC_MESSAGES = yes; then
7192 cat >>confdefs.h <<\_ACEOF
7193 #define HAVE_LC_MESSAGES 1
7194 _ACEOF
7198 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7199 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
7200 # Check whether --enable-nls or --disable-nls was given.
7201 if test "${enable_nls+set}" = set; then
7202 enableval="$enable_nls"
7203 USE_NLS=$enableval
7204 else
7205 USE_NLS=yes
7207 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7208 echo "${ECHO_T}$USE_NLS" >&6
7211 USE_INCLUDED_LIBINTL=no
7213 if test "$USE_NLS" = "yes"; then
7215 cat >>confdefs.h <<\_ACEOF
7216 #define ENABLE_NLS 1
7217 _ACEOF
7219 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
7220 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
7222 # Check whether --with-included-gettext or --without-included-gettext was given.
7223 if test "${with_included_gettext+set}" = set; then
7224 withval="$with_included_gettext"
7225 nls_cv_force_use_gnu_gettext=$withval
7226 else
7227 nls_cv_force_use_gnu_gettext=no
7229 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
7230 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
7232 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7233 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7234 nls_cv_header_intl=
7235 nls_cv_header_libgt=
7236 CATOBJEXT=NONE
7238 if test "${ac_cv_header_libintl_h+set}" = set; then
7239 echo "$as_me:$LINENO: checking for libintl.h" >&5
7240 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7241 if test "${ac_cv_header_libintl_h+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7245 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7246 else
7247 # Is the header compilable?
7248 echo "$as_me:$LINENO: checking libintl.h usability" >&5
7249 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
7250 cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 $ac_includes_default
7257 #include <libintl.h>
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; } &&
7274 { ac_try='test -s conftest.$ac_objext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_header_compiler=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_header_compiler=no
7287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7289 echo "${ECHO_T}$ac_header_compiler" >&6
7291 # Is the header present?
7292 echo "$as_me:$LINENO: checking libintl.h presence" >&5
7293 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <libintl.h>
7301 _ACEOF
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } >/dev/null; then
7310 if test -s conftest.err; then
7311 ac_cpp_err=$ac_c_preproc_warn_flag
7312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7313 else
7314 ac_cpp_err=
7316 else
7317 ac_cpp_err=yes
7319 if test -z "$ac_cpp_err"; then
7320 ac_header_preproc=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_header_preproc=no
7327 rm -f conftest.err conftest.$ac_ext
7328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7329 echo "${ECHO_T}$ac_header_preproc" >&6
7331 # So? What about this header?
7332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7333 yes:no: )
7334 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7335 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7336 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7337 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7338 ac_header_preproc=yes
7340 no:yes:* )
7341 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7342 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7343 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
7344 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7346 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
7348 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7350 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7352 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7354 cat <<\_ASBOX
7355 ## ------------------------------------------ ##
7356 ## Report this to the AC_PACKAGE_NAME lists. ##
7357 ## ------------------------------------------ ##
7358 _ASBOX
7360 sed "s/^/$as_me: WARNING: /" >&2
7362 esac
7363 echo "$as_me:$LINENO: checking for libintl.h" >&5
7364 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
7365 if test "${ac_cv_header_libintl_h+set}" = set; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 ac_cv_header_libintl_h=$ac_header_preproc
7370 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7371 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
7374 if test $ac_cv_header_libintl_h = yes; then
7375 echo "$as_me:$LINENO: checking for gettext in libc" >&5
7376 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
7377 if test "${gt_cv_func_gettext_libc+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <libintl.h>
7388 main ()
7390 return (int) gettext ("")
7392 return 0;
7394 _ACEOF
7395 rm -f conftest.$ac_objext conftest$ac_exeext
7396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7397 (eval $ac_link) 2>conftest.er1
7398 ac_status=$?
7399 grep -v '^ *+' conftest.er1 >conftest.err
7400 rm -f conftest.er1
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7406 (eval $ac_try) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 (eval $ac_try) 2>&5
7413 ac_status=$?
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 gt_cv_func_gettext_libc=yes
7417 else
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7421 gt_cv_func_gettext_libc=no
7423 rm -f conftest.err conftest.$ac_objext \
7424 conftest$ac_exeext conftest.$ac_ext
7426 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5
7427 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
7429 if test "$gt_cv_func_gettext_libc" != "yes"; then
7430 echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7431 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
7432 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 ac_check_lib_save_LIBS=$LIBS
7436 LIBS="-lintl $LIBS"
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7444 /* Override any gcc2 internal prototype to avoid an error. */
7445 #ifdef __cplusplus
7446 extern "C"
7447 #endif
7448 /* We use char because int might match the return type of a gcc2
7449 builtin and then its argument prototype would still apply. */
7450 char bindtextdomain ();
7452 main ()
7454 bindtextdomain ();
7456 return 0;
7458 _ACEOF
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7461 (eval $ac_link) 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 (eval $ac_try) 2>&5
7471 ac_status=$?
7472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473 (exit $ac_status); }; } &&
7474 { ac_try='test -s conftest$ac_exeext'
7475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7476 (eval $ac_try) 2>&5
7477 ac_status=$?
7478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); }; }; then
7480 ac_cv_lib_intl_bindtextdomain=yes
7481 else
7482 echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_cv_lib_intl_bindtextdomain=no
7487 rm -f conftest.err conftest.$ac_objext \
7488 conftest$ac_exeext conftest.$ac_ext
7489 LIBS=$ac_check_lib_save_LIBS
7491 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7492 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
7493 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7494 echo "$as_me:$LINENO: checking for gettext in libintl" >&5
7495 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
7496 if test "${gt_cv_func_gettext_libintl+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499 cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h. */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7507 main ()
7509 return (int) gettext ("")
7511 return 0;
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; } &&
7529 { ac_try='test -s conftest$ac_exeext'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 gt_cv_func_gettext_libintl=yes
7536 else
7537 echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7540 gt_cv_func_gettext_libintl=no
7542 rm -f conftest.err conftest.$ac_objext \
7543 conftest$ac_exeext conftest.$ac_ext
7545 echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5
7546 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
7551 if test "$gt_cv_func_gettext_libc" = "yes" \
7552 || test "$gt_cv_func_gettext_libintl" = "yes"; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_GETTEXT 1
7556 _ACEOF
7558 # Extract the first word of "msgfmt", so it can be a program name with args.
7559 set dummy msgfmt; ac_word=$2
7560 echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7562 if test "${ac_cv_path_MSGFMT+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565 case "$MSGFMT" in
7567 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7571 for ac_dir in $PATH; do
7572 test -z "$ac_dir" && ac_dir=.
7573 if test -f $ac_dir/$ac_word; then
7574 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7575 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7576 break
7579 done
7580 IFS="$ac_save_ifs"
7581 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7583 esac
7585 MSGFMT="$ac_cv_path_MSGFMT"
7586 if test -n "$MSGFMT"; then
7587 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7588 echo "${ECHO_T}$MSGFMT" >&6
7589 else
7590 echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6
7593 if test "$MSGFMT" != "no"; then
7595 for ac_func in dcgettext
7597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7598 echo "$as_me:$LINENO: checking for $ac_func" >&5
7599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7600 if eval "test \"\${$as_ac_var+set}\" = set"; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7611 #define $ac_func innocuous_$ac_func
7613 /* System header to define __stub macros and hopefully few prototypes,
7614 which can conflict with char $ac_func (); below.
7615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7616 <limits.h> exists even on freestanding compilers. */
7618 #ifdef __STDC__
7619 # include <limits.h>
7620 #else
7621 # include <assert.h>
7622 #endif
7624 #undef $ac_func
7626 /* Override any gcc2 internal prototype to avoid an error. */
7627 #ifdef __cplusplus
7628 extern "C"
7630 #endif
7631 /* We use char because int might match the return type of a gcc2
7632 builtin and then its argument prototype would still apply. */
7633 char $ac_func ();
7634 /* The GNU C library defines this for functions which it implements
7635 to always fail with ENOSYS. Some functions are actually named
7636 something starting with __ and the normal name is an alias. */
7637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7638 choke me
7639 #else
7640 char (*f) () = $ac_func;
7641 #endif
7642 #ifdef __cplusplus
7644 #endif
7647 main ()
7649 return f != $ac_func;
7651 return 0;
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 (eval $ac_try) 2>&5
7666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 (eval $ac_try) 2>&5
7672 ac_status=$?
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 eval "$as_ac_var=yes"
7676 else
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 eval "$as_ac_var=no"
7682 rm -f conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7687 if test `eval echo '${'$as_ac_var'}'` = yes; then
7688 cat >>confdefs.h <<_ACEOF
7689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7690 _ACEOF
7693 done
7695 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7696 set dummy gmsgfmt; ac_word=$2
7697 echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702 case $GMSGFMT in
7703 [\\/]* | ?:[\\/]*)
7704 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708 for as_dir in $PATH
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7718 done
7719 done
7721 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7723 esac
7725 GMSGFMT=$ac_cv_path_GMSGFMT
7727 if test -n "$GMSGFMT"; then
7728 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7729 echo "${ECHO_T}$GMSGFMT" >&6
7730 else
7731 echo "$as_me:$LINENO: result: no" >&5
7732 echo "${ECHO_T}no" >&6
7735 # Extract the first word of "xgettext", so it can be a program name with args.
7736 set dummy xgettext; ac_word=$2
7737 echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7739 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742 case "$XGETTEXT" in
7744 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7748 for ac_dir in $PATH; do
7749 test -z "$ac_dir" && ac_dir=.
7750 if test -f $ac_dir/$ac_word; then
7751 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7752 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7753 break
7756 done
7757 IFS="$ac_save_ifs"
7758 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7760 esac
7762 XGETTEXT="$ac_cv_path_XGETTEXT"
7763 if test -n "$XGETTEXT"; then
7764 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7765 echo "${ECHO_T}$XGETTEXT" >&6
7766 else
7767 echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7779 main ()
7781 extern int _nl_msg_cat_cntr;
7782 return _nl_msg_cat_cntr
7784 return 0;
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7789 (eval $ac_link) 2>conftest.er1
7790 ac_status=$?
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); } &&
7796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7798 (eval $ac_try) 2>&5
7799 ac_status=$?
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; } &&
7802 { ac_try='test -s conftest$ac_exeext'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7804 (eval $ac_try) 2>&5
7805 ac_status=$?
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; }; then
7808 CATOBJEXT=.gmo
7809 DATADIRNAME=share
7810 else
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7814 CATOBJEXT=.mo
7815 DATADIRNAME=lib
7817 rm -f conftest.err conftest.$ac_objext \
7818 conftest$ac_exeext conftest.$ac_ext
7819 INSTOBJEXT=.mo
7828 if test "$CATOBJEXT" = "NONE"; then
7829 nls_cv_use_gnu_gettext=yes
7833 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7834 INTLOBJS="\$(GETTOBJS)"
7835 # Extract the first word of "msgfmt", so it can be a program name with args.
7836 set dummy msgfmt; ac_word=$2
7837 echo "$as_me:$LINENO: checking for $ac_word" >&5
7838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7839 if test "${ac_cv_path_MSGFMT+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 else
7842 case "$MSGFMT" in
7844 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7848 for ac_dir in $PATH; do
7849 test -z "$ac_dir" && ac_dir=.
7850 if test -f $ac_dir/$ac_word; then
7851 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7852 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7853 break
7856 done
7857 IFS="$ac_save_ifs"
7858 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
7860 esac
7862 MSGFMT="$ac_cv_path_MSGFMT"
7863 if test -n "$MSGFMT"; then
7864 echo "$as_me:$LINENO: result: $MSGFMT" >&5
7865 echo "${ECHO_T}$MSGFMT" >&6
7866 else
7867 echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7871 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7872 set dummy gmsgfmt; ac_word=$2
7873 echo "$as_me:$LINENO: checking for $ac_word" >&5
7874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 case $GMSGFMT in
7879 [\\/]* | ?:[\\/]*)
7880 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7894 done
7895 done
7897 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7899 esac
7901 GMSGFMT=$ac_cv_path_GMSGFMT
7903 if test -n "$GMSGFMT"; then
7904 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7905 echo "${ECHO_T}$GMSGFMT" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908 echo "${ECHO_T}no" >&6
7911 # Extract the first word of "xgettext", so it can be a program name with args.
7912 set dummy xgettext; ac_word=$2
7913 echo "$as_me:$LINENO: checking for $ac_word" >&5
7914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7915 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918 case "$XGETTEXT" in
7920 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7924 for ac_dir in $PATH; do
7925 test -z "$ac_dir" && ac_dir=.
7926 if test -f $ac_dir/$ac_word; then
7927 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7928 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7929 break
7932 done
7933 IFS="$ac_save_ifs"
7934 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7936 esac
7938 XGETTEXT="$ac_cv_path_XGETTEXT"
7939 if test -n "$XGETTEXT"; then
7940 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7941 echo "${ECHO_T}$XGETTEXT" >&6
7942 else
7943 echo "$as_me:$LINENO: result: no" >&5
7944 echo "${ECHO_T}no" >&6
7948 USE_INCLUDED_LIBINTL=yes
7949 CATOBJEXT=.gmo
7950 INSTOBJEXT=.mo
7951 DATADIRNAME=share
7952 INTLDEPS='$(top_builddir)/../intl/libintl.a'
7953 INTLLIBS=$INTLDEPS
7954 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
7955 nls_cv_header_intl=libintl.h
7956 nls_cv_header_libgt=libgettext.h
7959 if test "$XGETTEXT" != ":"; then
7960 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7962 else
7963 echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
7964 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
7965 XGETTEXT=":"
7969 # We need to process the po/ directory.
7970 POSUB=po
7971 else
7972 DATADIRNAME=share
7973 nls_cv_header_intl=libintl.h
7974 nls_cv_header_libgt=libgettext.h
7977 # If this is used in GNU gettext we have to set USE_NLS to `yes'
7978 # because some of the sources are only built for this goal.
7979 if test "$PACKAGE" = gettext; then
7980 USE_NLS=yes
7981 USE_INCLUDED_LIBINTL=yes
7984 for lang in $ALL_LINGUAS; do
7985 GMOFILES="$GMOFILES $lang.gmo"
7986 POFILES="$POFILES $lang.po"
7987 done
8002 if test "x$CATOBJEXT" != "x"; then
8003 if test "x$ALL_LINGUAS" = "x"; then
8004 LINGUAS=
8005 else
8006 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8007 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8008 NEW_LINGUAS=
8009 for lang in ${LINGUAS=$ALL_LINGUAS}; do
8010 case "$ALL_LINGUAS" in
8011 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8012 esac
8013 done
8014 LINGUAS=$NEW_LINGUAS
8015 echo "$as_me:$LINENO: result: $LINGUAS" >&5
8016 echo "${ECHO_T}$LINGUAS" >&6
8019 if test -n "$LINGUAS"; then
8020 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8024 if test $ac_cv_header_locale_h = yes; then
8025 INCLUDE_LOCALE_H="#include <locale.h>"
8026 else
8027 INCLUDE_LOCALE_H="\
8028 /* The system does not provide the header <locale.h>. Take care yourself. */"
8032 if test -f $srcdir/po2tbl.sed.in; then
8033 if test "$CATOBJEXT" = ".cat"; then
8034 if test "${ac_cv_header_linux_version_h+set}" = set; then
8035 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8036 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8037 if test "${ac_cv_header_linux_version_h+set}" = set; then
8038 echo $ECHO_N "(cached) $ECHO_C" >&6
8040 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8041 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8042 else
8043 # Is the header compilable?
8044 echo "$as_me:$LINENO: checking linux/version.h usability" >&5
8045 echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6
8046 cat >conftest.$ac_ext <<_ACEOF
8047 /* confdefs.h. */
8048 _ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8052 $ac_includes_default
8053 #include <linux/version.h>
8054 _ACEOF
8055 rm -f conftest.$ac_objext
8056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8057 (eval $ac_compile) 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } &&
8064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072 (eval $ac_try) 2>&5
8073 ac_status=$?
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 ac_header_compiler=yes
8077 else
8078 echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8081 ac_header_compiler=no
8083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8085 echo "${ECHO_T}$ac_header_compiler" >&6
8087 # Is the header present?
8088 echo "$as_me:$LINENO: checking linux/version.h presence" >&5
8089 echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6
8090 cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 #include <linux/version.h>
8097 _ACEOF
8098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8100 ac_status=$?
8101 grep -v '^ *+' conftest.er1 >conftest.err
8102 rm -f conftest.er1
8103 cat conftest.err >&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } >/dev/null; then
8106 if test -s conftest.err; then
8107 ac_cpp_err=$ac_c_preproc_warn_flag
8108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8109 else
8110 ac_cpp_err=
8112 else
8113 ac_cpp_err=yes
8115 if test -z "$ac_cpp_err"; then
8116 ac_header_preproc=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_header_preproc=no
8123 rm -f conftest.err conftest.$ac_ext
8124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8125 echo "${ECHO_T}$ac_header_preproc" >&6
8127 # So? What about this header?
8128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8129 yes:no: )
8130 { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5
8131 echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8132 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5
8133 echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;}
8134 ac_header_preproc=yes
8136 no:yes:* )
8137 { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5
8138 echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;}
8139 { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5
8140 echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5
8142 echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5
8144 echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5
8146 echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5
8148 echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;}
8150 cat <<\_ASBOX
8151 ## ------------------------------------------ ##
8152 ## Report this to the AC_PACKAGE_NAME lists. ##
8153 ## ------------------------------------------ ##
8154 _ASBOX
8156 sed "s/^/$as_me: WARNING: /" >&2
8158 esac
8159 echo "$as_me:$LINENO: checking for linux/version.h" >&5
8160 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8161 if test "${ac_cv_header_linux_version_h+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 ac_cv_header_linux_version_h=$ac_header_preproc
8166 echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5
8167 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8170 if test $ac_cv_header_linux_version_h = yes; then
8171 msgformat=linux
8172 else
8173 msgformat=xopen
8178 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
8180 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
8181 $srcdir/po2tbl.sed.in > po2tbl.sed
8184 if test "$PACKAGE" = "gettext"; then
8185 GT_NO="#NO#"
8186 GT_YES=
8187 else
8188 GT_NO=
8189 GT_YES="#YES#"
8194 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
8200 if test -f $srcdir/po/POTFILES.in; then
8201 test -d po || mkdir po
8202 if test "x$srcdir" != "x."; then
8203 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8204 posrcprefix="$srcdir/"
8205 else
8206 posrcprefix="../$srcdir/"
8208 else
8209 posrcprefix="../"
8211 rm -f po/POTFILES
8212 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8213 < $srcdir/po/POTFILES.in > po/POTFILES
8217 # Permit host specific settings.
8218 . ${srcdir}/configure.host
8221 # Find a good install program. We prefer a C program (faster),
8222 # so one script is as good as another. But avoid the broken or
8223 # incompatible versions:
8224 # SysV /etc/install, /usr/sbin/install
8225 # SunOS /usr/etc/install
8226 # IRIX /sbin/install
8227 # AIX /bin/install
8228 # AmigaOS /C/install, which installs bootblocks on floppy discs
8229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8232 # OS/2's system install, which has a completely different semantic
8233 # ./install, which can be erroneously created by make from ./install.sh.
8234 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8235 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8236 if test -z "$INSTALL"; then
8237 if test "${ac_cv_path_install+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241 for as_dir in $PATH
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
8245 # Account for people who put trailing slashes in PATH elements.
8246 case $as_dir/ in
8247 ./ | .// | /cC/* | \
8248 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8249 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8250 /usr/ucb/* ) ;;
8252 # OSF1 and SCO ODT 3.0 have their own names for install.
8253 # Don't use installbsd from OSF since it installs stuff as root
8254 # by default.
8255 for ac_prog in ginstall scoinst install; do
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8258 if test $ac_prog = install &&
8259 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8260 # AIX install. It has an incompatible calling convention.
8262 elif test $ac_prog = install &&
8263 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8264 # program-specific install script used by HP pwplus--don't use.
8266 else
8267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8268 break 3
8271 done
8272 done
8274 esac
8275 done
8279 if test "${ac_cv_path_install+set}" = set; then
8280 INSTALL=$ac_cv_path_install
8281 else
8282 # As a last resort, use the slow shell script. We don't cache a
8283 # path for INSTALL within a source directory, because that will
8284 # break other packages using the cache if that directory is
8285 # removed, or if the path is relative.
8286 INSTALL=$ac_install_sh
8289 echo "$as_me:$LINENO: result: $INSTALL" >&5
8290 echo "${ECHO_T}$INSTALL" >&6
8292 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8293 # It thinks the first close brace ends the variable substitution.
8294 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8296 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8298 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8301 BFD_HOST_64BIT_LONG=0
8302 BFD_HOST_LONG_LONG=0
8303 BFD_HOST_64_BIT_DEFINED=0
8304 BFD_HOST_64_BIT=
8305 BFD_HOST_U_64_BIT=
8307 echo "$as_me:$LINENO: checking for long long" >&5
8308 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8309 if test "${bfd_cv_has_long_long+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
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. */
8320 main ()
8322 unsigned long long ll = 18446744073709551615ULL;
8324 return 0;
8326 _ACEOF
8327 rm -f conftest.$ac_objext
8328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8329 (eval $ac_compile) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; } &&
8342 { ac_try='test -s conftest.$ac_objext'
8343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344 (eval $ac_try) 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
8348 bfd_cv_has_long_long=yes
8349 else
8350 echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 bfd_cv_has_long_long=no
8355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8358 echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5
8359 echo "${ECHO_T}$bfd_cv_has_long_long" >&6
8360 if test $bfd_cv_has_long_long = yes; then
8361 BFD_HOST_LONG_LONG=1
8362 echo "$as_me:$LINENO: checking size of long long" >&5
8363 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8364 if test "${ac_cv_sizeof_long_long+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 else
8367 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 #include "confdefs.h"
8375 #include <sys/types.h>
8379 main ()
8381 switch (0) case 0: case (sizeof (long long) == $ac_size):;
8383 return 0;
8385 _ACEOF
8386 rm -f conftest.$ac_objext
8387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8388 (eval $ac_compile) 2>conftest.er1
8389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_cv_sizeof_long_long=$ac_size
8408 else
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8414 if test x$ac_cv_sizeof_long_long != x ; then break; fi
8415 done
8419 if test x$ac_cv_sizeof_long_long = x ; then
8420 { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5
8421 echo "$as_me: error: cannot determine a size for long long" >&2;}
8422 { (exit 1); exit 1; }; }
8424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
8425 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
8427 cat >>confdefs.h <<_ACEOF
8428 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
8429 _ACEOF
8434 echo "$as_me:$LINENO: checking size of long" >&5
8435 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8436 if test "${ac_cv_sizeof_long+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 #include "confdefs.h"
8447 #include <sys/types.h>
8451 main ()
8453 switch (0) case 0: case (sizeof (long) == $ac_size):;
8455 return 0;
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8460 (eval $ac_compile) 2>conftest.er1
8461 ac_status=$?
8462 grep -v '^ *+' conftest.er1 >conftest.err
8463 rm -f conftest.er1
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } &&
8467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 (eval $ac_try) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }; } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 ac_cv_sizeof_long=$ac_size
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8486 if test x$ac_cv_sizeof_long != x ; then break; fi
8487 done
8491 if test x$ac_cv_sizeof_long = x ; then
8492 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
8493 echo "$as_me: error: cannot determine a size for long" >&2;}
8494 { (exit 1); exit 1; }; }
8496 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8497 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8499 cat >>confdefs.h <<_ACEOF
8500 #define SIZEOF_LONG $ac_cv_sizeof_long
8501 _ACEOF
8504 if test "x${ac_cv_sizeof_long}" = "x8"; then
8505 host64=true
8506 BFD_HOST_64BIT_LONG=1
8507 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
8508 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
8509 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
8510 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
8511 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
8514 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
8515 BFD_HOST_64_BIT_DEFINED=1
8516 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
8517 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
8526 # Put a plausible default for CC_FOR_BUILD in Makefile.
8527 if test -z "$CC_FOR_BUILD"; then
8528 if test "x$cross_compiling" = "xno"; then
8529 CC_FOR_BUILD='$(CC)'
8530 else
8531 CC_FOR_BUILD=gcc
8535 # Also set EXEEXT_FOR_BUILD.
8536 if test "x$cross_compiling" = "xno"; then
8537 EXEEXT_FOR_BUILD='$(EXEEXT)'
8538 else
8539 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
8540 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
8541 if test "${bfd_cv_build_exeext+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 else
8544 rm -f conftest*
8545 echo 'int main () { return 0; }' > conftest.c
8546 bfd_cv_build_exeext=
8547 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
8548 for file in conftest.*; do
8549 case $file in
8550 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
8551 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
8552 esac
8553 done
8554 rm -f conftest*
8555 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
8557 echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5
8558 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
8559 EXEEXT_FOR_BUILD=""
8560 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
8570 for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h
8572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8574 echo "$as_me:$LINENO: checking for $ac_header" >&5
8575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8581 else
8582 # Is the header compilable?
8583 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 #include <$ac_header>
8593 _ACEOF
8594 rm -f conftest.$ac_objext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8596 (eval $ac_compile) 2>conftest.er1
8597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
8603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 (eval $ac_try) 2>&5
8606 ac_status=$?
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); }; } &&
8609 { ac_try='test -s conftest.$ac_objext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8611 (eval $ac_try) 2>&5
8612 ac_status=$?
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_header_compiler=yes
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_header_compiler=no
8622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624 echo "${ECHO_T}$ac_header_compiler" >&6
8626 # Is the header present?
8627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h. */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8635 #include <$ac_header>
8636 _ACEOF
8637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8639 ac_status=$?
8640 grep -v '^ *+' conftest.er1 >conftest.err
8641 rm -f conftest.er1
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } >/dev/null; then
8645 if test -s conftest.err; then
8646 ac_cpp_err=$ac_c_preproc_warn_flag
8647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8648 else
8649 ac_cpp_err=
8651 else
8652 ac_cpp_err=yes
8654 if test -z "$ac_cpp_err"; then
8655 ac_header_preproc=yes
8656 else
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_header_preproc=no
8662 rm -f conftest.err conftest.$ac_ext
8663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8664 echo "${ECHO_T}$ac_header_preproc" >&6
8666 # So? What about this header?
8667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8668 yes:no: )
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8673 ac_header_preproc=yes
8675 no:yes:* )
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8689 cat <<\_ASBOX
8690 ## ------------------------------------------ ##
8691 ## Report this to the AC_PACKAGE_NAME lists. ##
8692 ## ------------------------------------------ ##
8693 _ASBOX
8695 sed "s/^/$as_me: WARNING: /" >&2
8697 esac
8698 echo "$as_me:$LINENO: checking for $ac_header" >&5
8699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703 eval "$as_ac_Header=\$ac_header_preproc"
8705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710 cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 _ACEOF
8716 done
8721 for ac_header in fcntl.h sys/file.h sys/time.h
8723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8725 echo "$as_me:$LINENO: checking for $ac_header" >&5
8726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732 else
8733 # Is the header compilable?
8734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #include <$ac_header>
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8747 (eval $ac_compile) 2>conftest.er1
8748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest.$ac_objext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_header_compiler=yes
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 ac_header_compiler=no
8773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8775 echo "${ECHO_T}$ac_header_compiler" >&6
8777 # Is the header present?
8778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8780 cat >conftest.$ac_ext <<_ACEOF
8781 /* confdefs.h. */
8782 _ACEOF
8783 cat confdefs.h >>conftest.$ac_ext
8784 cat >>conftest.$ac_ext <<_ACEOF
8785 /* end confdefs.h. */
8786 #include <$ac_header>
8787 _ACEOF
8788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8790 ac_status=$?
8791 grep -v '^ *+' conftest.er1 >conftest.err
8792 rm -f conftest.er1
8793 cat conftest.err >&5
8794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795 (exit $ac_status); } >/dev/null; then
8796 if test -s conftest.err; then
8797 ac_cpp_err=$ac_c_preproc_warn_flag
8798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8799 else
8800 ac_cpp_err=
8802 else
8803 ac_cpp_err=yes
8805 if test -z "$ac_cpp_err"; then
8806 ac_header_preproc=yes
8807 else
8808 echo "$as_me: failed program was:" >&5
8809 sed 's/^/| /' conftest.$ac_ext >&5
8811 ac_header_preproc=no
8813 rm -f conftest.err conftest.$ac_ext
8814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8815 echo "${ECHO_T}$ac_header_preproc" >&6
8817 # So? What about this header?
8818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8819 yes:no: )
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8824 ac_header_preproc=yes
8826 no:yes:* )
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8840 cat <<\_ASBOX
8841 ## ------------------------------------------ ##
8842 ## Report this to the AC_PACKAGE_NAME lists. ##
8843 ## ------------------------------------------ ##
8844 _ASBOX
8846 sed "s/^/$as_me: WARNING: /" >&2
8848 esac
8849 echo "$as_me:$LINENO: checking for $ac_header" >&5
8850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 eval "$as_ac_Header=\$ac_header_preproc"
8856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8861 cat >>confdefs.h <<_ACEOF
8862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863 _ACEOF
8867 done
8869 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8870 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8871 if test "${ac_cv_header_time+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874 cat >conftest.$ac_ext <<_ACEOF
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <sys/types.h>
8881 #include <sys/time.h>
8882 #include <time.h>
8885 main ()
8887 if ((struct tm *) 0)
8888 return 0;
8890 return 0;
8892 _ACEOF
8893 rm -f conftest.$ac_objext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8895 (eval $ac_compile) 2>conftest.er1
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 (eval $ac_try) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; } &&
8908 { ac_try='test -s conftest.$ac_objext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_header_time=yes
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_header_time=no
8921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8923 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8924 echo "${ECHO_T}$ac_cv_header_time" >&6
8925 if test $ac_cv_header_time = yes; then
8927 cat >>confdefs.h <<\_ACEOF
8928 #define TIME_WITH_SYS_TIME 1
8929 _ACEOF
8938 ac_header_dirent=no
8939 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8940 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8941 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8942 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8952 #include <sys/types.h>
8953 #include <$ac_hdr>
8956 main ()
8958 if ((DIR *) 0)
8959 return 0;
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8966 (eval $ac_compile) 2>conftest.er1
8967 ac_status=$?
8968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 (eval $ac_try) 2>&5
8976 ac_status=$?
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; } &&
8979 { ac_try='test -s conftest.$ac_objext'
8980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 (eval $ac_try) 2>&5
8982 ac_status=$?
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 eval "$as_ac_Header=yes"
8986 else
8987 echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8990 eval "$as_ac_Header=no"
8992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8997 cat >>confdefs.h <<_ACEOF
8998 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8999 _ACEOF
9001 ac_header_dirent=$ac_hdr; break
9004 done
9005 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9006 if test $ac_header_dirent = dirent.h; then
9007 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9008 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9009 if test "${ac_cv_search_opendir+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 ac_func_search_save_LIBS=$LIBS
9013 ac_cv_search_opendir=no
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9021 /* Override any gcc2 internal prototype to avoid an error. */
9022 #ifdef __cplusplus
9023 extern "C"
9024 #endif
9025 /* We use char because int might match the return type of a gcc2
9026 builtin and then its argument prototype would still apply. */
9027 char opendir ();
9029 main ()
9031 opendir ();
9033 return 0;
9035 _ACEOF
9036 rm -f conftest.$ac_objext conftest$ac_exeext
9037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9038 (eval $ac_link) 2>conftest.er1
9039 ac_status=$?
9040 grep -v '^ *+' conftest.er1 >conftest.err
9041 rm -f conftest.er1
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } &&
9045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9057 ac_cv_search_opendir="none required"
9058 else
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9063 rm -f conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 if test "$ac_cv_search_opendir" = no; then
9066 for ac_lib in dir; do
9067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9068 cat >conftest.$ac_ext <<_ACEOF
9069 /* confdefs.h. */
9070 _ACEOF
9071 cat confdefs.h >>conftest.$ac_ext
9072 cat >>conftest.$ac_ext <<_ACEOF
9073 /* end confdefs.h. */
9075 /* Override any gcc2 internal prototype to avoid an error. */
9076 #ifdef __cplusplus
9077 extern "C"
9078 #endif
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9081 char opendir ();
9083 main ()
9085 opendir ();
9087 return 0;
9089 _ACEOF
9090 rm -f conftest.$ac_objext conftest$ac_exeext
9091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9092 (eval $ac_link) 2>conftest.er1
9093 ac_status=$?
9094 grep -v '^ *+' conftest.er1 >conftest.err
9095 rm -f conftest.er1
9096 cat conftest.err >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); } &&
9099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 (eval $ac_try) 2>&5
9102 ac_status=$?
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest$ac_exeext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 (eval $ac_try) 2>&5
9108 ac_status=$?
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_search_opendir="-l$ac_lib"
9112 break
9113 else
9114 echo "$as_me: failed program was:" >&5
9115 sed 's/^/| /' conftest.$ac_ext >&5
9118 rm -f conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120 done
9122 LIBS=$ac_func_search_save_LIBS
9124 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9125 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9126 if test "$ac_cv_search_opendir" != no; then
9127 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9131 else
9132 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9133 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9134 if test "${ac_cv_search_opendir+set}" = set; then
9135 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 else
9137 ac_func_search_save_LIBS=$LIBS
9138 ac_cv_search_opendir=no
9139 cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h. */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9146 /* Override any gcc2 internal prototype to avoid an error. */
9147 #ifdef __cplusplus
9148 extern "C"
9149 #endif
9150 /* We use char because int might match the return type of a gcc2
9151 builtin and then its argument prototype would still apply. */
9152 char opendir ();
9154 main ()
9156 opendir ();
9158 return 0;
9160 _ACEOF
9161 rm -f conftest.$ac_objext conftest$ac_exeext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9163 (eval $ac_link) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 ac_cv_search_opendir="none required"
9183 else
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.$ac_ext >&5
9188 rm -f conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 if test "$ac_cv_search_opendir" = no; then
9191 for ac_lib in x; do
9192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h. */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9200 /* Override any gcc2 internal prototype to avoid an error. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 /* We use char because int might match the return type of a gcc2
9205 builtin and then its argument prototype would still apply. */
9206 char opendir ();
9208 main ()
9210 opendir ();
9212 return 0;
9214 _ACEOF
9215 rm -f conftest.$ac_objext conftest$ac_exeext
9216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9217 (eval $ac_link) 2>conftest.er1
9218 ac_status=$?
9219 grep -v '^ *+' conftest.er1 >conftest.err
9220 rm -f conftest.er1
9221 cat conftest.err >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); } &&
9224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232 (eval $ac_try) 2>&5
9233 ac_status=$?
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; }; then
9236 ac_cv_search_opendir="-l$ac_lib"
9237 break
9238 else
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9243 rm -f conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 done
9247 LIBS=$ac_func_search_save_LIBS
9249 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9250 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9251 if test "$ac_cv_search_opendir" != no; then
9252 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9265 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
9267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9268 echo "$as_me:$LINENO: checking for $ac_func" >&5
9269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9270 if eval "test \"\${$as_ac_var+set}\" = set"; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272 else
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9281 #define $ac_func innocuous_$ac_func
9283 /* System header to define __stub macros and hopefully few prototypes,
9284 which can conflict with char $ac_func (); below.
9285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286 <limits.h> exists even on freestanding compilers. */
9288 #ifdef __STDC__
9289 # include <limits.h>
9290 #else
9291 # include <assert.h>
9292 #endif
9294 #undef $ac_func
9296 /* Override any gcc2 internal prototype to avoid an error. */
9297 #ifdef __cplusplus
9298 extern "C"
9300 #endif
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char $ac_func ();
9304 /* The GNU C library defines this for functions which it implements
9305 to always fail with ENOSYS. Some functions are actually named
9306 something starting with __ and the normal name is an alias. */
9307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9308 choke me
9309 #else
9310 char (*f) () = $ac_func;
9311 #endif
9312 #ifdef __cplusplus
9314 #endif
9317 main ()
9319 return f != $ac_func;
9321 return 0;
9323 _ACEOF
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>conftest.er1
9327 ac_status=$?
9328 grep -v '^ *+' conftest.er1 >conftest.err
9329 rm -f conftest.er1
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 (exit $ac_status); } &&
9333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 (eval $ac_try) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); }; } &&
9339 { ac_try='test -s conftest$ac_exeext'
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 eval "$as_ac_var=yes"
9346 else
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.$ac_ext >&5
9350 eval "$as_ac_var=no"
9352 rm -f conftest.err conftest.$ac_objext \
9353 conftest$ac_exeext conftest.$ac_ext
9355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9357 if test `eval echo '${'$as_ac_var'}'` = yes; then
9358 cat >>confdefs.h <<_ACEOF
9359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9360 _ACEOF
9363 done
9366 for ac_func in strtoull
9368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9369 echo "$as_me:$LINENO: checking for $ac_func" >&5
9370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9371 if eval "test \"\${$as_ac_var+set}\" = set"; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 else
9374 cat >conftest.$ac_ext <<_ACEOF
9375 /* confdefs.h. */
9376 _ACEOF
9377 cat confdefs.h >>conftest.$ac_ext
9378 cat >>conftest.$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9382 #define $ac_func innocuous_$ac_func
9384 /* System header to define __stub macros and hopefully few prototypes,
9385 which can conflict with char $ac_func (); below.
9386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9387 <limits.h> exists even on freestanding compilers. */
9389 #ifdef __STDC__
9390 # include <limits.h>
9391 #else
9392 # include <assert.h>
9393 #endif
9395 #undef $ac_func
9397 /* Override any gcc2 internal prototype to avoid an error. */
9398 #ifdef __cplusplus
9399 extern "C"
9401 #endif
9402 /* We use char because int might match the return type of a gcc2
9403 builtin and then its argument prototype would still apply. */
9404 char $ac_func ();
9405 /* The GNU C library defines this for functions which it implements
9406 to always fail with ENOSYS. Some functions are actually named
9407 something starting with __ and the normal name is an alias. */
9408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9409 choke me
9410 #else
9411 char (*f) () = $ac_func;
9412 #endif
9413 #ifdef __cplusplus
9415 #endif
9418 main ()
9420 return f != $ac_func;
9422 return 0;
9424 _ACEOF
9425 rm -f conftest.$ac_objext conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 (eval $ac_try) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9446 eval "$as_ac_var=yes"
9447 else
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 eval "$as_ac_var=no"
9453 rm -f conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9458 if test `eval echo '${'$as_ac_var'}'` = yes; then
9459 cat >>confdefs.h <<_ACEOF
9460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9461 _ACEOF
9464 done
9468 case "${host}" in
9469 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
9471 cat >>confdefs.h <<\_ACEOF
9472 #define USE_BINARY_FOPEN 1
9473 _ACEOF
9475 esac
9477 echo "$as_me:$LINENO: checking whether strstr must be declared" >&5
9478 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
9479 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 /* confdefs.h. */
9484 _ACEOF
9485 cat confdefs.h >>conftest.$ac_ext
9486 cat >>conftest.$ac_ext <<_ACEOF
9487 /* end confdefs.h. */
9489 #include <stdio.h>
9490 #ifdef HAVE_STRING_H
9491 #include <string.h>
9492 #else
9493 #ifdef HAVE_STRINGS_H
9494 #include <strings.h>
9495 #endif
9496 #endif
9497 #ifdef HAVE_STDLIB_H
9498 #include <stdlib.h>
9499 #endif
9500 #ifdef HAVE_UNISTD_H
9501 #include <unistd.h>
9502 #endif
9504 main ()
9506 char *(*pfn) = (char *(*)) strstr
9508 return 0;
9510 _ACEOF
9511 rm -f conftest.$ac_objext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9513 (eval $ac_compile) 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9522 (eval $ac_try) 2>&5
9523 ac_status=$?
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9528 (eval $ac_try) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 bfd_cv_decl_needed_strstr=no
9533 else
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 bfd_cv_decl_needed_strstr=yes
9539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9542 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5
9543 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
9544 if test $bfd_cv_decl_needed_strstr = yes; then
9546 cat >>confdefs.h <<\_ACEOF
9547 #define NEED_DECLARATION_STRSTR 1
9548 _ACEOF
9552 echo "$as_me:$LINENO: checking whether malloc must be declared" >&5
9553 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
9554 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 cat >conftest.$ac_ext <<_ACEOF
9558 /* confdefs.h. */
9559 _ACEOF
9560 cat confdefs.h >>conftest.$ac_ext
9561 cat >>conftest.$ac_ext <<_ACEOF
9562 /* end confdefs.h. */
9564 #include <stdio.h>
9565 #ifdef HAVE_STRING_H
9566 #include <string.h>
9567 #else
9568 #ifdef HAVE_STRINGS_H
9569 #include <strings.h>
9570 #endif
9571 #endif
9572 #ifdef HAVE_STDLIB_H
9573 #include <stdlib.h>
9574 #endif
9575 #ifdef HAVE_UNISTD_H
9576 #include <unistd.h>
9577 #endif
9579 main ()
9581 char *(*pfn) = (char *(*)) malloc
9583 return 0;
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>conftest.er1
9589 ac_status=$?
9590 grep -v '^ *+' conftest.er1 >conftest.err
9591 rm -f conftest.er1
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597 (eval $ac_try) 2>&5
9598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9603 (eval $ac_try) 2>&5
9604 ac_status=$?
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 bfd_cv_decl_needed_malloc=no
9608 else
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 bfd_cv_decl_needed_malloc=yes
9614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9617 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5
9618 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
9619 if test $bfd_cv_decl_needed_malloc = yes; then
9621 cat >>confdefs.h <<\_ACEOF
9622 #define NEED_DECLARATION_MALLOC 1
9623 _ACEOF
9627 echo "$as_me:$LINENO: checking whether realloc must be declared" >&5
9628 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
9629 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
9630 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632 cat >conftest.$ac_ext <<_ACEOF
9633 /* confdefs.h. */
9634 _ACEOF
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9639 #include <stdio.h>
9640 #ifdef HAVE_STRING_H
9641 #include <string.h>
9642 #else
9643 #ifdef HAVE_STRINGS_H
9644 #include <strings.h>
9645 #endif
9646 #endif
9647 #ifdef HAVE_STDLIB_H
9648 #include <stdlib.h>
9649 #endif
9650 #ifdef HAVE_UNISTD_H
9651 #include <unistd.h>
9652 #endif
9654 main ()
9656 char *(*pfn) = (char *(*)) realloc
9658 return 0;
9660 _ACEOF
9661 rm -f conftest.$ac_objext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9663 (eval $ac_compile) 2>conftest.er1
9664 ac_status=$?
9665 grep -v '^ *+' conftest.er1 >conftest.err
9666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest.$ac_objext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682 bfd_cv_decl_needed_realloc=no
9683 else
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 bfd_cv_decl_needed_realloc=yes
9689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9692 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5
9693 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
9694 if test $bfd_cv_decl_needed_realloc = yes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define NEED_DECLARATION_REALLOC 1
9698 _ACEOF
9702 echo "$as_me:$LINENO: checking whether free must be declared" >&5
9703 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
9704 if test "${bfd_cv_decl_needed_free+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9706 else
9707 cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h. */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h. */
9714 #include <stdio.h>
9715 #ifdef HAVE_STRING_H
9716 #include <string.h>
9717 #else
9718 #ifdef HAVE_STRINGS_H
9719 #include <strings.h>
9720 #endif
9721 #endif
9722 #ifdef HAVE_STDLIB_H
9723 #include <stdlib.h>
9724 #endif
9725 #ifdef HAVE_UNISTD_H
9726 #include <unistd.h>
9727 #endif
9729 main ()
9731 char *(*pfn) = (char *(*)) free
9733 return 0;
9735 _ACEOF
9736 rm -f conftest.$ac_objext
9737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738 (eval $ac_compile) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } &&
9745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9747 (eval $ac_try) 2>&5
9748 ac_status=$?
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest.$ac_objext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753 (eval $ac_try) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 bfd_cv_decl_needed_free=no
9758 else
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 bfd_cv_decl_needed_free=yes
9764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9767 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5
9768 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
9769 if test $bfd_cv_decl_needed_free = yes; then
9771 cat >>confdefs.h <<\_ACEOF
9772 #define NEED_DECLARATION_FREE 1
9773 _ACEOF
9777 echo "$as_me:$LINENO: checking whether getenv must be declared" >&5
9778 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
9779 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 #include <stdio.h>
9790 #ifdef HAVE_STRING_H
9791 #include <string.h>
9792 #else
9793 #ifdef HAVE_STRINGS_H
9794 #include <strings.h>
9795 #endif
9796 #endif
9797 #ifdef HAVE_STDLIB_H
9798 #include <stdlib.h>
9799 #endif
9800 #ifdef HAVE_UNISTD_H
9801 #include <unistd.h>
9802 #endif
9804 main ()
9806 char *(*pfn) = (char *(*)) getenv
9808 return 0;
9810 _ACEOF
9811 rm -f conftest.$ac_objext
9812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9813 (eval $ac_compile) 2>conftest.er1
9814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
9820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest.$ac_objext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9828 (eval $ac_try) 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 bfd_cv_decl_needed_getenv=no
9833 else
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9837 bfd_cv_decl_needed_getenv=yes
9839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_getenv" >&5
9843 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
9844 if test $bfd_cv_decl_needed_getenv = yes; then
9846 cat >>confdefs.h <<\_ACEOF
9847 #define NEED_DECLARATION_GETENV 1
9848 _ACEOF
9853 # If we are configured native, pick a core file support file.
9854 COREFILE=
9855 COREFLAG=
9856 TRAD_HEADER=
9857 if test "${target}" = "${host}"; then
9858 case "${host}" in
9859 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
9860 COREFILE=''
9862 alpha*-*-linux-gnu*)
9863 COREFILE=trad-core.lo
9864 TRAD_HEADER='"hosts/alphalinux.h"'
9866 alpha*-*-netbsd* | alpha*-*-openbsd*)
9867 COREFILE=netbsd-core.lo
9869 alpha*-*-*) COREFILE=osf-core.lo ;;
9870 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
9871 COREFILE='' ;;
9872 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
9873 arm-*-riscix) COREFILE=trad-core.lo ;;
9874 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
9875 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
9876 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
9877 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
9878 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
9879 hppa*-*-netbsd* | hppa*-*-openbsd*)
9880 COREFILE=netbsd-core.lo
9883 i370-*-*)
9884 COREFILE=trad-core.lo
9885 TRAD_HEADER='"hosts/i370linux.h"'
9888 i[3-7]86-sequent-bsd*)
9889 COREFILE=trad-core.lo
9890 TRAD_HEADER='"hosts/symmetry.h"'
9892 i[3-7]86-sequent-sysv4*) ;;
9893 i[3-7]86-sequent-sysv*)
9894 COREFILE=trad-core.lo
9895 TRAD_HEADER='"hosts/symmetry.h"'
9897 i[3-7]86-*-bsdi)
9898 COREFILE=
9900 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*)
9901 COREFILE=trad-core.lo
9902 TRAD_HEADER='"hosts/i386bsd.h"'
9904 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu)
9905 COREFILE=''
9906 TRAD_HEADER='"hosts/i386bsd.h"'
9908 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
9909 COREFILE=netbsd-core.lo
9911 i[3-7]86-esix-sysv3*)
9912 COREFILE=trad-core.lo
9913 TRAD_HEADER='"hosts/esix.h"'
9915 i[3-7]86-*-sco3.2v5*)
9916 COREFILE=sco5-core.lo
9918 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
9919 COREFILE=trad-core.lo
9920 TRAD_HEADER='"hosts/i386sco.h"'
9922 i[3-7]86-*-mach3*)
9923 COREFILE=trad-core.lo
9924 TRAD_HEADER='"hosts/i386mach3.h"'
9926 i[3-7]86-*-linux-gnu*)
9927 COREFILE=trad-core.lo
9928 TRAD_HEADER='"hosts/i386linux.h"'
9930 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
9931 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
9932 i860-*-mach3* | i860-*-osf1*)
9933 COREFILE=trad-core.lo
9934 TRAD_HEADER='"hosts/i860mach3.h"'
9936 mips-*-netbsd* | mips*-*-openbsd*)
9937 COREFILE=netbsd-core.lo
9939 mips-dec-*)
9940 COREFILE=trad-core.lo
9941 TRAD_HEADER='"hosts/decstation.h"'
9943 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
9944 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
9945 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
9946 mips-*-sysv4*) ;;
9947 mips-*-sysv* | mips-*-riscos*)
9948 COREFILE=trad-core.lo
9949 TRAD_HEADER='"hosts/riscos.h"'
9951 mips-sony-bsd*)
9952 COREFILE=trad-core.lo
9953 TRAD_HEADER='"hosts/news-mips.h"'
9955 m68*-bull*-sysv*)
9956 COREFILE=trad-core.lo
9957 TRAD_HEADER='"hosts/dpx2.h"'
9959 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
9960 m68*-hp-bsd*)
9961 COREFILE=trad-core.lo
9962 TRAD_HEADER='"hosts/hp300bsd.h"'
9964 m68*-*-linux-gnu*)
9965 COREFILE=trad-core.lo
9966 TRAD_HEADER='"hosts/m68klinux.h"'
9968 m68*-motorola-sysv*)
9969 COREFILE=trad-core.lo
9970 TRAD_HEADER='"hosts/delta68.h"'
9972 m68*-sony-*)
9973 COREFILE=trad-core.lo
9974 TRAD_HEADER='"hosts/news.h"'
9976 m68*-*-netbsd* | m68*-*-openbsd*)
9977 COREFILE=netbsd-core.lo
9979 m68*-apple-aux*)
9980 COREFILE=trad-core.lo
9981 TRAD_HEADER='"hosts/m68kaux.h"'
9983 m88*-*-sysv4*)
9985 m88*-motorola-sysv*)
9986 COREFILE=ptrace-core.lo
9988 m88*-*-mach3*)
9989 COREFILE=trad-core.lo
9990 TRAD_HEADER='"hosts/m88kmach3.h"'
9992 m88*-*-openbsd*)
9993 COREFILE=netbsd-core.lo
9995 ns32k-pc532-mach)
9996 COREFILE=trad-core.lo
9997 TRAD_HEADER='"hosts/pc532mach.h"'
9999 ns32k-*-netbsd* | ns32k-*-openbsd*)
10000 COREFILE=netbsd-core.lo
10002 rs6000-*-lynx*)
10003 COREFILE=lynx-core.lo
10005 rs6000-*-aix5.* | powerpc-*-aix5.*)
10006 COREFILE=rs6000-core.lo
10007 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
10009 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
10010 COREFILE=rs6000-core.lo
10011 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
10012 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
10013 # have c_impl as a member of struct core_dumpx
10014 echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5
10015 echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022 #include <core.h>
10024 main ()
10026 struct core_dumpx c; c.c_impl = 0;
10028 return 0;
10030 _ACEOF
10031 rm -f conftest.$ac_objext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10033 (eval $ac_compile) 2>conftest.er1
10034 ac_status=$?
10035 grep -v '^ *+' conftest.er1 >conftest.err
10036 rm -f conftest.er1
10037 cat conftest.err >&5
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; } &&
10046 { ac_try='test -s conftest.$ac_objext'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10053 cat >>confdefs.h <<\_ACEOF
10054 #define HAVE_ST_C_IMPL 1
10055 _ACEOF
10057 echo "$as_me:$LINENO: result: yes" >&5
10058 echo "${ECHO_T}yes" >&6
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10063 echo "$as_me:$LINENO: result: no" >&5
10064 echo "${ECHO_T}no" >&6
10066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10068 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
10069 rs6000-*-*) COREFILE=rs6000-core.lo ;;
10070 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
10071 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
10072 powerpc-*-beos*) ;;
10073 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
10074 COREFILE='' ;;
10075 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
10076 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
10077 s390*-*-*) COREFILE=trad-core.lo ;;
10078 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
10079 sparc-*-netbsd* | sparc*-*-openbsd*)
10080 COREFILE=netbsd-core.lo
10082 tahoe-*-*)
10083 COREFILE=trad-core.lo
10084 TRAD_HEADER='"hosts/tahoe.h"'
10086 vax-*-netbsd* | vax-*-openbsd*)
10087 COREFILE=netbsd-core.lo
10089 vax-*-ultrix2*)
10090 COREFILE=trad-core.lo
10091 TRAD_HEADER='"hosts/vaxult2.h"'
10093 vax-*-ultrix*)
10094 COREFILE=trad-core.lo
10095 TRAD_HEADER='"hosts/vaxult2.h"'
10097 vax-*-linux-gnu*)
10098 COREFILE=trad-core.lo
10099 TRAD_HEADER='"hosts/vaxlinux.h"'
10101 vax-*-*)
10102 COREFILE=trad-core.lo
10103 TRAD_HEADER='"hosts/vaxbsd.h"'
10105 x86_64-*-netbsd* | x86_64-*-openbsd*)
10106 COREFILE=netbsd-core.lo
10108 esac
10110 case "$COREFILE" in
10111 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
10112 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
10113 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
10114 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
10115 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
10116 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
10117 osf-core.lo) COREFLAG=-DOSF_CORE ;;
10118 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
10119 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
10120 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
10121 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
10122 esac
10124 # ELF corefile support has several flavors, but all of
10125 # them use something called <sys/procfs.h>
10127 for ac_header in sys/procfs.h
10129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10131 echo "$as_me:$LINENO: checking for $ac_header" >&5
10132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10137 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10138 else
10139 # Is the header compilable?
10140 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10142 cat >conftest.$ac_ext <<_ACEOF
10143 /* confdefs.h. */
10144 _ACEOF
10145 cat confdefs.h >>conftest.$ac_ext
10146 cat >>conftest.$ac_ext <<_ACEOF
10147 /* end confdefs.h. */
10148 $ac_includes_default
10149 #include <$ac_header>
10150 _ACEOF
10151 rm -f conftest.$ac_objext
10152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153 (eval $ac_compile) 2>conftest.er1
10154 ac_status=$?
10155 grep -v '^ *+' conftest.er1 >conftest.err
10156 rm -f conftest.er1
10157 cat conftest.err >&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10163 ac_status=$?
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest.$ac_objext'
10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168 (eval $ac_try) 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; }; then
10172 ac_header_compiler=yes
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_header_compiler=no
10179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10181 echo "${ECHO_T}$ac_header_compiler" >&6
10183 # Is the header present?
10184 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10185 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 #include <$ac_header>
10193 _ACEOF
10194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10195 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10196 ac_status=$?
10197 grep -v '^ *+' conftest.er1 >conftest.err
10198 rm -f conftest.er1
10199 cat conftest.err >&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); } >/dev/null; then
10202 if test -s conftest.err; then
10203 ac_cpp_err=$ac_c_preproc_warn_flag
10204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10205 else
10206 ac_cpp_err=
10208 else
10209 ac_cpp_err=yes
10211 if test -z "$ac_cpp_err"; then
10212 ac_header_preproc=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_header_preproc=no
10219 rm -f conftest.err conftest.$ac_ext
10220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10221 echo "${ECHO_T}$ac_header_preproc" >&6
10223 # So? What about this header?
10224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10225 yes:no: )
10226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10230 ac_header_preproc=yes
10232 no:yes:* )
10233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10246 cat <<\_ASBOX
10247 ## ------------------------------------------ ##
10248 ## Report this to the AC_PACKAGE_NAME lists. ##
10249 ## ------------------------------------------ ##
10250 _ASBOX
10252 sed "s/^/$as_me: WARNING: /" >&2
10254 esac
10255 echo "$as_me:$LINENO: checking for $ac_header" >&5
10256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 eval "$as_ac_Header=\$ac_header_preproc"
10262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10267 cat >>confdefs.h <<_ACEOF
10268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10269 _ACEOF
10273 done
10275 if test "$ac_cv_header_sys_procfs_h" = yes; then
10276 echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5
10277 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
10278 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10288 #define _SYSCALL32
10289 #include <sys/procfs.h>
10291 main ()
10293 prstatus_t avar
10295 return 0;
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300 (eval $ac_compile) 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10310 ac_status=$?
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest.$ac_objext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 bfd_cv_have_sys_procfs_type_prstatus_t=yes
10320 else
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 bfd_cv_have_sys_procfs_type_prstatus_t=no
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
10332 cat >>confdefs.h <<\_ACEOF
10333 #define HAVE_PRSTATUS_T 1
10334 _ACEOF
10337 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
10338 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
10340 echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5
10341 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
10342 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
10343 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h. */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10352 #define _SYSCALL32
10353 #include <sys/procfs.h>
10355 main ()
10357 prstatus32_t avar
10359 return 0;
10361 _ACEOF
10362 rm -f conftest.$ac_objext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>conftest.er1
10365 ac_status=$?
10366 grep -v '^ *+' conftest.er1 >conftest.err
10367 rm -f conftest.er1
10368 cat conftest.err >&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest.$ac_objext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 bfd_cv_have_sys_procfs_type_prstatus32_t=no
10391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10394 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
10396 cat >>confdefs.h <<\_ACEOF
10397 #define HAVE_PRSTATUS32_T 1
10398 _ACEOF
10401 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
10402 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
10404 echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5
10405 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10406 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10408 else
10409 cat >conftest.$ac_ext <<_ACEOF
10410 /* confdefs.h. */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h. */
10416 #define _SYSCALL32
10417 #include <sys/procfs.h>
10419 main ()
10421 prstatus_t avar; void* aref = (void*) &avar.pr_who
10423 return 0;
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; } &&
10441 { ac_try='test -s conftest.$ac_objext'
10442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443 (eval $ac_try) 2>&5
10444 ac_status=$?
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; }; then
10447 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
10448 else
10449 echo "$as_me: failed program was:" >&5
10450 sed 's/^/| /' conftest.$ac_ext >&5
10452 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
10455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10458 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_PRSTATUS_T_PR_WHO 1
10462 _ACEOF
10465 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
10466 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
10468 echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
10469 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
10470 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473 cat >conftest.$ac_ext <<_ACEOF
10474 /* confdefs.h. */
10475 _ACEOF
10476 cat confdefs.h >>conftest.$ac_ext
10477 cat >>conftest.$ac_ext <<_ACEOF
10478 /* end confdefs.h. */
10480 #define _SYSCALL32
10481 #include <sys/procfs.h>
10483 main ()
10485 prstatus32_t avar; void* aref = (void*) &avar.pr_who
10487 return 0;
10489 _ACEOF
10490 rm -f conftest.$ac_objext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10492 (eval $ac_compile) 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
10519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10522 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
10524 cat >>confdefs.h <<\_ACEOF
10525 #define HAVE_PRSTATUS32_T_PR_WHO 1
10526 _ACEOF
10529 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
10530 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
10532 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
10533 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
10534 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 else
10537 cat >conftest.$ac_ext <<_ACEOF
10538 /* confdefs.h. */
10539 _ACEOF
10540 cat confdefs.h >>conftest.$ac_ext
10541 cat >>conftest.$ac_ext <<_ACEOF
10542 /* end confdefs.h. */
10544 #define _SYSCALL32
10545 #include <sys/procfs.h>
10547 main ()
10549 pstatus_t avar
10551 return 0;
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10556 (eval $ac_compile) 2>conftest.er1
10557 ac_status=$?
10558 grep -v '^ *+' conftest.er1 >conftest.err
10559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; } &&
10569 { ac_try='test -s conftest.$ac_objext'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10572 ac_status=$?
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; }; then
10575 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10576 else
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 bfd_cv_have_sys_procfs_type_pstatus_t=no
10583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10586 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define HAVE_PSTATUS_T 1
10590 _ACEOF
10593 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10594 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
10596 echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5
10597 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
10598 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 else
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10608 #define _SYSCALL32
10609 #include <sys/procfs.h>
10611 main ()
10613 pxstatus_t avar
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || 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 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10644 bfd_cv_have_sys_procfs_type_pxstatus_t=no
10647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10650 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
10652 cat >>confdefs.h <<\_ACEOF
10653 #define HAVE_PXSTATUS_T 1
10654 _ACEOF
10657 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
10658 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
10660 echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5
10661 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
10662 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10672 #define _SYSCALL32
10673 #include <sys/procfs.h>
10675 main ()
10677 pstatus32_t avar
10679 return 0;
10681 _ACEOF
10682 rm -f conftest.$ac_objext
10683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>conftest.er1
10685 ac_status=$?
10686 grep -v '^ *+' conftest.er1 >conftest.err
10687 rm -f conftest.er1
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } &&
10691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 bfd_cv_have_sys_procfs_type_pstatus32_t=no
10711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10714 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
10716 cat >>confdefs.h <<\_ACEOF
10717 #define HAVE_PSTATUS32_T 1
10718 _ACEOF
10721 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
10722 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
10724 echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5
10725 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
10726 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 else
10729 cat >conftest.$ac_ext <<_ACEOF
10730 /* confdefs.h. */
10731 _ACEOF
10732 cat confdefs.h >>conftest.$ac_ext
10733 cat >>conftest.$ac_ext <<_ACEOF
10734 /* end confdefs.h. */
10736 #define _SYSCALL32
10737 #include <sys/procfs.h>
10739 main ()
10741 prpsinfo_t avar
10743 return 0;
10745 _ACEOF
10746 rm -f conftest.$ac_objext
10747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748 (eval $ac_compile) 2>conftest.er1
10749 ac_status=$?
10750 grep -v '^ *+' conftest.er1 >conftest.err
10751 rm -f conftest.er1
10752 cat conftest.err >&5
10753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754 (exit $ac_status); } &&
10755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }; } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10764 ac_status=$?
10765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
10768 else
10769 echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10772 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
10775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10778 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_PRPSINFO_T 1
10782 _ACEOF
10785 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
10786 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
10788 echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5
10789 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
10790 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 else
10793 cat >conftest.$ac_ext <<_ACEOF
10794 /* confdefs.h. */
10795 _ACEOF
10796 cat confdefs.h >>conftest.$ac_ext
10797 cat >>conftest.$ac_ext <<_ACEOF
10798 /* end confdefs.h. */
10800 #define _SYSCALL32
10801 #include <sys/procfs.h>
10803 main ()
10805 prpsinfo32_t avar
10807 return 0;
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>conftest.er1
10813 ac_status=$?
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); } &&
10819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; } &&
10825 { ac_try='test -s conftest.$ac_objext'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
10839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
10844 cat >>confdefs.h <<\_ACEOF
10845 #define HAVE_PRPSINFO32_T 1
10846 _ACEOF
10849 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
10850 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
10852 echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5
10853 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
10854 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 #define _SYSCALL32
10865 #include <sys/procfs.h>
10867 main ()
10869 psinfo_t avar
10871 return 0;
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10876 (eval $ac_compile) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 bfd_cv_have_sys_procfs_type_psinfo_t=yes
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10900 bfd_cv_have_sys_procfs_type_psinfo_t=no
10903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
10908 cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_PSINFO_T 1
10910 _ACEOF
10913 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
10914 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
10916 echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5
10917 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
10918 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10928 #define _SYSCALL32
10929 #include <sys/procfs.h>
10931 main ()
10933 psinfo32_t avar
10935 return 0;
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10940 (eval $ac_compile) 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10949 (eval $ac_try) 2>&5
10950 ac_status=$?
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; }; then
10959 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
10960 else
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 bfd_cv_have_sys_procfs_type_psinfo32_t=no
10967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10970 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
10972 cat >>confdefs.h <<\_ACEOF
10973 #define HAVE_PSINFO32_T 1
10974 _ACEOF
10977 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
10978 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
10980 echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5
10981 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
10982 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
10983 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985 cat >conftest.$ac_ext <<_ACEOF
10986 /* confdefs.h. */
10987 _ACEOF
10988 cat confdefs.h >>conftest.$ac_ext
10989 cat >>conftest.$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10992 #define _SYSCALL32
10993 #include <sys/procfs.h>
10995 main ()
10997 lwpstatus_t avar
10999 return 0;
11001 _ACEOF
11002 rm -f conftest.$ac_objext
11003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11004 (eval $ac_compile) 2>conftest.er1
11005 ac_status=$?
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
11024 else
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
11031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11034 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
11036 cat >>confdefs.h <<\_ACEOF
11037 #define HAVE_LWPSTATUS_T 1
11038 _ACEOF
11041 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
11042 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
11044 echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5
11045 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
11046 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */
11056 #define _SYSCALL32
11057 #include <sys/procfs.h>
11059 main ()
11061 lwpxstatus_t avar
11063 return 0;
11065 _ACEOF
11066 rm -f conftest.$ac_objext
11067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11068 (eval $ac_compile) 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } &&
11075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; } &&
11081 { ac_try='test -s conftest.$ac_objext'
11082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11083 (eval $ac_try) 2>&5
11084 ac_status=$?
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); }; }; then
11087 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
11095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11098 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
11100 cat >>confdefs.h <<\_ACEOF
11101 #define HAVE_LWPXSTATUS_T 1
11102 _ACEOF
11105 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
11106 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
11108 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
11109 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
11110 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 else
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11120 #define _SYSCALL32
11121 #include <sys/procfs.h>
11123 main ()
11125 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
11127 return 0;
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11132 (eval $ac_compile) 2>conftest.er1
11133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
11152 else
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
11159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11162 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
11164 cat >>confdefs.h <<\_ACEOF
11165 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
11166 _ACEOF
11169 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
11170 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
11172 echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
11173 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
11174 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176 else
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11184 #define _SYSCALL32
11185 #include <sys/procfs.h>
11187 main ()
11189 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
11191 return 0;
11193 _ACEOF
11194 rm -f conftest.$ac_objext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11196 (eval $ac_compile) 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; } &&
11209 { ac_try='test -s conftest.$ac_objext'
11210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211 (eval $ac_try) 2>&5
11212 ac_status=$?
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); }; }; then
11215 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
11216 else
11217 echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11220 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
11223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11226 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
11228 cat >>confdefs.h <<\_ACEOF
11229 #define HAVE_LWPSTATUS_T_PR_REG 1
11230 _ACEOF
11233 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
11234 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
11236 echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5
11237 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
11238 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 else
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11248 #define _SYSCALL32
11249 #include <sys/procfs.h>
11251 main ()
11253 win32_pstatus_t avar
11255 return 0;
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11260 (eval $ac_compile) 2>conftest.er1
11261 ac_status=$?
11262 grep -v '^ *+' conftest.er1 >conftest.err
11263 rm -f conftest.er1
11264 cat conftest.err >&5
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); } &&
11267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11276 ac_status=$?
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); }; }; then
11279 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
11280 else
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11284 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
11287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11290 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_WIN32_PSTATUS_T 1
11294 _ACEOF
11297 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
11298 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
11304 if test -n "$TRAD_HEADER"; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define TRAD_HEADER $TRAD_HEADER
11308 _ACEOF
11312 # Horrible hacks to build DLLs on Windows.
11313 WIN32LDFLAGS=
11314 WIN32LIBADD=
11315 case "${host}" in
11316 *-*-cygwin*)
11317 if test "$enable_shared" = "yes"; then
11318 WIN32LDFLAGS="-no-undefined"
11319 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
11322 *-*-linux*)
11323 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
11324 # libiberty.a.
11325 case "${host}" in
11326 mips*-*-linux*)
11327 # Linux/MIPS uses PIC by default.
11328 if test "$enable_shared" = "yes"; then
11329 WIN32LIBADD="-L../libiberty -liberty"
11333 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
11334 if test -n "$x"; then
11335 WIN32LIBADD="-L../libiberty/pic -liberty"
11338 esac
11340 esac
11344 # target stuff:
11346 # Canonicalize the secondary target names.
11347 if test -n "$enable_targets" ; then
11348 for targ in `echo $enable_targets | sed 's/,/ /g'`
11350 result=`$ac_config_sub $targ 2>/dev/null`
11351 if test -n "$result" ; then
11352 canon_targets="$canon_targets $result"
11353 else
11354 # Allow targets that config.sub doesn't recognize, like "all".
11355 canon_targets="$canon_targets $targ"
11357 done
11360 all_targets=false
11361 defvec=
11362 selvecs=
11363 assocvecs=
11364 selarchs=
11365 TDEFINES=
11366 for targ in $target $canon_targets
11368 if test "x$targ" = "xall"; then
11369 all_targets=true
11370 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
11371 else
11372 . $srcdir/config.bfd
11373 if test "x$targ" = "x$target"; then
11374 defvec=$targ_defvec
11376 selvecs="$selvecs $targ_defvec $targ_selvecs"
11377 selarchs="$selarchs $targ_archs"
11378 TDEFINES="$TDEFINES $targ_cflags"
11380 done
11383 # This processing still needs to be done if we're to decide properly whether
11384 # 64-bit support needs to be compiled in. Currently, it will be included if
11385 # the default or any other explicitly requested target requires it; it
11386 # will not be included on a 32-bit host if no 64-bit target is requested, and
11387 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
11388 # used.
11390 # uniq the default and selected vectors in all the configured targets.
11391 f=""
11392 for i in $selvecs ; do
11393 case " $f " in
11394 *" $i "*) ;;
11395 *) f="$f $i" ;;
11396 esac
11397 done
11398 selvecs="$f"
11401 # uniq the associated vectors in all the configured targets.
11402 f=""
11403 for i in $assocvecs ; do
11404 case " $f " in
11405 *" $i "*) ;;
11406 *) f="$f $i" ;;
11407 esac
11408 done
11409 assocvecs="$f"
11412 # uniq the architectures in all the configured targets.
11413 f=""
11414 for i in $selarchs ; do
11415 case " $f " in
11416 *" $i "*) ;;
11417 *) f="$f $i" ;;
11418 esac
11419 done
11420 selarchs="$f"
11422 # Target backend .o files.
11425 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
11427 for vec in $selvecs
11429 target_size=32
11430 case "$vec" in
11431 # This list is alphabetized to make it easy to compare
11432 # with the two vector lists in targets.c. For the same reason,
11433 # use one entry per line, even though this leads to long lines.
11434 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
11435 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
11436 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11437 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
11438 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11439 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
11440 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
11441 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11442 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
11443 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11444 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
11445 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11446 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
11447 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
11448 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11449 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
11450 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11451 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
11452 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
11453 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
11454 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
11455 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
11456 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
11457 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
11458 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11459 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11460 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11461 bfd_elf32_bigarm_symbian_vec)
11462 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11463 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11464 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
11465 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11466 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
11467 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
11468 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
11469 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
11470 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
11471 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11472 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
11473 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
11474 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11475 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11476 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
11477 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
11478 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11479 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
11480 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11481 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
11482 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
11483 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
11484 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
11485 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
11486 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
11487 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
11488 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
11489 bfd_elf32_littlearm_symbian_vec)
11490 tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11491 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;;
11492 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11493 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11494 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11495 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11496 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
11497 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11498 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
11499 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
11500 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
11501 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11502 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
11503 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
11504 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
11505 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
11506 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11507 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11508 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11509 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11510 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
11511 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
11512 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11513 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
11514 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11515 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
11516 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
11517 # FIXME: We include cofflink.lo not because it's needed for
11518 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
11519 # which needs it but does not list it. Should be fixed in right place.
11520 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11521 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11522 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11523 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
11524 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11525 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
11526 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11527 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11528 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
11529 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;;
11530 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11531 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11532 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
11533 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
11534 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11535 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
11536 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
11537 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
11538 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
11539 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
11540 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11541 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
11542 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11543 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
11544 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11545 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11546 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11547 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
11548 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11549 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11550 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
11551 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11552 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11553 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
11554 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
11555 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
11556 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
11557 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11558 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11559 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11560 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11561 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11562 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
11563 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
11564 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11565 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
11566 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
11567 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
11568 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11569 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11570 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
11571 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
11572 cris_aout_vec) tb="$tb aout-cris.lo" ;;
11573 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
11574 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11575 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11576 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
11577 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
11578 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
11579 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
11580 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
11581 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
11582 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
11583 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
11584 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
11585 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
11586 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
11587 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
11588 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
11589 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
11590 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
11591 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
11592 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
11593 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
11594 i386msdos_vec) tb="$tb i386msdos.lo" ;;
11595 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
11596 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
11597 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
11598 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
11599 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
11600 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11601 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
11602 ieee_vec) tb="$tb ieee.lo" ;;
11603 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
11604 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
11605 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
11606 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
11607 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
11608 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
11609 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
11610 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
11611 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
11612 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
11613 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
11614 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
11615 mach_o_be_vec) tb="$tb mach-o.lo" ;;
11616 mach_o_le_vec) tb="$tb mach-o.lo" ;;
11617 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
11618 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11619 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
11620 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11621 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
11622 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
11623 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
11624 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
11625 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
11626 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
11627 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
11628 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
11629 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
11630 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
11631 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
11632 pef_vec) tb="$tb pef.lo" ;;
11633 pef_xlib_vec) tb="$tb pef.lo" ;;
11634 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
11635 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11636 ppcboot_vec) tb="$tb ppcboot.lo" ;;
11637 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
11638 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
11639 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
11640 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11641 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11642 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11643 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
11644 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11645 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
11646 som_vec) tb="$tb som.lo" ;;
11647 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
11648 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
11649 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
11650 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
11651 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
11652 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
11653 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
11654 sym_vec) tb="$tb xsym.lo" ;;
11655 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
11656 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
11657 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
11658 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
11659 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
11660 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
11661 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
11662 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
11663 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
11664 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
11665 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
11666 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
11667 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
11668 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
11669 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
11670 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
11671 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
11672 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
11673 versados_vec) tb="$tb versados.lo" ;;
11674 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
11675 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
11676 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
11677 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
11678 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
11680 # These appear out of order in targets.c
11681 srec_vec) tb="$tb srec.lo" ;;
11682 symbolsrec_vec) tb="$tb srec.lo" ;;
11683 tekhex_vec) tb="$tb tekhex.lo" ;;
11684 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
11685 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
11687 "") ;;
11688 *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5
11689 echo "$as_me: error: *** unknown target vector $vec" >&2;}
11690 { (exit 1); exit 1; }; } ;;
11691 esac
11693 if test ${target_size} = 64; then
11694 target64=true
11696 if test x"${vec}" = x"${defvec}"; then
11697 bfd_default_target_size=${target_size}
11699 done
11701 # Target architecture .o files.
11702 # A couple of CPUs use shorter file names to avoid problems on DOS
11703 # filesystems.
11704 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
11706 # Weed out duplicate .o files.
11707 f=""
11708 for i in $tb ; do
11709 case " $f " in
11710 *" $i "*) ;;
11711 *) f="$f $i" ;;
11712 esac
11713 done
11714 tb="$f"
11716 f=""
11717 for i in $ta ; do
11718 case " $f " in
11719 *" $i "*) ;;
11720 *) f="$f $i" ;;
11721 esac
11722 done
11723 ta="$f"
11725 bfd_backends="$tb"
11726 bfd_machines="$ta"
11728 if test x${all_targets} = xtrue ; then
11729 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
11730 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
11731 selvecs=
11732 havevecs=
11733 selarchs=
11734 test -n "$assocvecs" &&
11735 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11736 else # all_targets is true
11737 # Only set these if they will be nonempty, for the clever echo.
11738 havevecs=
11739 assocvecs=
11740 test -n "$selvecs" &&
11741 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
11742 test -n "$selvecs" &&
11743 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11744 test -n "$selarchs" &&
11745 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
11746 fi # all_targets is true
11748 case ${host64}-${target64}-${want64} in
11749 *true*)
11750 wordsize=64
11751 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
11752 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
11753 if test $BFD_HOST_64_BIT_DEFINED = 0; then
11754 { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5
11755 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5
11757 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
11759 if test -n "$GCC" ; then
11760 bad_64bit_gcc=no;
11761 echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5
11762 echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6
11763 # Add more tests for gcc versions with non-working 64-bit support here.
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h. */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 :__GNUC__:__GNUC_MINOR__:__i386__:
11771 _ACEOF
11772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11773 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then
11774 bad_64bit_gcc=yes;
11775 echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5
11776 echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6
11777 else
11778 echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6
11781 rm -f conftest*
11783 if test $bad_64bit_gcc = yes ; then
11784 { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5
11785 echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;}
11786 { (exit 1); exit 1; }; }
11790 false-false-false)
11791 wordsize=32
11792 bfd_libs='$(BFD32_LIBS)'
11793 all_backends='$(BFD32_BACKENDS)'
11795 esac
11804 # Determine the host dependant file_ptr a.k.a. off_t type. In order
11805 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
11806 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
11807 # Hopefully a reasonable assumption since fseeko et.al. should be
11808 # upward compatible.
11813 for ac_func in ftello ftello64 fseeko fseeko64
11815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11816 echo "$as_me:$LINENO: checking for $ac_func" >&5
11817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11818 if eval "test \"\${$as_ac_var+set}\" = set"; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11829 #define $ac_func innocuous_$ac_func
11831 /* System header to define __stub macros and hopefully few prototypes,
11832 which can conflict with char $ac_func (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
11836 #ifdef __STDC__
11837 # include <limits.h>
11838 #else
11839 # include <assert.h>
11840 #endif
11842 #undef $ac_func
11844 /* Override any gcc2 internal prototype to avoid an error. */
11845 #ifdef __cplusplus
11846 extern "C"
11848 #endif
11849 /* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11851 char $ac_func ();
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11856 choke me
11857 #else
11858 char (*f) () = $ac_func;
11859 #endif
11860 #ifdef __cplusplus
11862 #endif
11865 main ()
11867 return f != $ac_func;
11869 return 0;
11871 _ACEOF
11872 rm -f conftest.$ac_objext conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
11881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883 (eval $ac_try) 2>&5
11884 ac_status=$?
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); }; } &&
11887 { ac_try='test -s conftest$ac_exeext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 eval "$as_ac_var=yes"
11894 else
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 eval "$as_ac_var=no"
11900 rm -f conftest.err conftest.$ac_objext \
11901 conftest$ac_exeext conftest.$ac_ext
11903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11905 if test `eval echo '${'$as_ac_var'}'` = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11908 _ACEOF
11911 done
11913 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
11914 echo "$as_me:$LINENO: checking size of off_t" >&5
11915 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
11916 if test "${ac_cv_sizeof_off_t+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 else
11919 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h. */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 #include "confdefs.h"
11927 #include <sys/types.h>
11931 main ()
11933 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
11935 return 0;
11937 _ACEOF
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest.$ac_objext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_sizeof_off_t=$ac_size
11960 else
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11966 if test x$ac_cv_sizeof_off_t != x ; then break; fi
11967 done
11971 if test x$ac_cv_sizeof_off_t = x ; then
11972 { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5
11973 echo "$as_me: error: cannot determine a size for off_t" >&2;}
11974 { (exit 1); exit 1; }; }
11976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
11977 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
11979 cat >>confdefs.h <<_ACEOF
11980 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
11981 _ACEOF
11985 echo "$as_me:$LINENO: checking file_ptr type" >&5
11986 echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6
11987 bfd_file_ptr="long"
11988 bfd_ufile_ptr="unsigned long"
11989 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
11990 -o x"${ac_cv_sizeof_off_t}" = x8; then
11991 bfd_file_ptr=BFD_HOST_64_BIT
11992 bfd_ufile_ptr=BFD_HOST_U_64_BIT
11994 echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5
11995 echo "${ECHO_T}$bfd_file_ptr" >&6
12000 tdefaults=""
12001 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
12002 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
12003 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
12004 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
12005 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
12010 for ac_header in stdlib.h unistd.h
12012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12014 echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12016 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12020 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12021 else
12022 # Is the header compilable?
12023 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12024 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12025 cat >conftest.$ac_ext <<_ACEOF
12026 /* confdefs.h. */
12027 _ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12031 $ac_includes_default
12032 #include <$ac_header>
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 ac_header_compiler=yes
12056 else
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 ac_header_compiler=no
12062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12063 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12064 echo "${ECHO_T}$ac_header_compiler" >&6
12066 # Is the header present?
12067 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 #include <$ac_header>
12076 _ACEOF
12077 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } >/dev/null; then
12085 if test -s conftest.err; then
12086 ac_cpp_err=$ac_c_preproc_warn_flag
12087 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12088 else
12089 ac_cpp_err=
12091 else
12092 ac_cpp_err=yes
12094 if test -z "$ac_cpp_err"; then
12095 ac_header_preproc=yes
12096 else
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_header_preproc=no
12102 rm -f conftest.err conftest.$ac_ext
12103 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12104 echo "${ECHO_T}$ac_header_preproc" >&6
12106 # So? What about this header?
12107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12108 yes:no: )
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12113 ac_header_preproc=yes
12115 no:yes:* )
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12129 cat <<\_ASBOX
12130 ## ------------------------------------------ ##
12131 ## Report this to the AC_PACKAGE_NAME lists. ##
12132 ## ------------------------------------------ ##
12133 _ASBOX
12135 sed "s/^/$as_me: WARNING: /" >&2
12137 esac
12138 echo "$as_me:$LINENO: checking for $ac_header" >&5
12139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143 eval "$as_ac_Header=\$ac_header_preproc"
12145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12150 cat >>confdefs.h <<_ACEOF
12151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12152 _ACEOF
12156 done
12159 for ac_func in getpagesize
12161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12162 echo "$as_me:$LINENO: checking for $ac_func" >&5
12163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12164 if eval "test \"\${$as_ac_var+set}\" = set"; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12175 #define $ac_func innocuous_$ac_func
12177 /* System header to define __stub macros and hopefully few prototypes,
12178 which can conflict with char $ac_func (); below.
12179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12180 <limits.h> exists even on freestanding compilers. */
12182 #ifdef __STDC__
12183 # include <limits.h>
12184 #else
12185 # include <assert.h>
12186 #endif
12188 #undef $ac_func
12190 /* Override any gcc2 internal prototype to avoid an error. */
12191 #ifdef __cplusplus
12192 extern "C"
12194 #endif
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197 char $ac_func ();
12198 /* The GNU C library defines this for functions which it implements
12199 to always fail with ENOSYS. Some functions are actually named
12200 something starting with __ and the normal name is an alias. */
12201 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12202 choke me
12203 #else
12204 char (*f) () = $ac_func;
12205 #endif
12206 #ifdef __cplusplus
12208 #endif
12211 main ()
12213 return f != $ac_func;
12215 return 0;
12217 _ACEOF
12218 rm -f conftest.$ac_objext conftest$ac_exeext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>conftest.er1
12221 ac_status=$?
12222 grep -v '^ *+' conftest.er1 >conftest.err
12223 rm -f conftest.er1
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } &&
12227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 eval "$as_ac_var=yes"
12240 else
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 eval "$as_ac_var=no"
12246 rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12251 if test `eval echo '${'$as_ac_var'}'` = yes; then
12252 cat >>confdefs.h <<_ACEOF
12253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12254 _ACEOF
12257 done
12259 echo "$as_me:$LINENO: checking for working mmap" >&5
12260 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12261 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 else
12264 if test "$cross_compiling" = yes; then
12265 ac_cv_func_mmap_fixed_mapped=no
12266 else
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 $ac_includes_default
12274 /* malloc might have been renamed as rpl_malloc. */
12275 #undef malloc
12277 /* Thanks to Mike Haertel and Jim Avera for this test.
12278 Here is a matrix of mmap possibilities:
12279 mmap private not fixed
12280 mmap private fixed at somewhere currently unmapped
12281 mmap private fixed at somewhere already mapped
12282 mmap shared not fixed
12283 mmap shared fixed at somewhere currently unmapped
12284 mmap shared fixed at somewhere already mapped
12285 For private mappings, we should verify that changes cannot be read()
12286 back from the file, nor mmap's back from the file at a different
12287 address. (There have been systems where private was not correctly
12288 implemented like the infamous i386 svr4.0, and systems where the
12289 VM page cache was not coherent with the file system buffer cache
12290 like early versions of FreeBSD and possibly contemporary NetBSD.)
12291 For shared mappings, we should conversely verify that changes get
12292 propagated back to all the places they're supposed to be.
12294 Grep wants private fixed already mapped.
12295 The main things grep needs to know about mmap are:
12296 * does it exist and is it safe to write into the mmap'd area
12297 * how to use it (BSD variants) */
12299 #include <fcntl.h>
12300 #include <sys/mman.h>
12302 #if !STDC_HEADERS && !HAVE_STDLIB_H
12303 char *malloc ();
12304 #endif
12306 /* This mess was copied from the GNU getpagesize.h. */
12307 #if !HAVE_GETPAGESIZE
12308 /* Assume that all systems that can run configure have sys/param.h. */
12309 # if !HAVE_SYS_PARAM_H
12310 # define HAVE_SYS_PARAM_H 1
12311 # endif
12313 # ifdef _SC_PAGESIZE
12314 # define getpagesize() sysconf(_SC_PAGESIZE)
12315 # else /* no _SC_PAGESIZE */
12316 # if HAVE_SYS_PARAM_H
12317 # include <sys/param.h>
12318 # ifdef EXEC_PAGESIZE
12319 # define getpagesize() EXEC_PAGESIZE
12320 # else /* no EXEC_PAGESIZE */
12321 # ifdef NBPG
12322 # define getpagesize() NBPG * CLSIZE
12323 # ifndef CLSIZE
12324 # define CLSIZE 1
12325 # endif /* no CLSIZE */
12326 # else /* no NBPG */
12327 # ifdef NBPC
12328 # define getpagesize() NBPC
12329 # else /* no NBPC */
12330 # ifdef PAGESIZE
12331 # define getpagesize() PAGESIZE
12332 # endif /* PAGESIZE */
12333 # endif /* no NBPC */
12334 # endif /* no NBPG */
12335 # endif /* no EXEC_PAGESIZE */
12336 # else /* no HAVE_SYS_PARAM_H */
12337 # define getpagesize() 8192 /* punt totally */
12338 # endif /* no HAVE_SYS_PARAM_H */
12339 # endif /* no _SC_PAGESIZE */
12341 #endif /* no HAVE_GETPAGESIZE */
12344 main ()
12346 char *data, *data2, *data3;
12347 int i, pagesize;
12348 int fd;
12350 pagesize = getpagesize ();
12352 /* First, make a file with some known garbage in it. */
12353 data = (char *) malloc (pagesize);
12354 if (!data)
12355 exit (1);
12356 for (i = 0; i < pagesize; ++i)
12357 *(data + i) = rand ();
12358 umask (0);
12359 fd = creat ("conftest.mmap", 0600);
12360 if (fd < 0)
12361 exit (1);
12362 if (write (fd, data, pagesize) != pagesize)
12363 exit (1);
12364 close (fd);
12366 /* Next, try to mmap the file at a fixed address which already has
12367 something else allocated at it. If we can, also make sure that
12368 we see the same garbage. */
12369 fd = open ("conftest.mmap", O_RDWR);
12370 if (fd < 0)
12371 exit (1);
12372 data2 = (char *) malloc (2 * pagesize);
12373 if (!data2)
12374 exit (1);
12375 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
12376 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12377 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12378 exit (1);
12379 for (i = 0; i < pagesize; ++i)
12380 if (*(data + i) != *(data2 + i))
12381 exit (1);
12383 /* Finally, make sure that changes to the mapped area do not
12384 percolate back to the file as seen by read(). (This is a bug on
12385 some variants of i386 svr4.0.) */
12386 for (i = 0; i < pagesize; ++i)
12387 *(data2 + i) = *(data2 + i) + 1;
12388 data3 = (char *) malloc (pagesize);
12389 if (!data3)
12390 exit (1);
12391 if (read (fd, data3, pagesize) != pagesize)
12392 exit (1);
12393 for (i = 0; i < pagesize; ++i)
12394 if (*(data + i) != *(data3 + i))
12395 exit (1);
12396 close (fd);
12397 exit (0);
12399 _ACEOF
12400 rm -f conftest$ac_exeext
12401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12402 (eval $ac_link) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_func_mmap_fixed_mapped=yes
12412 else
12413 echo "$as_me: program exited with status $ac_status" >&5
12414 echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12417 ( exit $ac_status )
12418 ac_cv_func_mmap_fixed_mapped=no
12420 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12423 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12424 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12425 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_MMAP 1
12429 _ACEOF
12432 rm -f conftest.mmap
12436 for ac_func in madvise mprotect
12438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12439 echo "$as_me:$LINENO: checking for $ac_func" >&5
12440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12441 if eval "test \"\${$as_ac_var+set}\" = set"; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12452 #define $ac_func innocuous_$ac_func
12454 /* System header to define __stub macros and hopefully few prototypes,
12455 which can conflict with char $ac_func (); below.
12456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12457 <limits.h> exists even on freestanding compilers. */
12459 #ifdef __STDC__
12460 # include <limits.h>
12461 #else
12462 # include <assert.h>
12463 #endif
12465 #undef $ac_func
12467 /* Override any gcc2 internal prototype to avoid an error. */
12468 #ifdef __cplusplus
12469 extern "C"
12471 #endif
12472 /* We use char because int might match the return type of a gcc2
12473 builtin and then its argument prototype would still apply. */
12474 char $ac_func ();
12475 /* The GNU C library defines this for functions which it implements
12476 to always fail with ENOSYS. Some functions are actually named
12477 something starting with __ and the normal name is an alias. */
12478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12479 choke me
12480 #else
12481 char (*f) () = $ac_func;
12482 #endif
12483 #ifdef __cplusplus
12485 #endif
12488 main ()
12490 return f != $ac_func;
12492 return 0;
12494 _ACEOF
12495 rm -f conftest.$ac_objext conftest$ac_exeext
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>conftest.er1
12498 ac_status=$?
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
12504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest$ac_exeext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 eval "$as_ac_var=yes"
12517 else
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12521 eval "$as_ac_var=no"
12523 rm -f conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12528 if test `eval echo '${'$as_ac_var'}'` = yes; then
12529 cat >>confdefs.h <<_ACEOF
12530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12531 _ACEOF
12534 done
12536 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
12537 true+yes )
12538 cat >>confdefs.h <<\_ACEOF
12539 #define USE_MMAP 1
12540 _ACEOF
12542 esac
12544 rm -f doc/config.status
12545 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
12547 ac_config_commands="$ac_config_commands default"
12549 cat >confcache <<\_ACEOF
12550 # This file is a shell script that caches the results of configure
12551 # tests run on this system so they can be shared between configure
12552 # scripts and configure runs, see configure's option --config-cache.
12553 # It is not useful on other systems. If it contains results you don't
12554 # want to keep, you may remove or edit it.
12556 # config.status only pays attention to the cache file if you give it
12557 # the --recheck option to rerun configure.
12559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12561 # following values.
12563 _ACEOF
12565 # The following way of writing the cache mishandles newlines in values,
12566 # but we know of no workaround that is simple, portable, and efficient.
12567 # So, don't put newlines in cache variables' values.
12568 # Ultrix sh set writes to stderr and can't be redirected directly,
12569 # and sets the high bit in the cache file unless we assign to the vars.
12571 (set) 2>&1 |
12572 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12573 *ac_space=\ *)
12574 # `set' does not quote correctly, so add quotes (double-quote
12575 # substitution turns \\\\ into \\, and sed turns \\ into \).
12576 sed -n \
12577 "s/'/'\\\\''/g;
12578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12581 # `set' quotes correctly as required by POSIX, so do not add quotes.
12582 sed -n \
12583 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12585 esac;
12587 sed '
12588 t clear
12589 : clear
12590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12591 t end
12592 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12593 : end' >>confcache
12594 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12595 if test -w $cache_file; then
12596 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12597 cat confcache >$cache_file
12598 else
12599 echo "not updating unwritable cache $cache_file"
12602 rm -f confcache
12604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12605 # Let make expand exec_prefix.
12606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12610 # trailing colons and then remove the whole line if VPATH becomes empty
12611 # (actually we leave an empty line to preserve line numbers).
12612 if test "x$srcdir" = x.; then
12613 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12614 s/:*\$(srcdir):*/:/;
12615 s/:*\${srcdir}:*/:/;
12616 s/:*@srcdir@:*/:/;
12617 s/^\([^=]*=[ ]*\):*/\1/;
12618 s/:*$//;
12619 s/^[^=]*=[ ]*$//;
12623 DEFS=-DHAVE_CONFIG_H
12625 ac_libobjs=
12626 ac_ltlibobjs=
12627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12628 # 1. Remove the extension, and $U if already installed.
12629 ac_i=`echo "$ac_i" |
12630 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12631 # 2. Add them.
12632 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12633 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12634 done
12635 LIBOBJS=$ac_libobjs
12637 LTLIBOBJS=$ac_ltlibobjs
12640 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12641 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12642 Usually this means the macro was only invoked conditionally." >&5
12643 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12644 Usually this means the macro was only invoked conditionally." >&2;}
12645 { (exit 1); exit 1; }; }
12647 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12648 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12649 Usually this means the macro was only invoked conditionally." >&5
12650 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12651 Usually this means the macro was only invoked conditionally." >&2;}
12652 { (exit 1); exit 1; }; }
12654 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12655 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12656 Usually this means the macro was only invoked conditionally." >&5
12657 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12658 Usually this means the macro was only invoked conditionally." >&2;}
12659 { (exit 1); exit 1; }; }
12661 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
12662 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined.
12663 Usually this means the macro was only invoked conditionally." >&5
12664 echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined.
12665 Usually this means the macro was only invoked conditionally." >&2;}
12666 { (exit 1); exit 1; }; }
12669 : ${CONFIG_STATUS=./config.status}
12670 ac_clean_files_save=$ac_clean_files
12671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12672 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12674 cat >$CONFIG_STATUS <<_ACEOF
12675 #! $SHELL
12676 # Generated by $as_me.
12677 # Run this file to recreate the current configuration.
12678 # Compiler output produced by configure, useful for debugging
12679 # configure, is in config.log if it exists.
12681 debug=false
12682 ac_cs_recheck=false
12683 ac_cs_silent=false
12684 SHELL=\${CONFIG_SHELL-$SHELL}
12685 _ACEOF
12687 cat >>$CONFIG_STATUS <<\_ACEOF
12688 ## --------------------- ##
12689 ## M4sh Initialization. ##
12690 ## --------------------- ##
12692 # Be Bourne compatible
12693 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12694 emulate sh
12695 NULLCMD=:
12696 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12697 # is contrary to our usage. Disable this feature.
12698 alias -g '${1+"$@"}'='"$@"'
12699 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12700 set -o posix
12702 DUALCASE=1; export DUALCASE # for MKS sh
12704 # Support unset when possible.
12705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12706 as_unset=unset
12707 else
12708 as_unset=false
12712 # Work around bugs in pre-3.0 UWIN ksh.
12713 $as_unset ENV MAIL MAILPATH
12714 PS1='$ '
12715 PS2='> '
12716 PS4='+ '
12718 # NLS nuisances.
12719 for as_var in \
12720 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12721 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12722 LC_TELEPHONE LC_TIME
12724 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12725 eval $as_var=C; export $as_var
12726 else
12727 $as_unset $as_var
12729 done
12731 # Required to use basename.
12732 if expr a : '\(a\)' >/dev/null 2>&1; then
12733 as_expr=expr
12734 else
12735 as_expr=false
12738 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
12739 as_basename=basename
12740 else
12741 as_basename=false
12745 # Name of the executable.
12746 as_me=`$as_basename "$0" ||
12747 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12748 X"$0" : 'X\(//\)$' \| \
12749 X"$0" : 'X\(/\)$' \| \
12750 . : '\(.\)' 2>/dev/null ||
12751 echo X/"$0" |
12752 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12753 /^X\/\(\/\/\)$/{ s//\1/; q; }
12754 /^X\/\(\/\).*/{ s//\1/; q; }
12755 s/.*/./; q'`
12758 # PATH needs CR, and LINENO needs CR and PATH.
12759 # Avoid depending upon Character Ranges.
12760 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12761 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12762 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12763 as_cr_digits='0123456789'
12764 as_cr_alnum=$as_cr_Letters$as_cr_digits
12766 # The user is always right.
12767 if test "${PATH_SEPARATOR+set}" != set; then
12768 echo "#! /bin/sh" >conf$$.sh
12769 echo "exit 0" >>conf$$.sh
12770 chmod +x conf$$.sh
12771 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12772 PATH_SEPARATOR=';'
12773 else
12774 PATH_SEPARATOR=:
12776 rm -f conf$$.sh
12780 as_lineno_1=$LINENO
12781 as_lineno_2=$LINENO
12782 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12783 test "x$as_lineno_1" != "x$as_lineno_2" &&
12784 test "x$as_lineno_3" = "x$as_lineno_2" || {
12785 # Find who we are. Look in the path if we contain no path at all
12786 # relative or not.
12787 case $0 in
12788 *[\\/]* ) as_myself=$0 ;;
12789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in $PATH
12792 IFS=$as_save_IFS
12793 test -z "$as_dir" && as_dir=.
12794 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12795 done
12798 esac
12799 # We did not find ourselves, most probably we were run as `sh COMMAND'
12800 # in which case we are not to be found in the path.
12801 if test "x$as_myself" = x; then
12802 as_myself=$0
12804 if test ! -f "$as_myself"; then
12805 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
12806 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
12807 { (exit 1); exit 1; }; }
12809 case $CONFIG_SHELL in
12811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for as_base in sh bash ksh sh5; do
12817 case $as_dir in
12819 if ("$as_dir/$as_base" -c '
12820 as_lineno_1=$LINENO
12821 as_lineno_2=$LINENO
12822 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
12823 test "x$as_lineno_1" != "x$as_lineno_2" &&
12824 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
12825 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
12826 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
12827 CONFIG_SHELL=$as_dir/$as_base
12828 export CONFIG_SHELL
12829 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
12830 fi;;
12831 esac
12832 done
12833 done
12835 esac
12837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12838 # uniformly replaced by the line number. The first 'sed' inserts a
12839 # line-number line before each line; the second 'sed' does the real
12840 # work. The second script uses 'N' to pair each line-number line
12841 # with the numbered line, and appends trailing '-' during
12842 # substitution so that $LINENO is not a special case at line end.
12843 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12844 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
12845 sed '=' <$as_myself |
12846 sed '
12848 s,$,-,
12849 : loop
12850 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
12851 t loop
12852 s,-$,,
12853 s,^['$as_cr_digits']*\n,,
12854 ' >$as_me.lineno &&
12855 chmod +x $as_me.lineno ||
12856 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
12857 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
12858 { (exit 1); exit 1; }; }
12860 # Don't try to exec as it changes $[0], causing all sort of problems
12861 # (the dirname of $[0] is not the place where we might find the
12862 # original and so on. Autoconf is especially sensible to this).
12863 . ./$as_me.lineno
12864 # Exit status is that of the last command.
12865 exit
12869 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
12870 *c*,-n*) ECHO_N= ECHO_C='
12871 ' ECHO_T=' ' ;;
12872 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
12873 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
12874 esac
12876 if expr a : '\(a\)' >/dev/null 2>&1; then
12877 as_expr=expr
12878 else
12879 as_expr=false
12882 rm -f conf$$ conf$$.exe conf$$.file
12883 echo >conf$$.file
12884 if ln -s conf$$.file conf$$ 2>/dev/null; then
12885 # We could just check for DJGPP; but this test a) works b) is more generic
12886 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12887 if test -f conf$$.exe; then
12888 # Don't use ln at all; we don't have any links
12889 as_ln_s='cp -p'
12890 else
12891 as_ln_s='ln -s'
12893 elif ln conf$$.file conf$$ 2>/dev/null; then
12894 as_ln_s=ln
12895 else
12896 as_ln_s='cp -p'
12898 rm -f conf$$ conf$$.exe conf$$.file
12900 if mkdir -p . 2>/dev/null; then
12901 as_mkdir_p=:
12902 else
12903 test -d ./-p && rmdir ./-p
12904 as_mkdir_p=false
12907 as_executable_p="test -f"
12909 # Sed expression to map a string onto a valid CPP name.
12910 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12912 # Sed expression to map a string onto a valid variable name.
12913 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12916 # IFS
12917 # We need space, tab and new line, in precisely that order.
12918 as_nl='
12920 IFS=" $as_nl"
12922 # CDPATH.
12923 $as_unset CDPATH
12925 exec 6>&1
12927 # Open the log real soon, to keep \$[0] and so on meaningful, and to
12928 # report actual input values of CONFIG_FILES etc. instead of their
12929 # values after options handling. Logging --version etc. is OK.
12930 exec 5>>config.log
12932 echo
12933 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12934 ## Running $as_me. ##
12935 _ASBOX
12936 } >&5
12937 cat >&5 <<_CSEOF
12939 This file was extended by $as_me, which was
12940 generated by GNU Autoconf 2.59. Invocation command line was
12942 CONFIG_FILES = $CONFIG_FILES
12943 CONFIG_HEADERS = $CONFIG_HEADERS
12944 CONFIG_LINKS = $CONFIG_LINKS
12945 CONFIG_COMMANDS = $CONFIG_COMMANDS
12946 $ $0 $@
12948 _CSEOF
12949 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
12950 echo >&5
12951 _ACEOF
12953 # Files that config.status was made for.
12954 if test -n "$ac_config_files"; then
12955 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12958 if test -n "$ac_config_headers"; then
12959 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12962 if test -n "$ac_config_links"; then
12963 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12966 if test -n "$ac_config_commands"; then
12967 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12970 cat >>$CONFIG_STATUS <<\_ACEOF
12972 ac_cs_usage="\
12973 \`$as_me' instantiates files from templates according to the
12974 current configuration.
12976 Usage: $0 [OPTIONS] [FILE]...
12978 -h, --help print this help, then exit
12979 -V, --version print version number, then exit
12980 -q, --quiet do not print progress messages
12981 -d, --debug don't remove temporary files
12982 --recheck update $as_me by reconfiguring in the same conditions
12983 --file=FILE[:TEMPLATE]
12984 instantiate the configuration file FILE
12985 --header=FILE[:TEMPLATE]
12986 instantiate the configuration header FILE
12988 Configuration files:
12989 $config_files
12991 Configuration headers:
12992 $config_headers
12994 Configuration commands:
12995 $config_commands
12997 Report bugs to <bug-autoconf@gnu.org>."
12998 _ACEOF
13000 cat >>$CONFIG_STATUS <<_ACEOF
13001 ac_cs_version="\\
13002 config.status
13003 configured by $0, generated by GNU Autoconf 2.59,
13004 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13006 Copyright (C) 2003 Free Software Foundation, Inc.
13007 This config.status script is free software; the Free Software Foundation
13008 gives unlimited permission to copy, distribute and modify it."
13009 srcdir=$srcdir
13010 INSTALL="$INSTALL"
13011 _ACEOF
13013 cat >>$CONFIG_STATUS <<\_ACEOF
13014 # If no file are specified by the user, then we need to provide default
13015 # value. By we need to know if files were specified by the user.
13016 ac_need_defaults=:
13017 while test $# != 0
13019 case $1 in
13020 --*=*)
13021 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13022 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13023 ac_shift=:
13026 ac_option=$1
13027 ac_optarg=$2
13028 ac_shift=shift
13030 *) # This is not an option, so the user has probably given explicit
13031 # arguments.
13032 ac_option=$1
13033 ac_need_defaults=false;;
13034 esac
13036 case $ac_option in
13037 # Handling of the options.
13038 _ACEOF
13039 cat >>$CONFIG_STATUS <<\_ACEOF
13040 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13041 ac_cs_recheck=: ;;
13042 --version | --vers* | -V )
13043 echo "$ac_cs_version"; exit 0 ;;
13044 --he | --h)
13045 # Conflict between --help and --header
13046 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13047 Try \`$0 --help' for more information." >&5
13048 echo "$as_me: error: ambiguous option: $1
13049 Try \`$0 --help' for more information." >&2;}
13050 { (exit 1); exit 1; }; };;
13051 --help | --hel | -h )
13052 echo "$ac_cs_usage"; exit 0 ;;
13053 --debug | --d* | -d )
13054 debug=: ;;
13055 --file | --fil | --fi | --f )
13056 $ac_shift
13057 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13058 ac_need_defaults=false;;
13059 --header | --heade | --head | --hea )
13060 $ac_shift
13061 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13062 ac_need_defaults=false;;
13063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13065 ac_cs_silent=: ;;
13067 # This is an error.
13068 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13069 Try \`$0 --help' for more information." >&5
13070 echo "$as_me: error: unrecognized option: $1
13071 Try \`$0 --help' for more information." >&2;}
13072 { (exit 1); exit 1; }; } ;;
13074 *) ac_config_targets="$ac_config_targets $1" ;;
13076 esac
13077 shift
13078 done
13080 ac_configure_extra_args=
13082 if $ac_cs_silent; then
13083 exec 6>/dev/null
13084 ac_configure_extra_args="$ac_configure_extra_args --silent"
13087 _ACEOF
13088 cat >>$CONFIG_STATUS <<_ACEOF
13089 if \$ac_cs_recheck; then
13090 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13091 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13094 _ACEOF
13096 cat >>$CONFIG_STATUS <<_ACEOF
13098 # INIT-COMMANDS section.
13101 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13104 _ACEOF
13108 cat >>$CONFIG_STATUS <<\_ACEOF
13109 for ac_config_target in $ac_config_targets
13111 case "$ac_config_target" in
13112 # Handling of arguments.
13113 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13114 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13115 "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
13116 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
13117 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13118 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13119 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
13120 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13121 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13122 { (exit 1); exit 1; }; };;
13123 esac
13124 done
13126 # If the user did not use the arguments to specify the items to instantiate,
13127 # then the envvar interface is used. Set only those that are not.
13128 # We use the long form for the default assignment because of an extremely
13129 # bizarre bug on SunOS 4.1.3.
13130 if $ac_need_defaults; then
13131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13133 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13136 # Have a temporary directory for convenience. Make it in the build tree
13137 # simply because there is no reason to put it here, and in addition,
13138 # creating and moving files from /tmp can sometimes cause problems.
13139 # Create a temporary directory, and hook for its removal unless debugging.
13140 $debug ||
13142 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13143 trap '{ (exit 1); exit 1; }' 1 2 13 15
13146 # Create a (secure) tmp directory for tmp files.
13149 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13150 test -n "$tmp" && test -d "$tmp"
13151 } ||
13153 tmp=./confstat$$-$RANDOM
13154 (umask 077 && mkdir $tmp)
13155 } ||
13157 echo "$me: cannot create a temporary directory in ." >&2
13158 { (exit 1); exit 1; }
13161 _ACEOF
13163 cat >>$CONFIG_STATUS <<_ACEOF
13166 # CONFIG_FILES section.
13169 # No need to generate the scripts if there are no CONFIG_FILES.
13170 # This happens for instance when ./config.status config.h
13171 if test -n "\$CONFIG_FILES"; then
13172 # Protect against being on the right side of a sed subst in config.status.
13173 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13174 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13175 s,@SHELL@,$SHELL,;t t
13176 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13177 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13178 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13179 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13180 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13181 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13182 s,@exec_prefix@,$exec_prefix,;t t
13183 s,@prefix@,$prefix,;t t
13184 s,@program_transform_name@,$program_transform_name,;t t
13185 s,@bindir@,$bindir,;t t
13186 s,@sbindir@,$sbindir,;t t
13187 s,@libexecdir@,$libexecdir,;t t
13188 s,@datadir@,$datadir,;t t
13189 s,@sysconfdir@,$sysconfdir,;t t
13190 s,@sharedstatedir@,$sharedstatedir,;t t
13191 s,@localstatedir@,$localstatedir,;t t
13192 s,@libdir@,$libdir,;t t
13193 s,@includedir@,$includedir,;t t
13194 s,@oldincludedir@,$oldincludedir,;t t
13195 s,@infodir@,$infodir,;t t
13196 s,@mandir@,$mandir,;t t
13197 s,@build_alias@,$build_alias,;t t
13198 s,@host_alias@,$host_alias,;t t
13199 s,@target_alias@,$target_alias,;t t
13200 s,@DEFS@,$DEFS,;t t
13201 s,@ECHO_C@,$ECHO_C,;t t
13202 s,@ECHO_N@,$ECHO_N,;t t
13203 s,@ECHO_T@,$ECHO_T,;t t
13204 s,@LIBS@,$LIBS,;t t
13205 s,@build@,$build,;t t
13206 s,@build_cpu@,$build_cpu,;t t
13207 s,@build_vendor@,$build_vendor,;t t
13208 s,@build_os@,$build_os,;t t
13209 s,@host@,$host,;t t
13210 s,@host_cpu@,$host_cpu,;t t
13211 s,@host_vendor@,$host_vendor,;t t
13212 s,@host_os@,$host_os,;t t
13213 s,@target@,$target,;t t
13214 s,@target_cpu@,$target_cpu,;t t
13215 s,@target_vendor@,$target_vendor,;t t
13216 s,@target_os@,$target_os,;t t
13217 s,@CC@,$CC,;t t
13218 s,@CFLAGS@,$CFLAGS,;t t
13219 s,@LDFLAGS@,$LDFLAGS,;t t
13220 s,@CPPFLAGS@,$CPPFLAGS,;t t
13221 s,@ac_ct_CC@,$ac_ct_CC,;t t
13222 s,@EXEEXT@,$EXEEXT,;t t
13223 s,@OBJEXT@,$OBJEXT,;t t
13224 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13225 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13226 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13227 s,@CYGPATH_W@,$CYGPATH_W,;t t
13228 s,@PACKAGE@,$PACKAGE,;t t
13229 s,@VERSION@,$VERSION,;t t
13230 s,@ACLOCAL@,$ACLOCAL,;t t
13231 s,@AUTOCONF@,$AUTOCONF,;t t
13232 s,@AUTOMAKE@,$AUTOMAKE,;t t
13233 s,@AUTOHEADER@,$AUTOHEADER,;t t
13234 s,@MAKEINFO@,$MAKEINFO,;t t
13235 s,@install_sh@,$install_sh,;t t
13236 s,@STRIP@,$STRIP,;t t
13237 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13238 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13239 s,@mkdir_p@,$mkdir_p,;t t
13240 s,@AWK@,$AWK,;t t
13241 s,@SET_MAKE@,$SET_MAKE,;t t
13242 s,@am__leading_dot@,$am__leading_dot,;t t
13243 s,@AMTAR@,$AMTAR,;t t
13244 s,@am__tar@,$am__tar,;t t
13245 s,@am__untar@,$am__untar,;t t
13246 s,@DEPDIR@,$DEPDIR,;t t
13247 s,@am__include@,$am__include,;t t
13248 s,@am__quote@,$am__quote,;t t
13249 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13250 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13251 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13252 s,@CCDEPMODE@,$CCDEPMODE,;t t
13253 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13254 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13255 s,@AR@,$AR,;t t
13256 s,@ac_ct_AR@,$ac_ct_AR,;t t
13257 s,@RANLIB@,$RANLIB,;t t
13258 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13259 s,@LN_S@,$LN_S,;t t
13260 s,@LIBTOOL@,$LIBTOOL,;t t
13261 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
13262 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13263 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13264 s,@MAINT@,$MAINT,;t t
13265 s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t
13266 s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t
13267 s,@host_noncanonical@,$host_noncanonical,;t t
13268 s,@target_noncanonical@,$target_noncanonical,;t t
13269 s,@bfdlibdir@,$bfdlibdir,;t t
13270 s,@bfdincludedir@,$bfdincludedir,;t t
13271 s,@CPP@,$CPP,;t t
13272 s,@EGREP@,$EGREP,;t t
13273 s,@ALLOCA@,$ALLOCA,;t t
13274 s,@USE_NLS@,$USE_NLS,;t t
13275 s,@MSGFMT@,$MSGFMT,;t t
13276 s,@GMSGFMT@,$GMSGFMT,;t t
13277 s,@XGETTEXT@,$XGETTEXT,;t t
13278 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
13279 s,@CATALOGS@,$CATALOGS,;t t
13280 s,@CATOBJEXT@,$CATOBJEXT,;t t
13281 s,@DATADIRNAME@,$DATADIRNAME,;t t
13282 s,@GMOFILES@,$GMOFILES,;t t
13283 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
13284 s,@INTLDEPS@,$INTLDEPS,;t t
13285 s,@INTLLIBS@,$INTLLIBS,;t t
13286 s,@INTLOBJS@,$INTLOBJS,;t t
13287 s,@POFILES@,$POFILES,;t t
13288 s,@POSUB@,$POSUB,;t t
13289 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
13290 s,@GT_NO@,$GT_NO,;t t
13291 s,@GT_YES@,$GT_YES,;t t
13292 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13293 s,@l@,$l,;t t
13294 s,@HDEFINES@,$HDEFINES,;t t
13295 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
13296 s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t
13297 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
13298 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
13299 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
13300 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
13301 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
13302 s,@COREFILE@,$COREFILE,;t t
13303 s,@COREFLAG@,$COREFLAG,;t t
13304 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
13305 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
13306 s,@TDEFINES@,$TDEFINES,;t t
13307 s,@wordsize@,$wordsize,;t t
13308 s,@bfd_libs@,$bfd_libs,;t t
13309 s,@all_backends@,$all_backends,;t t
13310 s,@bfd_backends@,$bfd_backends,;t t
13311 s,@bfd_machines@,$bfd_machines,;t t
13312 s,@bfd_default_target_size@,$bfd_default_target_size,;t t
13313 s,@bfd_file_ptr@,$bfd_file_ptr,;t t
13314 s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t
13315 s,@tdefaults@,$tdefaults,;t t
13316 s,@LIBOBJS@,$LIBOBJS,;t t
13317 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13318 CEOF
13320 _ACEOF
13322 cat >>$CONFIG_STATUS <<\_ACEOF
13323 # Split the substitutions into bite-sized pieces for seds with
13324 # small command number limits, like on Digital OSF/1 and HP-UX.
13325 ac_max_sed_lines=48
13326 ac_sed_frag=1 # Number of current file.
13327 ac_beg=1 # First line for current file.
13328 ac_end=$ac_max_sed_lines # Line after last line for current file.
13329 ac_more_lines=:
13330 ac_sed_cmds=
13331 while $ac_more_lines; do
13332 if test $ac_beg -gt 1; then
13333 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13334 else
13335 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13337 if test ! -s $tmp/subs.frag; then
13338 ac_more_lines=false
13339 else
13340 # The purpose of the label and of the branching condition is to
13341 # speed up the sed processing (if there are no `@' at all, there
13342 # is no need to browse any of the substitutions).
13343 # These are the two extra sed commands mentioned above.
13344 (echo ':t
13345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13346 if test -z "$ac_sed_cmds"; then
13347 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13348 else
13349 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13351 ac_sed_frag=`expr $ac_sed_frag + 1`
13352 ac_beg=$ac_end
13353 ac_end=`expr $ac_end + $ac_max_sed_lines`
13355 done
13356 if test -z "$ac_sed_cmds"; then
13357 ac_sed_cmds=cat
13359 fi # test -n "$CONFIG_FILES"
13361 _ACEOF
13362 cat >>$CONFIG_STATUS <<\_ACEOF
13363 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13365 case $ac_file in
13366 - | *:- | *:-:* ) # input from stdin
13367 cat >$tmp/stdin
13368 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13369 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13370 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13371 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13372 * ) ac_file_in=$ac_file.in ;;
13373 esac
13375 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13376 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13377 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13378 X"$ac_file" : 'X\(//\)[^/]' \| \
13379 X"$ac_file" : 'X\(//\)$' \| \
13380 X"$ac_file" : 'X\(/\)' \| \
13381 . : '\(.\)' 2>/dev/null ||
13382 echo X"$ac_file" |
13383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13384 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13385 /^X\(\/\/\)$/{ s//\1/; q; }
13386 /^X\(\/\).*/{ s//\1/; q; }
13387 s/.*/./; q'`
13388 { if $as_mkdir_p; then
13389 mkdir -p "$ac_dir"
13390 else
13391 as_dir="$ac_dir"
13392 as_dirs=
13393 while test ! -d "$as_dir"; do
13394 as_dirs="$as_dir $as_dirs"
13395 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13396 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13397 X"$as_dir" : 'X\(//\)[^/]' \| \
13398 X"$as_dir" : 'X\(//\)$' \| \
13399 X"$as_dir" : 'X\(/\)' \| \
13400 . : '\(.\)' 2>/dev/null ||
13401 echo X"$as_dir" |
13402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13403 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13404 /^X\(\/\/\)$/{ s//\1/; q; }
13405 /^X\(\/\).*/{ s//\1/; q; }
13406 s/.*/./; q'`
13407 done
13408 test ! -n "$as_dirs" || mkdir $as_dirs
13409 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13410 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13411 { (exit 1); exit 1; }; }; }
13413 ac_builddir=.
13415 if test "$ac_dir" != .; then
13416 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13417 # A "../" for each directory in $ac_dir_suffix.
13418 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13419 else
13420 ac_dir_suffix= ac_top_builddir=
13423 case $srcdir in
13424 .) # No --srcdir option. We are building in place.
13425 ac_srcdir=.
13426 if test -z "$ac_top_builddir"; then
13427 ac_top_srcdir=.
13428 else
13429 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13430 fi ;;
13431 [\\/]* | ?:[\\/]* ) # Absolute path.
13432 ac_srcdir=$srcdir$ac_dir_suffix;
13433 ac_top_srcdir=$srcdir ;;
13434 *) # Relative path.
13435 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13436 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13437 esac
13439 # Do not use `cd foo && pwd` to compute absolute paths, because
13440 # the directories may not exist.
13441 case `pwd` in
13442 .) ac_abs_builddir="$ac_dir";;
13444 case "$ac_dir" in
13445 .) ac_abs_builddir=`pwd`;;
13446 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13447 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13448 esac;;
13449 esac
13450 case $ac_abs_builddir in
13451 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13453 case ${ac_top_builddir}. in
13454 .) ac_abs_top_builddir=$ac_abs_builddir;;
13455 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13456 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13457 esac;;
13458 esac
13459 case $ac_abs_builddir in
13460 .) ac_abs_srcdir=$ac_srcdir;;
13462 case $ac_srcdir in
13463 .) ac_abs_srcdir=$ac_abs_builddir;;
13464 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13465 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13466 esac;;
13467 esac
13468 case $ac_abs_builddir in
13469 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13471 case $ac_top_srcdir in
13472 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13473 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13474 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13475 esac;;
13476 esac
13479 case $INSTALL in
13480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13481 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13482 esac
13484 # Let's still pretend it is `configure' which instantiates (i.e., don't
13485 # use $as_me), people would be surprised to read:
13486 # /* config.h. Generated by config.status. */
13487 if test x"$ac_file" = x-; then
13488 configure_input=
13489 else
13490 configure_input="$ac_file. "
13492 configure_input=$configure_input"Generated from `echo $ac_file_in |
13493 sed 's,.*/,,'` by configure."
13495 # First look for the input files in the build tree, otherwise in the
13496 # src tree.
13497 ac_file_inputs=`IFS=:
13498 for f in $ac_file_in; do
13499 case $f in
13500 -) echo $tmp/stdin ;;
13501 [\\/$]*)
13502 # Absolute (can't be DOS-style, as IFS=:)
13503 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13504 echo "$as_me: error: cannot find input file: $f" >&2;}
13505 { (exit 1); exit 1; }; }
13506 echo "$f";;
13507 *) # Relative
13508 if test -f "$f"; then
13509 # Build tree
13510 echo "$f"
13511 elif test -f "$srcdir/$f"; then
13512 # Source tree
13513 echo "$srcdir/$f"
13514 else
13515 # /dev/null tree
13516 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13517 echo "$as_me: error: cannot find input file: $f" >&2;}
13518 { (exit 1); exit 1; }; }
13519 fi;;
13520 esac
13521 done` || { (exit 1); exit 1; }
13523 if test x"$ac_file" != x-; then
13524 { echo "$as_me:$LINENO: creating $ac_file" >&5
13525 echo "$as_me: creating $ac_file" >&6;}
13526 rm -f "$ac_file"
13528 _ACEOF
13529 cat >>$CONFIG_STATUS <<_ACEOF
13530 sed "$ac_vpsub
13531 $extrasub
13532 _ACEOF
13533 cat >>$CONFIG_STATUS <<\_ACEOF
13535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13536 s,@configure_input@,$configure_input,;t t
13537 s,@srcdir@,$ac_srcdir,;t t
13538 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13539 s,@top_srcdir@,$ac_top_srcdir,;t t
13540 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13541 s,@builddir@,$ac_builddir,;t t
13542 s,@abs_builddir@,$ac_abs_builddir,;t t
13543 s,@top_builddir@,$ac_top_builddir,;t t
13544 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13545 s,@INSTALL@,$ac_INSTALL,;t t
13546 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13547 rm -f $tmp/stdin
13548 if test x"$ac_file" != x-; then
13549 mv $tmp/out $ac_file
13550 else
13551 cat $tmp/out
13552 rm -f $tmp/out
13555 done
13556 _ACEOF
13557 cat >>$CONFIG_STATUS <<\_ACEOF
13560 # CONFIG_HEADER section.
13563 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13564 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13566 # ac_d sets the value in "#define NAME VALUE" lines.
13567 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13568 ac_dB='[ ].*$,\1#\2'
13569 ac_dC=' '
13570 ac_dD=',;t'
13571 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13572 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13573 ac_uB='$,\1#\2define\3'
13574 ac_uC=' '
13575 ac_uD=',;t'
13577 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13578 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13579 case $ac_file in
13580 - | *:- | *:-:* ) # input from stdin
13581 cat >$tmp/stdin
13582 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13584 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13585 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13586 * ) ac_file_in=$ac_file.in ;;
13587 esac
13589 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13590 echo "$as_me: creating $ac_file" >&6;}
13592 # First look for the input files in the build tree, otherwise in the
13593 # src tree.
13594 ac_file_inputs=`IFS=:
13595 for f in $ac_file_in; do
13596 case $f in
13597 -) echo $tmp/stdin ;;
13598 [\\/$]*)
13599 # Absolute (can't be DOS-style, as IFS=:)
13600 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13601 echo "$as_me: error: cannot find input file: $f" >&2;}
13602 { (exit 1); exit 1; }; }
13603 # Do quote $f, to prevent DOS paths from being IFS'd.
13604 echo "$f";;
13605 *) # Relative
13606 if test -f "$f"; then
13607 # Build tree
13608 echo "$f"
13609 elif test -f "$srcdir/$f"; then
13610 # Source tree
13611 echo "$srcdir/$f"
13612 else
13613 # /dev/null tree
13614 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13615 echo "$as_me: error: cannot find input file: $f" >&2;}
13616 { (exit 1); exit 1; }; }
13617 fi;;
13618 esac
13619 done` || { (exit 1); exit 1; }
13620 # Remove the trailing spaces.
13621 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13623 _ACEOF
13625 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13626 # `conftest.undefs', that substitutes the proper values into
13627 # config.h.in to produce config.h. The first handles `#define'
13628 # templates, and the second `#undef' templates.
13629 # And first: Protect against being on the right side of a sed subst in
13630 # config.status. Protect against being in an unquoted here document
13631 # in config.status.
13632 rm -f conftest.defines conftest.undefs
13633 # Using a here document instead of a string reduces the quoting nightmare.
13634 # Putting comments in sed scripts is not portable.
13636 # `end' is used to avoid that the second main sed command (meant for
13637 # 0-ary CPP macros) applies to n-ary macro definitions.
13638 # See the Autoconf documentation for `clear'.
13639 cat >confdef2sed.sed <<\_ACEOF
13640 s/[\\&,]/\\&/g
13641 s,[\\$`],\\&,g
13642 t clear
13643 : clear
13644 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13645 t end
13646 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13647 : end
13648 _ACEOF
13649 # If some macros were called several times there might be several times
13650 # the same #defines, which is useless. Nevertheless, we may not want to
13651 # sort them, since we want the *last* AC-DEFINE to be honored.
13652 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13653 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13654 rm -f confdef2sed.sed
13656 # This sed command replaces #undef with comments. This is necessary, for
13657 # example, in the case of _POSIX_SOURCE, which is predefined and required
13658 # on some systems where configure will not decide to define it.
13659 cat >>conftest.undefs <<\_ACEOF
13660 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13661 _ACEOF
13663 # Break up conftest.defines because some shells have a limit on the size
13664 # of here documents, and old seds have small limits too (100 cmds).
13665 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13666 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13667 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13668 echo ' :' >>$CONFIG_STATUS
13669 rm -f conftest.tail
13670 while grep . conftest.defines >/dev/null
13672 # Write a limited-size here document to $tmp/defines.sed.
13673 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13674 # Speed up: don't consider the non `#define' lines.
13675 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13676 # Work around the forget-to-reset-the-flag bug.
13677 echo 't clr' >>$CONFIG_STATUS
13678 echo ': clr' >>$CONFIG_STATUS
13679 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13680 echo 'CEOF
13681 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13682 rm -f $tmp/in
13683 mv $tmp/out $tmp/in
13684 ' >>$CONFIG_STATUS
13685 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13686 rm -f conftest.defines
13687 mv conftest.tail conftest.defines
13688 done
13689 rm -f conftest.defines
13690 echo ' fi # grep' >>$CONFIG_STATUS
13691 echo >>$CONFIG_STATUS
13693 # Break up conftest.undefs because some shells have a limit on the size
13694 # of here documents, and old seds have small limits too (100 cmds).
13695 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13696 rm -f conftest.tail
13697 while grep . conftest.undefs >/dev/null
13699 # Write a limited-size here document to $tmp/undefs.sed.
13700 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13701 # Speed up: don't consider the non `#undef'
13702 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13703 # Work around the forget-to-reset-the-flag bug.
13704 echo 't clr' >>$CONFIG_STATUS
13705 echo ': clr' >>$CONFIG_STATUS
13706 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13707 echo 'CEOF
13708 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13709 rm -f $tmp/in
13710 mv $tmp/out $tmp/in
13711 ' >>$CONFIG_STATUS
13712 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13713 rm -f conftest.undefs
13714 mv conftest.tail conftest.undefs
13715 done
13716 rm -f conftest.undefs
13718 cat >>$CONFIG_STATUS <<\_ACEOF
13719 # Let's still pretend it is `configure' which instantiates (i.e., don't
13720 # use $as_me), people would be surprised to read:
13721 # /* config.h. Generated by config.status. */
13722 if test x"$ac_file" = x-; then
13723 echo "/* Generated by configure. */" >$tmp/config.h
13724 else
13725 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13727 cat $tmp/in >>$tmp/config.h
13728 rm -f $tmp/in
13729 if test x"$ac_file" != x-; then
13730 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13732 echo "$as_me: $ac_file is unchanged" >&6;}
13733 else
13734 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13736 X"$ac_file" : 'X\(//\)[^/]' \| \
13737 X"$ac_file" : 'X\(//\)$' \| \
13738 X"$ac_file" : 'X\(/\)' \| \
13739 . : '\(.\)' 2>/dev/null ||
13740 echo X"$ac_file" |
13741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13742 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13743 /^X\(\/\/\)$/{ s//\1/; q; }
13744 /^X\(\/\).*/{ s//\1/; q; }
13745 s/.*/./; q'`
13746 { if $as_mkdir_p; then
13747 mkdir -p "$ac_dir"
13748 else
13749 as_dir="$ac_dir"
13750 as_dirs=
13751 while test ! -d "$as_dir"; do
13752 as_dirs="$as_dir $as_dirs"
13753 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13754 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13755 X"$as_dir" : 'X\(//\)[^/]' \| \
13756 X"$as_dir" : 'X\(//\)$' \| \
13757 X"$as_dir" : 'X\(/\)' \| \
13758 . : '\(.\)' 2>/dev/null ||
13759 echo X"$as_dir" |
13760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13761 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13762 /^X\(\/\/\)$/{ s//\1/; q; }
13763 /^X\(\/\).*/{ s//\1/; q; }
13764 s/.*/./; q'`
13765 done
13766 test ! -n "$as_dirs" || mkdir $as_dirs
13767 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13768 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13769 { (exit 1); exit 1; }; }; }
13771 rm -f $ac_file
13772 mv $tmp/config.h $ac_file
13774 else
13775 cat $tmp/config.h
13776 rm -f $tmp/config.h
13778 # Compute $ac_file's index in $config_headers.
13779 _am_stamp_count=1
13780 for _am_header in $config_headers :; do
13781 case $_am_header in
13782 $ac_file | $ac_file:* )
13783 break ;;
13785 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13786 esac
13787 done
13788 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
13789 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13790 X$ac_file : 'X\(//\)[^/]' \| \
13791 X$ac_file : 'X\(//\)$' \| \
13792 X$ac_file : 'X\(/\)' \| \
13793 . : '\(.\)' 2>/dev/null ||
13794 echo X$ac_file |
13795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13796 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13797 /^X\(\/\/\)$/{ s//\1/; q; }
13798 /^X\(\/\).*/{ s//\1/; q; }
13799 s/.*/./; q'`/stamp-h$_am_stamp_count
13800 done
13801 _ACEOF
13802 cat >>$CONFIG_STATUS <<\_ACEOF
13805 # CONFIG_COMMANDS section.
13807 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13808 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13809 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13810 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
13811 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13812 X"$ac_dest" : 'X\(//\)[^/]' \| \
13813 X"$ac_dest" : 'X\(//\)$' \| \
13814 X"$ac_dest" : 'X\(/\)' \| \
13815 . : '\(.\)' 2>/dev/null ||
13816 echo X"$ac_dest" |
13817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13819 /^X\(\/\/\)$/{ s//\1/; q; }
13820 /^X\(\/\).*/{ s//\1/; q; }
13821 s/.*/./; q'`
13822 { if $as_mkdir_p; then
13823 mkdir -p "$ac_dir"
13824 else
13825 as_dir="$ac_dir"
13826 as_dirs=
13827 while test ! -d "$as_dir"; do
13828 as_dirs="$as_dir $as_dirs"
13829 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13830 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13831 X"$as_dir" : 'X\(//\)[^/]' \| \
13832 X"$as_dir" : 'X\(//\)$' \| \
13833 X"$as_dir" : 'X\(/\)' \| \
13834 . : '\(.\)' 2>/dev/null ||
13835 echo X"$as_dir" |
13836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13838 /^X\(\/\/\)$/{ s//\1/; q; }
13839 /^X\(\/\).*/{ s//\1/; q; }
13840 s/.*/./; q'`
13841 done
13842 test ! -n "$as_dirs" || mkdir $as_dirs
13843 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13844 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13845 { (exit 1); exit 1; }; }; }
13847 ac_builddir=.
13849 if test "$ac_dir" != .; then
13850 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13851 # A "../" for each directory in $ac_dir_suffix.
13852 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13853 else
13854 ac_dir_suffix= ac_top_builddir=
13857 case $srcdir in
13858 .) # No --srcdir option. We are building in place.
13859 ac_srcdir=.
13860 if test -z "$ac_top_builddir"; then
13861 ac_top_srcdir=.
13862 else
13863 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13864 fi ;;
13865 [\\/]* | ?:[\\/]* ) # Absolute path.
13866 ac_srcdir=$srcdir$ac_dir_suffix;
13867 ac_top_srcdir=$srcdir ;;
13868 *) # Relative path.
13869 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13870 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13871 esac
13873 # Do not use `cd foo && pwd` to compute absolute paths, because
13874 # the directories may not exist.
13875 case `pwd` in
13876 .) ac_abs_builddir="$ac_dir";;
13878 case "$ac_dir" in
13879 .) ac_abs_builddir=`pwd`;;
13880 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13881 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13882 esac;;
13883 esac
13884 case $ac_abs_builddir in
13885 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13887 case ${ac_top_builddir}. in
13888 .) ac_abs_top_builddir=$ac_abs_builddir;;
13889 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13890 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13891 esac;;
13892 esac
13893 case $ac_abs_builddir in
13894 .) ac_abs_srcdir=$ac_srcdir;;
13896 case $ac_srcdir in
13897 .) ac_abs_srcdir=$ac_abs_builddir;;
13898 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13899 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13900 esac;;
13901 esac
13902 case $ac_abs_builddir in
13903 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13905 case $ac_top_srcdir in
13906 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13907 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13908 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13909 esac;;
13910 esac
13913 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
13914 echo "$as_me: executing $ac_dest commands" >&6;}
13915 case $ac_dest in
13916 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13917 # Strip MF so we end up with the name of the file.
13918 mf=`echo "$mf" | sed -e 's/:.*$//'`
13919 # Check whether this is an Automake generated Makefile or not.
13920 # We used to match only the files named `Makefile.in', but
13921 # some people rename them; so instead we look at the file content.
13922 # Grep'ing the first line is not enough: some people post-process
13923 # each Makefile.in and add a new line on top of each file to say so.
13924 # So let's grep whole file.
13925 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
13926 dirpart=`(dirname "$mf") 2>/dev/null ||
13927 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13928 X"$mf" : 'X\(//\)[^/]' \| \
13929 X"$mf" : 'X\(//\)$' \| \
13930 X"$mf" : 'X\(/\)' \| \
13931 . : '\(.\)' 2>/dev/null ||
13932 echo X"$mf" |
13933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13934 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13935 /^X\(\/\/\)$/{ s//\1/; q; }
13936 /^X\(\/\).*/{ s//\1/; q; }
13937 s/.*/./; q'`
13938 else
13939 continue
13941 # Extract the definition of DEPDIR, am__include, and am__quote
13942 # from the Makefile without running `make'.
13943 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13944 test -z "$DEPDIR" && continue
13945 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13946 test -z "am__include" && continue
13947 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13948 # When using ansi2knr, U may be empty or an underscore; expand it
13949 U=`sed -n 's/^U = //p' < "$mf"`
13950 # Find all dependency output files, they are included files with
13951 # $(DEPDIR) in their names. We invoke sed twice because it is the
13952 # simplest approach to changing $(DEPDIR) to its actual value in the
13953 # expansion.
13954 for file in `sed -n "
13955 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13956 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13957 # Make sure the directory exists.
13958 test -f "$dirpart/$file" && continue
13959 fdir=`(dirname "$file") 2>/dev/null ||
13960 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13961 X"$file" : 'X\(//\)[^/]' \| \
13962 X"$file" : 'X\(//\)$' \| \
13963 X"$file" : 'X\(/\)' \| \
13964 . : '\(.\)' 2>/dev/null ||
13965 echo X"$file" |
13966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13968 /^X\(\/\/\)$/{ s//\1/; q; }
13969 /^X\(\/\).*/{ s//\1/; q; }
13970 s/.*/./; q'`
13971 { if $as_mkdir_p; then
13972 mkdir -p $dirpart/$fdir
13973 else
13974 as_dir=$dirpart/$fdir
13975 as_dirs=
13976 while test ! -d "$as_dir"; do
13977 as_dirs="$as_dir $as_dirs"
13978 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13980 X"$as_dir" : 'X\(//\)[^/]' \| \
13981 X"$as_dir" : 'X\(//\)$' \| \
13982 X"$as_dir" : 'X\(/\)' \| \
13983 . : '\(.\)' 2>/dev/null ||
13984 echo X"$as_dir" |
13985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13986 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13987 /^X\(\/\/\)$/{ s//\1/; q; }
13988 /^X\(\/\).*/{ s//\1/; q; }
13989 s/.*/./; q'`
13990 done
13991 test ! -n "$as_dirs" || mkdir $as_dirs
13992 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
13993 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
13994 { (exit 1); exit 1; }; }; }
13996 # echo "creating $dirpart/$file"
13997 echo '# dummy' > "$dirpart/$file"
13998 done
13999 done
14001 default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;;
14002 esac
14003 done
14004 _ACEOF
14006 cat >>$CONFIG_STATUS <<\_ACEOF
14008 { (exit 0); exit 0; }
14009 _ACEOF
14010 chmod +x $CONFIG_STATUS
14011 ac_clean_files=$ac_clean_files_save
14014 # configure is writing to config.log, and then calls config.status.
14015 # config.status does its own redirection, appending to config.log.
14016 # Unfortunately, on DOS this fails, as config.log is still kept open
14017 # by configure, so config.status won't be able to write to it; its
14018 # output is simply discarded. So we exec the FD to /dev/null,
14019 # effectively closing config.log, so it can be properly (re)opened and
14020 # appended to by config.status. When coming back to configure, we
14021 # need to make the FD available again.
14022 if test "$no_create" != yes; then
14023 ac_cs_success=:
14024 ac_config_status_args=
14025 test "$silent" = yes &&
14026 ac_config_status_args="$ac_config_status_args --quiet"
14027 exec 5>/dev/null
14028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14029 exec 5>>config.log
14030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14031 # would make configure fail if this is the last instruction.
14032 $ac_cs_success || { (exit 1); exit 1; }