2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.49d.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Be Bourne compatible
11 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
18 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24 rm -f conf$$ conf$$.exe conf$$.
file
26 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27 # We could just check for DJGPP; but this test a) works b) is more generic
28 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29 if test -f conf$$.exe
; then
30 # Don't use ln at all; we don't have any links
35 elif ln conf$$.
file conf$$
2>/dev
/null
; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 as_executable_p
="test -f"
44 # Support unset when possible.
45 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
52 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
53 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
54 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
55 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
56 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
57 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
58 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
59 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
62 # We need space, tab and new line, in precisely that order.
68 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
71 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
72 # so uname gets run too.
73 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
75 # Name of the executable.
76 as_me
=`echo "$0" | sed 's,.*/,,'`
79 This file contains any messages produced by compilers while
80 running configure, to aid debugging if configure makes a mistake.
82 It was created by $as_me 2.49d, executed with
92 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
93 uname -m = `(uname -m) 2>/dev/null || echo unknown`
94 uname -r = `(uname -r) 2>/dev/null || echo unknown`
95 uname -s = `(uname -s) 2>/dev/null || echo unknown`
96 uname -v = `(uname -v) 2>/dev/null || echo unknown`
98 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
99 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
101 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
102 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
103 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
104 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
105 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
106 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
107 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
114 cat >>config.log
<<EOF
121 # File descriptor usage:
124 # 2 errors and warnings
125 # 5 compiler messages saved in config.log
126 # 6 checking for... messages and results
133 ac_default_prefix
=/usr
/local
137 SHELL
=${CONFIG_SHELL-/bin/sh}
139 # Maximum number of lines to put in a shell here document.
140 # This variable seems obsolete. It should probably be removed, and
141 # only ac_max_sed_lines should be used.
142 : ${ac_max_here_lines=38}
144 # Avoid depending upon Character Ranges.
145 ac_cr_az
='abcdefghijklmnopqrstuvwxyz'
146 ac_cr_AZ
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
147 ac_cr_09
='0123456789'
148 ac_cr_alnum
=$ac_cr_az$ac_cr_AZ$ac_cr_09
150 # Sed expression to map a string onto a valid sh and CPP variable names.
151 ac_tr_sh
="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
152 ac_tr_cpp
="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
154 ac_unique_file
="libbfd.c"
155 # Factoring default headers for most tests.
156 ac_includes_default
="\
158 #include <sys/types.h>
159 #include <sys/stat.h>
169 # if !STDC_HEADERS && HAVE_MEMORY_H
175 # include <strings.h>
179 # include <inttypes.h>
185 # Initialize some variables set by options.
187 ac_init_version
=false
188 # The variables have the same names as the options, with
189 # dashes changed to underlines.
197 program_transform_name
=s
,x
,x
,
205 # Installation directory options.
206 # These are left unexpanded so users can "make install exec_prefix=/foo"
207 # and all the variables that are supposed to be based on exec_prefix
208 # by default will actually change.
209 # Use braces instead of parens because sh, perl, etc. also accept them.
210 bindir
='${exec_prefix}/bin'
211 sbindir
='${exec_prefix}/sbin'
212 libexecdir
='${exec_prefix}/libexec'
213 datadir
='${prefix}/share'
214 sysconfdir
='${prefix}/etc'
215 sharedstatedir
='${prefix}/com'
216 localstatedir
='${prefix}/var'
217 libdir
='${exec_prefix}/lib'
218 includedir
='${prefix}/include'
219 oldincludedir
='/usr/include'
220 infodir
='${prefix}/info'
221 mandir
='${prefix}/man'
223 # Identity of this package.
233 # If the previous option needs an argument, assign it.
234 if test -n "$ac_prev"; then
235 eval "$ac_prev=\$ac_option"
240 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
242 # Accept the important Cygnus configure options, so we can diagnose typos.
246 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
248 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
251 -build |
--build |
--buil |
--bui |
--bu)
252 ac_prev
=build_alias
;;
253 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
254 build_alias
=$ac_optarg ;;
256 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
257 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
258 ac_prev
=cache_file
;;
259 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
260 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
261 cache_file
=$ac_optarg ;;
264 cache_file
=config.cache
;;
266 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
268 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
270 datadir
=$ac_optarg ;;
272 -disable-* |
--disable-*)
273 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
274 # Reject names that are not valid shell variable names.
275 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
276 { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5
277 echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
278 { (exit 1); exit 1; }; }
279 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
280 eval "enable_$ac_feature=no" ;;
282 -enable-* |
--enable-*)
283 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
284 # Reject names that are not valid shell variable names.
285 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
286 { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5
287 echo "$as_me: error: invalid feature name: $ac_feature" >&2;}
288 { (exit 1); exit 1; }; }
289 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
291 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
294 eval "enable_$ac_feature='$ac_optarg'" ;;
296 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
297 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
298 |
--exec |
--exe |
--ex)
299 ac_prev
=exec_prefix
;;
300 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
301 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
302 |
--exec=* |
--exe=* |
--ex=*)
303 exec_prefix
=$ac_optarg ;;
305 -gas |
--gas |
--ga |
--g)
306 # Obsolete; use --with-gas.
309 -help |
--help |
--hel |
--he |
-h)
311 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
312 ac_init_help
=recursive
;;
313 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
314 ac_init_help
=short
;;
316 -host |
--host |
--hos |
--ho)
317 ac_prev
=host_alias
;;
318 -host=* |
--host=* |
--hos=* |
--ho=*)
319 host_alias
=$ac_optarg ;;
321 -includedir |
--includedir |
--includedi |
--included |
--include \
322 |
--includ |
--inclu |
--incl |
--inc)
323 ac_prev
=includedir
;;
324 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
325 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
326 includedir
=$ac_optarg ;;
328 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
330 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
331 infodir
=$ac_optarg ;;
333 -libdir |
--libdir |
--libdi |
--libd)
335 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
338 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
339 |
--libexe |
--libex |
--libe)
340 ac_prev
=libexecdir
;;
341 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
342 |
--libexe=* |
--libex=* |
--libe=*)
343 libexecdir
=$ac_optarg ;;
345 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
346 |
--localstate |
--localstat |
--localsta |
--localst \
347 |
--locals |
--local |
--loca |
--loc |
--lo)
348 ac_prev
=localstatedir
;;
349 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
350 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
351 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
352 localstatedir
=$ac_optarg ;;
354 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
356 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
360 # Obsolete; use --without-fp.
363 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
367 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
368 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
371 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
372 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
373 |
--oldin |
--oldi |
--old |
--ol |
--o)
374 ac_prev
=oldincludedir
;;
375 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
376 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
377 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
378 oldincludedir
=$ac_optarg ;;
380 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
382 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
385 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
386 |
--program-pre |
--program-pr |
--program-p)
387 ac_prev
=program_prefix
;;
388 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
389 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
390 program_prefix
=$ac_optarg ;;
392 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
393 |
--program-suf |
--program-su |
--program-s)
394 ac_prev
=program_suffix
;;
395 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
396 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
397 program_suffix
=$ac_optarg ;;
399 -program-transform-name |
--program-transform-name \
400 |
--program-transform-nam |
--program-transform-na \
401 |
--program-transform-n |
--program-transform- \
402 |
--program-transform |
--program-transfor \
403 |
--program-transfo |
--program-transf \
404 |
--program-trans |
--program-tran \
405 |
--progr-tra |
--program-tr |
--program-t)
406 ac_prev
=program_transform_name
;;
407 -program-transform-name=* |
--program-transform-name=* \
408 |
--program-transform-nam=* |
--program-transform-na=* \
409 |
--program-transform-n=* |
--program-transform-=* \
410 |
--program-transform=* |
--program-transfor=* \
411 |
--program-transfo=* |
--program-transf=* \
412 |
--program-trans=* |
--program-tran=* \
413 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
414 program_transform_name
=$ac_optarg ;;
416 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
417 |
-silent |
--silent |
--silen |
--sile |
--sil)
420 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
422 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
424 sbindir
=$ac_optarg ;;
426 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
427 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
428 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
430 ac_prev
=sharedstatedir
;;
431 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
432 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
433 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
435 sharedstatedir
=$ac_optarg ;;
437 -site |
--site |
--sit)
439 -site=* |
--site=* |
--sit=*)
442 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
444 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
447 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
448 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
449 ac_prev
=sysconfdir
;;
450 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
451 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
452 sysconfdir
=$ac_optarg ;;
454 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
455 ac_prev
=target_alias
;;
456 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
457 target_alias
=$ac_optarg ;;
459 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
462 -version |
--version |
--versio |
--versi |
--vers |
-V)
466 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
467 # Reject names that are not valid shell variable names.
468 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
469 { { echo "$as_me:469: error: invalid package name: $ac_package" >&5
470 echo "$as_me: error: invalid package name: $ac_package" >&2;}
471 { (exit 1); exit 1; }; }
472 ac_package
=`echo $ac_package| sed 's/-/_/g'`
474 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
477 eval "with_$ac_package='$ac_optarg'" ;;
479 -without-* |
--without-*)
480 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
481 # Reject names that are not valid shell variable names.
482 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev
/null
&&
483 { { echo "$as_me:483: error: invalid package name: $ac_package" >&5
484 echo "$as_me: error: invalid package name: $ac_package" >&2;}
485 { (exit 1); exit 1; }; }
486 ac_package
=`echo $ac_package | sed 's/-/_/g'`
487 eval "with_$ac_package=no" ;;
490 # Obsolete; use --with-x.
493 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
494 |
--x-incl |
--x-inc |
--x-in |
--x-i)
495 ac_prev
=x_includes
;;
496 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
497 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
498 x_includes
=$ac_optarg ;;
500 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
501 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
502 ac_prev
=x_libraries
;;
503 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
504 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
505 x_libraries
=$ac_optarg ;;
507 -*) { { echo "$as_me:507: error: unrecognized option: $ac_option
508 Try \`$0 --help' for more information." >&5
509 echo "$as_me: error: unrecognized option: $ac_option
510 Try \`$0 --help' for more information." >&2;}
511 { (exit 1); exit 1; }; }
515 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
516 # Reject names that are not valid shell variable names.
517 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev
/null
&&
518 { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5
519 echo "$as_me: error: invalid variable name: $ac_envvar" >&2;}
520 { (exit 1); exit 1; }; }
521 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
522 eval "$ac_envvar='$ac_optarg'"
526 # FIXME: should be removed in autoconf 3.0.
527 { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5
528 echo "$as_me: WARNING: you should use --build, --host, --target" >&2;}
529 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev
/null
&&
530 { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5
531 echo "$as_me: WARNING: invalid host type: $ac_option" >&2;}
532 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
538 if test -n "$ac_prev"; then
539 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
540 { { echo "$as_me:540: error: missing argument to $ac_option" >&5
541 echo "$as_me: error: missing argument to $ac_option" >&2;}
542 { (exit 1); exit 1; }; }
545 # Be sure to have absolute paths.
546 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
547 localstatedir libdir includedir oldincludedir infodir mandir \
550 eval ac_val
=$
`echo $ac_var`
552 [\\/$
]* | ?
:[\\/]* ) ;;
554 *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5
555 echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;}
556 { (exit 1); exit 1; }; };;
560 # There might be people who depend on the old broken behavior: `$host'
561 # used to hold the argument of --host etc.
566 # FIXME: should be removed in autoconf 3.0.
567 if test "x$host_alias" != x
; then
568 if test "x$build_alias" = x
; then
569 cross_compiling
=maybe
570 { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host.
571 If a cross compiler is detected then cross compile mode will be used." >&5
572 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
573 If a cross compiler is detected then cross compile mode will be used." >&2;}
574 elif test "x$build_alias" != "x$host_alias"; then
580 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
582 test "$silent" = yes && exec 6>/dev
/null
584 # Find the source files, if location was not specified.
585 if test -z "$srcdir"; then
586 ac_srcdir_defaulted
=yes
587 # Try the directory containing this script, then its parent.
589 ac_confdir
=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'`
590 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
592 if test ! -r $srcdir/$ac_unique_file; then
596 ac_srcdir_defaulted
=no
598 if test ! -r $srcdir/$ac_unique_file; then
599 if test "$ac_srcdir_defaulted" = yes; then
600 { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5
601 echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;}
602 { (exit 1); exit 1; }; }
604 { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5
605 echo "$as_me: error: cannot find sources in $srcdir" >&2;}
606 { (exit 1); exit 1; }; }
609 srcdir
=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'`
610 ac_env_build_alias_set
=${build_alias+set}
611 ac_env_build_alias_value
=$build_alias
612 ac_cv_env_build_alias_set
=${build_alias+set}
613 ac_cv_env_build_alias_value
=$build_alias
614 ac_env_host_alias_set
=${host_alias+set}
615 ac_env_host_alias_value
=$host_alias
616 ac_cv_env_host_alias_set
=${host_alias+set}
617 ac_cv_env_host_alias_value
=$host_alias
618 ac_env_target_alias_set
=${target_alias+set}
619 ac_env_target_alias_value
=$target_alias
620 ac_cv_env_target_alias_set
=${target_alias+set}
621 ac_cv_env_target_alias_value
=$target_alias
622 ac_env_CC_set
=${CC+set}
624 ac_cv_env_CC_set
=${CC+set}
625 ac_cv_env_CC_value
=$CC
626 ac_env_CFLAGS_set
=${CFLAGS+set}
627 ac_env_CFLAGS_value
=$CFLAGS
628 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
629 ac_cv_env_CFLAGS_value
=$CFLAGS
630 ac_env_LDFLAGS_set
=${LDFLAGS+set}
631 ac_env_LDFLAGS_value
=$LDFLAGS
632 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
633 ac_cv_env_LDFLAGS_value
=$LDFLAGS
634 ac_env_CPP_set
=${CPP+set}
635 ac_env_CPP_value
=$CPP
636 ac_cv_env_CPP_set
=${CPP+set}
637 ac_cv_env_CPP_value
=$CPP
638 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
639 ac_env_CPPFLAGS_value
=$CPPFLAGS
640 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
641 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
644 # Report the --help message.
646 if test "$ac_init_help" = "long"; then
647 # Omit some internal or obsolete options to make the list less imposing.
648 # This message is too long to be a string in the A/UX 3.1 sh.
650 \`configure' configures this package to adapt to many kinds of systems.
652 Usage: $0 [OPTION]... [VAR=VALUE]...
654 To assign environment variables (e.g., CC, CFLAGS...), specify them as
655 VAR=VALUE. See below for descriptions of some of the useful variables.
657 Defaults for the options are specified in brackets.
660 -h, --help display this help and exit
661 --help=short display options specific to this package
662 --help=recursive display the short help of all the included packages
663 -V, --version display version information and exit
664 -q, --quiet, --silent do not print \`checking...' messages
665 --cache-file=FILE cache test results in FILE [disabled]
666 -C, --config-cache alias for \`--cache-file=config.cache'
667 -n, --no-create do not create output files
668 --srcdir=DIR find the sources in DIR [configure dir or \`..']
673 Installation directories:
674 --prefix=PREFIX install architecture-independent files in PREFIX
676 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
679 By default, \`make install' will install all the files in
680 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
681 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
682 for instance \`--prefix=\$HOME'.
684 For better control, use the options below.
686 Fine tuning of the installation directories:
687 --bindir=DIR user executables [EPREFIX/bin]
688 --sbindir=DIR system admin executables [EPREFIX/sbin]
689 --libexecdir=DIR program executables [EPREFIX/libexec]
690 --datadir=DIR read-only architecture-independent data [PREFIX/share]
691 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
694 --libdir=DIR object code libraries [EPREFIX/lib]
695 --includedir=DIR C header files [PREFIX/include]
696 --oldincludedir=DIR C header files for non-gcc [/usr/include]
697 --infodir=DIR info documentation [PREFIX/info]
698 --mandir=DIR man documentation [PREFIX/man]
704 --program-prefix=PREFIX prepend PREFIX to installed program names
705 --program-suffix=SUFFIX append SUFFIX to installed program names
706 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
709 --build=BUILD configure
for building on BUILD
[guessed
]
710 --host=HOST build programs to run on HOST
[BUILD
]
711 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
715 if test -n "$ac_init_help"; then
720 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
721 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
722 --enable-shared=PKGS build shared libraries default
=no
723 --enable-static=PKGS build static libraries default
=yes
724 --enable-fast-install=PKGS optimize
for fast installation default
=yes
725 --disable-libtool-lock avoid locking
(might
break parallel builds
)
726 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
727 --enable-targets alternative target configurations
728 --enable-commonbfdlib build shared BFD
/opcodes
/libiberty library
729 --enable-build-warnings Enable build-time compiler warnings
if gcc is used
730 --enable-maintainer-mode enable make rules and dependencies not useful
731 (and sometimes confusing
) to the casual installer
732 --disable-nls do not use Native Language Support
735 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
736 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
737 --with-gnu-ld assume the C compiler uses GNU ld default
=no
738 --with-pic try to use only PIC
/non-PIC objects default
=use both
739 --with-mmap try using mmap
for BFD input files
if available
740 --with-included-gettext use the GNU
gettext library included here
742 Some influential environment variables
:
743 CC C compiler
command
744 CFLAGS C compiler flags
745 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
746 nonstandard directory
<lib dir
>
748 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
749 headers
in a nonstandard directory
<include dir
>
751 Use these variables to override the choices made by
`configure' or to help
752 it to find libraries and programs with nonstandard names/locations.
757 if test "$ac_init_help" = "recursive"; then
758 # If there are subdirs, report their specific --help.
760 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
762 # A "../" for each directory in /$ac_subdir.
763 ac_dots=`echo $ac_subdir |
764 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
767 .) # No --srcdir option. We are building in place.
768 ac_sub_srcdir=$srcdir ;;
769 [\\/]* | ?:[\\/]* ) # Absolute path.
770 ac_sub_srcdir=$srcdir/$ac_subdir ;;
772 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
775 # Check for guested configure; otherwise get Cygnus style configure.
776 if test -f $ac_sub_srcdir/configure.gnu; then
778 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
779 elif test -f $ac_sub_srcdir/configure; then
781 $SHELL $ac_sub_srcdir/configure --help=recursive
782 elif test -f $ac_sub_srcdir/configure.ac ||
783 test -f $ac_sub_srcdir/configure.in; then
787 { echo "$as_me:787: WARNING: no configuration information is in $ac_subdir" >&5
788 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;}
794 test -n "$ac_init_help" && exit 0
795 if $ac_init_version; then
798 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
799 Free Software Foundation, Inc.
800 This configure script is free software; the Free Software Foundation
801 gives unlimited permission to copy, distribute and modify it.
806 # Keep a trace of the command line.
807 # Strip out --no-create and --no-recursion so they do not pile up.
808 # Also quote any args containing shell meta-characters.
814 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
815 | --no-cr | --no-c) ;;
816 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
817 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
818 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
819 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"`
820 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
822 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
825 # Get rid of the leading space.
828 # When interrupted or exit'd, cleanup temporary files, and complete
829 # config.log. We remove comments because anyway the quotes in there
830 # would cause problems or look ugly.
832 # Save into config.log some information that might help in debugging.
834 echo "## ----------------- ##" >&5
835 echo "## Cache variables. ##" >&5
836 echo "## ----------------- ##" >&5
838 # The following way of writing the cache mishandles newlines in values,
841 case `(ac_space
='"'"' '"'"'; set |
grep ac_space
) 2>&1` in
844 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
845 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
849 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
853 sed "/^$/d" confdefs.h >conftest.log
854 if test -s conftest.log; then
856 echo "## ------------ ##" >&5
857 echo "## confdefs.h. ##" >&5
858 echo "## ------------ ##" >&5
863 test "$ac_signal" != 0 &&
864 echo "$as_me: caught signal $ac_signal" >&5
865 echo "$as_me: exit $exit_status" >&5
866 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
869 for ac_signal in 1 2 13 15; do
870 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
875 rm -rf conftest* confdefs.h
876 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
879 # Let the site file select an alternate cache file if it wants to.
880 # Prefer explicitly selected file to automatically selected ones.
881 if test -z "$CONFIG_SITE"; then
882 if test "x$prefix" != xNONE; then
883 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
885 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
888 for ac_site_file in $CONFIG_SITE; do
889 if test -r "$ac_site_file"; then
890 { echo "$as_me:890: loading site script $ac_site_file" >&5
891 echo "$as_me: loading site script $ac_site_file" >&6;}
892 cat "$ac_site_file" >&5
897 if test -r "$cache_file"; then
898 # Some versions of bash will fail to source /dev/null (special
899 # files actually), so we avoid doing that.
900 if test -f "$cache_file"; then
901 { echo "$as_me:901: loading cache $cache_file" >&5
902 echo "$as_me: loading cache $cache_file" >&6;}
904 [\\/]* | ?:[\\/]* ) . $cache_file;;
909 { echo "$as_me:909: creating cache $cache_file" >&5
910 echo "$as_me: creating cache $cache_file" >&6;}
914 # Check that the precious variables saved in the cache have kept the same
916 ac_suggest_removing_cache=false
917 for ac_var in `(set) 2>&1 |
918 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
920 eval ac_new_set=\$ac_env_${ac_var}_set
921 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
922 eval ac_new_val="\$ac_env_${ac_var}_value"
923 case $ac_old_set,$ac_new_set in
925 { echo "$as_me:925: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
926 echo "$as_me: WARNING
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
927 ac_suggest_removing_cache=: ;;
929 { echo "$as_me:929: WARNING: \`$ac_var' was not
set in the previous run
" >&5
930 echo "$as_me: WARNING
: \
`$ac_var' was not set in the previous run" >&2;}
931 ac_suggest_removing_cache=: ;;
934 if test "x$ac_old_val" != "x$ac_new_val"; then
935 { echo "$as_me:935: WARNING: \`$ac_var' has changed since the previous run:" >&5
936 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run
:" >&2;}
937 { echo "$as_me:937: WARNING
: former value
: $ac_old_val" >&5
938 echo "$as_me: WARNING
: former value
: $ac_old_val" >&2;}
939 { echo "$as_me:939: WARNING
: current value
: $ac_new_val" >&5
940 echo "$as_me: WARNING
: current value
: $ac_new_val" >&2;}
941 ac_suggest_removing_cache=:
945 if $ac_suggest_removing_cache; then
946 { echo "$as_me:946: WARNING
: changes
in the environment can compromise the build
" >&5
947 echo "$as_me: WARNING
: changes
in the environment can compromise the build
" >&2;}
948 { echo "$as_me:948: WARNING
: consider removing
$cache_file and starting over
" >&5
949 echo "$as_me: WARNING
: consider removing
$cache_file and starting over
" >&2;}
953 ac_cpp='$CPP $CPPFLAGS'
954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
958 case `echo "testing\c
"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C='
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH
=".;."; conftest.sh
) 2>&5
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator
=';'
976 PATH_SEPARATOR
="$ac_path_separator"
980 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
981 if test -f $ac_dir/install-sh
; then
983 ac_install_sh
="$ac_aux_dir/install-sh -c"
985 elif test -f $ac_dir/install.sh
; then
987 ac_install_sh
="$ac_aux_dir/install.sh -c"
989 elif test -f $ac_dir/shtool
; then
991 ac_install_sh
="$ac_aux_dir/shtool install -c"
995 if test -z "$ac_aux_dir"; then
996 { { echo "$as_me:996: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
997 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
998 { (exit 1); exit 1; }; }
1000 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1001 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1002 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1004 # Make sure we can run config.sub.
1005 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1006 { { echo "$as_me:1006: error: cannot run $ac_config_sub" >&5
1007 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1008 { (exit 1); exit 1; }; }
1010 echo "$as_me:1010: checking build system type" >&5
1011 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1012 if test "${ac_cv_build+set}" = set; then
1013 echo $ECHO_N "(cached) $ECHO_C" >&6
1015 ac_cv_build_alias
=$build_alias
1016 test -z "$ac_cv_build_alias" &&
1017 ac_cv_build_alias
=`$ac_config_guess`
1018 test -z "$ac_cv_build_alias" &&
1019 { { echo "$as_me:1019: error: cannot guess build type; you must specify one" >&5
1020 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1021 { (exit 1); exit 1; }; }
1022 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1023 { { echo "$as_me:1023: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1024 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1025 { (exit 1); exit 1; }; }
1028 echo "$as_me:1028: result: $ac_cv_build" >&5
1029 echo "${ECHO_T}$ac_cv_build" >&6
1031 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1032 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1033 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1035 echo "$as_me:1035: checking host system type" >&5
1036 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1037 if test "${ac_cv_host+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1040 ac_cv_host_alias
=$host_alias
1041 test -z "$ac_cv_host_alias" &&
1042 ac_cv_host_alias
=$ac_cv_build_alias
1043 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1044 { { echo "$as_me:1044: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1045 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1046 { (exit 1); exit 1; }; }
1049 echo "$as_me:1049: result: $ac_cv_host" >&5
1050 echo "${ECHO_T}$ac_cv_host" >&6
1052 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1053 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1054 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1056 echo "$as_me:1056: checking target system type" >&5
1057 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1058 if test "${ac_cv_target+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 ac_cv_target_alias
=$target_alias
1062 test "x$ac_cv_target_alias" = "x" &&
1063 ac_cv_target_alias
=$ac_cv_host_alias
1064 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias` ||
1065 { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1066 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1067 { (exit 1); exit 1; }; }
1070 echo "$as_me:1070: result: $ac_cv_target" >&5
1071 echo "${ECHO_T}$ac_cv_target" >&6
1072 target
=$ac_cv_target
1073 target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1077 # The aliases save the names the user supplied, while $host etc.
1078 # will get canonicalized.
1079 test -n "$target_alias" &&
1080 test "$program_prefix$program_suffix$program_transform_name" = \
1082 program_prefix
=${target_alias}-
1084 ac_cpp
='$CPP $CPPFLAGS'
1085 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1086 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1087 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1088 if test -n "$ac_tool_prefix"; then
1089 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1090 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1091 echo "$as_me:1091: checking for $ac_word" >&5
1092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1093 if test "${ac_cv_prog_CC+set}" = set; then
1094 echo $ECHO_N "(cached) $ECHO_C" >&6
1096 if test -n "$CC"; then
1097 ac_cv_prog_CC
="$CC" # Let the user override the test.
1099 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1101 for ac_dir
in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir
=.
1104 $as_executable_p "$ac_dir/$ac_word" ||
continue
1105 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1112 if test -n "$CC"; then
1113 echo "$as_me:1113: result: $CC" >&5
1114 echo "${ECHO_T}$CC" >&6
1116 echo "$as_me:1116: result: no" >&5
1117 echo "${ECHO_T}no" >&6
1121 if test -z "$ac_cv_prog_CC"; then
1123 # Extract the first word of "gcc", so it can be a program name with args.
1124 set dummy gcc
; ac_word
=$2
1125 echo "$as_me:1125: checking for $ac_word" >&5
1126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1128 echo $ECHO_N "(cached) $ECHO_C" >&6
1130 if test -n "$ac_ct_CC"; then
1131 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1133 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1135 for ac_dir
in $ac_dummy; do
1137 test -z "$ac_dir" && ac_dir
=.
1138 $as_executable_p "$ac_dir/$ac_word" ||
continue
1139 ac_cv_prog_ac_ct_CC
="gcc"
1145 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1146 if test -n "$ac_ct_CC"; then
1147 echo "$as_me:1147: result: $ac_ct_CC" >&5
1148 echo "${ECHO_T}$ac_ct_CC" >&6
1150 echo "$as_me:1150: result: no" >&5
1151 echo "${ECHO_T}no" >&6
1159 if test -z "$CC"; then
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1162 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1163 echo "$as_me:1163: checking for $ac_word" >&5
1164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1165 if test "${ac_cv_prog_CC+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if test -n "$CC"; then
1169 ac_cv_prog_CC
="$CC" # Let the user override the test.
1171 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1173 for ac_dir
in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir
=.
1176 $as_executable_p "$ac_dir/$ac_word" ||
continue
1177 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1184 if test -n "$CC"; then
1185 echo "$as_me:1185: result: $CC" >&5
1186 echo "${ECHO_T}$CC" >&6
1188 echo "$as_me:1188: result: no" >&5
1189 echo "${ECHO_T}no" >&6
1193 if test -z "$ac_cv_prog_CC"; then
1195 # Extract the first word of "cc", so it can be a program name with args.
1196 set dummy cc
; ac_word
=$2
1197 echo "$as_me:1197: checking for $ac_word" >&5
1198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1200 echo $ECHO_N "(cached) $ECHO_C" >&6
1202 if test -n "$ac_ct_CC"; then
1203 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1205 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1207 for ac_dir
in $ac_dummy; do
1209 test -z "$ac_dir" && ac_dir
=.
1210 $as_executable_p "$ac_dir/$ac_word" ||
continue
1211 ac_cv_prog_ac_ct_CC
="cc"
1217 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1218 if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220 echo "${ECHO_T}$ac_ct_CC" >&6
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1232 if test -z "$CC"; then
1233 # Extract the first word of "cc", so it can be a program name with args.
1234 set dummy cc
; ac_word
=$2
1235 echo "$as_me:1235: checking for $ac_word" >&5
1236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237 if test "${ac_cv_prog_CC+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC
="$CC" # Let the user override the test.
1244 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1246 for ac_dir
in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir
=.
1249 $as_executable_p "$ac_dir/$ac_word" ||
continue
1250 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1251 ac_prog_rejected
=yes
1258 if test $ac_prog_rejected = yes; then
1259 # We found a bogon in the path, so make sure we never use it.
1260 set dummy
$ac_cv_prog_CC
1262 if test $# != 0; then
1263 # We chose a different compiler from the bogus one.
1264 # However, it has the same basename, so the bogon will be chosen
1265 # first if we set CC to just the basename; use the full file name.
1267 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1275 if test -n "$CC"; then
1276 echo "$as_me:1276: result: $CC" >&5
1277 echo "${ECHO_T}$CC" >&6
1279 echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1284 if test -z "$CC"; then
1285 if test -n "$ac_tool_prefix"; then
1288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1289 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1290 echo "$as_me:1290: checking for $ac_word" >&5
1291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1292 if test "${ac_cv_prog_CC+set}" = set; then
1293 echo $ECHO_N "(cached) $ECHO_C" >&6
1295 if test -n "$CC"; then
1296 ac_cv_prog_CC
="$CC" # Let the user override the test.
1298 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1300 for ac_dir
in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir
=.
1303 $as_executable_p "$ac_dir/$ac_word" ||
continue
1304 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1311 if test -n "$CC"; then
1312 echo "$as_me:1312: result: $CC" >&5
1313 echo "${ECHO_T}$CC" >&6
1315 echo "$as_me:1315: result: no" >&5
1316 echo "${ECHO_T}no" >&6
1319 test -n "$CC" && break
1322 if test -z "$CC"; then
1326 # Extract the first word of "$ac_prog", so it can be a program name with args.
1327 set dummy
$ac_prog; ac_word
=$2
1328 echo "$as_me:1328: checking for $ac_word" >&5
1329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1330 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1331 echo $ECHO_N "(cached) $ECHO_C" >&6
1333 if test -n "$ac_ct_CC"; then
1334 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1336 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1338 for ac_dir
in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir
=.
1341 $as_executable_p "$ac_dir/$ac_word" ||
continue
1342 ac_cv_prog_ac_ct_CC
="$ac_prog"
1348 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1349 if test -n "$ac_ct_CC"; then
1350 echo "$as_me:1350: result: $ac_ct_CC" >&5
1351 echo "${ECHO_T}$ac_ct_CC" >&6
1353 echo "$as_me:1353: result: no" >&5
1354 echo "${ECHO_T}no" >&6
1357 test -n "$ac_ct_CC" && break
1365 test -z "$CC" && { { echo "$as_me:1365: error: no acceptable cc found in \$PATH" >&5
1366 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1367 { (exit 1); exit 1; }; }
1369 cat >conftest.
$ac_ext <<_ACEOF
1370 #line 1370 "configure"
1371 #include "confdefs.h"
1381 ac_clean_files_save
=$ac_clean_files
1382 ac_clean_files
="$ac_clean_files a.out a.exe"
1383 # Try to create an executable without -o first, disregard a.out.
1384 # It will help us diagnose broken compiler, and finding out an intuition
1386 echo "$as_me:1386: checking for C compiler default output" >&5
1387 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1388 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1389 if { (eval echo "$as_me:1389: \"$ac_link_default\"") >&5
1390 (eval $ac_link_default) 2>&5
1392 echo "$as_me:1392: \$? = $ac_status" >&5
1393 (exit $ac_status); }; then
1394 for ac_file
in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1396 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1397 a.out
) # We found the default executable, but exeext='' is most
1400 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1407 echo "$as_me: failed program was:" >&5
1408 cat conftest.
$ac_ext >&5
1409 { { echo "$as_me:1409: error: C compiler cannot create executables" >&5
1410 echo "$as_me: error: C compiler cannot create executables" >&2;}
1411 { (exit 77); exit 77; }; }
1414 ac_exeext
=$ac_cv_exeext
1415 echo "$as_me:1415: result: $ac_file" >&5
1416 echo "${ECHO_T}$ac_file" >&6
1418 # Check the compiler produces executables we can run. If not, either
1419 # the compiler is broken, or we cross compile.
1420 echo "$as_me:1420: checking whether the C compiler works" >&5
1421 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1422 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1423 # If not cross compiling, check that we can run a simple program.
1424 if test "$cross_compiling" != yes; then
1425 if { ac_try
='./$ac_file'
1426 { (eval echo "$as_me:1426: \"$ac_try\"") >&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }; }; then
1433 if test "$cross_compiling" = maybe
; then
1436 { { echo "$as_me:1436: error: cannot run C compiled programs.
1437 If you meant to cross compile, use \`--host'." >&5
1438 echo "$as_me: error: cannot run C compiled programs.
1439 If you meant to cross compile, use \`--host'." >&2;}
1440 { (exit 1); exit 1; }; }
1444 echo "$as_me:1444: result: yes" >&5
1445 echo "${ECHO_T}yes" >&6
1447 rm -f a.out a.exe conftest
$ac_cv_exeext
1448 ac_clean_files
=$ac_clean_files_save
1449 # Check the compiler produces executables we can run. If not, either
1450 # the compiler is broken, or we cross compile.
1451 echo "$as_me:1451: checking whether we are cross compiling" >&5
1452 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1453 echo "$as_me:1453: result: $cross_compiling" >&5
1454 echo "${ECHO_T}$cross_compiling" >&6
1456 echo "$as_me:1456: checking for executable suffix" >&5
1457 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1458 if { (eval echo "$as_me:1458: \"$ac_link\"") >&5
1459 (eval $ac_link) 2>&5
1461 echo "$as_me:1461: \$? = $ac_status" >&5
1462 (exit $ac_status); }; then
1463 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1464 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1465 # work properly (i.e., refer to `conftest.exe'), while it won't with
1467 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1469 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1470 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1477 { { echo "$as_me:1477: error: cannot compute EXEEXT: cannot compile and link" >&5
1478 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1479 { (exit 1); exit 1; }; }
1482 rm -f conftest
$ac_cv_exeext
1483 echo "$as_me:1483: result: $ac_cv_exeext" >&5
1484 echo "${ECHO_T}$ac_cv_exeext" >&6
1486 rm -f conftest.
$ac_ext
1487 EXEEXT
=$ac_cv_exeext
1489 echo "$as_me:1489: checking for object suffix" >&5
1490 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1491 if test "${ac_cv_objext+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 cat >conftest.
$ac_ext <<_ACEOF
1495 #line 1495 "configure"
1496 #include "confdefs.h"
1506 rm -f conftest.o conftest.obj
1507 if { (eval echo "$as_me:1507: \"$ac_compile\"") >&5
1508 (eval $ac_compile) 2>&5
1510 echo "$as_me:1510: \$? = $ac_status" >&5
1511 (exit $ac_status); }; then
1512 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1514 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
1515 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1520 echo "$as_me: failed program was:" >&5
1521 cat conftest.
$ac_ext >&5
1522 { { echo "$as_me:1522: error: cannot compute OBJEXT: cannot compile" >&5
1523 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1524 { (exit 1); exit 1; }; }
1527 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1529 echo "$as_me:1529: result: $ac_cv_objext" >&5
1530 echo "${ECHO_T}$ac_cv_objext" >&6
1531 OBJEXT
=$ac_cv_objext
1533 echo "$as_me:1533: checking whether we are using the GNU C compiler" >&5
1534 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1535 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 cat >conftest.
$ac_ext <<_ACEOF
1539 #line 1539 "configure"
1540 #include "confdefs.h"
1553 rm -f conftest.
$ac_objext
1554 if { (eval echo "$as_me:1554: \"$ac_compile\"") >&5
1555 (eval $ac_compile) 2>&5
1557 echo "$as_me:1557: \$? = $ac_status" >&5
1558 (exit $ac_status); } &&
1559 { ac_try
='test -s conftest.$ac_objext'
1560 { (eval echo "$as_me:1560: \"$ac_try\"") >&5
1563 echo "$as_me:1563: \$? = $ac_status" >&5
1564 (exit $ac_status); }; }; then
1567 echo "$as_me: failed program was:" >&5
1568 cat conftest.
$ac_ext >&5
1571 rm -f conftest.
$ac_objext conftest.
$ac_ext
1572 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1575 echo "$as_me:1575: result: $ac_cv_c_compiler_gnu" >&5
1576 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1577 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1578 ac_test_CFLAGS
=${CFLAGS+set}
1579 ac_save_CFLAGS
=$CFLAGS
1581 echo "$as_me:1581: checking whether $CC accepts -g" >&5
1582 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1583 if test "${ac_cv_prog_cc_g+set}" = set; then
1584 echo $ECHO_N "(cached) $ECHO_C" >&6
1586 cat >conftest.
$ac_ext <<_ACEOF
1587 #line 1587 "configure"
1588 #include "confdefs.h"
1598 rm -f conftest.
$ac_objext
1599 if { (eval echo "$as_me:1599: \"$ac_compile\"") >&5
1600 (eval $ac_compile) 2>&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); } &&
1604 { ac_try
='test -s conftest.$ac_objext'
1605 { (eval echo "$as_me:1605: \"$ac_try\"") >&5
1608 echo "$as_me:1608: \$? = $ac_status" >&5
1609 (exit $ac_status); }; }; then
1612 echo "$as_me: failed program was:" >&5
1613 cat conftest.
$ac_ext >&5
1616 rm -f conftest.
$ac_objext conftest.
$ac_ext
1618 echo "$as_me:1618: result: $ac_cv_prog_cc_g" >&5
1619 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1620 if test "$ac_test_CFLAGS" = set; then
1621 CFLAGS
=$ac_save_CFLAGS
1622 elif test $ac_cv_prog_cc_g = yes; then
1623 if test "$GCC" = yes; then
1629 if test "$GCC" = yes; then
1635 # Some people use a C++ compiler to compile C. Since we use `exit',
1636 # in C++ we need to declare it. In case someone uses the same compiler
1637 # for both compiling C and C++ we need to have the C++ compiler decide
1638 # the declaration of exit, since it's the most demanding environment.
1639 cat >conftest.
$ac_ext <<_ACEOF
1644 rm -f conftest.
$ac_objext
1645 if { (eval echo "$as_me:1645: \"$ac_compile\"") >&5
1646 (eval $ac_compile) 2>&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); } &&
1650 { ac_try
='test -s conftest.$ac_objext'
1651 { (eval echo "$as_me:1651: \"$ac_try\"") >&5
1654 echo "$as_me:1654: \$? = $ac_status" >&5
1655 (exit $ac_status); }; }; then
1656 for ac_declaration
in \
1658 '#include <stdlib.h>' \
1659 'extern "C" void std::exit (int) throw (); using std::exit;' \
1660 'extern "C" void std::exit (int); using std::exit;' \
1661 'extern "C" void exit (int) throw ();' \
1662 'extern "C" void exit (int);' \
1665 cat >conftest.
$ac_ext <<_ACEOF
1666 #line 1666 "configure"
1667 #include "confdefs.h"
1678 rm -f conftest.
$ac_objext
1679 if { (eval echo "$as_me:1679: \"$ac_compile\"") >&5
1680 (eval $ac_compile) 2>&5
1682 echo "$as_me:1682: \$? = $ac_status" >&5
1683 (exit $ac_status); } &&
1684 { ac_try
='test -s conftest.$ac_objext'
1685 { (eval echo "$as_me:1685: \"$ac_try\"") >&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); }; }; then
1692 echo "$as_me: failed program was:" >&5
1693 cat conftest.
$ac_ext >&5
1696 rm -f conftest.
$ac_objext conftest.
$ac_ext
1697 cat >conftest.
$ac_ext <<_ACEOF
1698 #line 1698 "configure"
1699 #include "confdefs.h"
1709 rm -f conftest.
$ac_objext
1710 if { (eval echo "$as_me:1710: \"$ac_compile\"") >&5
1711 (eval $ac_compile) 2>&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); } &&
1715 { ac_try
='test -s conftest.$ac_objext'
1716 { (eval echo "$as_me:1716: \"$ac_try\"") >&5
1719 echo "$as_me:1719: \$? = $ac_status" >&5
1720 (exit $ac_status); }; }; then
1723 echo "$as_me: failed program was:" >&5
1724 cat conftest.
$ac_ext >&5
1726 rm -f conftest.
$ac_objext conftest.
$ac_ext
1728 echo '#ifdef __cplusplus' >>confdefs.h
1729 echo $ac_declaration >>confdefs.h
1730 echo '#endif' >>confdefs.h
1733 echo "$as_me: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 rm -f conftest.
$ac_objext conftest.
$ac_ext
1738 ac_cpp
='$CPP $CPPFLAGS'
1739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1743 echo "$as_me:1743: checking for POSIXized ISC" >&5
1744 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
1745 if test -d /etc
/conf
/kconfig.d
&&
1746 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
1748 echo "$as_me:1748: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1750 ISC
=yes # If later tests want to check for ISC.
1752 cat >>confdefs.h
<<\EOF
1753 #define _POSIX_SOURCE 1
1756 if test "$GCC" = yes; then
1762 echo "$as_me:1762: result: no" >&5
1763 echo "${ECHO_T}no" >&6
1767 # Find a good install program. We prefer a C program (faster),
1768 # so one script is as good as another. But avoid the broken or
1769 # incompatible versions:
1770 # SysV /etc/install, /usr/sbin/install
1771 # SunOS /usr/etc/install
1772 # IRIX /sbin/install
1774 # AmigaOS /C/install, which installs bootblocks on floppy discs
1775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1778 # ./install, which can be erroneously created by make from ./install.sh.
1779 echo "$as_me:1779: checking for a BSD compatible install" >&5
1780 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1781 if test -z "$INSTALL"; then
1782 if test "${ac_cv_path_install+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1786 for ac_dir
in $PATH; do
1788 # Account for people who put trailing slashes in PATH elements.
1790 / | .
/ | .
// |
/cC
/* \
1791 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
1794 # OSF1 and SCO ODT 3.0 have their own names for install.
1795 # Don't use installbsd from OSF since it installs stuff as root
1797 for ac_prog
in ginstall scoinst
install; do
1798 if $as_executable_p "$ac_dir/$ac_prog"; then
1799 if test $ac_prog = install &&
1800 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1801 # AIX install. It has an incompatible calling convention.
1803 elif test $ac_prog = install &&
1804 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
1805 # program-specific install script used by HP pwplus--don't use.
1808 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1818 if test "${ac_cv_path_install+set}" = set; then
1819 INSTALL
=$ac_cv_path_install
1821 # As a last resort, use the slow shell script. We don't cache a
1822 # path for INSTALL within a source directory, because that will
1823 # break other packages using the cache if that directory is
1824 # removed, or if the path is relative.
1825 INSTALL
=$ac_install_sh
1828 echo "$as_me:1828: result: $INSTALL" >&5
1829 echo "${ECHO_T}$INSTALL" >&6
1831 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1832 # It thinks the first close brace ends the variable substitution.
1833 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1835 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
1837 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1839 echo "$as_me:1839: checking whether build environment is sane" >&5
1840 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1843 echo timestamp
> conftestfile
1844 # Do `set' in a subshell so we don't clobber the current shell's
1845 # arguments. Must try -L first in case configure is actually a
1846 # symlink; some systems play weird games with the mod time of symlinks
1847 # (eg FreeBSD returns the mod time of the symlink's containing
1850 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1851 if test "$*" = "X"; then
1853 set X
`ls -t $srcdir/configure conftestfile`
1855 if test "$*" != "X $srcdir/configure conftestfile" \
1856 && test "$*" != "X conftestfile $srcdir/configure"; then
1858 # If neither matched, then we have a broken ls. This can happen
1859 # if, for instance, CONFIG_SHELL is bash and it inherits a
1860 # broken ls alias from the environment. This has actually
1861 # happened. Such a system could not be considered "sane".
1862 { { echo "$as_me:1862: error: ls -t appears to fail. Make sure there is not a broken
1863 alias in your environment" >&5
1864 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1865 alias in your environment" >&2;}
1866 { (exit 1); exit 1; }; }
1869 test "$2" = conftestfile
1875 { { echo "$as_me:1875: error: newly created file is older than distributed files!
1876 Check your system clock" >&5
1877 echo "$as_me: error: newly created file is older than distributed files!
1878 Check your system clock" >&2;}
1879 { (exit 1); exit 1; }; }
1882 echo "$as_me:1882: result: yes" >&5
1883 echo "${ECHO_T}yes" >&6
1884 if test "$program_transform_name" = s
,x
,x
,; then
1885 program_transform_name
=
1887 # Double any \ or $. echo might interpret backslashes.
1888 cat <<\EOF
>conftest.
sed
1889 s
,\\,\\\\,g
; s
,\$
,$$
,g
1891 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1894 test "$program_prefix" != NONE
&&
1895 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
1896 # Use a double $ so make ignores it.
1897 test "$program_suffix" != NONE
&&
1898 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
1900 # sed with no file args requires a program.
1901 test -z "$program_transform_name" && program_transform_name
="s,x,x,"
1903 echo "$as_me:1903: checking whether ${MAKE-make} sets \${MAKE}" >&5
1904 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1905 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1906 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 cat >conftest.
make <<\EOF
1911 @
echo 'ac_maketemp="${MAKE}"'
1913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1914 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1915 if test -n "$ac_maketemp"; then
1916 eval ac_cv_prog_make_
${ac_make}_set
=yes
1918 eval ac_cv_prog_make_
${ac_make}_set
=no
1922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1923 echo "$as_me:1923: result: yes" >&5
1924 echo "${ECHO_T}yes" >&6
1927 echo "$as_me:1927: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 SET_MAKE
="MAKE=${MAKE-make}"
1936 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1937 { { echo "$as_me:1937: error: source directory already configured; run \"make distclean\" there first" >&5
1938 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1939 { (exit 1); exit 1; }; }
1942 cat >>confdefs.h
<<EOF
1943 #define PACKAGE "$PACKAGE"
1946 cat >>confdefs.h
<<EOF
1947 #define VERSION "$VERSION"
1950 missing_dir
=`cd $ac_aux_dir && pwd`
1951 echo "$as_me:1951: checking for working aclocal" >&5
1952 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1953 # Run test in a subshell; some versions of sh will print an error if
1954 # an executable is not found, even if stderr is redirected.
1955 # Redirect stdin to placate older versions of autoconf. Sigh.
1956 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1958 echo "$as_me:1958: result: found" >&5
1959 echo "${ECHO_T}found" >&6
1961 ACLOCAL
="$missing_dir/missing aclocal"
1962 echo "$as_me:1962: result: missing" >&5
1963 echo "${ECHO_T}missing" >&6
1966 echo "$as_me:1966: checking for working autoconf" >&5
1967 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1968 # Run test in a subshell; some versions of sh will print an error if
1969 # an executable is not found, even if stderr is redirected.
1970 # Redirect stdin to placate older versions of autoconf. Sigh.
1971 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1973 echo "$as_me:1973: result: found" >&5
1974 echo "${ECHO_T}found" >&6
1976 AUTOCONF
="$missing_dir/missing autoconf"
1977 echo "$as_me:1977: result: missing" >&5
1978 echo "${ECHO_T}missing" >&6
1981 echo "$as_me:1981: checking for working automake" >&5
1982 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1983 # Run test in a subshell; some versions of sh will print an error if
1984 # an executable is not found, even if stderr is redirected.
1985 # Redirect stdin to placate older versions of autoconf. Sigh.
1986 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1988 echo "$as_me:1988: result: found" >&5
1989 echo "${ECHO_T}found" >&6
1991 AUTOMAKE
="$missing_dir/missing automake"
1992 echo "$as_me:1992: result: missing" >&5
1993 echo "${ECHO_T}missing" >&6
1996 echo "$as_me:1996: checking for working autoheader" >&5
1997 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1998 # Run test in a subshell; some versions of sh will print an error if
1999 # an executable is not found, even if stderr is redirected.
2000 # Redirect stdin to placate older versions of autoconf. Sigh.
2001 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
2002 AUTOHEADER
=autoheader
2003 echo "$as_me:2003: result: found" >&5
2004 echo "${ECHO_T}found" >&6
2006 AUTOHEADER
="$missing_dir/missing autoheader"
2007 echo "$as_me:2007: result: missing" >&5
2008 echo "${ECHO_T}missing" >&6
2011 echo "$as_me:2011: checking for working makeinfo" >&5
2012 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
2013 # Run test in a subshell; some versions of sh will print an error if
2014 # an executable is not found, even if stderr is redirected.
2015 # Redirect stdin to placate older versions of autoconf. Sigh.
2016 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
2018 echo "$as_me:2018: result: found" >&5
2019 echo "${ECHO_T}found" >&6
2021 MAKEINFO
="$missing_dir/missing makeinfo"
2022 echo "$as_me:2022: result: missing" >&5
2023 echo "${ECHO_T}missing" >&6
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2028 set dummy
${ac_tool_prefix}ar; ac_word
=$2
2029 echo "$as_me:2029: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_AR+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$AR"; then
2035 ac_cv_prog_AR
="$AR" # Let the user override the test.
2037 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2039 for ac_dir
in $ac_dummy; do
2041 test -z "$ac_dir" && ac_dir
=.
2042 $as_executable_p "$ac_dir/$ac_word" ||
continue
2043 ac_cv_prog_AR
="${ac_tool_prefix}ar"
2050 if test -n "$AR"; then
2051 echo "$as_me:2051: result: $AR" >&5
2052 echo "${ECHO_T}$AR" >&6
2054 echo "$as_me:2054: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2059 if test -z "$ac_cv_prog_AR"; then
2061 # Extract the first word of "ar", so it can be a program name with args.
2062 set dummy
ar; ac_word
=$2
2063 echo "$as_me:2063: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test -n "$ac_ct_AR"; then
2069 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
2071 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2073 for ac_dir
in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir
=.
2076 $as_executable_p "$ac_dir/$ac_word" ||
continue
2077 ac_cv_prog_ac_ct_AR
="ar"
2083 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
2084 if test -n "$ac_ct_AR"; then
2085 echo "$as_me:2085: result: $ac_ct_AR" >&5
2086 echo "${ECHO_T}$ac_ct_AR" >&6
2088 echo "$as_me:2088: result: no" >&5
2089 echo "${ECHO_T}no" >&6
2097 if test -n "$ac_tool_prefix"; then
2098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2099 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2100 echo "$as_me:2100: checking for $ac_word" >&5
2101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102 if test "${ac_cv_prog_RANLIB+set}" = set; then
2103 echo $ECHO_N "(cached) $ECHO_C" >&6
2105 if test -n "$RANLIB"; then
2106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2108 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2110 for ac_dir
in $ac_dummy; do
2112 test -z "$ac_dir" && ac_dir
=.
2113 $as_executable_p "$ac_dir/$ac_word" ||
continue
2114 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2120 RANLIB
=$ac_cv_prog_RANLIB
2121 if test -n "$RANLIB"; then
2122 echo "$as_me:2122: result: $RANLIB" >&5
2123 echo "${ECHO_T}$RANLIB" >&6
2125 echo "$as_me:2125: result: no" >&5
2126 echo "${ECHO_T}no" >&6
2130 if test -z "$ac_cv_prog_RANLIB"; then
2131 ac_ct_RANLIB
=$RANLIB
2132 # Extract the first word of "ranlib", so it can be a program name with args.
2133 set dummy ranlib
; ac_word
=$2
2134 echo "$as_me:2134: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2136 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$ac_ct_RANLIB"; then
2140 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2142 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2144 for ac_dir
in $ac_dummy; do
2146 test -z "$ac_dir" && ac_dir
=.
2147 $as_executable_p "$ac_dir/$ac_word" ||
continue
2148 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2155 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2156 if test -n "$ac_ct_RANLIB"; then
2157 echo "$as_me:2157: result: $ac_ct_RANLIB" >&5
2158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2160 echo "$as_me:2160: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2164 RANLIB
=$ac_ct_RANLIB
2166 RANLIB
="$ac_cv_prog_RANLIB"
2169 # Check whether --enable-shared or --disable-shared was given.
2170 if test "${enable_shared+set}" = set; then
2171 enableval
="$enable_shared"
2172 p
=${PACKAGE-default}
2174 yes) enable_shared
=yes ;;
2175 no
) enable_shared
=no
;;
2178 # Look at the argument we got. We use all the common list separators.
2179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2180 for pkg
in $enableval; do
2181 if test "X$pkg" = "X$p"; then
2192 # Check whether --enable-static or --disable-static was given.
2193 if test "${enable_static+set}" = set; then
2194 enableval
="$enable_static"
2195 p
=${PACKAGE-default}
2197 yes) enable_static
=yes ;;
2198 no
) enable_static
=no
;;
2201 # Look at the argument we got. We use all the common list separators.
2202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2203 for pkg
in $enableval; do
2204 if test "X$pkg" = "X$p"; then
2214 # Check whether --enable-fast-install or --disable-fast-install was given.
2215 if test "${enable_fast_install+set}" = set; then
2216 enableval
="$enable_fast_install"
2217 p
=${PACKAGE-default}
2219 yes) enable_fast_install
=yes ;;
2220 no
) enable_fast_install
=no
;;
2222 enable_fast_install
=no
2223 # Look at the argument we got. We use all the common list separators.
2224 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2225 for pkg
in $enableval; do
2226 if test "X$pkg" = "X$p"; then
2227 enable_fast_install
=yes
2234 enable_fast_install
=yes
2237 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2238 if test "${with_gnu_ld+set}" = set; then
2239 withval
="$with_gnu_ld"
2240 test "$withval" = no || with_gnu_ld
=yes
2245 if test "$GCC" = yes; then
2246 # Check if gcc -print-prog-name=ld gives a path.
2247 echo "$as_me:2247: checking for ld used by GCC" >&5
2248 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2251 # gcc leaves a trailing carriage return which upsets mingw
2252 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2254 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
2257 # Accept absolute paths.
2258 [\\/]* |
[A-Za-z
]:[\\/]*)
2259 re_direlt
='/[^/][^/]*/\.\./'
2260 # Canonicalize the path of ld
2261 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2262 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2263 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2265 test -z "$LD" && LD
="$ac_prog"
2268 # If it fails, then pretend we aren't using GCC.
2272 # If it is relative, then search for the first ld in PATH.
2276 elif test "$with_gnu_ld" = yes; then
2277 echo "$as_me:2277: checking for GNU ld" >&5
2278 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2280 echo "$as_me:2280: checking for non-GNU ld" >&5
2281 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2283 if test "${lt_cv_path_LD+set}" = set; then
2284 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 if test -z "$LD"; then
2287 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2288 for ac_dir
in $PATH; do
2289 test -z "$ac_dir" && ac_dir
=.
2290 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2291 lt_cv_path_LD
="$ac_dir/$ac_prog"
2292 # Check to see if the program is GNU ld. I'd rather use --version,
2293 # but apparently some GNU ld's only accept -v.
2294 # Break only if it was the GNU/non-GNU ld that we prefer.
2295 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2296 test "$with_gnu_ld" != no
&& break
2298 test "$with_gnu_ld" != yes && break
2304 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
2309 if test -n "$LD"; then
2310 echo "$as_me:2310: result: $LD" >&5
2311 echo "${ECHO_T}$LD" >&6
2313 echo "$as_me:2313: result: no" >&5
2314 echo "${ECHO_T}no" >&6
2316 test -z "$LD" && { { echo "$as_me:2316: error: no acceptable ld found in \$PATH" >&5
2317 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2318 { (exit 1); exit 1; }; }
2319 echo "$as_me:2319: checking if the linker ($LD) is GNU ld" >&5
2320 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2321 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2325 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2326 lt_cv_prog_gnu_ld
=yes
2328 lt_cv_prog_gnu_ld
=no
2331 echo "$as_me:2331: result: $lt_cv_prog_gnu_ld" >&5
2332 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2333 with_gnu_ld
=$lt_cv_prog_gnu_ld
2335 echo "$as_me:2335: checking for $LD option to reload object files" >&5
2336 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2337 if test "${lt_cv_ld_reload_flag+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 lt_cv_ld_reload_flag
='-r'
2342 echo "$as_me:2342: result: $lt_cv_ld_reload_flag" >&5
2343 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2344 reload_flag
=$lt_cv_ld_reload_flag
2345 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2347 echo "$as_me:2347: checking for BSD-compatible nm" >&5
2348 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2349 if test "${lt_cv_path_NM+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$NM"; then
2353 # Let the user override the test.
2356 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2357 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2358 test -z "$ac_dir" && ac_dir
=.
2359 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2360 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2361 # Check to see if the nm accepts a BSD-compat flag.
2362 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2363 # nm: unknown option "B" ignored
2364 # Tru64's nm complains that /dev/null is an invalid object file
2365 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2366 lt_cv_path_NM
="$tmp_nm -B"
2368 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2369 lt_cv_path_NM
="$tmp_nm -p"
2372 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2373 continue # so that we can try to find one that supports BSD flags
2378 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2383 echo "$as_me:2383: result: $NM" >&5
2384 echo "${ECHO_T}$NM" >&6
2386 echo "$as_me:2386: checking whether ln -s works" >&5
2387 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2389 if test "$LN_S" = "ln -s"; then
2390 echo "$as_me:2390: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6
2393 echo "$as_me:2393: result: no, using $LN_S" >&5
2394 echo "${ECHO_T}no, using $LN_S" >&6
2397 echo "$as_me:2397: checking how to recognise dependant libraries" >&5
2398 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2399 if test "${lt_cv_deplibs_check_method+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2403 lt_cv_file_magic_test_file
=
2404 lt_cv_deplibs_check_method
='unknown'
2405 # Need to set the preceding variable on all platforms that support
2406 # interlibrary dependencies.
2407 # 'none' -- dependencies not supported.
2408 # `unknown' -- same as none, but documents that we really don't know.
2409 # 'pass_all' -- all dependencies passed with no checks.
2410 # 'test_compile' -- check by making test program.
2411 # 'file_magic [regex]' -- check by looking for files in library path
2412 # which responds to the $file_magic_cmd with a given egrep regex.
2413 # If you have `file' or equivalent on your system and you're not sure
2414 # whether `pass_all' will *always* work, you probably want this one.
2418 lt_cv_deplibs_check_method
=pass_all
2422 lt_cv_deplibs_check_method
=pass_all
2426 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2427 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2428 lt_cv_file_magic_test_file
=/shlib
/libc.so
2431 cygwin
* | mingw
* |pw32
*)
2432 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2433 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2436 darwin
* | rhapsody
*)
2437 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2438 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2440 rhapsody
* | darwin1.012
)
2441 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
2444 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2450 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2453 # Not sure whether the presence of OpenBSD here was a mistake.
2454 # Let's accept both of them until this is cleared up.
2455 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2456 lt_cv_file_magic_cmd
=/usr
/bin
/file
2457 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2461 lt_cv_deplibs_check_method
=pass_all
2466 lt_cv_deplibs_check_method
=pass_all
2470 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2471 lt_cv_file_magic_cmd
=/usr
/bin
/file
2472 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2478 # this will be overridden with pass_all, but let us keep it just in case
2479 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2483 *-32|
*"-32 ") libmagic
=32-bit;;
2484 *-n32|
*"-n32 ") libmagic
=N32
;;
2485 *-64|
*"-64 ") libmagic
=64-bit;;
2486 *) libmagic
=never-match
;;
2488 # this will be overridden with pass_all, but let us keep it just in case
2489 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2492 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2493 lt_cv_deplibs_check_method
=pass_all
2496 # This must be Linux ELF.
2499 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
2500 lt_cv_deplibs_check_method
=pass_all
;;
2502 # glibc up to 2.1.1 does not perform some relocations on ARM
2503 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2505 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2509 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2510 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2512 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2517 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2518 lt_cv_file_magic_cmd
=/usr
/bin
/file
2519 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2522 osf3
* | osf4
* | osf5
*)
2523 # this will be overridden with pass_all, but let us keep it just in case
2524 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2525 lt_cv_file_magic_test_file
=/shlib
/libc.so
2526 lt_cv_deplibs_check_method
=pass_all
2530 lt_cv_deplibs_check_method
=pass_all
2534 lt_cv_deplibs_check_method
=pass_all
2535 lt_cv_file_magic_test_file
=/lib
/libc.so
2538 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2539 case $host_vendor in
2541 lt_cv_deplibs_check_method
=pass_all
2544 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]'
2545 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2552 echo "$as_me:2552: result: $lt_cv_deplibs_check_method" >&5
2553 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2554 file_magic_cmd
=$lt_cv_file_magic_cmd
2555 deplibs_check_method
=$lt_cv_deplibs_check_method
2557 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2559 # Only perform the check for file, if the check method requires it
2560 case $deplibs_check_method in
2562 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2563 echo "$as_me:2563: checking for ${ac_tool_prefix}file" >&5
2564 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2565 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2573 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2576 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2577 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2578 ac_dummy
="/usr/bin:$PATH"
2579 for ac_dir
in $ac_dummy; do
2580 test -z "$ac_dir" && ac_dir
=.
2581 if test -f $ac_dir/${ac_tool_prefix}file; then
2582 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2583 if test -n "$file_magic_test_file"; then
2584 case $deplibs_check_method in
2586 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2587 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2588 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2589 egrep "$file_magic_regex" > /dev
/null
; then
2594 *** Warning: the command libtool uses to detect shared libraries,
2595 *** $file_magic_cmd, produces output that libtool cannot recognize.
2596 *** The result is that libtool may fail to recognize shared libraries
2597 *** as such. This will affect the creation of libtool libraries that
2598 *** depend on shared libraries, but programs linked with such libtool
2599 *** libraries will work regardless of this problem. Nevertheless, you
2600 *** may want to report the problem to your system manager and/or to
2601 *** bug-libtool@gnu.org
2611 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2616 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2617 if test -n "$MAGIC_CMD"; then
2618 echo "$as_me:2618: result: $MAGIC_CMD" >&5
2619 echo "${ECHO_T}$MAGIC_CMD" >&6
2621 echo "$as_me:2621: result: no" >&5
2622 echo "${ECHO_T}no" >&6
2625 if test -z "$lt_cv_path_MAGIC_CMD"; then
2626 if test -n "$ac_tool_prefix"; then
2627 echo "$as_me:2627: checking for file" >&5
2628 echo $ECHO_N "checking for file... $ECHO_C" >&6
2629 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2637 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2640 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2642 ac_dummy
="/usr/bin:$PATH"
2643 for ac_dir
in $ac_dummy; do
2644 test -z "$ac_dir" && ac_dir
=.
2645 if test -f $ac_dir/file; then
2646 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2647 if test -n "$file_magic_test_file"; then
2648 case $deplibs_check_method in
2650 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2651 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2652 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2653 egrep "$file_magic_regex" > /dev
/null
; then
2658 *** Warning: the command libtool uses to detect shared libraries,
2659 *** $file_magic_cmd, produces output that libtool cannot recognize.
2660 *** The result is that libtool may fail to recognize shared libraries
2661 *** as such. This will affect the creation of libtool libraries that
2662 *** depend on shared libraries, but programs linked with such libtool
2663 *** libraries will work regardless of this problem. Nevertheless, you
2664 *** may want to report the problem to your system manager and/or to
2665 *** bug-libtool@gnu.org
2675 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2680 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2681 if test -n "$MAGIC_CMD"; then
2682 echo "$as_me:2682: result: $MAGIC_CMD" >&5
2683 echo "${ECHO_T}$MAGIC_CMD" >&6
2685 echo "$as_me:2685: result: no" >&5
2686 echo "${ECHO_T}no" >&6
2698 if test -n "$ac_tool_prefix"; then
2699 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2700 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2701 echo "$as_me:2701: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2703 if test "${ac_cv_prog_RANLIB+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$RANLIB"; then
2707 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2709 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2711 for ac_dir
in $ac_dummy; do
2713 test -z "$ac_dir" && ac_dir
=.
2714 $as_executable_p "$ac_dir/$ac_word" ||
continue
2715 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2721 RANLIB
=$ac_cv_prog_RANLIB
2722 if test -n "$RANLIB"; then
2723 echo "$as_me:2723: result: $RANLIB" >&5
2724 echo "${ECHO_T}$RANLIB" >&6
2726 echo "$as_me:2726: result: no" >&5
2727 echo "${ECHO_T}no" >&6
2731 if test -z "$ac_cv_prog_RANLIB"; then
2732 ac_ct_RANLIB
=$RANLIB
2733 # Extract the first word of "ranlib", so it can be a program name with args.
2734 set dummy ranlib
; ac_word
=$2
2735 echo "$as_me:2735: checking for $ac_word" >&5
2736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 if test -n "$ac_ct_RANLIB"; then
2741 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
2743 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2745 for ac_dir
in $ac_dummy; do
2747 test -z "$ac_dir" && ac_dir
=.
2748 $as_executable_p "$ac_dir/$ac_word" ||
continue
2749 ac_cv_prog_ac_ct_RANLIB
="ranlib"
2753 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
2756 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
2757 if test -n "$ac_ct_RANLIB"; then
2758 echo "$as_me:2758: result: $ac_ct_RANLIB" >&5
2759 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2761 echo "$as_me:2761: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2765 RANLIB
=$ac_ct_RANLIB
2767 RANLIB
="$ac_cv_prog_RANLIB"
2770 if test -n "$ac_tool_prefix"; then
2771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2772 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2773 echo "$as_me:2773: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2775 if test "${ac_cv_prog_STRIP+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2781 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2783 for ac_dir
in $ac_dummy; do
2785 test -z "$ac_dir" && ac_dir
=.
2786 $as_executable_p "$ac_dir/$ac_word" ||
continue
2787 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2793 STRIP
=$ac_cv_prog_STRIP
2794 if test -n "$STRIP"; then
2795 echo "$as_me:2795: result: $STRIP" >&5
2796 echo "${ECHO_T}$STRIP" >&6
2798 echo "$as_me:2798: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2803 if test -z "$ac_cv_prog_STRIP"; then
2805 # Extract the first word of "strip", so it can be a program name with args.
2806 set dummy strip
; ac_word
=$2
2807 echo "$as_me:2807: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$ac_ct_STRIP"; then
2813 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2815 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2817 for ac_dir
in $ac_dummy; do
2819 test -z "$ac_dir" && ac_dir
=.
2820 $as_executable_p "$ac_dir/$ac_word" ||
continue
2821 ac_cv_prog_ac_ct_STRIP
="strip"
2825 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2828 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2829 if test -n "$ac_ct_STRIP"; then
2830 echo "$as_me:2830: result: $ac_ct_STRIP" >&5
2831 echo "${ECHO_T}$ac_ct_STRIP" >&6
2833 echo "$as_me:2833: result: no" >&5
2834 echo "${ECHO_T}no" >&6
2839 STRIP
="$ac_cv_prog_STRIP"
2842 # Check for any special flags to pass to ltconfig.
2843 libtool_flags
="--cache-file=$cache_file"
2844 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2845 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2846 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2847 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2848 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2850 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2851 if test "${enable_libtool_lock+set}" = set; then
2852 enableval
="$enable_libtool_lock"
2855 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2856 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2858 # Check whether --with-pic or --without-pic was given.
2859 if test "${with_pic+set}" = set; then
2865 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2866 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2868 # Some flags need to be propagated to the compiler or linker for good
2872 # Find out which ABI we are using.
2873 echo '#line 2873 "configure"' > conftest.
$ac_ext
2874 if { (eval echo "$as_me:2874: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>&5
2877 echo "$as_me:2877: \$? = $ac_status" >&5
2878 (exit $ac_status); }; then
2879 case `/usr/bin/file conftest.$ac_objext` in
2895 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2896 SAVE_CFLAGS
="$CFLAGS"
2897 CFLAGS
="$CFLAGS -belf"
2898 echo "$as_me:2898: checking whether the C compiler needs -belf" >&5
2899 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2900 if test "${lt_cv_cc_needs_belf+set}" = set; then
2901 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 ac_cpp
='$CPP $CPPFLAGS'
2906 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2910 cat >conftest.
$ac_ext <<_ACEOF
2911 #line 2911 "configure"
2912 #include "confdefs.h"
2922 rm -f conftest.
$ac_objext conftest
$ac_exeext
2923 if { (eval echo "$as_me:2923: \"$ac_link\"") >&5
2924 (eval $ac_link) 2>&5
2926 echo "$as_me:2926: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try
='test -s conftest$ac_exeext'
2929 { (eval echo "$as_me:2929: \"$ac_try\"") >&5
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 lt_cv_cc_needs_belf
=yes
2936 echo "$as_me: failed program was:" >&5
2937 cat conftest.
$ac_ext >&5
2938 lt_cv_cc_needs_belf
=no
2940 rm -f conftest
$ac_exeext conftest.
$ac_ext
2942 ac_cpp
='$CPP $CPPFLAGS'
2943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2948 echo "$as_me:2948: result: $lt_cv_cc_needs_belf" >&5
2949 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2950 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2952 CFLAGS
="$SAVE_CFLAGS"
2958 # Save cache, so that ltconfig can load it
2959 cat >confcache
<<\_ACEOF
2960 # This file is a shell script that caches the results of configure
2961 # tests run on this system so they can be shared between configure
2962 # scripts and configure runs, see configure's option --config-cache.
2963 # It is not useful on other systems. If it contains results you don't
2964 # want to keep, you may remove or edit it.
2966 # config.status only pays attention to the cache file if you give it
2967 # the --recheck option to rerun configure.
2969 # `ac_cv_env_foo' variables (set or unset) will be overriden when
2970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2975 # The following way of writing the cache mishandles newlines in values,
2976 # but we know of no workaround that is simple, portable, and efficient.
2977 # So, don't put newlines in cache variables' values.
2978 # Ultrix sh set writes to stderr and can't be redirected directly,
2979 # and sets the high bit in the cache file unless we assign to the vars.
2982 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2984 # `set' does not quote correctly, so add quotes (double-quote
2985 # substitution turns \\\\ into \\, and sed turns \\ into \).
2988 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2991 # `set' quotes correctly as required by POSIX, so do not add quotes.
2993 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3002 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3004 if cmp -s $cache_file confcache
; then :; else
3005 if test -w $cache_file; then
3006 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3007 cat confcache
>$cache_file
3009 echo "not updating unwritable cache $cache_file"
3014 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3015 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
3016 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
3017 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
3018 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
3019 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
3020 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
3021 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
3022 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
3023 ||
{ { echo "$as_me:3023: error: libtool configure failed" >&5
3024 echo "$as_me: error: libtool configure failed" >&2;}
3025 { (exit 1); exit 1; }; }
3027 # Reload cache, that may have been modified by ltconfig
3028 if test -r "$cache_file"; then
3029 # Some versions of bash will fail to source /dev/null (special
3030 # files actually), so we avoid doing that.
3031 if test -f "$cache_file"; then
3032 { echo "$as_me:3032: loading cache $cache_file" >&5
3033 echo "$as_me: loading cache $cache_file" >&6;}
3035 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
3036 *) . .
/$cache_file;;
3040 { echo "$as_me:3040: creating cache $cache_file" >&5
3041 echo "$as_me: creating cache $cache_file" >&6;}
3045 # This can be used to rebuild libtool when needed
3046 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3048 # Always use our own libtool.
3049 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
3051 # Redirect the config.log output again, so that the ltconfig log is not
3052 # clobbered by the next message.
3053 exec 5>>.
/config.log
3055 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
3056 if test "${enable_64_bit_bfd+set}" = set; then
3057 enableval
="$enable_64_bit_bfd"
3058 case "${enableval}" in
3061 *) { { echo "$as_me:3061: error: bad value ${enableval} for 64-bit-bfd option" >&5
3062 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
3063 { (exit 1); exit 1; }; } ;;
3067 fi; # Check whether --enable-targets or --disable-targets was given.
3068 if test "${enable_targets+set}" = set; then
3069 enableval
="$enable_targets"
3070 case "${enableval}" in
3071 yes |
"") { { echo "$as_me:3071: error: enable-targets option must specify target names or 'all'" >&5
3072 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
3073 { (exit 1); exit 1; }; }
3075 no
) enable_targets
= ;;
3076 *) enable_targets
=$enableval ;;
3078 fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
3079 if test "${enable_commonbfdlib+set}" = set; then
3080 enableval
="$enable_commonbfdlib"
3081 case "${enableval}" in
3082 yes) commonbfdlib
=true
;;
3083 no
) commonbfdlib
=false
;;
3084 *) { { echo "$as_me:3084: error: bad value ${enableval} for BFD commonbfdlib option" >&5
3085 echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;}
3086 { (exit 1); exit 1; }; } ;;
3089 # Check whether --with-mmap or --without-mmap was given.
3090 if test "${with_mmap+set}" = set; then
3091 withval
="$with_mmap"
3092 case "${withval}" in
3093 yes) want_mmap
=true
;;
3094 no
) want_mmap
=false
;;
3095 *) { { echo "$as_me:3095: error: bad value ${withval} for BFD with-mmap option" >&5
3096 echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;}
3097 { (exit 1); exit 1; }; } ;;
3102 build_warnings
="-W -Wall"
3103 # Check whether --enable-build-warnings or --disable-build-warnings was given.
3104 if test "${enable_build_warnings+set}" = set; then
3105 enableval
="$enable_build_warnings"
3106 case "${enableval}" in
3108 no
) build_warnings
="-w";;
3109 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3110 build_warnings
="${build_warnings} ${t}";;
3111 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
3112 build_warnings
="${t} ${build_warnings}";;
3113 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
3115 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
3116 echo "Setting warning flags = $build_warnings" 6>&1
3119 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
3120 WARN_CFLAGS
="${build_warnings}"
3123 ac_config_headers
="$ac_config_headers config.h:config.in"
3125 ac_config_commands
="$ac_config_commands default-1"
3127 if test -z "$target" ; then
3128 { { echo "$as_me:3128: error: Unrecognized target system type; please check config.sub." >&5
3129 echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;}
3130 { (exit 1); exit 1; }; }
3133 echo "$as_me:3133: checking whether to enable maintainer-specific portions of Makefiles" >&5
3134 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3135 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3136 if test "${enable_maintainer_mode+set}" = set; then
3137 enableval
="$enable_maintainer_mode"
3138 USE_MAINTAINER_MODE
=$enableval
3140 USE_MAINTAINER_MODE
=no
3142 echo "$as_me:3142: result: $USE_MAINTAINER_MODE" >&5
3143 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3145 if test $USE_MAINTAINER_MODE = yes; then
3146 MAINTAINER_MODE_TRUE
=
3147 MAINTAINER_MODE_FALSE
='#'
3149 MAINTAINER_MODE_TRUE
='#'
3150 MAINTAINER_MODE_FALSE
=
3152 MAINT
=$MAINTAINER_MODE_TRUE
3160 ac_cpp
='$CPP $CPPFLAGS'
3161 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3164 if test -n "$ac_tool_prefix"; then
3165 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3166 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3167 echo "$as_me:3167: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3169 if test "${ac_cv_prog_CC+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC
="$CC" # Let the user override the test.
3175 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3177 for ac_dir
in $ac_dummy; do
3179 test -z "$ac_dir" && ac_dir
=.
3180 $as_executable_p "$ac_dir/$ac_word" ||
continue
3181 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3188 if test -n "$CC"; then
3189 echo "$as_me:3189: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3192 echo "$as_me:3192: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3197 if test -z "$ac_cv_prog_CC"; then
3199 # Extract the first word of "gcc", so it can be a program name with args.
3200 set dummy gcc
; ac_word
=$2
3201 echo "$as_me:3201: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3209 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3211 for ac_dir
in $ac_dummy; do
3213 test -z "$ac_dir" && ac_dir
=.
3214 $as_executable_p "$ac_dir/$ac_word" ||
continue
3215 ac_cv_prog_ac_ct_CC
="gcc"
3221 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3222 if test -n "$ac_ct_CC"; then
3223 echo "$as_me:3223: result: $ac_ct_CC" >&5
3224 echo "${ECHO_T}$ac_ct_CC" >&6
3226 echo "$as_me:3226: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3235 if test -z "$CC"; then
3236 if test -n "$ac_tool_prefix"; then
3237 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3238 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3239 echo "$as_me:3239: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3241 if test "${ac_cv_prog_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 if test -n "$CC"; then
3245 ac_cv_prog_CC
="$CC" # Let the user override the test.
3247 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3249 for ac_dir
in $ac_dummy; do
3251 test -z "$ac_dir" && ac_dir
=.
3252 $as_executable_p "$ac_dir/$ac_word" ||
continue
3253 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3260 if test -n "$CC"; then
3261 echo "$as_me:3261: result: $CC" >&5
3262 echo "${ECHO_T}$CC" >&6
3264 echo "$as_me:3264: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3269 if test -z "$ac_cv_prog_CC"; then
3271 # Extract the first word of "cc", so it can be a program name with args.
3272 set dummy cc
; ac_word
=$2
3273 echo "$as_me:3273: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if test -n "$ac_ct_CC"; then
3279 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3281 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3283 for ac_dir
in $ac_dummy; do
3285 test -z "$ac_dir" && ac_dir
=.
3286 $as_executable_p "$ac_dir/$ac_word" ||
continue
3287 ac_cv_prog_ac_ct_CC
="cc"
3293 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 echo "$as_me:3295: result: $ac_ct_CC" >&5
3296 echo "${ECHO_T}$ac_ct_CC" >&6
3298 echo "$as_me:3298: result: no" >&5
3299 echo "${ECHO_T}no" >&6
3308 if test -z "$CC"; then
3309 # Extract the first word of "cc", so it can be a program name with args.
3310 set dummy cc
; ac_word
=$2
3311 echo "$as_me:3311: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_CC+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC
="$CC" # Let the user override the test.
3320 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3322 for ac_dir
in $ac_dummy; do
3324 test -z "$ac_dir" && ac_dir
=.
3325 $as_executable_p "$ac_dir/$ac_word" ||
continue
3326 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3327 ac_prog_rejected
=yes
3334 if test $ac_prog_rejected = yes; then
3335 # We found a bogon in the path, so make sure we never use it.
3336 set dummy
$ac_cv_prog_CC
3338 if test $# != 0; then
3339 # We chose a different compiler from the bogus one.
3340 # However, it has the same basename, so the bogon will be chosen
3341 # first if we set CC to just the basename; use the full file name.
3343 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
3351 if test -n "$CC"; then
3352 echo "$as_me:3352: result: $CC" >&5
3353 echo "${ECHO_T}$CC" >&6
3355 echo "$as_me:3355: result: no" >&5
3356 echo "${ECHO_T}no" >&6
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3366 echo "$as_me:3366: checking for $ac_word" >&5
3367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3368 if test "${ac_cv_prog_CC+set}" = set; then
3369 echo $ECHO_N "(cached) $ECHO_C" >&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC
="$CC" # Let the user override the test.
3374 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3376 for ac_dir
in $ac_dummy; do
3378 test -z "$ac_dir" && ac_dir
=.
3379 $as_executable_p "$ac_dir/$ac_word" ||
continue
3380 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3387 if test -n "$CC"; then
3388 echo "$as_me:3388: result: $CC" >&5
3389 echo "${ECHO_T}$CC" >&6
3391 echo "$as_me:3391: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3395 test -n "$CC" && break
3398 if test -z "$CC"; then
3402 # Extract the first word of "$ac_prog", so it can be a program name with args.
3403 set dummy
$ac_prog; ac_word
=$2
3404 echo "$as_me:3404: checking for $ac_word" >&5
3405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3407 echo $ECHO_N "(cached) $ECHO_C" >&6
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3412 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3414 for ac_dir
in $ac_dummy; do
3416 test -z "$ac_dir" && ac_dir
=.
3417 $as_executable_p "$ac_dir/$ac_word" ||
continue
3418 ac_cv_prog_ac_ct_CC
="$ac_prog"
3424 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426 echo "$as_me:3426: result: $ac_ct_CC" >&5
3427 echo "${ECHO_T}$ac_ct_CC" >&6
3429 echo "$as_me:3429: result: no" >&5
3430 echo "${ECHO_T}no" >&6
3433 test -n "$ac_ct_CC" && break
3441 test -z "$CC" && { { echo "$as_me:3441: error: no acceptable cc found in \$PATH" >&5
3442 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3443 { (exit 1); exit 1; }; }
3445 echo "$as_me:3445: checking whether we are using the GNU C compiler" >&5
3446 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3447 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 cat >conftest.
$ac_ext <<_ACEOF
3451 #line 3451 "configure"
3452 #include "confdefs.h"
3465 rm -f conftest.
$ac_objext
3466 if { (eval echo "$as_me:3466: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3469 echo "$as_me:3469: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try
='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:3472: \"$ac_try\"") >&5
3475 echo "$as_me:3475: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3479 echo "$as_me: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3483 rm -f conftest.
$ac_objext conftest.
$ac_ext
3484 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3487 echo "$as_me:3487: result: $ac_cv_c_compiler_gnu" >&5
3488 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3489 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3490 ac_test_CFLAGS
=${CFLAGS+set}
3491 ac_save_CFLAGS
=$CFLAGS
3493 echo "$as_me:3493: checking whether $CC accepts -g" >&5
3494 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3495 if test "${ac_cv_prog_cc_g+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 cat >conftest.
$ac_ext <<_ACEOF
3499 #line 3499 "configure"
3500 #include "confdefs.h"
3510 rm -f conftest.
$ac_objext
3511 if { (eval echo "$as_me:3511: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>&5
3514 echo "$as_me:3514: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
3516 { ac_try
='test -s conftest.$ac_objext'
3517 { (eval echo "$as_me:3517: \"$ac_try\"") >&5
3520 echo "$as_me:3520: \$? = $ac_status" >&5
3521 (exit $ac_status); }; }; then
3524 echo "$as_me: failed program was:" >&5
3525 cat conftest.
$ac_ext >&5
3528 rm -f conftest.
$ac_objext conftest.
$ac_ext
3530 echo "$as_me:3530: result: $ac_cv_prog_cc_g" >&5
3531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3532 if test "$ac_test_CFLAGS" = set; then
3533 CFLAGS
=$ac_save_CFLAGS
3534 elif test $ac_cv_prog_cc_g = yes; then
3535 if test "$GCC" = yes; then
3541 if test "$GCC" = yes; then
3547 # Some people use a C++ compiler to compile C. Since we use `exit',
3548 # in C++ we need to declare it. In case someone uses the same compiler
3549 # for both compiling C and C++ we need to have the C++ compiler decide
3550 # the declaration of exit, since it's the most demanding environment.
3551 cat >conftest.
$ac_ext <<_ACEOF
3556 rm -f conftest.
$ac_objext
3557 if { (eval echo "$as_me:3557: \"$ac_compile\"") >&5
3558 (eval $ac_compile) 2>&5
3560 echo "$as_me:3560: \$? = $ac_status" >&5
3561 (exit $ac_status); } &&
3562 { ac_try
='test -s conftest.$ac_objext'
3563 { (eval echo "$as_me:3563: \"$ac_try\"") >&5
3566 echo "$as_me:3566: \$? = $ac_status" >&5
3567 (exit $ac_status); }; }; then
3568 for ac_declaration
in \
3570 '#include <stdlib.h>' \
3571 'extern "C" void std::exit (int) throw (); using std::exit;' \
3572 'extern "C" void std::exit (int); using std::exit;' \
3573 'extern "C" void exit (int) throw ();' \
3574 'extern "C" void exit (int);' \
3577 cat >conftest.
$ac_ext <<_ACEOF
3578 #line 3578 "configure"
3579 #include "confdefs.h"
3590 rm -f conftest.
$ac_objext
3591 if { (eval echo "$as_me:3591: \"$ac_compile\"") >&5
3592 (eval $ac_compile) 2>&5
3594 echo "$as_me:3594: \$? = $ac_status" >&5
3595 (exit $ac_status); } &&
3596 { ac_try
='test -s conftest.$ac_objext'
3597 { (eval echo "$as_me:3597: \"$ac_try\"") >&5
3600 echo "$as_me:3600: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3604 echo "$as_me: failed program was:" >&5
3605 cat conftest.
$ac_ext >&5
3608 rm -f conftest.
$ac_objext conftest.
$ac_ext
3609 cat >conftest.
$ac_ext <<_ACEOF
3610 #line 3610 "configure"
3611 #include "confdefs.h"
3621 rm -f conftest.
$ac_objext
3622 if { (eval echo "$as_me:3622: \"$ac_compile\"") >&5
3623 (eval $ac_compile) 2>&5
3625 echo "$as_me:3625: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try
='test -s conftest.$ac_objext'
3628 { (eval echo "$as_me:3628: \"$ac_try\"") >&5
3631 echo "$as_me:3631: \$? = $ac_status" >&5
3632 (exit $ac_status); }; }; then
3635 echo "$as_me: failed program was:" >&5
3636 cat conftest.
$ac_ext >&5
3638 rm -f conftest.
$ac_objext conftest.
$ac_ext
3640 echo '#ifdef __cplusplus' >>confdefs.h
3641 echo $ac_declaration >>confdefs.h
3642 echo '#endif' >>confdefs.h
3645 echo "$as_me: failed program was:" >&5
3646 cat conftest.
$ac_ext >&5
3648 rm -f conftest.
$ac_objext conftest.
$ac_ext
3650 ac_cpp
='$CPP $CPPFLAGS'
3651 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3656 if test -n "$ac_tool_prefix"; then
3657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3658 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3659 echo "$as_me:3659: checking for $ac_word" >&5
3660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661 if test "${ac_cv_prog_RANLIB+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 if test -n "$RANLIB"; then
3665 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3667 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3669 for ac_dir
in $ac_dummy; do
3671 test -z "$ac_dir" && ac_dir
=.
3672 $as_executable_p "$ac_dir/$ac_word" ||
continue
3673 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3679 RANLIB
=$ac_cv_prog_RANLIB
3680 if test -n "$RANLIB"; then
3681 echo "$as_me:3681: result: $RANLIB" >&5
3682 echo "${ECHO_T}$RANLIB" >&6
3684 echo "$as_me:3684: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3689 if test -z "$ac_cv_prog_RANLIB"; then
3690 ac_ct_RANLIB
=$RANLIB
3691 # Extract the first word of "ranlib", so it can be a program name with args.
3692 set dummy ranlib
; ac_word
=$2
3693 echo "$as_me:3693: checking for $ac_word" >&5
3694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 if test -n "$ac_ct_RANLIB"; then
3699 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3701 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
3703 for ac_dir
in $ac_dummy; do
3705 test -z "$ac_dir" && ac_dir
=.
3706 $as_executable_p "$ac_dir/$ac_word" ||
continue
3707 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3711 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3714 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3715 if test -n "$ac_ct_RANLIB"; then
3716 echo "$as_me:3716: result: $ac_ct_RANLIB" >&5
3717 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3719 echo "$as_me:3719: result: no" >&5
3720 echo "${ECHO_T}no" >&6
3723 RANLIB
=$ac_ct_RANLIB
3725 RANLIB
="$ac_cv_prog_RANLIB"
3729 ac_cpp
='$CPP $CPPFLAGS'
3730 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3733 echo "$as_me:3733: checking how to run the C preprocessor" >&5
3734 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3735 # On Suns, sometimes $CPP names a directory.
3736 if test -n "$CPP" && test -d "$CPP"; then
3739 if test -z "$CPP"; then
3740 if test "${ac_cv_prog_CPP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 # Double quotes because CPP needs to be expanded
3744 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3746 # Use a header file that comes with gcc, so configuring glibc
3747 # with a fresh cross-compiler works.
3748 # On the NeXT, cc -E runs the code through the compiler's parser,
3749 # not just through cpp. "Syntax error" is here to catch this case.
3750 ac_c_preproc_warn_flag
=maybe
3751 cat >conftest.
$ac_ext <<_ACEOF
3752 #line 3752 "configure"
3753 #include "confdefs.h"
3757 if { (eval echo "$as_me:3757: \"$ac_cpp conftest.$ac_ext\"") >&5
3758 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3760 egrep -v '^ *\+' conftest.er1
>conftest.err
3762 cat conftest.err
>&5
3763 echo "$as_me:3763: \$? = $ac_status" >&5
3764 (exit $ac_status); } >/dev
/null
; then
3765 if test -s conftest.err
; then
3766 ac_cpp_err
=$ac_c_preproc_warn_flag
3773 if test -z "$ac_cpp_err"; then
3774 # Now check whether non-existent headers can be detected and how
3775 # Skip if ac_cpp_err is not empty - ac_cpp is broken
3776 if test -z "$ac_cpp_err"; then
3777 cat >conftest.
$ac_ext <<_ACEOF
3778 #line 3778 "configure"
3779 #include "confdefs.h"
3780 #include <ac_nonexistent.h>
3782 if { (eval echo "$as_me:3782: \"$ac_cpp conftest.$ac_ext\"") >&5
3783 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3785 egrep -v '^ *\+' conftest.er1
>conftest.err
3787 cat conftest.err
>&5
3788 echo "$as_me:3788: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev
/null
; then
3790 if test -s conftest.err
; then
3791 ac_cpp_err
=$ac_c_preproc_warn_flag
3798 if test -z "$ac_cpp_err"; then
3799 # cannot detect missing includes at all
3802 echo "$as_me: failed program was:" >&5
3803 cat conftest.
$ac_ext >&5
3804 if test "x$ac_cpp_err" = xmaybe
; then
3805 ac_c_preproc_warn_flag
=yes
3807 ac_c_preproc_warn_flag
=
3811 rm -f conftest.err conftest.
$ac_ext
3814 echo "$as_me: failed program was:" >&5
3815 cat conftest.
$ac_ext >&5
3818 rm -f conftest.err conftest.
$ac_ext
3819 if test -z "$ac_cpp_err"; then
3828 # Use a header file that comes with gcc, so configuring glibc
3829 # with a fresh cross-compiler works.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 ac_c_preproc_warn_flag
=maybe
3833 cat >conftest.
$ac_ext <<_ACEOF
3834 #line 3834 "configure"
3835 #include "confdefs.h"
3839 if { (eval echo "$as_me:3839: \"$ac_cpp conftest.$ac_ext\"") >&5
3840 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3842 egrep -v '^ *\+' conftest.er1
>conftest.err
3844 cat conftest.err
>&5
3845 echo "$as_me:3845: \$? = $ac_status" >&5
3846 (exit $ac_status); } >/dev
/null
; then
3847 if test -s conftest.err
; then
3848 ac_cpp_err
=$ac_c_preproc_warn_flag
3855 if test -z "$ac_cpp_err"; then
3856 # Now check whether non-existent headers can be detected and how
3857 # Skip if ac_cpp_err is not empty - ac_cpp is broken
3858 if test -z "$ac_cpp_err"; then
3859 cat >conftest.
$ac_ext <<_ACEOF
3860 #line 3860 "configure"
3861 #include "confdefs.h"
3862 #include <ac_nonexistent.h>
3864 if { (eval echo "$as_me:3864: \"$ac_cpp conftest.$ac_ext\"") >&5
3865 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3867 egrep -v '^ *\+' conftest.er1
>conftest.err
3869 cat conftest.err
>&5
3870 echo "$as_me:3870: \$? = $ac_status" >&5
3871 (exit $ac_status); } >/dev
/null
; then
3872 if test -s conftest.err
; then
3873 ac_cpp_err
=$ac_c_preproc_warn_flag
3880 if test -z "$ac_cpp_err"; then
3881 # cannot detect missing includes at all
3884 echo "$as_me: failed program was:" >&5
3885 cat conftest.
$ac_ext >&5
3886 if test "x$ac_cpp_err" = xmaybe
; then
3887 ac_c_preproc_warn_flag
=yes
3889 ac_c_preproc_warn_flag
=
3893 rm -f conftest.err conftest.
$ac_ext
3896 echo "$as_me: failed program was:" >&5
3897 cat conftest.
$ac_ext >&5
3900 rm -f conftest.err conftest.
$ac_ext
3903 echo "$as_me:3903: result: $CPP" >&5
3904 echo "${ECHO_T}$CPP" >&6
3905 if test -n "$ac_cpp_err"; then
3906 { { echo "$as_me:3906: error: C preprocessor \"$CPP\" fails sanity check" >&5
3907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3908 { (exit 1); exit 1; }; }
3911 ac_cpp
='$CPP $CPPFLAGS'
3912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3916 echo "$as_me:3916: checking for ANSI C header files" >&5
3917 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3918 if test "${ac_cv_header_stdc+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 cat >conftest.
$ac_ext <<_ACEOF
3922 #line 3922 "configure"
3923 #include "confdefs.h"
3930 if { (eval echo "$as_me:3930: \"$ac_cpp conftest.$ac_ext\"") >&5
3931 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3933 egrep -v '^ *\+' conftest.er1
>conftest.err
3935 cat conftest.err
>&5
3936 echo "$as_me:3936: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev
/null
; then
3938 if test -s conftest.err
; then
3939 ac_cpp_err
=$ac_c_preproc_warn_flag
3946 if test -z "$ac_cpp_err"; then
3947 ac_cv_header_stdc
=yes
3949 echo "$as_me: failed program was:" >&5
3950 cat conftest.
$ac_ext >&5
3951 ac_cv_header_stdc
=no
3953 rm -f conftest.err conftest.
$ac_ext
3955 if test $ac_cv_header_stdc = yes; then
3956 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3957 cat >conftest.
$ac_ext <<_ACEOF
3958 #line 3958 "configure"
3959 #include "confdefs.h"
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 egrep "memchr" >/dev
/null
2>&1; then
3967 ac_cv_header_stdc
=no
3973 if test $ac_cv_header_stdc = yes; then
3974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3975 cat >conftest.
$ac_ext <<_ACEOF
3976 #line 3976 "configure"
3977 #include "confdefs.h"
3981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3982 egrep "free" >/dev
/null
2>&1; then
3985 ac_cv_header_stdc
=no
3991 if test $ac_cv_header_stdc = yes; then
3992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3993 if test "$cross_compiling" = yes; then
3996 cat >conftest.
$ac_ext <<_ACEOF
3997 #line 3997 "configure"
3998 #include "confdefs.h"
4000 #if ((' ' & 0x0FF) == 0x020)
4001 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4002 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4004 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4005 || ('j' <= (c) && (c) <= 'r') \
4006 || ('s' <= (c) && (c) <= 'z'))
4007 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4010 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4015 for (i = 0; i < 256; i++)
4016 if (XOR (islower (i), ISLOWER (i))
4017 || toupper (i) != TOUPPER (i))
4022 rm -f conftest
$ac_exeext
4023 if { (eval echo "$as_me:4023: \"$ac_link\"") >&5
4024 (eval $ac_link) 2>&5
4026 echo "$as_me:4026: \$? = $ac_status" >&5
4027 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4028 { (eval echo "$as_me:4028: \"$ac_try\"") >&5
4031 echo "$as_me:4031: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4035 echo "$as_me: program exited with status $ac_status" >&5
4036 echo "$as_me: failed program was:" >&5
4037 cat conftest.
$ac_ext >&5
4038 ac_cv_header_stdc
=no
4040 rm -f conftest
$ac_exeext conftest.
$ac_ext
4044 echo "$as_me:4044: result: $ac_cv_header_stdc" >&5
4045 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4046 if test $ac_cv_header_stdc = yes; then
4048 cat >>confdefs.h
<<\EOF
4049 #define STDC_HEADERS 1
4054 echo "$as_me:4054: checking for $CC option to accept ANSI C" >&5
4055 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4056 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 ac_cv_prog_cc_stdc
=no
4061 cat >conftest.
$ac_ext <<_ACEOF
4062 #line 4062 "configure"
4063 #include "confdefs.h"
4066 #include <sys/types.h>
4067 #include <sys/stat.h>
4068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4069 struct buf { int x; };
4070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071 static char *e (p, i)
4077 static char *f (char * (*g) (char **, int), char **p, ...)
4082 s = g (p, va_arg (v,int));
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 # Don't try gcc -ansi; that turns off useful extensions and
4101 # breaks some systems' header files.
4102 # AIX -qlanglvl=ansi
4103 # Ultrix and OSF/1 -std1
4104 # HP-UX 10.20 and later -Ae
4105 # HP-UX older versions -Aa -D_HPUX_SOURCE
4106 # SVR4 -Xc -D__EXTENSIONS__
4107 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4109 CC
="$ac_save_CC $ac_arg"
4110 rm -f conftest.
$ac_objext
4111 if { (eval echo "$as_me:4111: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>&5
4114 echo "$as_me:4114: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try
='test -s conftest.$ac_objext'
4117 { (eval echo "$as_me:4117: \"$ac_try\"") >&5
4120 echo "$as_me:4120: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 ac_cv_prog_cc_stdc
=$ac_arg
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.
$ac_ext >&5
4128 rm -f conftest.
$ac_objext
4130 rm -f conftest.
$ac_ext conftest.
$ac_objext
4135 case "x$ac_cv_prog_cc_stdc" in
4137 echo "$as_me:4137: result: none needed" >&5
4138 echo "${ECHO_T}none needed" >&6 ;;
4140 echo "$as_me:4140: result: $ac_cv_prog_cc_stdc" >&5
4141 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4142 CC
="$CC $ac_cv_prog_cc_stdc" ;;
4145 echo "$as_me:4145: checking for an ANSI C-conforming const" >&5
4146 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4147 if test "${ac_cv_c_const+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.
$ac_ext <<_ACEOF
4151 #line 4151 "configure"
4152 #include "confdefs.h"
4157 /* FIXME: Include the comments suggested by Paul. */
4159 /* Ultrix mips cc rejects this. */
4160 typedef int charset[2];
4162 /* SunOS 4.1.1 cc rejects this. */
4163 char const *const *ccp;
4165 /* NEC SVR4.0.2 mips cc rejects this. */
4166 struct point {int x, y;};
4167 static struct point const zero = {0,0};
4168 /* AIX XL C 1.02.0.0 rejects this.
4169 It does not let you subtract one const X* pointer from another in
4170 an arm of an if-expression whose if-part is not a constant
4172 const char *g = "string";
4173 ccp = &g + (g ? g-g : 0);
4174 /* HPUX 7.0 cc rejects these. */
4177 ccp = (char const *const *) p;
4178 { /* SCO 3.2v4 cc rejects this. */
4180 char const *s = 0 ? (char *) 0 : (char const *) 0;
4184 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4186 const int *foo = &x[0];
4189 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4190 typedef const int *iptr;
4194 { /* AIX XL C 1.02.0.0 rejects this saying
4195 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4196 struct s { int j; const int *ap[3]; };
4197 struct s *b; b->j = 5;
4199 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4208 rm -f conftest.
$ac_objext
4209 if { (eval echo "$as_me:4209: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>&5
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try
='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:4215: \"$ac_try\"") >&5
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4222 echo "$as_me: failed program was:" >&5
4223 cat conftest.
$ac_ext >&5
4226 rm -f conftest.
$ac_objext conftest.
$ac_ext
4228 echo "$as_me:4228: result: $ac_cv_c_const" >&5
4229 echo "${ECHO_T}$ac_cv_c_const" >&6
4230 if test $ac_cv_c_const = no
; then
4232 cat >>confdefs.h
<<\EOF
4238 echo "$as_me:4238: checking for inline" >&5
4239 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4240 if test "${ac_cv_c_inline+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 for ac_kw
in inline __inline__ __inline
; do
4245 cat >conftest.
$ac_ext <<_ACEOF
4246 #line 4246 "configure"
4247 #include "confdefs.h"
4249 static $ac_kw int static_foo () {return 0; }
4250 $ac_kw int foo () {return 0; }
4254 rm -f conftest.
$ac_objext
4255 if { (eval echo "$as_me:4255: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>&5
4258 echo "$as_me:4258: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try
='test -s conftest.$ac_objext'
4261 { (eval echo "$as_me:4261: \"$ac_try\"") >&5
4264 echo "$as_me:4264: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 ac_cv_c_inline
=$ac_kw; break
4268 echo "$as_me: failed program was:" >&5
4269 cat conftest.
$ac_ext >&5
4271 rm -f conftest.
$ac_objext conftest.
$ac_ext
4275 echo "$as_me:4275: result: $ac_cv_c_inline" >&5
4276 echo "${ECHO_T}$ac_cv_c_inline" >&6
4277 case $ac_cv_c_inline in
4280 cat >>confdefs.h
<<\EOF
4284 *) cat >>confdefs.h
<<EOF
4285 #define inline $ac_cv_c_inline
4290 for ac_header
in stdlib.h string.h memory.h
strings.h inttypes.h unistd.h
4292 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4293 echo "$as_me:4293: checking for $ac_header" >&5
4294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4295 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 cat >conftest.
$ac_ext <<_ACEOF
4299 #line 4299 "configure"
4300 #include "confdefs.h"
4301 #include <$ac_header>
4303 if { (eval echo "$as_me:4303: \"$ac_cpp conftest.$ac_ext\"") >&5
4304 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4306 egrep -v '^ *\+' conftest.er1
>conftest.err
4308 cat conftest.err
>&5
4309 echo "$as_me:4309: \$? = $ac_status" >&5
4310 (exit $ac_status); } >/dev
/null
; then
4311 if test -s conftest.err
; then
4312 ac_cpp_err
=$ac_c_preproc_warn_flag
4319 if test -z "$ac_cpp_err"; then
4320 eval "$ac_ac_Header=yes"
4322 echo "$as_me: failed program was:" >&5
4323 cat conftest.
$ac_ext >&5
4324 eval "$ac_ac_Header=no"
4326 rm -f conftest.err conftest.
$ac_ext
4328 echo "$as_me:4328: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4329 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4330 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4331 cat >>confdefs.h
<<EOF
4332 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4338 echo "$as_me:4338: checking for off_t" >&5
4339 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4340 if test "${ac_cv_type_off_t+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 cat >conftest.
$ac_ext <<_ACEOF
4344 #line 4344 "configure"
4345 #include "confdefs.h"
4346 $ac_includes_default
4358 rm -f conftest.
$ac_objext
4359 if { (eval echo "$as_me:4359: \"$ac_compile\"") >&5
4360 (eval $ac_compile) 2>&5
4362 echo "$as_me:4362: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try
='test -s conftest.$ac_objext'
4365 { (eval echo "$as_me:4365: \"$ac_try\"") >&5
4368 echo "$as_me:4368: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 ac_cv_type_off_t
=yes
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4376 rm -f conftest.
$ac_objext conftest.
$ac_ext
4378 echo "$as_me:4378: result: $ac_cv_type_off_t" >&5
4379 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4380 if test $ac_cv_type_off_t = yes; then
4384 cat >>confdefs.h
<<EOF
4390 echo "$as_me:4390: checking for size_t" >&5
4391 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4392 if test "${ac_cv_type_size_t+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 cat >conftest.
$ac_ext <<_ACEOF
4396 #line 4396 "configure"
4397 #include "confdefs.h"
4398 $ac_includes_default
4404 if (sizeof (size_t))
4410 rm -f conftest.
$ac_objext
4411 if { (eval echo "$as_me:4411: \"$ac_compile\"") >&5
4412 (eval $ac_compile) 2>&5
4414 echo "$as_me:4414: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try
='test -s conftest.$ac_objext'
4417 { (eval echo "$as_me:4417: \"$ac_try\"") >&5
4420 echo "$as_me:4420: \$? = $ac_status" >&5
4421 (exit $ac_status); }; }; then
4422 ac_cv_type_size_t
=yes
4424 echo "$as_me: failed program was:" >&5
4425 cat conftest.
$ac_ext >&5
4426 ac_cv_type_size_t
=no
4428 rm -f conftest.
$ac_objext conftest.
$ac_ext
4430 echo "$as_me:4430: result: $ac_cv_type_size_t" >&5
4431 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4432 if test $ac_cv_type_size_t = yes; then
4436 cat >>confdefs.h
<<EOF
4437 #define size_t unsigned
4442 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4443 # for constant arguments. Useless!
4444 echo "$as_me:4444: checking for working alloca.h" >&5
4445 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4446 if test "${ac_cv_working_alloca_h+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 cat >conftest.
$ac_ext <<_ACEOF
4450 #line 4450 "configure"
4451 #include "confdefs.h"
4456 char *p = (char *) alloca (2 * sizeof (int));
4461 rm -f conftest.
$ac_objext conftest
$ac_exeext
4462 if { (eval echo "$as_me:4462: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>&5
4465 echo "$as_me:4465: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try
='test -s conftest$ac_exeext'
4468 { (eval echo "$as_me:4468: \"$ac_try\"") >&5
4471 echo "$as_me:4471: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 ac_cv_working_alloca_h
=yes
4475 echo "$as_me: failed program was:" >&5
4476 cat conftest.
$ac_ext >&5
4477 ac_cv_working_alloca_h
=no
4479 rm -f conftest
$ac_exeext conftest.
$ac_ext
4481 echo "$as_me:4481: result: $ac_cv_working_alloca_h" >&5
4482 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4483 if test $ac_cv_working_alloca_h = yes; then
4485 cat >>confdefs.h
<<\EOF
4486 #define HAVE_ALLOCA_H 1
4491 echo "$as_me:4491: checking for alloca" >&5
4492 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4493 if test "${ac_cv_func_alloca_works+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 cat >conftest.
$ac_ext <<_ACEOF
4497 #line 4497 "configure"
4498 #include "confdefs.h"
4500 # define alloca __builtin_alloca
4503 # include <malloc.h>
4504 # define alloca _alloca
4507 # include <alloca.h>
4512 # ifndef alloca /* predefined by HP cc +Olibcalls */
4523 char *p = (char *) alloca (1);
4528 rm -f conftest.
$ac_objext conftest
$ac_exeext
4529 if { (eval echo "$as_me:4529: \"$ac_link\"") >&5
4530 (eval $ac_link) 2>&5
4532 echo "$as_me:4532: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try
='test -s conftest$ac_exeext'
4535 { (eval echo "$as_me:4535: \"$ac_try\"") >&5
4538 echo "$as_me:4538: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_func_alloca_works
=yes
4542 echo "$as_me: failed program was:" >&5
4543 cat conftest.
$ac_ext >&5
4544 ac_cv_func_alloca_works
=no
4546 rm -f conftest
$ac_exeext conftest.
$ac_ext
4548 echo "$as_me:4548: result: $ac_cv_func_alloca_works" >&5
4549 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4551 if test $ac_cv_func_alloca_works = yes; then
4553 cat >>confdefs.h
<<\EOF
4554 #define HAVE_ALLOCA 1
4558 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4559 # that cause trouble. Some versions do not even contain alloca or
4560 # contain a buggy version. If you still want to use their alloca,
4561 # use ar to extract alloca.o from them instead of compiling alloca.c.
4563 ALLOCA
=alloca.
$ac_objext
4565 cat >>confdefs.h
<<\EOF
4569 echo "$as_me:4569: checking whether \`alloca.c' needs Cray hooks" >&5
4570 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4571 if test "${ac_cv_os_cray+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 cat >conftest.
$ac_ext <<_ACEOF
4575 #line 4575 "configure"
4576 #include "confdefs.h"
4577 #if defined(CRAY) && ! defined(CRAY2)
4584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4585 egrep "webecray" >/dev
/null
2>&1; then
4593 echo "$as_me:4593: result: $ac_cv_os_cray" >&5
4594 echo "${ECHO_T}$ac_cv_os_cray" >&6
4595 if test $ac_cv_os_cray = yes; then
4596 for ac_func
in _getb67 GETB67 getb67
; do
4597 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4598 echo "$as_me:4598: checking for $ac_func" >&5
4599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4600 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 cat >conftest.
$ac_ext <<_ACEOF
4604 #line 4604 "configure"
4605 #include "confdefs.h"
4606 /* System header to define __stub macros and hopefully few prototypes,
4607 which can conflict with char $ac_func (); below. */
4609 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4621 /* The GNU C library defines this for functions which it implements
4622 to always fail with ENOSYS. Some functions are actually named
4623 something starting with __ and the normal name is an alias. */
4624 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4634 rm -f conftest.
$ac_objext conftest
$ac_exeext
4635 if { (eval echo "$as_me:4635: \"$ac_link\"") >&5
4636 (eval $ac_link) 2>&5
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -s conftest$ac_exeext'
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 eval "$ac_ac_var=yes"
4648 echo "$as_me: failed program was:" >&5
4649 cat conftest.
$ac_ext >&5
4650 eval "$ac_ac_var=no"
4652 rm -f conftest
$ac_exeext conftest.
$ac_ext
4654 echo "$as_me:4654: result: `eval echo '${'$ac_ac_var'}'`" >&5
4655 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4656 if test `eval echo '${'$ac_ac_var'}'` = yes; then
4658 cat >>confdefs.h
<<EOF
4659 #define CRAY_STACKSEG_END $ac_func
4668 echo "$as_me:4668: checking stack direction for C alloca" >&5
4669 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4670 if test "${ac_cv_c_stack_direction+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test "$cross_compiling" = yes; then
4674 ac_cv_c_stack_direction
=0
4676 cat >conftest.
$ac_ext <<_ACEOF
4677 #line 4677 "configure"
4678 #include "confdefs.h"
4680 find_stack_direction ()
4682 static char *addr = 0;
4687 return find_stack_direction ();
4690 return (&dummy > addr) ? 1 : -1;
4696 exit (find_stack_direction () < 0);
4699 rm -f conftest
$ac_exeext
4700 if { (eval echo "$as_me:4700: \"$ac_link\"") >&5
4701 (eval $ac_link) 2>&5
4703 echo "$as_me:4703: \$? = $ac_status" >&5
4704 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4705 { (eval echo "$as_me:4705: \"$ac_try\"") >&5
4708 echo "$as_me:4708: \$? = $ac_status" >&5
4709 (exit $ac_status); }; }; then
4710 ac_cv_c_stack_direction
=1
4712 echo "$as_me: program exited with status $ac_status" >&5
4713 echo "$as_me: failed program was:" >&5
4714 cat conftest.
$ac_ext >&5
4715 ac_cv_c_stack_direction
=-1
4717 rm -f conftest
$ac_exeext conftest.
$ac_ext
4720 echo "$as_me:4720: result: $ac_cv_c_stack_direction" >&5
4721 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4723 cat >>confdefs.h
<<EOF
4724 #define STACK_DIRECTION $ac_cv_c_stack_direction
4729 for ac_header
in stdlib.h unistd.h
4731 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
4732 echo "$as_me:4732: checking for $ac_header" >&5
4733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4734 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 cat >conftest.
$ac_ext <<_ACEOF
4738 #line 4738 "configure"
4739 #include "confdefs.h"
4740 #include <$ac_header>
4742 if { (eval echo "$as_me:4742: \"$ac_cpp conftest.$ac_ext\"") >&5
4743 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4745 egrep -v '^ *\+' conftest.er1
>conftest.err
4747 cat conftest.err
>&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev
/null
; then
4750 if test -s conftest.err
; then
4751 ac_cpp_err
=$ac_c_preproc_warn_flag
4758 if test -z "$ac_cpp_err"; then
4759 eval "$ac_ac_Header=yes"
4761 echo "$as_me: failed program was:" >&5
4762 cat conftest.
$ac_ext >&5
4763 eval "$ac_ac_Header=no"
4765 rm -f conftest.err conftest.
$ac_ext
4767 echo "$as_me:4767: result: `eval echo '${'$ac_ac_Header'}'`" >&5
4768 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
4769 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
4770 cat >>confdefs.h
<<EOF
4771 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
4777 for ac_func
in getpagesize
4779 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
4780 echo "$as_me:4780: checking for $ac_func" >&5
4781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4782 if eval "test \"\${$ac_ac_var+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 cat >conftest.
$ac_ext <<_ACEOF
4786 #line 4786 "configure"
4787 #include "confdefs.h"
4788 /* System header to define __stub macros and hopefully few prototypes,
4789 which can conflict with char $ac_func (); below. */
4791 /* Override any gcc2 internal prototype to avoid an error. */
4795 /* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4803 /* The GNU C library defines this for functions which it implements
4804 to always fail with ENOSYS. Some functions are actually named
4805 something starting with __ and the normal name is an alias. */
4806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4816 rm -f conftest.
$ac_objext conftest
$ac_exeext
4817 if { (eval echo "$as_me:4817: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>&5
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try
='test -s conftest$ac_exeext'
4823 { (eval echo "$as_me:4823: \"$ac_try\"") >&5
4826 echo "$as_me:4826: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 eval "$ac_ac_var=yes"
4830 echo "$as_me: failed program was:" >&5
4831 cat conftest.
$ac_ext >&5
4832 eval "$ac_ac_var=no"
4834 rm -f conftest
$ac_exeext conftest.
$ac_ext
4836 echo "$as_me:4836: result: `eval echo '${'$ac_ac_var'}'`" >&5
4837 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
4838 if test `eval echo '${'$ac_ac_var'}'` = yes; then
4839 cat >>confdefs.h
<<EOF
4840 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
4846 echo "$as_me:4846: checking for working mmap" >&5
4847 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4848 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test "$cross_compiling" = yes; then
4852 ac_cv_func_mmap_fixed_mapped
=no
4854 cat >conftest.
$ac_ext <<_ACEOF
4855 #line 4855 "configure"
4856 #include "confdefs.h"
4857 /* Thanks to Mike Haertel and Jim Avera for this test.
4858 Here is a matrix of mmap possibilities:
4859 mmap private not fixed
4860 mmap private fixed at somewhere currently unmapped
4861 mmap private fixed at somewhere already mapped
4862 mmap shared not fixed
4863 mmap shared fixed at somewhere currently unmapped
4864 mmap shared fixed at somewhere already mapped
4865 For private mappings, we should verify that changes cannot be read()
4866 back from the file, nor mmap's back from the file at a different
4867 address. (There have been systems where private was not correctly
4868 implemented like the infamous i386 svr4.0, and systems where the
4869 VM page cache was not coherent with the file system buffer cache
4870 like early versions of FreeBSD and possibly contemporary NetBSD.)
4871 For shared mappings, we should conversely verify that changes get
4872 propogated back to all the places they're supposed to be.
4874 Grep wants private fixed already mapped.
4875 The main things grep needs to know about mmap are:
4876 * does it exist and is it safe to write into the mmap'd area
4877 * how to use it (BSD variants) */
4878 #include <sys/types.h>
4880 #include <sys/mman.h>
4882 #if STDC_HEADERS || HAVE_STDLIB_H
4883 # include <stdlib.h>
4888 # include <unistd.h>
4890 #include <sys/stat.h>
4892 /* This mess was copied from the GNU getpagesize.h. */
4893 #if !HAVE_GETPAGESIZE
4894 /* Assume that all systems that can run configure have sys/param.h. */
4895 # if !HAVE_SYS_PARAM_H
4896 # define HAVE_SYS_PARAM_H 1
4899 # ifdef _SC_PAGESIZE
4900 # define getpagesize() sysconf(_SC_PAGESIZE)
4901 # else /* no _SC_PAGESIZE */
4902 # if HAVE_SYS_PARAM_H
4903 # include <sys/param.h>
4904 # ifdef EXEC_PAGESIZE
4905 # define getpagesize() EXEC_PAGESIZE
4906 # else /* no EXEC_PAGESIZE */
4908 # define getpagesize() NBPG * CLSIZE
4911 # endif /* no CLSIZE */
4912 # else /* no NBPG */
4914 # define getpagesize() NBPC
4915 # else /* no NBPC */
4917 # define getpagesize() PAGESIZE
4918 # endif /* PAGESIZE */
4919 # endif /* no NBPC */
4920 # endif /* no NBPG */
4921 # endif /* no EXEC_PAGESIZE */
4922 # else /* no HAVE_SYS_PARAM_H */
4923 # define getpagesize() 8192 /* punt totally */
4924 # endif /* no HAVE_SYS_PARAM_H */
4925 # endif /* no _SC_PAGESIZE */
4927 #endif /* no HAVE_GETPAGESIZE */
4932 char *data, *data2, *data3;
4936 pagesize = getpagesize ();
4938 /* First, make a file with some known garbage in it. */
4939 data = (char *) malloc (pagesize);
4942 for (i = 0; i < pagesize; ++i)
4943 *(data + i) = rand ();
4945 fd = creat ("conftest.mmap", 0600);
4948 if (write (fd, data, pagesize) != pagesize)
4952 /* Next, try to mmap the file at a fixed address which already has
4953 something else allocated at it. If we can, also make sure that
4954 we see the same garbage. */
4955 fd = open ("conftest.mmap", O_RDWR);
4958 data2 = (char *) malloc (2 * pagesize);
4961 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4962 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4963 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4965 for (i = 0; i < pagesize; ++i)
4966 if (*(data + i) != *(data2 + i))
4969 /* Finally, make sure that changes to the mapped area do not
4970 percolate back to the file as seen by read(). (This is a bug on
4971 some variants of i386 svr4.0.) */
4972 for (i = 0; i < pagesize; ++i)
4973 *(data2 + i) = *(data2 + i) + 1;
4974 data3 = (char *) malloc (pagesize);
4977 if (read (fd, data3, pagesize) != pagesize)
4979 for (i = 0; i < pagesize; ++i)
4980 if (*(data + i) != *(data3 + i))
4986 rm -f conftest
$ac_exeext
4987 if { (eval echo "$as_me:4987: \"$ac_link\"") >&5
4988 (eval $ac_link) 2>&5
4990 echo "$as_me:4990: \$? = $ac_status" >&5
4991 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4992 { (eval echo "$as_me:4992: \"$ac_try\"") >&5
4995 echo "$as_me:4995: \$? = $ac_status" >&5
4996 (exit $ac_status); }; }; then
4997 ac_cv_func_mmap_fixed_mapped
=yes
4999 echo "$as_me: program exited with status $ac_status" >&5
5000 echo "$as_me: failed program was:" >&5
5001 cat conftest.
$ac_ext >&5
5002 ac_cv_func_mmap_fixed_mapped
=no
5004 rm -f conftest
$ac_exeext conftest.
$ac_ext
5007 echo "$as_me:5007: result: $ac_cv_func_mmap_fixed_mapped" >&5
5008 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5009 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5011 cat >>confdefs.h
<<\EOF
5018 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
5019 unistd.h values.h sys
/param.h
5021 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
5022 echo "$as_me:5022: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cat >conftest.
$ac_ext <<_ACEOF
5028 #line 5028 "configure"
5029 #include "confdefs.h"
5030 #include <$ac_header>
5032 if { (eval echo "$as_me:5032: \"$ac_cpp conftest.$ac_ext\"") >&5
5033 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5035 egrep -v '^ *\+' conftest.er1
>conftest.err
5037 cat conftest.err
>&5
5038 echo "$as_me:5038: \$? = $ac_status" >&5
5039 (exit $ac_status); } >/dev
/null
; then
5040 if test -s conftest.err
; then
5041 ac_cpp_err
=$ac_c_preproc_warn_flag
5048 if test -z "$ac_cpp_err"; then
5049 eval "$ac_ac_Header=yes"
5051 echo "$as_me: failed program was:" >&5
5052 cat conftest.
$ac_ext >&5
5053 eval "$ac_ac_Header=no"
5055 rm -f conftest.err conftest.
$ac_ext
5057 echo "$as_me:5057: result: `eval echo '${'$ac_ac_Header'}'`" >&5
5058 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
5059 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
5060 cat >>confdefs.h
<<EOF
5061 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
5067 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
5068 __argz_count __argz_stringify __argz_next
5070 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5071 echo "$as_me:5071: checking for $ac_func" >&5
5072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5073 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 cat >conftest.
$ac_ext <<_ACEOF
5077 #line 5077 "configure"
5078 #include "confdefs.h"
5079 /* System header to define __stub macros and hopefully few prototypes,
5080 which can conflict with char $ac_func (); below. */
5082 /* Override any gcc2 internal prototype to avoid an error. */
5086 /* We use char because int might match the return type of a gcc2
5087 builtin and then its argument prototype would still apply. */
5094 /* The GNU C library defines this for functions which it implements
5095 to always fail with ENOSYS. Some functions are actually named
5096 something starting with __ and the normal name is an alias. */
5097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5107 rm -f conftest.
$ac_objext conftest
$ac_exeext
5108 if { (eval echo "$as_me:5108: \"$ac_link\"") >&5
5109 (eval $ac_link) 2>&5
5111 echo "$as_me:5111: \$? = $ac_status" >&5
5112 (exit $ac_status); } &&
5113 { ac_try
='test -s conftest$ac_exeext'
5114 { (eval echo "$as_me:5114: \"$ac_try\"") >&5
5117 echo "$as_me:5117: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 eval "$ac_ac_var=yes"
5121 echo "$as_me: failed program was:" >&5
5122 cat conftest.
$ac_ext >&5
5123 eval "$ac_ac_var=no"
5125 rm -f conftest
$ac_exeext conftest.
$ac_ext
5127 echo "$as_me:5127: result: `eval echo '${'$ac_ac_var'}'`" >&5
5128 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5129 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5130 cat >>confdefs.h
<<EOF
5131 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5137 if test "${ac_cv_func_stpcpy+set}" != "set"; then
5139 for ac_func
in stpcpy
5141 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5142 echo "$as_me:5142: checking for $ac_func" >&5
5143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5144 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 cat >conftest.
$ac_ext <<_ACEOF
5148 #line 5148 "configure"
5149 #include "confdefs.h"
5150 /* System header to define __stub macros and hopefully few prototypes,
5151 which can conflict with char $ac_func (); below. */
5153 /* Override any gcc2 internal prototype to avoid an error. */
5157 /* We use char because int might match the return type of a gcc2
5158 builtin and then its argument prototype would still apply. */
5165 /* The GNU C library defines this for functions which it implements
5166 to always fail with ENOSYS. Some functions are actually named
5167 something starting with __ and the normal name is an alias. */
5168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5178 rm -f conftest.
$ac_objext conftest
$ac_exeext
5179 if { (eval echo "$as_me:5179: \"$ac_link\"") >&5
5180 (eval $ac_link) 2>&5
5182 echo "$as_me:5182: \$? = $ac_status" >&5
5183 (exit $ac_status); } &&
5184 { ac_try
='test -s conftest$ac_exeext'
5185 { (eval echo "$as_me:5185: \"$ac_try\"") >&5
5188 echo "$as_me:5188: \$? = $ac_status" >&5
5189 (exit $ac_status); }; }; then
5190 eval "$ac_ac_var=yes"
5192 echo "$as_me: failed program was:" >&5
5193 cat conftest.
$ac_ext >&5
5194 eval "$ac_ac_var=no"
5196 rm -f conftest
$ac_exeext conftest.
$ac_ext
5198 echo "$as_me:5198: result: `eval echo '${'$ac_ac_var'}'`" >&5
5199 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5200 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5201 cat >>confdefs.h
<<EOF
5202 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5209 if test "${ac_cv_func_stpcpy}" = "yes"; then
5211 cat >>confdefs.h
<<\EOF
5212 #define HAVE_STPCPY 1
5217 if test $ac_cv_header_locale_h = yes; then
5218 echo "$as_me:5218: checking for LC_MESSAGES" >&5
5219 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
5220 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5223 cat >conftest.
$ac_ext <<_ACEOF
5224 #line 5224 "configure"
5225 #include "confdefs.h"
5235 rm -f conftest.
$ac_objext conftest
$ac_exeext
5236 if { (eval echo "$as_me:5236: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>&5
5239 echo "$as_me:5239: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try
='test -s conftest$ac_exeext'
5242 { (eval echo "$as_me:5242: \"$ac_try\"") >&5
5245 echo "$as_me:5245: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 am_cv_val_LC_MESSAGES
=yes
5249 echo "$as_me: failed program was:" >&5
5250 cat conftest.
$ac_ext >&5
5251 am_cv_val_LC_MESSAGES
=no
5253 rm -f conftest
$ac_exeext conftest.
$ac_ext
5255 echo "$as_me:5255: result: $am_cv_val_LC_MESSAGES" >&5
5256 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
5257 if test $am_cv_val_LC_MESSAGES = yes; then
5259 cat >>confdefs.h
<<\EOF
5260 #define HAVE_LC_MESSAGES 1
5265 echo "$as_me:5265: checking whether NLS is requested" >&5
5266 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5267 # Check whether --enable-nls or --disable-nls was given.
5268 if test "${enable_nls+set}" = set; then
5269 enableval
="$enable_nls"
5274 echo "$as_me:5274: result: $USE_NLS" >&5
5275 echo "${ECHO_T}$USE_NLS" >&6
5277 USE_INCLUDED_LIBINTL
=no
5279 if test "$USE_NLS" = "yes"; then
5281 cat >>confdefs.h
<<\EOF
5282 #define ENABLE_NLS 1
5285 echo "$as_me:5285: checking whether included gettext is requested" >&5
5286 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
5288 # Check whether --with-included-gettext or --without-included-gettext was given.
5289 if test "${with_included_gettext+set}" = set; then
5290 withval
="$with_included_gettext"
5291 nls_cv_force_use_gnu_gettext
=$withval
5293 nls_cv_force_use_gnu_gettext
=no
5295 echo "$as_me:5295: result: $nls_cv_force_use_gnu_gettext" >&5
5296 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
5298 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5299 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5301 nls_cv_header_libgt
=
5304 echo "$as_me:5304: checking for libintl.h" >&5
5305 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
5306 if test "${ac_cv_header_libintl_h+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 cat >conftest.
$ac_ext <<_ACEOF
5310 #line 5310 "configure"
5311 #include "confdefs.h"
5312 #include <libintl.h>
5314 if { (eval echo "$as_me:5314: \"$ac_cpp conftest.$ac_ext\"") >&5
5315 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5317 egrep -v '^ *\+' conftest.er1
>conftest.err
5319 cat conftest.err
>&5
5320 echo "$as_me:5320: \$? = $ac_status" >&5
5321 (exit $ac_status); } >/dev
/null
; then
5322 if test -s conftest.err
; then
5323 ac_cpp_err
=$ac_c_preproc_warn_flag
5330 if test -z "$ac_cpp_err"; then
5331 ac_cv_header_libintl_h
=yes
5333 echo "$as_me: failed program was:" >&5
5334 cat conftest.
$ac_ext >&5
5335 ac_cv_header_libintl_h
=no
5337 rm -f conftest.err conftest.
$ac_ext
5339 echo "$as_me:5339: result: $ac_cv_header_libintl_h" >&5
5340 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
5341 if test $ac_cv_header_libintl_h = yes; then
5342 echo "$as_me:5342: checking for gettext in libc" >&5
5343 echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6
5344 if test "${gt_cv_func_gettext_libc+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 cat >conftest.
$ac_ext <<_ACEOF
5348 #line 5348 "configure"
5349 #include "confdefs.h"
5350 #include <libintl.h>
5354 return (int) gettext ("")
5359 rm -f conftest.
$ac_objext conftest
$ac_exeext
5360 if { (eval echo "$as_me:5360: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5363 echo "$as_me:5363: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try
='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:5366: \"$ac_try\"") >&5
5369 echo "$as_me:5369: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 gt_cv_func_gettext_libc
=yes
5373 echo "$as_me: failed program was:" >&5
5374 cat conftest.
$ac_ext >&5
5375 gt_cv_func_gettext_libc
=no
5377 rm -f conftest
$ac_exeext conftest.
$ac_ext
5379 echo "$as_me:5379: result: $gt_cv_func_gettext_libc" >&5
5380 echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6
5382 if test "$gt_cv_func_gettext_libc" != "yes"; then
5383 echo "$as_me:5383: checking for bindtextdomain in -lintl" >&5
5384 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
5385 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 ac_check_lib_save_LIBS
=$LIBS
5390 cat >conftest.
$ac_ext <<_ACEOF
5391 #line 5391 "configure"
5392 #include "confdefs.h"
5394 /* Override any gcc2 internal prototype to avoid an error. */
5398 /* We use char because int might match the return type of a gcc2
5399 builtin and then its argument prototype would still apply. */
5400 char bindtextdomain ();
5409 rm -f conftest.
$ac_objext conftest
$ac_exeext
5410 if { (eval echo "$as_me:5410: \"$ac_link\"") >&5
5411 (eval $ac_link) 2>&5
5413 echo "$as_me:5413: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 { ac_try
='test -s conftest$ac_exeext'
5416 { (eval echo "$as_me:5416: \"$ac_try\"") >&5
5419 echo "$as_me:5419: \$? = $ac_status" >&5
5420 (exit $ac_status); }; }; then
5421 ac_cv_lib_intl_bindtextdomain
=yes
5423 echo "$as_me: failed program was:" >&5
5424 cat conftest.
$ac_ext >&5
5425 ac_cv_lib_intl_bindtextdomain
=no
5427 rm -f conftest
$ac_exeext conftest.
$ac_ext
5428 LIBS
=$ac_check_lib_save_LIBS
5430 echo "$as_me:5430: result: $ac_cv_lib_intl_bindtextdomain" >&5
5431 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
5432 if test $ac_cv_lib_intl_bindtextdomain = yes; then
5433 echo "$as_me:5433: checking for gettext in libintl" >&5
5434 echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6
5435 if test "${gt_cv_func_gettext_libintl+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat >conftest.
$ac_ext <<_ACEOF
5439 #line 5439 "configure"
5440 #include "confdefs.h"
5445 return (int) gettext ("")
5450 rm -f conftest.
$ac_objext conftest
$ac_exeext
5451 if { (eval echo "$as_me:5451: \"$ac_link\"") >&5
5452 (eval $ac_link) 2>&5
5454 echo "$as_me:5454: \$? = $ac_status" >&5
5455 (exit $ac_status); } &&
5456 { ac_try
='test -s conftest$ac_exeext'
5457 { (eval echo "$as_me:5457: \"$ac_try\"") >&5
5460 echo "$as_me:5460: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then
5462 gt_cv_func_gettext_libintl
=yes
5464 echo "$as_me: failed program was:" >&5
5465 cat conftest.
$ac_ext >&5
5466 gt_cv_func_gettext_libintl
=no
5468 rm -f conftest
$ac_exeext conftest.
$ac_ext
5470 echo "$as_me:5470: result: $gt_cv_func_gettext_libintl" >&5
5471 echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6
5476 if test "$gt_cv_func_gettext_libc" = "yes" \
5477 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
5479 cat >>confdefs.h
<<\EOF
5480 #define HAVE_GETTEXT 1
5483 # Extract the first word of "msgfmt", so it can be a program name with args.
5484 set dummy msgfmt
; ac_word
=$2
5485 echo "$as_me:5485: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_path_MSGFMT+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5492 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5495 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5496 for ac_dir
in $PATH; do
5497 test -z "$ac_dir" && ac_dir
=.
5498 if test -f $ac_dir/$ac_word; then
5499 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5500 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5506 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
5510 MSGFMT
="$ac_cv_path_MSGFMT"
5511 if test -n "$MSGFMT"; then
5512 echo "$as_me:5512: result: $MSGFMT" >&5
5513 echo "${ECHO_T}$MSGFMT" >&6
5515 echo "$as_me:5515: result: no" >&5
5516 echo "${ECHO_T}no" >&6
5518 if test "$MSGFMT" != "no"; then
5520 for ac_func
in dcgettext
5522 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
5523 echo "$as_me:5523: checking for $ac_func" >&5
5524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5525 if eval "test \"\${$ac_ac_var+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cat >conftest.
$ac_ext <<_ACEOF
5529 #line 5529 "configure"
5530 #include "confdefs.h"
5531 /* System header to define __stub macros and hopefully few prototypes,
5532 which can conflict with char $ac_func (); below. */
5534 /* Override any gcc2 internal prototype to avoid an error. */
5538 /* We use char because int might match the return type of a gcc2
5539 builtin and then its argument prototype would still apply. */
5546 /* The GNU C library defines this for functions which it implements
5547 to always fail with ENOSYS. Some functions are actually named
5548 something starting with __ and the normal name is an alias. */
5549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5559 rm -f conftest.
$ac_objext conftest
$ac_exeext
5560 if { (eval echo "$as_me:5560: \"$ac_link\"") >&5
5561 (eval $ac_link) 2>&5
5563 echo "$as_me:5563: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try
='test -s conftest$ac_exeext'
5566 { (eval echo "$as_me:5566: \"$ac_try\"") >&5
5569 echo "$as_me:5569: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5571 eval "$ac_ac_var=yes"
5573 echo "$as_me: failed program was:" >&5
5574 cat conftest.
$ac_ext >&5
5575 eval "$ac_ac_var=no"
5577 rm -f conftest
$ac_exeext conftest.
$ac_ext
5579 echo "$as_me:5579: result: `eval echo '${'$ac_ac_var'}'`" >&5
5580 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
5581 if test `eval echo '${'$ac_ac_var'}'` = yes; then
5582 cat >>confdefs.h
<<EOF
5583 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
5589 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5590 set dummy gmsgfmt
; ac_word
=$2
5591 echo "$as_me:5591: checking for $ac_word" >&5
5592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5593 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5601 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
5603 for ac_dir
in $ac_dummy; do
5605 test -z "$ac_dir" && ac_dir
=.
5606 if $as_executable_p "$ac_dir/$ac_word"; then
5607 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5612 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5616 GMSGFMT
=$ac_cv_path_GMSGFMT
5618 if test -n "$GMSGFMT"; then
5619 echo "$as_me:5619: result: $GMSGFMT" >&5
5620 echo "${ECHO_T}$GMSGFMT" >&6
5622 echo "$as_me:5622: result: no" >&5
5623 echo "${ECHO_T}no" >&6
5626 # Extract the first word of "xgettext", so it can be a program name with args.
5627 set dummy xgettext
; ac_word
=$2
5628 echo "$as_me:5628: checking for $ac_word" >&5
5629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5630 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5638 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5639 for ac_dir
in $PATH; do
5640 test -z "$ac_dir" && ac_dir
=.
5641 if test -f $ac_dir/$ac_word; then
5642 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5643 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5649 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5653 XGETTEXT
="$ac_cv_path_XGETTEXT"
5654 if test -n "$XGETTEXT"; then
5655 echo "$as_me:5655: result: $XGETTEXT" >&5
5656 echo "${ECHO_T}$XGETTEXT" >&6
5658 echo "$as_me:5658: result: no" >&5
5659 echo "${ECHO_T}no" >&6
5662 cat >conftest.
$ac_ext <<_ACEOF
5663 #line 5663 "configure"
5664 #include "confdefs.h"
5669 extern int _nl_msg_cat_cntr;
5670 return _nl_msg_cat_cntr
5675 rm -f conftest.
$ac_objext conftest
$ac_exeext
5676 if { (eval echo "$as_me:5676: \"$ac_link\"") >&5
5677 (eval $ac_link) 2>&5
5679 echo "$as_me:5679: \$? = $ac_status" >&5
5680 (exit $ac_status); } &&
5681 { ac_try
='test -s conftest$ac_exeext'
5682 { (eval echo "$as_me:5682: \"$ac_try\"") >&5
5685 echo "$as_me:5685: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5690 echo "$as_me: failed program was:" >&5
5691 cat conftest.
$ac_ext >&5
5695 rm -f conftest
$ac_exeext conftest.
$ac_ext
5702 if test "$CATOBJEXT" = "NONE"; then
5703 nls_cv_use_gnu_gettext
=yes
5707 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5708 INTLOBJS
="\$(GETTOBJS)"
5709 # Extract the first word of "msgfmt", so it can be a program name with args.
5710 set dummy msgfmt
; ac_word
=$2
5711 echo "$as_me:5711: checking for $ac_word" >&5
5712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5713 if test "${ac_cv_path_MSGFMT+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5721 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5722 for ac_dir
in $PATH; do
5723 test -z "$ac_dir" && ac_dir
=.
5724 if test -f $ac_dir/$ac_word; then
5725 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
5726 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
5732 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
5736 MSGFMT
="$ac_cv_path_MSGFMT"
5737 if test -n "$MSGFMT"; then
5738 echo "$as_me:5738: result: $MSGFMT" >&5
5739 echo "${ECHO_T}$MSGFMT" >&6
5741 echo "$as_me:5741: result: no" >&5
5742 echo "${ECHO_T}no" >&6
5745 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5746 set dummy gmsgfmt
; ac_word
=$2
5747 echo "$as_me:5747: checking for $ac_word" >&5
5748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5749 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5757 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
5759 for ac_dir
in $ac_dummy; do
5761 test -z "$ac_dir" && ac_dir
=.
5762 if $as_executable_p "$ac_dir/$ac_word"; then
5763 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
5768 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5772 GMSGFMT
=$ac_cv_path_GMSGFMT
5774 if test -n "$GMSGFMT"; then
5775 echo "$as_me:5775: result: $GMSGFMT" >&5
5776 echo "${ECHO_T}$GMSGFMT" >&6
5778 echo "$as_me:5778: result: no" >&5
5779 echo "${ECHO_T}no" >&6
5782 # Extract the first word of "xgettext", so it can be a program name with args.
5783 set dummy xgettext
; ac_word
=$2
5784 echo "$as_me:5784: checking for $ac_word" >&5
5785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5786 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
5794 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
5795 for ac_dir
in $PATH; do
5796 test -z "$ac_dir" && ac_dir
=.
5797 if test -f $ac_dir/$ac_word; then
5798 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5799 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
5805 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
5809 XGETTEXT
="$ac_cv_path_XGETTEXT"
5810 if test -n "$XGETTEXT"; then
5811 echo "$as_me:5811: result: $XGETTEXT" >&5
5812 echo "${ECHO_T}$XGETTEXT" >&6
5814 echo "$as_me:5814: result: no" >&5
5815 echo "${ECHO_T}no" >&6
5818 USE_INCLUDED_LIBINTL
=yes
5822 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
5824 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
5825 nls_cv_header_intl
=libintl.h
5826 nls_cv_header_libgt
=libgettext.h
5829 if test "$XGETTEXT" != ":"; then
5830 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
5833 echo "$as_me:5833: result: found xgettext programs is not GNU xgettext; ignore it" >&5
5834 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6
5839 # We need to process the po/ directory.
5843 nls_cv_header_intl
=libintl.h
5844 nls_cv_header_libgt
=libgettext.h
5847 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5848 # because some of the sources are only built for this goal.
5849 if test "$PACKAGE" = gettext; then
5851 USE_INCLUDED_LIBINTL
=yes
5854 for lang
in $ALL_LINGUAS; do
5855 GMOFILES
="$GMOFILES $lang.gmo"
5856 POFILES
="$POFILES $lang.po"
5859 if test "x$CATOBJEXT" != "x"; then
5860 if test "x$ALL_LINGUAS" = "x"; then
5863 echo "$as_me:5863: checking for catalogs to be installed" >&5
5864 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
5866 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
5867 case "$ALL_LINGUAS" in
5868 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
5871 LINGUAS
=$NEW_LINGUAS
5872 echo "$as_me:5872: result: $LINGUAS" >&5
5873 echo "${ECHO_T}$LINGUAS" >&6
5876 if test -n "$LINGUAS"; then
5877 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
5881 if test $ac_cv_header_locale_h = yes; then
5882 INCLUDE_LOCALE_H
="#include <locale.h>"
5885 /* The system does not provide the header <locale.h>. Take care yourself. */"
5888 if test -f $srcdir/po2tbl.
sed.
in; then
5889 if test "$CATOBJEXT" = ".cat"; then
5890 echo "$as_me:5890: checking for linux/version.h" >&5
5891 echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
5892 if test "${ac_cv_header_linux_version_h+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat >conftest.
$ac_ext <<_ACEOF
5896 #line 5896 "configure"
5897 #include "confdefs.h"
5898 #include <linux/version.h>
5900 if { (eval echo "$as_me:5900: \"$ac_cpp conftest.$ac_ext\"") >&5
5901 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5903 egrep -v '^ *\+' conftest.er1
>conftest.err
5905 cat conftest.err
>&5
5906 echo "$as_me:5906: \$? = $ac_status" >&5
5907 (exit $ac_status); } >/dev
/null
; then
5908 if test -s conftest.err
; then
5909 ac_cpp_err
=$ac_c_preproc_warn_flag
5916 if test -z "$ac_cpp_err"; then
5917 ac_cv_header_linux_version_h
=yes
5919 echo "$as_me: failed program was:" >&5
5920 cat conftest.
$ac_ext >&5
5921 ac_cv_header_linux_version_h
=no
5923 rm -f conftest.err conftest.
$ac_ext
5925 echo "$as_me:5925: result: $ac_cv_header_linux_version_h" >&5
5926 echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
5927 if test $ac_cv_header_linux_version_h = yes; then
5933 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
5935 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5936 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
5939 if test "$PACKAGE" = "gettext"; then
5947 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
5951 if test -d $srcdir/po
; then
5952 test -d po || mkdir po
5953 if test "x$srcdir" != "x."; then
5954 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5955 posrcprefix
="$srcdir/"
5957 posrcprefix
="../$srcdir/"
5963 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5964 < $srcdir/po
/POTFILES.
in > po
/POTFILES
5967 # Permit host specific settings.
5968 .
${srcdir}/configure.
host
5970 # Find a good install program. We prefer a C program (faster),
5971 # so one script is as good as another. But avoid the broken or
5972 # incompatible versions:
5973 # SysV /etc/install, /usr/sbin/install
5974 # SunOS /usr/etc/install
5975 # IRIX /sbin/install
5977 # AmigaOS /C/install, which installs bootblocks on floppy discs
5978 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5979 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5980 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5981 # ./install, which can be erroneously created by make from ./install.sh.
5982 echo "$as_me:5982: checking for a BSD compatible install" >&5
5983 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
5984 if test -z "$INSTALL"; then
5985 if test "${ac_cv_path_install+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5988 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
5989 for ac_dir
in $PATH; do
5991 # Account for people who put trailing slashes in PATH elements.
5993 / | .
/ | .
// |
/cC
/* \
5994 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
5997 # OSF1 and SCO ODT 3.0 have their own names for install.
5998 # Don't use installbsd from OSF since it installs stuff as root
6000 for ac_prog
in ginstall scoinst
install; do
6001 if $as_executable_p "$ac_dir/$ac_prog"; then
6002 if test $ac_prog = install &&
6003 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
6004 # AIX install. It has an incompatible calling convention.
6006 elif test $ac_prog = install &&
6007 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
6008 # program-specific install script used by HP pwplus--don't use.
6011 ac_cv_path_install
="$ac_dir/$ac_prog -c"
6021 if test "${ac_cv_path_install+set}" = set; then
6022 INSTALL
=$ac_cv_path_install
6024 # As a last resort, use the slow shell script. We don't cache a
6025 # path for INSTALL within a source directory, because that will
6026 # break other packages using the cache if that directory is
6027 # removed, or if the path is relative.
6028 INSTALL
=$ac_install_sh
6031 echo "$as_me:6031: result: $INSTALL" >&5
6032 echo "${ECHO_T}$INSTALL" >&6
6034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6035 # It thinks the first close brace ends the variable substitution.
6036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6040 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6042 BFD_HOST_64BIT_LONG
=0
6043 BFD_HOST_64_BIT_DEFINED
=0
6046 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
6047 BFD_HOST_64BIT_LONG
=1
6048 elif test "x${HOST_64BIT_TYPE}" != "x"; then
6049 BFD_HOST_64_BIT_DEFINED
=1
6050 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
6051 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
6054 # Put a plausible default for CC_FOR_BUILD in Makefile.
6055 if test -z "$CC_FOR_BUILD"; then
6056 if test "x$cross_compiling" = "xno"; then
6057 CC_FOR_BUILD
='$(CC)'
6063 # Also set EXEEXT_FOR_BUILD.
6064 if test "x$cross_compiling" = "xno"; then
6065 EXEEXT_FOR_BUILD
='$(EXEEXT)'
6067 echo "$as_me:6067: checking for build system executable suffix" >&5
6068 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
6069 if test "${bfd_cv_build_exeext+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 echo 'int main () { return 0; }' > conftest.c
6074 bfd_cv_build_exeext
=
6075 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
6076 for file in conftest.
*; do
6078 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
6079 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
6083 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
6085 echo "$as_me:6085: result: $bfd_cv_build_exeext" >&5
6086 echo "${ECHO_T}$bfd_cv_build_exeext" >&6
6088 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
6091 for ac_header
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
6093 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6094 echo "$as_me:6094: checking for $ac_header" >&5
6095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6096 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 cat >conftest.
$ac_ext <<_ACEOF
6100 #line 6100 "configure"
6101 #include "confdefs.h"
6102 #include <$ac_header>
6104 if { (eval echo "$as_me:6104: \"$ac_cpp conftest.$ac_ext\"") >&5
6105 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6107 egrep -v '^ *\+' conftest.er1
>conftest.err
6109 cat conftest.err
>&5
6110 echo "$as_me:6110: \$? = $ac_status" >&5
6111 (exit $ac_status); } >/dev
/null
; then
6112 if test -s conftest.err
; then
6113 ac_cpp_err
=$ac_c_preproc_warn_flag
6120 if test -z "$ac_cpp_err"; then
6121 eval "$ac_ac_Header=yes"
6123 echo "$as_me: failed program was:" >&5
6124 cat conftest.
$ac_ext >&5
6125 eval "$ac_ac_Header=no"
6127 rm -f conftest.err conftest.
$ac_ext
6129 echo "$as_me:6129: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6130 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6131 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6132 cat >>confdefs.h
<<EOF
6133 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6139 for ac_header
in fcntl.h sys
/file.h sys
/time.h
6141 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6142 echo "$as_me:6142: checking for $ac_header" >&5
6143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6144 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 cat >conftest.
$ac_ext <<_ACEOF
6148 #line 6148 "configure"
6149 #include "confdefs.h"
6150 #include <$ac_header>
6152 if { (eval echo "$as_me:6152: \"$ac_cpp conftest.$ac_ext\"") >&5
6153 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6155 egrep -v '^ *\+' conftest.er1
>conftest.err
6157 cat conftest.err
>&5
6158 echo "$as_me:6158: \$? = $ac_status" >&5
6159 (exit $ac_status); } >/dev
/null
; then
6160 if test -s conftest.err
; then
6161 ac_cpp_err
=$ac_c_preproc_warn_flag
6168 if test -z "$ac_cpp_err"; then
6169 eval "$ac_ac_Header=yes"
6171 echo "$as_me: failed program was:" >&5
6172 cat conftest.
$ac_ext >&5
6173 eval "$ac_ac_Header=no"
6175 rm -f conftest.err conftest.
$ac_ext
6177 echo "$as_me:6177: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6179 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6180 cat >>confdefs.h
<<EOF
6181 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
6187 echo "$as_me:6187: checking whether time.h and sys/time.h may both be included" >&5
6188 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6189 if test "${ac_cv_header_time+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 cat >conftest.
$ac_ext <<_ACEOF
6193 #line 6193 "configure"
6194 #include "confdefs.h"
6195 #include <sys/types.h>
6196 #include <sys/time.h>
6207 rm -f conftest.
$ac_objext
6208 if { (eval echo "$as_me:6208: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>&5
6211 echo "$as_me:6211: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try
='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:6214: \"$ac_try\"") >&5
6217 echo "$as_me:6217: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6219 ac_cv_header_time
=yes
6221 echo "$as_me: failed program was:" >&5
6222 cat conftest.
$ac_ext >&5
6223 ac_cv_header_time
=no
6225 rm -f conftest.
$ac_objext conftest.
$ac_ext
6227 echo "$as_me:6227: result: $ac_cv_header_time" >&5
6228 echo "${ECHO_T}$ac_cv_header_time" >&6
6229 if test $ac_cv_header_time = yes; then
6231 cat >>confdefs.h
<<\EOF
6232 #define TIME_WITH_SYS_TIME 1
6238 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
6239 ac_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $ac_tr_sh`
6240 echo "$as_me:6240: checking for $ac_hdr that defines DIR" >&5
6241 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6242 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 cat >conftest.
$ac_ext <<_ACEOF
6246 #line 6246 "configure"
6247 #include "confdefs.h"
6248 #include <sys/types.h>
6259 rm -f conftest.
$ac_objext
6260 if { (eval echo "$as_me:6260: \"$ac_compile\"") >&5
6261 (eval $ac_compile) 2>&5
6263 echo "$as_me:6263: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try
='test -s conftest.$ac_objext'
6266 { (eval echo "$as_me:6266: \"$ac_try\"") >&5
6269 echo "$as_me:6269: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 eval "$ac_ac_Header=yes"
6273 echo "$as_me: failed program was:" >&5
6274 cat conftest.
$ac_ext >&5
6275 eval "$ac_ac_Header=no"
6277 rm -f conftest.
$ac_objext conftest.
$ac_ext
6279 echo "$as_me:6279: result: `eval echo '${'$ac_ac_Header'}'`" >&5
6280 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
6281 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
6282 cat >>confdefs.h
<<EOF
6283 #define `echo "HAVE_$ac_hdr" | $ac_tr_cpp` 1
6286 ac_header_dirent
=$ac_hdr; break
6290 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6291 if test $ac_header_dirent = dirent.h
; then
6292 echo "$as_me:6292: checking for opendir in -ldir" >&5
6293 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6294 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_check_lib_save_LIBS
=$LIBS
6299 cat >conftest.
$ac_ext <<_ACEOF
6300 #line 6300 "configure"
6301 #include "confdefs.h"
6303 /* Override any gcc2 internal prototype to avoid an error. */
6307 /* We use char because int might match the return type of a gcc2
6308 builtin and then its argument prototype would still apply. */
6318 rm -f conftest.
$ac_objext conftest
$ac_exeext
6319 if { (eval echo "$as_me:6319: \"$ac_link\"") >&5
6320 (eval $ac_link) 2>&5
6322 echo "$as_me:6322: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try
='test -s conftest$ac_exeext'
6325 { (eval echo "$as_me:6325: \"$ac_try\"") >&5
6328 echo "$as_me:6328: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_cv_lib_dir_opendir
=yes
6332 echo "$as_me: failed program was:" >&5
6333 cat conftest.
$ac_ext >&5
6334 ac_cv_lib_dir_opendir
=no
6336 rm -f conftest
$ac_exeext conftest.
$ac_ext
6337 LIBS
=$ac_check_lib_save_LIBS
6339 echo "$as_me:6339: result: $ac_cv_lib_dir_opendir" >&5
6340 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6341 if test $ac_cv_lib_dir_opendir = yes; then
6346 echo "$as_me:6346: checking for opendir in -lx" >&5
6347 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6348 if test "${ac_cv_lib_x_opendir+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 ac_check_lib_save_LIBS
=$LIBS
6353 cat >conftest.
$ac_ext <<_ACEOF
6354 #line 6354 "configure"
6355 #include "confdefs.h"
6357 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6372 rm -f conftest.
$ac_objext conftest
$ac_exeext
6373 if { (eval echo "$as_me:6373: \"$ac_link\"") >&5
6374 (eval $ac_link) 2>&5
6376 echo "$as_me:6376: \$? = $ac_status" >&5
6377 (exit $ac_status); } &&
6378 { ac_try
='test -s conftest$ac_exeext'
6379 { (eval echo "$as_me:6379: \"$ac_try\"") >&5
6382 echo "$as_me:6382: \$? = $ac_status" >&5
6383 (exit $ac_status); }; }; then
6384 ac_cv_lib_x_opendir
=yes
6386 echo "$as_me: failed program was:" >&5
6387 cat conftest.
$ac_ext >&5
6388 ac_cv_lib_x_opendir
=no
6390 rm -f conftest
$ac_exeext conftest.
$ac_ext
6391 LIBS
=$ac_check_lib_save_LIBS
6393 echo "$as_me:6393: result: $ac_cv_lib_x_opendir" >&5
6394 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6395 if test $ac_cv_lib_x_opendir = yes; then
6401 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
6403 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
6404 echo "$as_me:6404: checking for $ac_func" >&5
6405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6406 if eval "test \"\${$ac_ac_var+set}\" = set"; then
6407 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 cat >conftest.
$ac_ext <<_ACEOF
6410 #line 6410 "configure"
6411 #include "confdefs.h"
6412 /* System header to define __stub macros and hopefully few prototypes,
6413 which can conflict with char $ac_func (); below. */
6415 /* Override any gcc2 internal prototype to avoid an error. */
6419 /* We use char because int might match the return type of a gcc2
6420 builtin and then its argument prototype would still apply. */
6427 /* The GNU C library defines this for functions which it implements
6428 to always fail with ENOSYS. Some functions are actually named
6429 something starting with __ and the normal name is an alias. */
6430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6440 rm -f conftest.
$ac_objext conftest
$ac_exeext
6441 if { (eval echo "$as_me:6441: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>&5
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); } &&
6446 { ac_try
='test -s conftest$ac_exeext'
6447 { (eval echo "$as_me:6447: \"$ac_try\"") >&5
6450 echo "$as_me:6450: \$? = $ac_status" >&5
6451 (exit $ac_status); }; }; then
6452 eval "$ac_ac_var=yes"
6454 echo "$as_me: failed program was:" >&5
6455 cat conftest.
$ac_ext >&5
6456 eval "$ac_ac_var=no"
6458 rm -f conftest
$ac_exeext conftest.
$ac_ext
6460 echo "$as_me:6460: result: `eval echo '${'$ac_ac_var'}'`" >&5
6461 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
6462 if test `eval echo '${'$ac_ac_var'}'` = yes; then
6463 cat >>confdefs.h
<<EOF
6464 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
6471 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
6473 cat >>confdefs.h
<<\EOF
6474 #define USE_BINARY_FOPEN 1
6479 echo "$as_me:6479: checking whether strstr must be declared" >&5
6480 echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6
6481 if test "${bfd_cv_decl_needed_strstr+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 cat >conftest.
$ac_ext <<_ACEOF
6485 #line 6485 "configure"
6486 #include "confdefs.h"
6489 #ifdef HAVE_STRING_H
6492 #ifdef HAVE_STRINGS_H
6493 #include <strings.h>
6496 #ifdef HAVE_STDLIB_H
6499 #ifdef HAVE_UNISTD_H
6505 char *(*pfn) = (char *(*)) strstr
6510 rm -f conftest.
$ac_objext
6511 if { (eval echo "$as_me:6511: \"$ac_compile\"") >&5
6512 (eval $ac_compile) 2>&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try
='test -s conftest.$ac_objext'
6517 { (eval echo "$as_me:6517: \"$ac_try\"") >&5
6520 echo "$as_me:6520: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 bfd_cv_decl_needed_strstr
=no
6524 echo "$as_me: failed program was:" >&5
6525 cat conftest.
$ac_ext >&5
6526 bfd_cv_decl_needed_strstr
=yes
6528 rm -f conftest.
$ac_objext conftest.
$ac_ext
6531 echo "$as_me:6531: result: $bfd_cv_decl_needed_strstr" >&5
6532 echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6
6533 if test $bfd_cv_decl_needed_strstr = yes; then
6535 cat >>confdefs.h
<<\EOF
6536 #define NEED_DECLARATION_STRSTR 1
6541 echo "$as_me:6541: checking whether malloc must be declared" >&5
6542 echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6
6543 if test "${bfd_cv_decl_needed_malloc+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 cat >conftest.
$ac_ext <<_ACEOF
6547 #line 6547 "configure"
6548 #include "confdefs.h"
6551 #ifdef HAVE_STRING_H
6554 #ifdef HAVE_STRINGS_H
6555 #include <strings.h>
6558 #ifdef HAVE_STDLIB_H
6561 #ifdef HAVE_UNISTD_H
6567 char *(*pfn) = (char *(*)) malloc
6572 rm -f conftest.
$ac_objext
6573 if { (eval echo "$as_me:6573: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>&5
6576 echo "$as_me:6576: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try
='test -s conftest.$ac_objext'
6579 { (eval echo "$as_me:6579: \"$ac_try\"") >&5
6582 echo "$as_me:6582: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 bfd_cv_decl_needed_malloc
=no
6586 echo "$as_me: failed program was:" >&5
6587 cat conftest.
$ac_ext >&5
6588 bfd_cv_decl_needed_malloc
=yes
6590 rm -f conftest.
$ac_objext conftest.
$ac_ext
6593 echo "$as_me:6593: result: $bfd_cv_decl_needed_malloc" >&5
6594 echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6
6595 if test $bfd_cv_decl_needed_malloc = yes; then
6597 cat >>confdefs.h
<<\EOF
6598 #define NEED_DECLARATION_MALLOC 1
6603 echo "$as_me:6603: checking whether realloc must be declared" >&5
6604 echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6
6605 if test "${bfd_cv_decl_needed_realloc+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 cat >conftest.
$ac_ext <<_ACEOF
6609 #line 6609 "configure"
6610 #include "confdefs.h"
6613 #ifdef HAVE_STRING_H
6616 #ifdef HAVE_STRINGS_H
6617 #include <strings.h>
6620 #ifdef HAVE_STDLIB_H
6623 #ifdef HAVE_UNISTD_H
6629 char *(*pfn) = (char *(*)) realloc
6634 rm -f conftest.
$ac_objext
6635 if { (eval echo "$as_me:6635: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>&5
6638 echo "$as_me:6638: \$? = $ac_status" >&5
6639 (exit $ac_status); } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:6641: \"$ac_try\"") >&5
6644 echo "$as_me:6644: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 bfd_cv_decl_needed_realloc
=no
6648 echo "$as_me: failed program was:" >&5
6649 cat conftest.
$ac_ext >&5
6650 bfd_cv_decl_needed_realloc
=yes
6652 rm -f conftest.
$ac_objext conftest.
$ac_ext
6655 echo "$as_me:6655: result: $bfd_cv_decl_needed_realloc" >&5
6656 echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6
6657 if test $bfd_cv_decl_needed_realloc = yes; then
6659 cat >>confdefs.h
<<\EOF
6660 #define NEED_DECLARATION_REALLOC 1
6665 echo "$as_me:6665: checking whether free must be declared" >&5
6666 echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6
6667 if test "${bfd_cv_decl_needed_free+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 cat >conftest.
$ac_ext <<_ACEOF
6671 #line 6671 "configure"
6672 #include "confdefs.h"
6675 #ifdef HAVE_STRING_H
6678 #ifdef HAVE_STRINGS_H
6679 #include <strings.h>
6682 #ifdef HAVE_STDLIB_H
6685 #ifdef HAVE_UNISTD_H
6691 char *(*pfn) = (char *(*)) free
6696 rm -f conftest.
$ac_objext
6697 if { (eval echo "$as_me:6697: \"$ac_compile\"") >&5
6698 (eval $ac_compile) 2>&5
6700 echo "$as_me:6700: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try
='test -s conftest.$ac_objext'
6703 { (eval echo "$as_me:6703: \"$ac_try\"") >&5
6706 echo "$as_me:6706: \$? = $ac_status" >&5
6707 (exit $ac_status); }; }; then
6708 bfd_cv_decl_needed_free
=no
6710 echo "$as_me: failed program was:" >&5
6711 cat conftest.
$ac_ext >&5
6712 bfd_cv_decl_needed_free
=yes
6714 rm -f conftest.
$ac_objext conftest.
$ac_ext
6717 echo "$as_me:6717: result: $bfd_cv_decl_needed_free" >&5
6718 echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6
6719 if test $bfd_cv_decl_needed_free = yes; then
6721 cat >>confdefs.h
<<\EOF
6722 #define NEED_DECLARATION_FREE 1
6727 echo "$as_me:6727: checking whether getenv must be declared" >&5
6728 echo $ECHO_N "checking whether getenv must be declared... $ECHO_C" >&6
6729 if test "${bfd_cv_decl_needed_getenv+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 cat >conftest.
$ac_ext <<_ACEOF
6733 #line 6733 "configure"
6734 #include "confdefs.h"
6737 #ifdef HAVE_STRING_H
6740 #ifdef HAVE_STRINGS_H
6741 #include <strings.h>
6744 #ifdef HAVE_STDLIB_H
6747 #ifdef HAVE_UNISTD_H
6753 char *(*pfn) = (char *(*)) getenv
6758 rm -f conftest.
$ac_objext
6759 if { (eval echo "$as_me:6759: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:6762: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try
='test -s conftest.$ac_objext'
6765 { (eval echo "$as_me:6765: \"$ac_try\"") >&5
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 bfd_cv_decl_needed_getenv
=no
6772 echo "$as_me: failed program was:" >&5
6773 cat conftest.
$ac_ext >&5
6774 bfd_cv_decl_needed_getenv
=yes
6776 rm -f conftest.
$ac_objext conftest.
$ac_ext
6779 echo "$as_me:6779: result: $bfd_cv_decl_needed_getenv" >&5
6780 echo "${ECHO_T}$bfd_cv_decl_needed_getenv" >&6
6781 if test $bfd_cv_decl_needed_getenv = yes; then
6783 cat >>confdefs.h
<<\EOF
6784 #define NEED_DECLARATION_GETENV 1
6789 # If we are configured native, pick a core file support file.
6793 if test "${target}" = "${host}"; then
6798 alpha
*-*-linux-gnu*)
6799 COREFILE
=trad-core.lo
6800 TRAD_HEADER
='"hosts/alphalinux.h"'
6802 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
6803 alpha
*-*-*) COREFILE
=osf-core.lo
;;
6804 arm-
*-freebsd*) COREFILE
='' ;;
6805 arm-
*-riscix) COREFILE
=trad-core.lo
;;
6806 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
6807 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
6808 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
6809 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
6810 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
6812 COREFILE
=trad-core.lo
6813 TRAD_HEADER
='"hosts/i370linux.h"'
6816 i
[3456]86-sequent-bsd*)
6817 COREFILE
=trad-core.lo
6818 TRAD_HEADER
='"hosts/symmetry.h"'
6820 i
[3456]86-sequent-sysv4*) ;;
6821 i
[3456]86-sequent-sysv*)
6822 COREFILE
=trad-core.lo
6823 TRAD_HEADER
='"hosts/symmetry.h"'
6825 i
[3456]86-*-bsd* | i
[34567]86-*-freebsd[1234] | i
[34567]86-*-freebsd[1234]\.
* | i
[34567]86-*-freebsd*aout
*)
6826 COREFILE
=trad-core.lo
6827 TRAD_HEADER
='"hosts/i386bsd.h"'
6829 i
[3456]86-*-freebsd*)
6831 TRAD_HEADER
='"hosts/i386bsd.h"'
6833 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
6834 COREFILE
=netbsd-core.lo
6836 i
[3456]86-esix-sysv3*)
6837 COREFILE
=trad-core.lo
6838 TRAD_HEADER
='"hosts/esix.h"'
6840 i
[3456]86-*-sco3.2v5
*)
6841 COREFILE
=sco5-core.lo
6843 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
6844 COREFILE
=trad-core.lo
6845 TRAD_HEADER
='"hosts/i386sco.h"'
6848 COREFILE
=trad-core.lo
6849 TRAD_HEADER
='"hosts/i386mach3.h"'
6851 i
[3456]86-*-linux-gnu*)
6852 COREFILE
=trad-core.lo
6853 TRAD_HEADER
='"hosts/i386linux.h"'
6855 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
6856 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
6857 i860-
*-mach3* | i860-
*-osf1*)
6858 COREFILE
=trad-core.lo
6859 TRAD_HEADER
='"hosts/i860mach3.h"'
6862 COREFILE
=trad-core.lo
6863 TRAD_HEADER
='"hosts/mipsbsd.h"'
6866 COREFILE
=trad-core.lo
6867 TRAD_HEADER
='"hosts/mipsmach3.h"'
6869 mips-
*-netbsd* | mips
*-*-openbsd*)
6870 COREFILE
=netbsd-core.lo
6873 COREFILE
=trad-core.lo
6874 TRAD_HEADER
='"hosts/decstation.h"'
6876 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
6877 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
6878 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
6880 COREFILE
=trad-core.lo
6881 TRAD_HEADER
='"hosts/mipsmach3.h"'
6884 mips-
*-sysv* | mips-
*-riscos*)
6885 COREFILE
=trad-core.lo
6886 TRAD_HEADER
='"hosts/riscos.h"'
6889 COREFILE
=trad-core.lo
6890 TRAD_HEADER
='"hosts/news-mips.h"'
6893 COREFILE
=trad-core.lo
6894 TRAD_HEADER
='"hosts/dpx2.h"'
6896 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
6898 COREFILE
=trad-core.lo
6899 TRAD_HEADER
='"hosts/hp300bsd.h"'
6902 COREFILE
=trad-core.lo
6903 TRAD_HEADER
='"hosts/m68klinux.h"'
6905 m68
*-motorola-sysv*)
6906 COREFILE
=trad-core.lo
6907 TRAD_HEADER
='"hosts/delta68.h"'
6910 COREFILE
=trad-core.lo
6911 TRAD_HEADER
='"hosts/news.h"'
6913 m68
*-*-netbsd* | m68
*-*-openbsd*)
6914 COREFILE
=netbsd-core.lo
6917 COREFILE
=trad-core.lo
6918 TRAD_HEADER
='"hosts/m68kaux.h"'
6921 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
6923 COREFILE
=trad-core.lo
6924 TRAD_HEADER
='"hosts/m88kmach3.h"'
6927 COREFILE
=trad-core.lo
6928 TRAD_HEADER
='"hosts/pc532mach.h"'
6930 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
6931 COREFILE
=netbsd-core.lo
6933 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
6934 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
6935 COREFILE
=rs6000-core.lo
6936 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
6938 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
6939 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
6940 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
6941 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
6943 powerpc-
*-freebsd*) COREFILE
='' ;;
6944 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
6945 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
6946 s390
*-*-*) COREFILE
=trad-core.lo
;;
6947 sparc-
*-netbsd* | sparc-
*-openbsd*)
6948 COREFILE
=netbsd-core.lo
6951 COREFILE
=trad-core.lo
6952 TRAD_HEADER
='"hosts/tahoe.h"'
6955 COREFILE
=trad-core.lo
6956 TRAD_HEADER
='"hosts/vaxult2.h"'
6959 COREFILE
=trad-core.lo
6960 TRAD_HEADER
='"hosts/vaxult2.h"'
6963 COREFILE
=trad-core.lo
6964 TRAD_HEADER
='"hosts/vaxbsd.h"'
6969 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
6970 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
6971 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
6972 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
6973 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
6974 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
6975 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
6976 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
6977 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
6978 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
6979 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
6982 # ELF corefile support has several flavors, but all of
6983 # them use something called <sys/procfs.h>
6985 for ac_header
in sys
/procfs.h
6987 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
6988 echo "$as_me:6988: checking for $ac_header" >&5
6989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 cat >conftest.
$ac_ext <<_ACEOF
6994 #line 6994 "configure"
6995 #include "confdefs.h"
6996 #include <$ac_header>
6998 if { (eval echo "$as_me:6998: \"$ac_cpp conftest.$ac_ext\"") >&5
6999 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7001 egrep -v '^ *\+' conftest.er1
>conftest.err
7003 cat conftest.err
>&5
7004 echo "$as_me:7004: \$? = $ac_status" >&5
7005 (exit $ac_status); } >/dev
/null
; then
7006 if test -s conftest.err
; then
7007 ac_cpp_err
=$ac_c_preproc_warn_flag
7014 if test -z "$ac_cpp_err"; then
7015 eval "$ac_ac_Header=yes"
7017 echo "$as_me: failed program was:" >&5
7018 cat conftest.
$ac_ext >&5
7019 eval "$ac_ac_Header=no"
7021 rm -f conftest.err conftest.
$ac_ext
7023 echo "$as_me:7023: result: `eval echo '${'$ac_ac_Header'}'`" >&5
7024 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
7025 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
7026 cat >>confdefs.h
<<EOF
7027 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
7033 if test "$ac_cv_header_sys_procfs_h" = yes; then
7034 echo "$as_me:7034: checking for prstatus_t in sys/procfs.h" >&5
7035 echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6
7036 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 cat >conftest.
$ac_ext <<_ACEOF
7040 #line 7040 "configure"
7041 #include "confdefs.h"
7044 #include <sys/procfs.h>
7053 rm -f conftest.
$ac_objext
7054 if { (eval echo "$as_me:7054: \"$ac_compile\"") >&5
7055 (eval $ac_compile) 2>&5
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 (exit $ac_status); } &&
7059 { ac_try
='test -s conftest.$ac_objext'
7060 { (eval echo "$as_me:7060: \"$ac_try\"") >&5
7063 echo "$as_me:7063: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
7067 echo "$as_me: failed program was:" >&5
7068 cat conftest.
$ac_ext >&5
7069 bfd_cv_have_sys_procfs_type_prstatus_t
=no
7072 rm -f conftest.
$ac_objext conftest.
$ac_ext
7075 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
7077 cat >>confdefs.h
<<\EOF
7078 #define HAVE_PRSTATUS_T 1
7082 echo "$as_me:7082: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
7083 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6
7085 echo "$as_me:7085: checking for prstatus32_t in sys/procfs.h" >&5
7086 echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6
7087 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.
$ac_ext <<_ACEOF
7091 #line 7091 "configure"
7092 #include "confdefs.h"
7095 #include <sys/procfs.h>
7104 rm -f conftest.
$ac_objext
7105 if { (eval echo "$as_me:7105: \"$ac_compile\"") >&5
7106 (eval $ac_compile) 2>&5
7108 echo "$as_me:7108: \$? = $ac_status" >&5
7109 (exit $ac_status); } &&
7110 { ac_try
='test -s conftest.$ac_objext'
7111 { (eval echo "$as_me:7111: \"$ac_try\"") >&5
7114 echo "$as_me:7114: \$? = $ac_status" >&5
7115 (exit $ac_status); }; }; then
7116 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
7118 echo "$as_me: failed program was:" >&5
7119 cat conftest.
$ac_ext >&5
7120 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
7123 rm -f conftest.
$ac_objext conftest.
$ac_ext
7126 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
7128 cat >>confdefs.h
<<\EOF
7129 #define HAVE_PRSTATUS32_T 1
7133 echo "$as_me:7133: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
7134 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6
7136 echo "$as_me:7136: checking for prstatus_t.pr_who in sys/procfs.h" >&5
7137 echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6
7138 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.
$ac_ext <<_ACEOF
7142 #line 7142 "configure"
7143 #include "confdefs.h"
7146 #include <sys/procfs.h>
7150 prstatus_t avar; void* aref = (void*) &avar.pr_who
7155 rm -f conftest.
$ac_objext
7156 if { (eval echo "$as_me:7156: \"$ac_compile\"") >&5
7157 (eval $ac_compile) 2>&5
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 (exit $ac_status); } &&
7161 { ac_try
='test -s conftest.$ac_objext'
7162 { (eval echo "$as_me:7162: \"$ac_try\"") >&5
7165 echo "$as_me:7165: \$? = $ac_status" >&5
7166 (exit $ac_status); }; }; then
7167 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
7169 echo "$as_me: failed program was:" >&5
7170 cat conftest.
$ac_ext >&5
7171 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
7174 rm -f conftest.
$ac_objext conftest.
$ac_ext
7177 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
7179 cat >>confdefs.h
<<\EOF
7180 #define HAVE_PRSTATUS_T_PR_WHO 1
7184 echo "$as_me:7184: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
7185 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6
7187 echo "$as_me:7187: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
7188 echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6
7189 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
$ac_ext <<_ACEOF
7193 #line 7193 "configure"
7194 #include "confdefs.h"
7197 #include <sys/procfs.h>
7201 prstatus32_t avar; void* aref = (void*) &avar.pr_who
7206 rm -f conftest.
$ac_objext
7207 if { (eval echo "$as_me:7207: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7210 echo "$as_me:7210: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try
='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:7213: \"$ac_try\"") >&5
7216 echo "$as_me:7216: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
7220 echo "$as_me: failed program was:" >&5
7221 cat conftest.
$ac_ext >&5
7222 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
7225 rm -f conftest.
$ac_objext conftest.
$ac_ext
7228 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
7230 cat >>confdefs.h
<<\EOF
7231 #define HAVE_PRSTATUS32_T_PR_WHO 1
7235 echo "$as_me:7235: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
7236 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6
7238 echo "$as_me:7238: checking for pstatus_t in sys/procfs.h" >&5
7239 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
7240 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 cat >conftest.
$ac_ext <<_ACEOF
7244 #line 7244 "configure"
7245 #include "confdefs.h"
7248 #include <sys/procfs.h>
7257 rm -f conftest.
$ac_objext
7258 if { (eval echo "$as_me:7258: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7261 echo "$as_me:7261: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try
='test -s conftest.$ac_objext'
7264 { (eval echo "$as_me:7264: \"$ac_try\"") >&5
7267 echo "$as_me:7267: \$? = $ac_status" >&5
7268 (exit $ac_status); }; }; then
7269 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
7271 echo "$as_me: failed program was:" >&5
7272 cat conftest.
$ac_ext >&5
7273 bfd_cv_have_sys_procfs_type_pstatus_t
=no
7276 rm -f conftest.
$ac_objext conftest.
$ac_ext
7279 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
7281 cat >>confdefs.h
<<\EOF
7282 #define HAVE_PSTATUS_T 1
7286 echo "$as_me:7286: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
7287 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
7289 echo "$as_me:7289: checking for pxstatus_t in sys/procfs.h" >&5
7290 echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6
7291 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 cat >conftest.
$ac_ext <<_ACEOF
7295 #line 7295 "configure"
7296 #include "confdefs.h"
7299 #include <sys/procfs.h>
7308 rm -f conftest.
$ac_objext
7309 if { (eval echo "$as_me:7309: \"$ac_compile\"") >&5
7310 (eval $ac_compile) 2>&5
7312 echo "$as_me:7312: \$? = $ac_status" >&5
7313 (exit $ac_status); } &&
7314 { ac_try
='test -s conftest.$ac_objext'
7315 { (eval echo "$as_me:7315: \"$ac_try\"") >&5
7318 echo "$as_me:7318: \$? = $ac_status" >&5
7319 (exit $ac_status); }; }; then
7320 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
7322 echo "$as_me: failed program was:" >&5
7323 cat conftest.
$ac_ext >&5
7324 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
7327 rm -f conftest.
$ac_objext conftest.
$ac_ext
7330 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
7332 cat >>confdefs.h
<<\EOF
7333 #define HAVE_PXSTATUS_T 1
7337 echo "$as_me:7337: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
7338 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6
7340 echo "$as_me:7340: checking for pstatus32_t in sys/procfs.h" >&5
7341 echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6
7342 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then
7343 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 cat >conftest.
$ac_ext <<_ACEOF
7346 #line 7346 "configure"
7347 #include "confdefs.h"
7350 #include <sys/procfs.h>
7359 rm -f conftest.
$ac_objext
7360 if { (eval echo "$as_me:7360: \"$ac_compile\"") >&5
7361 (eval $ac_compile) 2>&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try
='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:7366: \"$ac_try\"") >&5
7369 echo "$as_me:7369: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
7373 echo "$as_me: failed program was:" >&5
7374 cat conftest.
$ac_ext >&5
7375 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
7378 rm -f conftest.
$ac_objext conftest.
$ac_ext
7381 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
7383 cat >>confdefs.h
<<\EOF
7384 #define HAVE_PSTATUS32_T 1
7388 echo "$as_me:7388: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
7389 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6
7391 echo "$as_me:7391: checking for prpsinfo_t in sys/procfs.h" >&5
7392 echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6
7393 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 cat >conftest.
$ac_ext <<_ACEOF
7397 #line 7397 "configure"
7398 #include "confdefs.h"
7401 #include <sys/procfs.h>
7410 rm -f conftest.
$ac_objext
7411 if { (eval echo "$as_me:7411: \"$ac_compile\"") >&5
7412 (eval $ac_compile) 2>&5
7414 echo "$as_me:7414: \$? = $ac_status" >&5
7415 (exit $ac_status); } &&
7416 { ac_try
='test -s conftest.$ac_objext'
7417 { (eval echo "$as_me:7417: \"$ac_try\"") >&5
7420 echo "$as_me:7420: \$? = $ac_status" >&5
7421 (exit $ac_status); }; }; then
7422 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
7424 echo "$as_me: failed program was:" >&5
7425 cat conftest.
$ac_ext >&5
7426 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
7429 rm -f conftest.
$ac_objext conftest.
$ac_ext
7432 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
7434 cat >>confdefs.h
<<\EOF
7435 #define HAVE_PRPSINFO_T 1
7439 echo "$as_me:7439: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
7440 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6
7442 echo "$as_me:7442: checking for prpsinfo32_t in sys/procfs.h" >&5
7443 echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6
7444 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 cat >conftest.
$ac_ext <<_ACEOF
7448 #line 7448 "configure"
7449 #include "confdefs.h"
7452 #include <sys/procfs.h>
7461 rm -f conftest.
$ac_objext
7462 if { (eval echo "$as_me:7462: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>&5
7465 echo "$as_me:7465: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try
='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:7468: \"$ac_try\"") >&5
7471 echo "$as_me:7471: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
7475 echo "$as_me: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7477 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
7480 rm -f conftest.
$ac_objext conftest.
$ac_ext
7483 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
7485 cat >>confdefs.h
<<\EOF
7486 #define HAVE_PRPSINFO32_T 1
7490 echo "$as_me:7490: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
7491 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6
7493 echo "$as_me:7493: checking for psinfo_t in sys/procfs.h" >&5
7494 echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6
7495 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 cat >conftest.
$ac_ext <<_ACEOF
7499 #line 7499 "configure"
7500 #include "confdefs.h"
7503 #include <sys/procfs.h>
7512 rm -f conftest.
$ac_objext
7513 if { (eval echo "$as_me:7513: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>&5
7516 echo "$as_me:7516: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try
='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:7519: \"$ac_try\"") >&5
7522 echo "$as_me:7522: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
7526 echo "$as_me: failed program was:" >&5
7527 cat conftest.
$ac_ext >&5
7528 bfd_cv_have_sys_procfs_type_psinfo_t
=no
7531 rm -f conftest.
$ac_objext conftest.
$ac_ext
7534 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
7536 cat >>confdefs.h
<<\EOF
7537 #define HAVE_PSINFO_T 1
7541 echo "$as_me:7541: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
7542 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6
7544 echo "$as_me:7544: checking for psinfo32_t in sys/procfs.h" >&5
7545 echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6
7546 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 cat >conftest.
$ac_ext <<_ACEOF
7550 #line 7550 "configure"
7551 #include "confdefs.h"
7554 #include <sys/procfs.h>
7563 rm -f conftest.
$ac_objext
7564 if { (eval echo "$as_me:7564: \"$ac_compile\"") >&5
7565 (eval $ac_compile) 2>&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try
='test -s conftest.$ac_objext'
7570 { (eval echo "$as_me:7570: \"$ac_try\"") >&5
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
7577 echo "$as_me: failed program was:" >&5
7578 cat conftest.
$ac_ext >&5
7579 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
7582 rm -f conftest.
$ac_objext conftest.
$ac_ext
7585 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
7587 cat >>confdefs.h
<<\EOF
7588 #define HAVE_PSINFO32_T 1
7592 echo "$as_me:7592: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
7593 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6
7595 echo "$as_me:7595: checking for lwpstatus_t in sys/procfs.h" >&5
7596 echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6
7597 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 cat >conftest.
$ac_ext <<_ACEOF
7601 #line 7601 "configure"
7602 #include "confdefs.h"
7605 #include <sys/procfs.h>
7614 rm -f conftest.
$ac_objext
7615 if { (eval echo "$as_me:7615: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try
='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7626 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.
$ac_ext >&5
7630 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
7633 rm -f conftest.
$ac_objext conftest.
$ac_ext
7636 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
7638 cat >>confdefs.h
<<\EOF
7639 #define HAVE_LWPSTATUS_T 1
7643 echo "$as_me:7643: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
7644 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6
7646 echo "$as_me:7646: checking for lwpxstatus_t in sys/procfs.h" >&5
7647 echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6
7648 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 cat >conftest.
$ac_ext <<_ACEOF
7652 #line 7652 "configure"
7653 #include "confdefs.h"
7656 #include <sys/procfs.h>
7665 rm -f conftest.
$ac_objext
7666 if { (eval echo "$as_me:7666: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try
='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:7672: \"$ac_try\"") >&5
7675 echo "$as_me:7675: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.
$ac_ext >&5
7681 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
7684 rm -f conftest.
$ac_objext conftest.
$ac_ext
7687 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
7689 cat >>confdefs.h
<<\EOF
7690 #define HAVE_LWPXSTATUS_T 1
7694 echo "$as_me:7694: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
7695 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6
7697 echo "$as_me:7697: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
7698 echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6
7699 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 cat >conftest.
$ac_ext <<_ACEOF
7703 #line 7703 "configure"
7704 #include "confdefs.h"
7707 #include <sys/procfs.h>
7711 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
7716 rm -f conftest.
$ac_objext
7717 if { (eval echo "$as_me:7717: \"$ac_compile\"") >&5
7718 (eval $ac_compile) 2>&5
7720 echo "$as_me:7720: \$? = $ac_status" >&5
7721 (exit $ac_status); } &&
7722 { ac_try
='test -s conftest.$ac_objext'
7723 { (eval echo "$as_me:7723: \"$ac_try\"") >&5
7726 echo "$as_me:7726: \$? = $ac_status" >&5
7727 (exit $ac_status); }; }; then
7728 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
7730 echo "$as_me: failed program was:" >&5
7731 cat conftest.
$ac_ext >&5
7732 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
7735 rm -f conftest.
$ac_objext conftest.
$ac_ext
7738 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
7740 cat >>confdefs.h
<<\EOF
7741 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
7745 echo "$as_me:7745: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
7746 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6
7748 echo "$as_me:7748: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
7749 echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6
7750 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 cat >conftest.
$ac_ext <<_ACEOF
7754 #line 7754 "configure"
7755 #include "confdefs.h"
7758 #include <sys/procfs.h>
7762 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
7767 rm -f conftest.
$ac_objext
7768 if { (eval echo "$as_me:7768: \"$ac_compile\"") >&5
7769 (eval $ac_compile) 2>&5
7771 echo "$as_me:7771: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try
='test -s conftest.$ac_objext'
7774 { (eval echo "$as_me:7774: \"$ac_try\"") >&5
7777 echo "$as_me:7777: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
7781 echo "$as_me: failed program was:" >&5
7782 cat conftest.
$ac_ext >&5
7783 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
7786 rm -f conftest.
$ac_objext conftest.
$ac_ext
7789 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
7791 cat >>confdefs.h
<<\EOF
7792 #define HAVE_LWPSTATUS_T_PR_REG 1
7796 echo "$as_me:7796: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
7797 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6
7799 echo "$as_me:7799: checking for win32_pstatus_t in sys/procfs.h" >&5
7800 echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6
7801 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 cat >conftest.
$ac_ext <<_ACEOF
7805 #line 7805 "configure"
7806 #include "confdefs.h"
7809 #include <sys/procfs.h>
7813 win32_pstatus_t avar
7818 rm -f conftest.
$ac_objext
7819 if { (eval echo "$as_me:7819: \"$ac_compile\"") >&5
7820 (eval $ac_compile) 2>&5
7822 echo "$as_me:7822: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try
='test -s conftest.$ac_objext'
7825 { (eval echo "$as_me:7825: \"$ac_try\"") >&5
7828 echo "$as_me:7828: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
7832 echo "$as_me: failed program was:" >&5
7833 cat conftest.
$ac_ext >&5
7834 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
7837 rm -f conftest.
$ac_objext conftest.
$ac_ext
7840 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
7842 cat >>confdefs.h
<<\EOF
7843 #define HAVE_WIN32_PSTATUS_T 1
7847 echo "$as_me:7847: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
7848 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6
7853 if test -n "$TRAD_HEADER"; then
7855 cat >>confdefs.h
<<EOF
7856 #define TRAD_HEADER $TRAD_HEADER
7861 # Horrible hacks to build DLLs on Windows.
7866 if test "$enable_shared" = "yes"; then
7867 WIN32LDFLAGS
="-no-undefined"
7868 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
7875 # Canonicalize the secondary target names.
7876 if test -n "$enable_targets" ; then
7877 for targ
in `echo $enable_targets | sed 's/,/ /g'`
7879 result
=`$ac_config_sub $targ 2>/dev/null`
7880 if test -n "$result" ; then
7881 canon_targets
="$canon_targets $result"
7883 # Allow targets that config.sub doesn't recognize, like "all".
7884 canon_targets
="$canon_targets $targ"
7894 for targ
in $target $canon_targets
7896 if test "x$targ" = "xall"; then
7899 .
$srcdir/config.bfd
7900 if test "x$targ" = "x$target"; then
7903 selvecs
="$selvecs $targ_defvec $targ_selvecs"
7904 selarchs
="$selarchs $targ_archs"
7905 TDEFINES
="$TDEFINES $targ_cflags"
7909 # This processing still needs to be done if we're to decide properly whether
7910 # 64-bit support needs to be compiled in. Currently, it will be included if
7911 # the default or any other explicitly requested target requires it; it
7912 # will not be included on a 32-bit host if no 64-bit target is requested, and
7913 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
7916 # uniq the default and selected vectors in all the configured targets.
7918 for i
in $selvecs ; do
7926 # uniq the architectures in all the configured targets.
7928 for i
in $selarchs ; do
7936 # Target backend .o files.
7939 elf
="elf.lo elflink.lo dwarf1.lo"
7944 # This list is alphabetized to make it easy to compare
7945 # with the two vector lists in targets.c.
7946 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
7947 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
7948 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
7949 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
7950 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
7951 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
7952 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
7953 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
7954 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
7955 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
7956 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
7957 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7958 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
7959 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
7960 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
7961 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
7962 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
7963 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
7964 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
7965 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
7966 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
7967 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
7968 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
7970 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
7972 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec
)
7973 tb
="$tb elf64-hppa.lo elf64.lo $elf"
7975 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
7977 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
7979 bfd_elf64_ia64_aix_little_vec
)
7980 tb
="$tb elf64-ia64.lo elf64.lo $elf"
7982 bfd_elf64_ia64_aix_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
7984 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
7985 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
7986 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
7987 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
7988 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
7989 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
7990 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
7991 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
7992 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
7993 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
7994 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
7996 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
7997 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
7998 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
7999 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
8000 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
8001 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec
)
8002 tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
8003 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
8004 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
8005 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"
8007 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
8008 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
8009 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
8010 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
8011 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
8012 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
8014 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
8015 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
8016 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
8017 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
8018 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
8019 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
8020 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
8021 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
8022 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
8023 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
8024 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
8025 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
8026 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
8027 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
8028 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
8029 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
8030 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
8031 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
8032 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
8033 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
8034 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
8035 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
8036 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
8037 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
8039 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
8041 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"
8043 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
8045 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
8047 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo $elf ecofflink.lo"
8049 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
8050 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
8051 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
8052 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
8054 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
8055 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
8056 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
8057 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
8059 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
8060 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
8061 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
8062 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
8063 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
8064 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
8065 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
8066 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
8067 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
8068 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
8069 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
8070 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
8071 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
8072 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
8073 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
8074 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
8075 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
8076 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
8077 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
8078 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
8079 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
8080 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
8081 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
8082 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
8083 ieee_vec
) tb
="$tb ieee.lo" ;;
8084 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
8085 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
8086 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
8087 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
8088 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
8089 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
8090 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
8091 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
8092 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
8093 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
8094 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
8095 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
8096 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
8097 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
8098 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
8099 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
8100 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
8101 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
8102 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
8104 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
8105 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
8107 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
8108 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
8109 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
8110 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
8111 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
8112 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
8113 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
8114 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
8115 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
8116 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
8117 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
8118 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
8119 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
8120 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
8121 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
8122 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
8123 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
8124 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
8125 som_vec
) tb
="$tb som.lo" ;;
8126 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
8127 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
8128 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
8129 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
8130 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
8131 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
8132 srec_vec
) tb
="$tb srec.lo" ;;
8133 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
8134 symbolsrec_vec
) tb
="$tb srec.lo" ;;
8135 tekhex_vec
) tb
="$tb tekhex.lo" ;;
8136 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
8137 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
8138 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
8139 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
8140 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
8141 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
8142 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
8143 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
8144 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
8145 versados_vec
) tb
="$tb versados.lo" ;;
8146 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
8148 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
8149 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
8150 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
8151 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
8154 *) { { echo "$as_me:8154: error: *** unknown target vector $vec" >&5
8155 echo "$as_me: error: *** unknown target vector $vec" >&2;}
8156 { (exit 1); exit 1; }; } ;;
8160 # Target architecture .o files.
8161 # A couple of CPUs use shorter file names to avoid problems on DOS
8163 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
8165 # Weed out duplicate .o files.
8187 if test x
${all_targets} = xtrue
; then
8188 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
8189 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
8193 else # all_targets is true
8194 # Only set these if they will be nonempty, for the clever echo.
8196 test -n "$selvecs" &&
8197 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
8198 test -n "$selvecs" &&
8199 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
8200 test -n "$selarchs" &&
8201 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
8202 fi # all_targets is true
8204 case ${host64}-${target64}-${want64} in
8207 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
8208 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
8209 { echo "$as_me:8209: WARNING: You have requested a 64 bit BFD configuration, but" >&5
8210 echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
8211 { echo "$as_me:8211: WARNING: your compiler may not have a 64 bit integral type" >&5
8212 echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
8217 all_backends
='$(BFD32_BACKENDS)'
8222 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
8223 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
8224 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
8225 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
8227 for ac_header
in stdlib.h unistd.h
8229 ac_ac_Header
=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
8230 echo "$as_me:8230: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8232 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8236 #line 8236 "configure"
8237 #include "confdefs.h"
8238 #include <$ac_header>
8240 if { (eval echo "$as_me:8240: \"$ac_cpp conftest.$ac_ext\"") >&5
8241 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8243 egrep -v '^ *\+' conftest.er1
>conftest.err
8245 cat conftest.err
>&5
8246 echo "$as_me:8246: \$? = $ac_status" >&5
8247 (exit $ac_status); } >/dev
/null
; then
8248 if test -s conftest.err
; then
8249 ac_cpp_err
=$ac_c_preproc_warn_flag
8256 if test -z "$ac_cpp_err"; then
8257 eval "$ac_ac_Header=yes"
8259 echo "$as_me: failed program was:" >&5
8260 cat conftest.
$ac_ext >&5
8261 eval "$ac_ac_Header=no"
8263 rm -f conftest.err conftest.
$ac_ext
8265 echo "$as_me:8265: result: `eval echo '${'$ac_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
8267 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
8268 cat >>confdefs.h
<<EOF
8269 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
8275 for ac_func
in getpagesize
8277 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8278 echo "$as_me:8278: checking for $ac_func" >&5
8279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8280 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 cat >conftest.
$ac_ext <<_ACEOF
8284 #line 8284 "configure"
8285 #include "confdefs.h"
8286 /* System header to define __stub macros and hopefully few prototypes,
8287 which can conflict with char $ac_func (); below. */
8289 /* Override any gcc2 internal prototype to avoid an error. */
8293 /* We use char because int might match the return type of a gcc2
8294 builtin and then its argument prototype would still apply. */
8301 /* The GNU C library defines this for functions which it implements
8302 to always fail with ENOSYS. Some functions are actually named
8303 something starting with __ and the normal name is an alias. */
8304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8314 rm -f conftest.
$ac_objext conftest
$ac_exeext
8315 if { (eval echo "$as_me:8315: \"$ac_link\"") >&5
8316 (eval $ac_link) 2>&5
8318 echo "$as_me:8318: \$? = $ac_status" >&5
8319 (exit $ac_status); } &&
8320 { ac_try
='test -s conftest$ac_exeext'
8321 { (eval echo "$as_me:8321: \"$ac_try\"") >&5
8324 echo "$as_me:8324: \$? = $ac_status" >&5
8325 (exit $ac_status); }; }; then
8326 eval "$ac_ac_var=yes"
8328 echo "$as_me: failed program was:" >&5
8329 cat conftest.
$ac_ext >&5
8330 eval "$ac_ac_var=no"
8332 rm -f conftest
$ac_exeext conftest.
$ac_ext
8334 echo "$as_me:8334: result: `eval echo '${'$ac_ac_var'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8336 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8337 cat >>confdefs.h
<<EOF
8338 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8344 echo "$as_me:8344: checking for working mmap" >&5
8345 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8346 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 if test "$cross_compiling" = yes; then
8350 ac_cv_func_mmap_fixed_mapped
=no
8352 cat >conftest.
$ac_ext <<_ACEOF
8353 #line 8353 "configure"
8354 #include "confdefs.h"
8355 /* Thanks to Mike Haertel and Jim Avera for this test.
8356 Here is a matrix of mmap possibilities:
8357 mmap private not fixed
8358 mmap private fixed at somewhere currently unmapped
8359 mmap private fixed at somewhere already mapped
8360 mmap shared not fixed
8361 mmap shared fixed at somewhere currently unmapped
8362 mmap shared fixed at somewhere already mapped
8363 For private mappings, we should verify that changes cannot be read()
8364 back from the file, nor mmap's back from the file at a different
8365 address. (There have been systems where private was not correctly
8366 implemented like the infamous i386 svr4.0, and systems where the
8367 VM page cache was not coherent with the file system buffer cache
8368 like early versions of FreeBSD and possibly contemporary NetBSD.)
8369 For shared mappings, we should conversely verify that changes get
8370 propogated back to all the places they're supposed to be.
8372 Grep wants private fixed already mapped.
8373 The main things grep needs to know about mmap are:
8374 * does it exist and is it safe to write into the mmap'd area
8375 * how to use it (BSD variants) */
8376 #include <sys/types.h>
8378 #include <sys/mman.h>
8380 #if STDC_HEADERS || HAVE_STDLIB_H
8381 # include <stdlib.h>
8386 # include <unistd.h>
8388 #include <sys/stat.h>
8390 /* This mess was copied from the GNU getpagesize.h. */
8391 #if !HAVE_GETPAGESIZE
8392 /* Assume that all systems that can run configure have sys/param.h. */
8393 # if !HAVE_SYS_PARAM_H
8394 # define HAVE_SYS_PARAM_H 1
8397 # ifdef _SC_PAGESIZE
8398 # define getpagesize() sysconf(_SC_PAGESIZE)
8399 # else /* no _SC_PAGESIZE */
8400 # if HAVE_SYS_PARAM_H
8401 # include <sys/param.h>
8402 # ifdef EXEC_PAGESIZE
8403 # define getpagesize() EXEC_PAGESIZE
8404 # else /* no EXEC_PAGESIZE */
8406 # define getpagesize() NBPG * CLSIZE
8409 # endif /* no CLSIZE */
8410 # else /* no NBPG */
8412 # define getpagesize() NBPC
8413 # else /* no NBPC */
8415 # define getpagesize() PAGESIZE
8416 # endif /* PAGESIZE */
8417 # endif /* no NBPC */
8418 # endif /* no NBPG */
8419 # endif /* no EXEC_PAGESIZE */
8420 # else /* no HAVE_SYS_PARAM_H */
8421 # define getpagesize() 8192 /* punt totally */
8422 # endif /* no HAVE_SYS_PARAM_H */
8423 # endif /* no _SC_PAGESIZE */
8425 #endif /* no HAVE_GETPAGESIZE */
8430 char *data, *data2, *data3;
8434 pagesize = getpagesize ();
8436 /* First, make a file with some known garbage in it. */
8437 data = (char *) malloc (pagesize);
8440 for (i = 0; i < pagesize; ++i)
8441 *(data + i) = rand ();
8443 fd = creat ("conftest.mmap", 0600);
8446 if (write (fd, data, pagesize) != pagesize)
8450 /* Next, try to mmap the file at a fixed address which already has
8451 something else allocated at it. If we can, also make sure that
8452 we see the same garbage. */
8453 fd = open ("conftest.mmap", O_RDWR);
8456 data2 = (char *) malloc (2 * pagesize);
8459 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8460 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8461 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8463 for (i = 0; i < pagesize; ++i)
8464 if (*(data + i) != *(data2 + i))
8467 /* Finally, make sure that changes to the mapped area do not
8468 percolate back to the file as seen by read(). (This is a bug on
8469 some variants of i386 svr4.0.) */
8470 for (i = 0; i < pagesize; ++i)
8471 *(data2 + i) = *(data2 + i) + 1;
8472 data3 = (char *) malloc (pagesize);
8475 if (read (fd, data3, pagesize) != pagesize)
8477 for (i = 0; i < pagesize; ++i)
8478 if (*(data + i) != *(data3 + i))
8484 rm -f conftest
$ac_exeext
8485 if { (eval echo "$as_me:8485: \"$ac_link\"") >&5
8486 (eval $ac_link) 2>&5
8488 echo "$as_me:8488: \$? = $ac_status" >&5
8489 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8490 { (eval echo "$as_me:8490: \"$ac_try\"") >&5
8493 echo "$as_me:8493: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 ac_cv_func_mmap_fixed_mapped
=yes
8497 echo "$as_me: program exited with status $ac_status" >&5
8498 echo "$as_me: failed program was:" >&5
8499 cat conftest.
$ac_ext >&5
8500 ac_cv_func_mmap_fixed_mapped
=no
8502 rm -f conftest
$ac_exeext conftest.
$ac_ext
8505 echo "$as_me:8505: result: $ac_cv_func_mmap_fixed_mapped" >&5
8506 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8507 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8509 cat >>confdefs.h
<<\EOF
8516 for ac_func
in madvise mprotect
8518 ac_ac_var
=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
8519 echo "$as_me:8519: checking for $ac_func" >&5
8520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521 if eval "test \"\${$ac_ac_var+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 cat >conftest.
$ac_ext <<_ACEOF
8525 #line 8525 "configure"
8526 #include "confdefs.h"
8527 /* System header to define __stub macros and hopefully few prototypes,
8528 which can conflict with char $ac_func (); below. */
8530 /* Override any gcc2 internal prototype to avoid an error. */
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8542 /* The GNU C library defines this for functions which it implements
8543 to always fail with ENOSYS. Some functions are actually named
8544 something starting with __ and the normal name is an alias. */
8545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8555 rm -f conftest.
$ac_objext conftest
$ac_exeext
8556 if { (eval echo "$as_me:8556: \"$ac_link\"") >&5
8557 (eval $ac_link) 2>&5
8559 echo "$as_me:8559: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try
='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:8562: \"$ac_try\"") >&5
8565 echo "$as_me:8565: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 eval "$ac_ac_var=yes"
8569 echo "$as_me: failed program was:" >&5
8570 cat conftest.
$ac_ext >&5
8571 eval "$ac_ac_var=no"
8573 rm -f conftest
$ac_exeext conftest.
$ac_ext
8575 echo "$as_me:8575: result: `eval echo '${'$ac_ac_var'}'`" >&5
8576 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
8577 if test `eval echo '${'$ac_ac_var'}'` = yes; then
8578 cat >>confdefs.h
<<EOF
8579 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
8585 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
8587 cat >>confdefs.h
<<\EOF
8593 rm -f doc
/config.status
8594 ac_config_files
="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
8595 ac_config_commands
="$ac_config_commands default"
8596 cat >confcache
<<\_ACEOF
8597 # This file is a shell script that caches the results of configure
8598 # tests run on this system so they can be shared between configure
8599 # scripts and configure runs, see configure's option --config-cache.
8600 # It is not useful on other systems. If it contains results you don't
8601 # want to keep, you may remove or edit it.
8603 # config.status only pays attention to the cache file if you give it
8604 # the --recheck option to rerun configure.
8606 # `ac_cv_env_foo' variables (set or unset) will be overriden when
8607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8612 # The following way of writing the cache mishandles newlines in values,
8613 # but we know of no workaround that is simple, portable, and efficient.
8614 # So, don't put newlines in cache variables' values.
8615 # Ultrix sh set writes to stderr and can't be redirected directly,
8616 # and sets the high bit in the cache file unless we assign to the vars.
8619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8621 # `set' does not quote correctly, so add quotes (double-quote
8622 # substitution turns \\\\ into \\, and sed turns \\ into \).
8625 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8628 # `set' quotes correctly as required by POSIX, so do not add quotes.
8630 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8641 if cmp -s $cache_file confcache
; then :; else
8642 if test -w $cache_file; then
8643 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8644 cat confcache
>$cache_file
8646 echo "not updating unwritable cache $cache_file"
8651 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8652 # Let make expand exec_prefix.
8653 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8657 # trailing colons and then remove the whole line if VPATH becomes empty
8658 # (actually we leave an empty line to preserve line numbers).
8659 if test "x$srcdir" = x.
; then
8660 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8661 s/:*\$(srcdir):*/:/;
8662 s/:*\${srcdir}:*/:/;
8664 s/^\([^=]*=[ ]*\):*/\1/;
8670 DEFS
=-DHAVE_CONFIG_H
8672 : ${CONFIG_STATUS=./config.status}
8673 ac_clean_files_save
=$ac_clean_files
8674 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8675 { echo "$as_me:8675: creating $CONFIG_STATUS" >&5
8676 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8677 cat >$CONFIG_STATUS <<_ACEOF
8679 # Generated automatically by configure.
8680 # Run this file to recreate the current configuration.
8681 # Compiler output produced by configure, useful for debugging
8682 # configure, is in config.log if it exists.
8685 as_me=\`echo "\$0" | sed 's,.*/,,'\`
8686 SHELL=\${CONFIG_SHELL-$SHELL}
8690 cat >>$CONFIG_STATUS <<\_ACEOF
8691 # Be Bourne compatible
8692 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8695 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
8699 if expr a
: '\(a\)' >/dev
/null
2>&1; then
8705 rm -f conf$$ conf$$.exe conf$$.
file
8707 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8708 # We could just check for DJGPP; but this test a) works b) is more generic
8709 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8710 if test -f conf$$.exe
; then
8711 # Don't use ln at all; we don't have any links
8716 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8721 rm -f conf$$ conf$$.exe conf$$.
file
8723 as_executable_p
="test -f"
8725 # Support unset when possible.
8726 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
8733 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
8734 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
8735 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
8736 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
8737 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
8738 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
8739 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
8740 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
8743 # We need space, tab and new line, in precisely that order.
8749 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
8751 # File descriptor usage:
8754 # 2 errors and warnings
8755 # 5 compiler messages saved in config.log
8756 # 6 checking for... messages and results
8762 ## ----------------------- ##
8763 ## Running config.status. ##
8764 ## ----------------------- ##
8766 This file was extended by $as_me 2.49d, executed with
8768 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8774 # Files that config.status was made for.
8775 if test -n "$ac_config_files"; then
8776 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8779 if test -n "$ac_config_headers"; then
8780 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8783 if test -n "$ac_config_links"; then
8784 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8787 if test -n "$ac_config_commands"; then
8788 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8791 cat >>$CONFIG_STATUS <<\EOF
8794 \`$as_me' instantiates files from templates according to the
8795 current configuration.
8797 Usage: $0 [OPTIONS] [FILE]...
8799 -h, --help print this help, then exit
8800 -V, --version print version number, then exit
8801 -d, --debug don't remove temporary files
8802 --recheck update $as_me by reconfiguring in the same conditions
8803 --file=FILE[:TEMPLATE]
8804 instantiate the configuration file FILE
8805 --header=FILE[:TEMPLATE]
8806 instantiate the configuration header FILE
8808 Configuration files:
8811 Configuration headers:
8814 Configuration commands:
8817 Report bugs to <bug-autoconf@gnu.org>."
8820 cat >>$CONFIG_STATUS <<EOF
8822 $CONFIG_STATUS generated by $as_me (Autoconf 2.49d).
8823 Configured on host $ac_hostname by
8824 `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`"
8829 cat >>$CONFIG_STATUS <<\EOF
8830 # If no file are specified by the user, then we need to provide default
8831 # value. By we need to know if files were specified by the user.
8837 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
8838 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
8840 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
8844 *) # This is not an option, so the user has probably given explicit
8846 ac_need_defaults
=false
;;
8850 # Handling of the options.
8852 cat >>$CONFIG_STATUS <<EOF
8853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8854 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8855 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8857 cat >>$CONFIG_STATUS <<\EOF
8858 --version |
--vers* |
-V )
8859 echo "$ac_cs_version"; exit 0 ;;
8861 # Conflict between --help and --header
8862 { { echo "$as_me:8862: error: ambiguous option: $1
8863 Try \`$0 --help' for more information." >&5
8864 echo "$as_me: error: ambiguous option: $1
8865 Try \`$0 --help' for more information." >&2;}
8866 { (exit 1); exit 1; }; };;
8867 --help |
--hel |
-h )
8868 echo "$ac_cs_usage"; exit 0 ;;
8869 --debug |
--d* |
-d )
8871 --file |
--fil |
--fi |
--f )
8873 CONFIG_FILES
="$CONFIG_FILES $1"
8874 ac_need_defaults
=false
;;
8875 --header |
--heade |
--head |
--hea )
8877 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
8878 ac_need_defaults
=false
;;
8880 # Handling of arguments.
8881 'Makefile' ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8882 'doc/Makefile' ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
8883 'bfd-in3.h' ) CONFIG_FILES
="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
8884 'po/Makefile.in' ) CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8885 'default-1' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
8886 'default' ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
8887 'config.h' ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
8890 -*) { { echo "$as_me:8890: error: unrecognized option: $1
8891 Try \`$0 --help' for more information." >&5
8892 echo "$as_me: error: unrecognized option: $1
8893 Try \`$0 --help' for more information." >&2;}
8894 { (exit 1); exit 1; }; } ;;
8895 *) { { echo "$as_me:8895: error: invalid argument: $1" >&5
8896 echo "$as_me: error: invalid argument: $1" >&2;}
8897 { (exit 1); exit 1; }; };;
8904 cat >>$CONFIG_STATUS <<\EOF
8905 # If the user did not use the arguments to specify the items to instantiate,
8906 # then the envvar interface is used. Set only those that are not.
8907 # We use the long form for the default assignment because of an extremely
8908 # bizarre bug on SunOS 4.1.3.
8909 if $ac_need_defaults; then
8910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8912 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8915 # Create a temporary directory, and hook for its removal unless debugging.
8918 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8919 trap '{ (exit $?); exit $?; }' 1 2 13 15
8922 # Create a (secure) tmp directory for tmp files.
8925 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8926 test -n "$tmp" && test -d "$tmp"
8929 tmp
=$TMPDIR/cs$$
-$RANDOM
8930 (umask 077 && mkdir
$tmp)
8933 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8934 { (exit 1); exit 1; }
8939 cat >>$CONFIG_STATUS <<EOF
8941 # INIT-COMMANDS section.
8946 cat >>$CONFIG_STATUS <<EOF
8949 # CONFIG_FILES section.
8952 # No need to generate the scripts if there are no CONFIG_FILES.
8953 # This happens for instance when ./config.status config.h
8954 if test -n "\$CONFIG_FILES"; then
8955 # Protect against being on the right side of a sed subst in config.status.
8956 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8957 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8958 s,@SHELL@,$SHELL,;t t
8959 s,@exec_prefix@,$exec_prefix,;t t
8960 s,@prefix@,$prefix,;t t
8961 s,@program_transform_name@,$program_transform_name,;t t
8962 s,@bindir@,$bindir,;t t
8963 s,@sbindir@,$sbindir,;t t
8964 s,@libexecdir@,$libexecdir,;t t
8965 s,@datadir@,$datadir,;t t
8966 s,@sysconfdir@,$sysconfdir,;t t
8967 s,@sharedstatedir@,$sharedstatedir,;t t
8968 s,@localstatedir@,$localstatedir,;t t
8969 s,@libdir@,$libdir,;t t
8970 s,@includedir@,$includedir,;t t
8971 s,@oldincludedir@,$oldincludedir,;t t
8972 s,@infodir@,$infodir,;t t
8973 s,@mandir@,$mandir,;t t
8974 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8975 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8976 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8977 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8978 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8979 s,@ECHO_C@,$ECHO_C,;t t
8980 s,@ECHO_N@,$ECHO_N,;t t
8981 s,@ECHO_T@,$ECHO_T,;t t
8982 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8985 s,@build@,$build,;t t
8986 s,@build_cpu@,$build_cpu,;t t
8987 s,@build_vendor@,$build_vendor,;t t
8988 s,@build_os@,$build_os,;t t
8990 s,@host_cpu@,$host_cpu,;t t
8991 s,@host_vendor@,$host_vendor,;t t
8992 s,@host_os@,$host_os,;t t
8993 s,@target@,$target,;t t
8994 s,@target_cpu@,$target_cpu,;t t
8995 s,@target_vendor@,$target_vendor,;t t
8996 s,@target_os@,$target_os,;t t
8998 s,@CFLAGS@,$CFLAGS,;t t
8999 s,@LDFLAGS@,$LDFLAGS,;t t
9000 s,@ac_ct_CC@,$ac_ct_CC,;t t
9001 s,@EXEEXT@,$EXEEXT,;t t
9002 s,@OBJEXT@,$OBJEXT,;t t
9003 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9004 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9005 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9006 s,@PACKAGE@,$PACKAGE,;t t
9007 s,@VERSION@,$VERSION,;t t
9008 s,@ACLOCAL@,$ACLOCAL,;t t
9009 s,@AUTOCONF@,$AUTOCONF,;t t
9010 s,@AUTOMAKE@,$AUTOMAKE,;t t
9011 s,@AUTOHEADER@,$AUTOHEADER,;t t
9012 s,@MAKEINFO@,$MAKEINFO,;t t
9013 s,@SET_MAKE@,$SET_MAKE,;t t
9015 s,@ac_ct_AR@,$ac_ct_AR,;t t
9016 s,@RANLIB@,$RANLIB,;t t
9017 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9019 s,@STRIP@,$STRIP,;t t
9020 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9021 s,@LIBTOOL@,$LIBTOOL,;t t
9022 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
9023 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9024 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9025 s,@MAINT@,$MAINT,;t t
9027 s,@CPPFLAGS@,$CPPFLAGS,;t t
9028 s,@ALLOCA@,$ALLOCA,;t t
9029 s,@USE_NLS@,$USE_NLS,;t t
9030 s,@MSGFMT@,$MSGFMT,;t t
9031 s,@GMSGFMT@,$GMSGFMT,;t t
9032 s,@XGETTEXT@,$XGETTEXT,;t t
9033 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
9034 s,@CATALOGS@,$CATALOGS,;t t
9035 s,@CATOBJEXT@,$CATOBJEXT,;t t
9036 s,@DATADIRNAME@,$DATADIRNAME,;t t
9037 s,@GMOFILES@,$GMOFILES,;t t
9038 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9039 s,@INTLDEPS@,$INTLDEPS,;t t
9040 s,@INTLLIBS@,$INTLLIBS,;t t
9041 s,@INTLOBJS@,$INTLOBJS,;t t
9042 s,@POFILES@,$POFILES,;t t
9043 s,@POSUB@,$POSUB,;t t
9044 s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t
9045 s,@GT_NO@,$GT_NO,;t t
9046 s,@GT_YES@,$GT_YES,;t t
9047 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9049 s,@HDEFINES@,$HDEFINES,;t t
9050 s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t
9051 s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t
9052 s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t
9053 s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t
9054 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
9055 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
9056 s,@COREFILE@,$COREFILE,;t t
9057 s,@COREFLAG@,$COREFLAG,;t t
9058 s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t
9059 s,@WIN32LIBADD@,$WIN32LIBADD,;t t
9060 s,@TDEFINES@,$TDEFINES,;t t
9061 s,@wordsize@,$wordsize,;t t
9062 s,@all_backends@,$all_backends,;t t
9063 s,@bfd_backends@,$bfd_backends,;t t
9064 s,@bfd_machines@,$bfd_machines,;t t
9065 s,@tdefaults@,$tdefaults,;t t
9070 cat >>$CONFIG_STATUS <<\EOF
9071 # Split the substitutions into bite-sized pieces for seds with
9072 # small command number limits, like on Digital OSF/1 and HP-UX.
9074 ac_sed_frag
=1 # Number of current file.
9075 ac_beg
=1 # First line for current file.
9076 ac_end
=$ac_max_sed_lines # Line after last line for current file.
9079 while $ac_more_lines; do
9080 if test $ac_beg -gt 1; then
9081 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9083 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
9085 if test ! -s $tmp/subs.frag
; then
9088 # The purpose of the label and of the branching condition is to
9089 # speed up the sed processing (if there are no `@' at all, there
9090 # is no need to browse any of the substitutions).
9091 # These are the two extra sed commands mentioned above.
9093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
9094 if test -z "$ac_sed_cmds"; then
9095 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
9097 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9099 ac_sed_frag
=`expr $ac_sed_frag + 1`
9101 ac_end
=`expr $ac_end + $ac_max_sed_lines`
9104 if test -z "$ac_sed_cmds"; then
9107 fi # test -n "$CONFIG_FILES"
9110 cat >>$CONFIG_STATUS <<\EOF
9111 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
9112 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9114 - |
*:- |
*:-:* ) # input from stdin
9116 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9117 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9118 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9119 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9120 * ) ac_file_in
=$ac_file.
in ;;
9123 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9124 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9125 X"$ac_file" : 'X\(//\)[^/]' \| \
9126 X"$ac_file" : 'X\(//\)$' \| \
9127 X"$ac_file" : 'X\(/\)' \| \
9128 . : '\(.\)' 2>/dev/null ||
9130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9132 /^X\(\/\/\)$/{ s//\1/; q; }
9133 /^X\(\/\).*/{ s//\1/; q; }
9135 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9137 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9141 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9142 case $as_mkdir_dir in
9143 # Skip DOS drivespec
9144 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9146 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9147 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
9152 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
9153 # A "../" for each directory in $ac_dir_suffix.
9154 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
9156 ac_dir_suffix
= ac_dots
=
9161 if test -z "$ac_dots"; then
9164 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
9167 ac_srcdir
=$srcdir$ac_dir_suffix;
9168 ac_top_srcdir
=$srcdir ;;
9170 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
9171 ac_top_srcdir
=$ac_dots$srcdir ;;
9175 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
9176 *) ac_INSTALL
=$ac_dots$INSTALL ;;
9179 if test x
"$ac_file" != x-
; then
9180 { echo "$as_me:9180: creating $ac_file" >&5
9181 echo "$as_me: creating $ac_file" >&6;}
9184 # Let's still pretend it is `configure' which instantiates (i.e., don't
9185 # use $as_me), people would be surprised to read:
9186 # /* config.h. Generated automatically by config.status. */
9187 configure_input
="Generated automatically from `echo $ac_file_in |
9188 sed 's,.*/,,'` by configure."
9190 # First look for the input files in the build tree, otherwise in the
9192 ac_file_inputs
=`IFS=:
9193 for f in $ac_file_in; do
9195 -) echo $tmp/stdin ;;
9198 test -f "$f" || { { echo "$as_me:9198: error: cannot find input file: $f" >&5
9199 echo "$as_me: error: cannot find input file: $f" >&2;}
9200 { (exit 1); exit 1; }; }
9203 if test -f "$f"; then
9206 elif test -f "$srcdir/$f"; then
9211 { { echo "$as_me:9211: error: cannot find input file: $f" >&5
9212 echo "$as_me: error: cannot find input file: $f" >&2;}
9213 { (exit 1); exit 1; }; }
9216 done` ||
{ (exit 1); exit 1; }
9218 cat >>$CONFIG_STATUS <<EOF
9222 cat >>$CONFIG_STATUS <<\EOF
9224 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
9225 s
,@configure_input@
,$configure_input,;t t
9226 s
,@srcdir@
,$ac_srcdir,;t t
9227 s
,@top_srcdir@
,$ac_top_srcdir,;t t
9228 s
,@INSTALL@
,$ac_INSTALL,;t t
9229 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9231 if test x"$ac_file" != x-; then
9232 mv $tmp/out $ac_file
9240 cat >>$CONFIG_STATUS <<\EOF
9243 # CONFIG_HEADER section.
9246 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
9247 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9249 # ac_d sets the value in "#define NAME VALUE" lines.
9250 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9251 ac_dB
='[ ].*$,\1#\2'
9254 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9255 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9256 ac_uB
='$,\1#\2define\3'
9260 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
9261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9263 - |
*:- |
*:-:* ) # input from stdin
9265 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9266 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9267 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9268 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
9269 * ) ac_file_in
=$ac_file.
in ;;
9272 test x
"$ac_file" != x-
&& { echo "$as_me:9272: creating $ac_file" >&5
9273 echo "$as_me: creating $ac_file" >&6;}
9275 # First look for the input files in the build tree, otherwise in the
9277 ac_file_inputs
=`IFS=:
9278 for f in $ac_file_in; do
9280 -) echo $tmp/stdin ;;
9283 test -f "$f" || { { echo "$as_me:9283: error: cannot find input file: $f" >&5
9284 echo "$as_me: error: cannot find input file: $f" >&2;}
9285 { (exit 1); exit 1; }; }
9288 if test -f "$f"; then
9291 elif test -f "$srcdir/$f"; then
9296 { { echo "$as_me:9296: error: cannot find input file: $f" >&5
9297 echo "$as_me: error: cannot find input file: $f" >&2;}
9298 { (exit 1); exit 1; }; }
9301 done` ||
{ (exit 1); exit 1; }
9302 # Remove the trailing spaces.
9303 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9307 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9308 # `conftest.undefs', that substitutes the proper values into
9309 # config.h.in to produce config.h. The first handles `#define'
9310 # templates, and the second `#undef' templates.
9311 # And first: Protect against being on the right side of a sed subst in
9312 # config.status. Protect against being in an unquoted here document
9314 rm -f conftest.defines conftest.undefs
9315 # Using a here document instead of a string reduces the quoting nightmare.
9316 # Putting comments in sed scripts is not portable.
9318 # `end' is used to avoid that the second main sed command (meant for
9319 # 0-ary CPP macros) applies to n-ary macro definitions.
9320 # See the Autoconf documentation for `clear'.
9321 cat >confdef2sed.
sed <<\EOF
9326 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
9328 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9331 # If some macros were called several times there might be several times
9332 # the same #defines, which is useless. Nevertheless, we may not want to
9333 # sort them, since we want the *last* AC-DEFINE to be honored.
9334 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9335 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9336 rm -f confdef2sed.sed
9338 # This sed command replaces #undef with comments. This is necessary, for
9339 # example, in the case of _POSIX_SOURCE, which is predefined and required
9340 # on some systems where configure will not decide to define it.
9341 cat >>conftest.undefs <<\EOF
9342 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9345 # Break up conftest.defines because some shells have a limit on the size
9346 # of here documents, and old seds have small limits too (100 cmds).
9347 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9348 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9349 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9350 echo ' :' >>$CONFIG_STATUS
9352 while grep . conftest.defines >/dev/null
9354 # Write a limited-size here document to $tmp/defines.sed.
9355 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9356 # Speed up: don't consider the non `#define' lines.
9357 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9358 # Work around the forget-to-reset-the-flag bug.
9359 echo 't clr' >>$CONFIG_STATUS
9360 echo ': clr' >>$CONFIG_STATUS
9361 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
9363 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9367 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
9368 rm -f conftest.defines
9369 mv conftest.
tail conftest.defines
9371 rm -f conftest.defines
9372 echo ' fi # egrep' >>$CONFIG_STATUS
9373 echo >>$CONFIG_STATUS
9375 # Break up conftest.undefs because some shells have a limit on the size
9376 # of here documents, and old seds have small limits too (100 cmds).
9377 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9379 while grep . conftest.undefs
>/dev
/null
9381 # Write a limited-size here document to $tmp/undefs.sed.
9382 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9383 # Speed up: don't consider the non
`#undef'
9384 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9385 # Work around the forget-to-reset-the-flag bug.
9386 echo 't clr' >>$CONFIG_STATUS
9387 echo ': clr' >>$CONFIG_STATUS
9388 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9390 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9394 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9395 rm -f conftest.undefs
9396 mv conftest.tail conftest.undefs
9398 rm -f conftest.undefs
9400 cat >>$CONFIG_STATUS <<\EOF
9401 # Let's still pretend it is `configure
' which instantiates (i.e., don't
9402 # use $as_me), people would be surprised to read:
9403 # /* config.h. Generated automatically by config.status. */
9404 if test x
"$ac_file" = x-
; then
9405 echo "/* Generated automatically by configure. */" >$tmp/config.h
9407 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
9409 cat $tmp/in >>$tmp/config.h
9411 if test x
"$ac_file" != x-
; then
9412 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
9413 { echo "$as_me:9413: $ac_file is unchanged" >&5
9414 echo "$as_me: $ac_file is unchanged" >&6;}
9416 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9417 X"$ac_file" : 'X\(//\)[^/]' \| \
9418 X"$ac_file" : 'X\(//\)$' \| \
9419 X"$ac_file" : 'X\(/\)' \| \
9420 . : '\(.\)' 2>/dev/null ||
9422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9424 /^X\(\/\/\)$/{ s//\1/; q; }
9425 /^X\(\/\).*/{ s//\1/; q; }
9427 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
9429 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
9433 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9434 case $as_mkdir_dir in
9435 # Skip DOS drivespec
9436 ?
:) as_incr_dir
=$as_mkdir_dir ;;
9438 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
9439 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
9446 mv $tmp/config.h
$ac_file
9454 cat >>$CONFIG_STATUS <<\EOF
9457 # CONFIG_COMMANDS section.
9459 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
9460 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
9461 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
9464 default-1
) test -z "$CONFIG_HEADERS" ||
echo timestamp
> stamp-h
;;
9465 default
) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po
/Makefile.
in > po
/Makefile
;;
9470 cat >>$CONFIG_STATUS <<\EOF
9472 { (exit 0); exit 0; }
9474 chmod +x
$CONFIG_STATUS
9475 ac_clean_files
=$ac_clean_files_save
9477 test "$no_create" = yes ||
$SHELL $CONFIG_STATUS ||
{ (exit 1); exit 1; }