3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=no]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
29 --enable-targets alternative target configurations"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --with-mmap try using mmap for BFD input files if available"
35 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-install-libbfd controls installation of libbfd and related headers"
42 --disable-nls do not use Native Language Support"
44 --with-included-gettext use the GNU gettext library included here"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=libbfd.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
554 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
555 echo "configure:556: checking for Cygwin environment" >&5
556 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 cat > conftest.
$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
566 #define __CYGWIN__ __CYGWIN32__
571 if { (eval echo configure
:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
575 echo "configure: failed program was:" >&5
576 cat conftest.
$ac_ext >&5
584 echo "$ac_t""$ac_cv_cygwin" 1>&6
586 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
588 echo "configure:589: checking for mingw32 environment" >&5
589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 cat > conftest.
$ac_ext <<EOF
593 #line 594 "configure"
594 #include "confdefs.h"
600 if { (eval echo configure
:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
604 echo "configure: failed program was:" >&5
605 cat conftest.
$ac_ext >&5
613 echo "$ac_t""$ac_cv_mingw32" 1>&6
615 test "$ac_cv_mingw32" = yes && MINGW32
=yes
619 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
620 if test -f $ac_dir/install-sh
; then
622 ac_install_sh
="$ac_aux_dir/install-sh -c"
624 elif test -f $ac_dir/install.sh
; then
626 ac_install_sh
="$ac_aux_dir/install.sh -c"
630 if test -z "$ac_aux_dir"; then
631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 ac_config_guess
=$ac_aux_dir/config.guess
634 ac_config_sub
=$ac_aux_dir/config.sub
635 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
638 # Do some error checking and defaulting for the host and target type.
640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
643 # 1. You are not allowed to specify --host, --target, and nonopt at the
645 # 2. Host defaults to nonopt.
646 # 3. If nonopt is not specified, then host defaults to the current host,
647 # as determined by config.guess.
648 # 4. Target and build default to nonopt.
649 # 5. If nonopt is not specified, then target and build default to host.
651 # The aliases save the names the user supplied, while $host etc.
652 # will get canonicalized.
653 case $host---$target---$nonopt in
654 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
668 case "$host_alias" in
672 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
675 *) host_alias
=$nonopt ;;
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
689 case "$target_alias" in
692 NONE
) target_alias
=$host_alias ;;
693 *) target_alias
=$nonopt ;;
697 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$target" 1>&6
703 echo $ac_n "checking build system type""... $ac_c" 1>&6
704 echo "configure:705: checking build system type" >&5
707 case "$build_alias" in
710 NONE
) build_alias
=$host_alias ;;
711 *) build_alias
=$nonopt ;;
715 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$build" 1>&6
721 test "$host_alias" != "$target_alias" &&
722 test "$program_prefix$program_suffix$program_transform_name" = \
724 program_prefix
=${target_alias}-
727 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
728 echo "configure:729: checking for strerror in -lcposix" >&5
729 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
734 LIBS
="-lcposix $LIBS"
735 cat > conftest.
$ac_ext <<EOF
736 #line 737 "configure"
737 #include "confdefs.h"
738 /* Override any gcc2 internal prototype to avoid an error. */
739 /* We use char because int might match the return type of a gcc2
740 builtin and then its argument prototype would still apply. */
747 if { (eval echo configure
:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
749 eval "ac_cv_lib_$ac_lib_var=yes"
751 echo "configure: failed program was:" >&5
752 cat conftest.
$ac_ext >&5
754 eval "ac_cv_lib_$ac_lib_var=no"
760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
761 echo "$ac_t""yes" 1>&6
762 LIBS
="$LIBS -lcposix"
764 echo "$ac_t""no" 1>&6
770 am__api_version
="1.4"
771 # Find a good install program. We prefer a C program (faster),
772 # so one script is as good as another. But avoid the broken or
773 # incompatible versions:
774 # SysV /etc/install, /usr/sbin/install
775 # SunOS /usr/etc/install
778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
781 # ./install, which can be erroneously created by make from ./install.sh.
782 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
783 echo "configure:784: checking for a BSD compatible install" >&5
784 if test -z "$INSTALL"; then
785 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
789 for ac_dir
in $PATH; do
790 # Account for people who put trailing slashes in PATH elements.
792 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
794 # OSF1 and SCO ODT 3.0 have their own names for install.
795 # Don't use installbsd from OSF since it installs stuff as root
797 for ac_prog
in ginstall scoinst
install; do
798 if test -f $ac_dir/$ac_prog; then
799 if test $ac_prog = install &&
800 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
801 # AIX install. It has an incompatible calling convention.
804 ac_cv_path_install
="$ac_dir/$ac_prog -c"
815 if test "${ac_cv_path_install+set}" = set; then
816 INSTALL
="$ac_cv_path_install"
818 # As a last resort, use the slow shell script. We don't cache a
819 # path for INSTALL within a source directory, because that will
820 # break other packages using the cache if that directory is
821 # removed, or if the path is relative.
822 INSTALL
="$ac_install_sh"
825 echo "$ac_t""$INSTALL" 1>&6
827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
828 # It thinks the first close brace ends the variable substitution.
829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
833 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
835 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
836 echo "configure:837: checking whether build environment is sane" >&5
839 echo timestamp
> conftestfile
840 # Do `set' in a subshell so we don't clobber the current shell's
841 # arguments. Must try -L first in case configure is actually a
842 # symlink; some systems play weird games with the mod time of symlinks
843 # (eg FreeBSD returns the mod time of the symlink's containing
846 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
847 if test "$*" = "X"; then
849 set X
`ls -t $srcdir/configure conftestfile`
851 if test "$*" != "X $srcdir/configure conftestfile" \
852 && test "$*" != "X conftestfile $srcdir/configure"; then
854 # If neither matched, then we have a broken ls. This can happen
855 # if, for instance, CONFIG_SHELL is bash and it inherits a
856 # broken ls alias from the environment. This has actually
857 # happened. Such a system could not be considered "sane".
858 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
859 alias in your environment" 1>&2; exit 1; }
862 test "$2" = conftestfile
868 { echo "configure: error: newly created file is older than distributed files!
869 Check your system clock" 1>&2; exit 1; }
872 echo "$ac_t""yes" 1>&6
873 if test "$program_transform_name" = s
,x
,x
,; then
874 program_transform_name
=
876 # Double any \ or $. echo might interpret backslashes.
877 cat <<\EOF_SED
> conftestsed
878 s
,\\,\\\\,g
; s
,\$
,$$
,g
880 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
883 test "$program_prefix" != NONE
&&
884 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
885 # Use a double $ so make ignores it.
886 test "$program_suffix" != NONE
&&
887 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
889 # sed with no file args requires a program.
890 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
892 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
893 echo "configure:894: checking whether ${MAKE-make} sets \${MAKE}" >&5
894 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
895 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 cat > conftestmake
<<\EOF
900 @
echo 'ac_maketemp="${MAKE}"'
902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
903 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
904 if test -n "$ac_maketemp"; then
905 eval ac_cv_prog_make_
${ac_make}_set
=yes
907 eval ac_cv_prog_make_
${ac_make}_set
=no
911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
912 echo "$ac_t""yes" 1>&6
915 echo "$ac_t""no" 1>&6
916 SET_MAKE
="MAKE=${MAKE-make}"
924 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
925 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
927 cat >> confdefs.h
<<EOF
928 #define PACKAGE "$PACKAGE"
931 cat >> confdefs.h
<<EOF
932 #define VERSION "$VERSION"
937 missing_dir
=`cd $ac_aux_dir && pwd`
938 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
939 echo "configure:940: checking for working aclocal-${am__api_version}" >&5
940 # Run test in a subshell; some versions of sh will print an error if
941 # an executable is not found, even if stderr is redirected.
942 # Redirect stdin to placate older versions of autoconf. Sigh.
943 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
944 ACLOCAL
=aclocal-
${am__api_version}
945 echo "$ac_t""found" 1>&6
947 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
948 echo "$ac_t""missing" 1>&6
951 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
952 echo "configure:953: checking for working autoconf" >&5
953 # Run test in a subshell; some versions of sh will print an error if
954 # an executable is not found, even if stderr is redirected.
955 # Redirect stdin to placate older versions of autoconf. Sigh.
956 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
958 echo "$ac_t""found" 1>&6
960 AUTOCONF
="$missing_dir/missing autoconf"
961 echo "$ac_t""missing" 1>&6
964 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
965 echo "configure:966: checking for working automake-${am__api_version}" >&5
966 # Run test in a subshell; some versions of sh will print an error if
967 # an executable is not found, even if stderr is redirected.
968 # Redirect stdin to placate older versions of autoconf. Sigh.
969 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
970 AUTOMAKE
=automake-
${am__api_version}
971 echo "$ac_t""found" 1>&6
973 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
974 echo "$ac_t""missing" 1>&6
977 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
978 echo "configure:979: checking for working autoheader" >&5
979 # Run test in a subshell; some versions of sh will print an error if
980 # an executable is not found, even if stderr is redirected.
981 # Redirect stdin to placate older versions of autoconf. Sigh.
982 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
983 AUTOHEADER
=autoheader
984 echo "$ac_t""found" 1>&6
986 AUTOHEADER
="$missing_dir/missing autoheader"
987 echo "$ac_t""missing" 1>&6
990 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
991 echo "configure:992: checking for working makeinfo" >&5
992 # Run test in a subshell; some versions of sh will print an error if
993 # an executable is not found, even if stderr is redirected.
994 # Redirect stdin to placate older versions of autoconf. Sigh.
995 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
997 echo "$ac_t""found" 1>&6
999 MAKEINFO
="$missing_dir/missing makeinfo"
1000 echo "$ac_t""missing" 1>&6
1004 # Uncomment the next line to remove the date from the reported bfd version
1007 bfd_version
=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1009 bfd_version_string
="\"${VERSION}\""
1010 if test x
${is_release} = x
; then
1011 bfd_version_date
=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1012 bfd_version_string
="\"${VERSION} ${bfd_version_date}\""
1017 if test $host != $build; then
1018 ac_tool_prefix
=${host_alias}-
1023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1024 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1026 echo "configure:1027: checking for $ac_word" >&5
1027 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1030 if test -n "$AR"; then
1031 ac_cv_prog_AR
="$AR" # Let the user override the test.
1033 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1035 for ac_dir
in $ac_dummy; do
1036 test -z "$ac_dir" && ac_dir
=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1043 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1047 if test -n "$AR"; then
1048 echo "$ac_t""$AR" 1>&6
1050 echo "$ac_t""no" 1>&6
1055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1056 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1058 echo "configure:1059: checking for $ac_word" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -n "$RANLIB"; then
1063 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1067 for ac_dir
in $ac_dummy; do
1068 test -z "$ac_dir" && ac_dir
=.
1069 if test -f $ac_dir/$ac_word; then
1070 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1077 RANLIB
="$ac_cv_prog_RANLIB"
1078 if test -n "$RANLIB"; then
1079 echo "$ac_t""$RANLIB" 1>&6
1081 echo "$ac_t""no" 1>&6
1085 if test -z "$ac_cv_prog_RANLIB"; then
1086 if test -n "$ac_tool_prefix"; then
1087 # Extract the first word of "ranlib", so it can be a program name with args.
1088 set dummy ranlib
; ac_word
=$2
1089 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090 echo "configure:1091: checking for $ac_word" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 if test -n "$RANLIB"; then
1095 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1097 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1099 for ac_dir
in $ac_dummy; do
1100 test -z "$ac_dir" && ac_dir
=.
1101 if test -f $ac_dir/$ac_word; then
1102 ac_cv_prog_RANLIB
="ranlib"
1107 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1110 RANLIB
="$ac_cv_prog_RANLIB"
1111 if test -n "$RANLIB"; then
1112 echo "$ac_t""$RANLIB" 1>&6
1114 echo "$ac_t""no" 1>&6
1123 # Check whether --enable-shared or --disable-shared was given.
1124 if test "${enable_shared+set}" = set; then
1125 enableval
="$enable_shared"
1126 p
=${PACKAGE-default}
1128 yes) enable_shared
=yes ;;
1129 no
) enable_shared
=no
;;
1132 # Look at the argument we got. We use all the common list separators.
1133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1134 for pkg
in $enableval; do
1135 if test "X$pkg" = "X$p"; then
1147 # Check whether --enable-static or --disable-static was given.
1148 if test "${enable_static+set}" = set; then
1149 enableval
="$enable_static"
1150 p
=${PACKAGE-default}
1152 yes) enable_static
=yes ;;
1153 no
) enable_static
=no
;;
1156 # Look at the argument we got. We use all the common list separators.
1157 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1158 for pkg
in $enableval; do
1159 if test "X$pkg" = "X$p"; then
1170 # Check whether --enable-fast-install or --disable-fast-install was given.
1171 if test "${enable_fast_install+set}" = set; then
1172 enableval
="$enable_fast_install"
1173 p
=${PACKAGE-default}
1175 yes) enable_fast_install
=yes ;;
1176 no
) enable_fast_install
=no
;;
1178 enable_fast_install
=no
1179 # Look at the argument we got. We use all the common list separators.
1180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1181 for pkg
in $enableval; do
1182 if test "X$pkg" = "X$p"; then
1183 enable_fast_install
=yes
1190 enable_fast_install
=yes
1193 # Extract the first word of "gcc", so it can be a program name with args.
1194 set dummy gcc
; ac_word
=$2
1195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1196 echo "configure:1197: checking for $ac_word" >&5
1197 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 if test -n "$CC"; then
1201 ac_cv_prog_CC
="$CC" # Let the user override the test.
1203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1205 for ac_dir
in $ac_dummy; do
1206 test -z "$ac_dir" && ac_dir
=.
1207 if test -f $ac_dir/$ac_word; then
1216 if test -n "$CC"; then
1217 echo "$ac_t""$CC" 1>&6
1219 echo "$ac_t""no" 1>&6
1222 if test -z "$CC"; then
1223 # Extract the first word of "cc", so it can be a program name with args.
1224 set dummy cc
; ac_word
=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$CC"; then
1231 ac_cv_prog_CC
="$CC" # Let the user override the test.
1233 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1236 for ac_dir
in $ac_dummy; do
1237 test -z "$ac_dir" && ac_dir
=.
1238 if test -f $ac_dir/$ac_word; then
1239 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1240 ac_prog_rejected
=yes
1248 if test $ac_prog_rejected = yes; then
1249 # We found a bogon in the path, so make sure we never use it.
1250 set dummy
$ac_cv_prog_CC
1252 if test $# -gt 0; then
1253 # We chose a different compiler from the bogus one.
1254 # However, it has the same basename, so the bogon will be chosen
1255 # first if we set CC to just the basename; use the full file name.
1257 set dummy
"$ac_dir/$ac_word" "$@"
1265 if test -n "$CC"; then
1266 echo "$ac_t""$CC" 1>&6
1268 echo "$ac_t""no" 1>&6
1271 if test -z "$CC"; then
1272 case "`uname -s`" in
1274 # Extract the first word of "cl", so it can be a program name with args.
1275 set dummy cl
; ac_word
=$2
1276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1277 echo "configure:1278: checking for $ac_word" >&5
1278 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1279 echo $ac_n "(cached) $ac_c" 1>&6
1281 if test -n "$CC"; then
1282 ac_cv_prog_CC
="$CC" # Let the user override the test.
1284 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1286 for ac_dir
in $ac_dummy; do
1287 test -z "$ac_dir" && ac_dir
=.
1288 if test -f $ac_dir/$ac_word; then
1297 if test -n "$CC"; then
1298 echo "$ac_t""$CC" 1>&6
1300 echo "$ac_t""no" 1>&6
1305 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1308 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1309 echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1312 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1313 ac_cpp
='$CPP $CPPFLAGS'
1314 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1315 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1316 cross_compiling
=$ac_cv_prog_cc_cross
1318 cat > conftest.
$ac_ext << EOF
1320 #line 1321 "configure"
1321 #include "confdefs.h"
1325 if { (eval echo configure
:1326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1326 ac_cv_prog_cc_works
=yes
1327 # If we can't run a trivial program, we are probably using a cross compiler.
1328 if (.
/conftest
; exit) 2>/dev
/null
; then
1329 ac_cv_prog_cc_cross
=no
1331 ac_cv_prog_cc_cross
=yes
1334 echo "configure: failed program was:" >&5
1335 cat conftest.
$ac_ext >&5
1336 ac_cv_prog_cc_works
=no
1340 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1341 ac_cpp
='$CPP $CPPFLAGS'
1342 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1343 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1344 cross_compiling
=$ac_cv_prog_cc_cross
1346 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1347 if test $ac_cv_prog_cc_works = no
; then
1348 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1350 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1351 echo "configure:1352: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1352 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1353 cross_compiling
=$ac_cv_prog_cc_cross
1355 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1356 echo "configure:1357: checking whether we are using GNU C" >&5
1357 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 cat > conftest.c
<<EOF
1365 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1372 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1374 if test $ac_cv_prog_gcc = yes; then
1380 ac_test_CFLAGS
="${CFLAGS+set}"
1381 ac_save_CFLAGS
="$CFLAGS"
1383 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1384 echo "configure:1385: checking whether ${CC-cc} accepts -g" >&5
1385 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 echo 'void f(){}' > conftest.c
1389 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1398 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1399 if test "$ac_test_CFLAGS" = set; then
1400 CFLAGS
="$ac_save_CFLAGS"
1401 elif test $ac_cv_prog_cc_g = yes; then
1402 if test "$GCC" = yes; then
1408 if test "$GCC" = yes; then
1415 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1416 if test "${with_gnu_ld+set}" = set; then
1417 withval
="$with_gnu_ld"
1418 test "$withval" = no || with_gnu_ld
=yes
1424 if test "$GCC" = yes; then
1425 # Check if gcc -print-prog-name=ld gives a path.
1426 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1427 echo "configure:1428: checking for ld used by GCC" >&5
1430 # gcc leaves a trailing carriage return which upsets mingw
1431 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1433 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1436 # Accept absolute paths.
1437 [\\/]* |
[A-Za-z
]:[\\/]*)
1438 re_direlt
='/[^/][^/]*/\.\./'
1439 # Canonicalize the path of ld
1440 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1441 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1442 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1444 test -z "$LD" && LD
="$ac_prog"
1447 # If it fails, then pretend we aren't using GCC.
1451 # If it is relative, then search for the first ld in PATH.
1455 elif test "$with_gnu_ld" = yes; then
1456 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1457 echo "configure:1458: checking for GNU ld" >&5
1459 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1460 echo "configure:1461: checking for non-GNU ld" >&5
1462 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1465 if test -z "$LD"; then
1466 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1467 for ac_dir
in $PATH; do
1468 test -z "$ac_dir" && ac_dir
=.
1469 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1470 lt_cv_path_LD
="$ac_dir/$ac_prog"
1471 # Check to see if the program is GNU ld. I'd rather use --version,
1472 # but apparently some GNU ld's only accept -v.
1473 # Break only if it was the GNU/non-GNU ld that we prefer.
1474 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1475 test "$with_gnu_ld" != no
&& break
1477 test "$with_gnu_ld" != yes && break
1483 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1488 if test -n "$LD"; then
1489 echo "$ac_t""$LD" 1>&6
1491 echo "$ac_t""no" 1>&6
1493 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1494 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1495 echo "configure:1496: checking if the linker ($LD) is GNU ld" >&5
1496 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1500 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1501 lt_cv_prog_gnu_ld
=yes
1503 lt_cv_prog_gnu_ld
=no
1507 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1508 with_gnu_ld
=$lt_cv_prog_gnu_ld
1511 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1512 echo "configure:1513: checking for $LD option to reload object files" >&5
1513 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1514 echo $ac_n "(cached) $ac_c" 1>&6
1516 lt_cv_ld_reload_flag
='-r'
1519 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1520 reload_flag
=$lt_cv_ld_reload_flag
1521 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1523 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1524 echo "configure:1525: checking for BSD-compatible nm" >&5
1525 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1528 if test -n "$NM"; then
1529 # Let the user override the test.
1532 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1533 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1534 test -z "$ac_dir" && ac_dir
=.
1535 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1536 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1537 # Check to see if the nm accepts a BSD-compat flag.
1538 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1539 # nm: unknown option "B" ignored
1540 # Tru64's nm complains that /dev/null is an invalid object file
1541 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1542 lt_cv_path_NM
="$tmp_nm -B"
1544 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1545 lt_cv_path_NM
="$tmp_nm -p"
1548 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1549 continue # so that we can try to find one that supports BSD flags
1554 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1559 echo "$ac_t""$NM" 1>&6
1561 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1562 echo "configure:1563: checking whether ln -s works" >&5
1563 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1567 if ln -s X conftestdata
2>/dev
/null
1570 ac_cv_prog_LN_S
="ln -s"
1575 LN_S
="$ac_cv_prog_LN_S"
1576 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1577 echo "$ac_t""yes" 1>&6
1579 echo "$ac_t""no" 1>&6
1582 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1583 echo "configure:1584: checking how to recognise dependant libraries" >&5
1584 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1587 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1588 lt_cv_file_magic_test_file
=
1589 lt_cv_deplibs_check_method
='unknown'
1590 # Need to set the preceding variable on all platforms that support
1591 # interlibrary dependencies.
1592 # 'none' -- dependencies not supported.
1593 # `unknown' -- same as none, but documents that we really don't know.
1594 # 'pass_all' -- all dependencies passed with no checks.
1595 # 'test_compile' -- check by making test program.
1596 # 'file_magic [regex]' -- check by looking for files in library path
1597 # which responds to the $file_magic_cmd with a given egrep regex.
1598 # If you have `file' or equivalent on your system and you're not sure
1599 # whether `pass_all' will *always* work, you probably want this one.
1603 lt_cv_deplibs_check_method
=pass_all
1607 lt_cv_deplibs_check_method
=pass_all
1611 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1612 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1613 lt_cv_file_magic_test_file
=/shlib
/libc.so
1616 cygwin
* | mingw
* |pw32
*)
1617 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1618 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1621 darwin
* | rhapsody
*)
1622 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1623 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1625 rhapsody
* | darwin1.012
)
1626 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1629 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1635 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1638 # Not sure whether the presence of OpenBSD here was a mistake.
1639 # Let's accept both of them until this is cleared up.
1640 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1641 lt_cv_file_magic_cmd
=/usr
/bin
/file
1642 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1646 lt_cv_deplibs_check_method
=pass_all
1651 lt_cv_deplibs_check_method
=pass_all
1657 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1658 lt_cv_file_magic_cmd
=/usr
/bin
/file
1659 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1662 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1663 lt_cv_file_magic_cmd
=/usr
/bin
/file
1664 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1672 # this will be overridden with pass_all, but let us keep it just in case
1673 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1677 *-32|
*"-32 ") libmagic
=32-bit;;
1678 *-n32|
*"-n32 ") libmagic
=N32
;;
1679 *-64|
*"-64 ") libmagic
=64-bit;;
1680 *) libmagic
=never-match
;;
1682 # this will be overridden with pass_all, but let us keep it just in case
1683 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1686 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1687 lt_cv_deplibs_check_method
=pass_all
1690 # This must be Linux ELF.
1693 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1694 lt_cv_deplibs_check_method
=pass_all
;;
1696 # glibc up to 2.1.1 does not perform some relocations on ARM
1697 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1699 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1703 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1704 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1706 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1711 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1712 lt_cv_file_magic_cmd
=/usr
/bin
/file
1713 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1716 osf3
* | osf4
* | osf5
*)
1717 # this will be overridden with pass_all, but let us keep it just in case
1718 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1719 lt_cv_file_magic_test_file
=/shlib
/libc.so
1720 lt_cv_deplibs_check_method
=pass_all
1724 lt_cv_deplibs_check_method
=pass_all
1728 lt_cv_deplibs_check_method
=pass_all
1729 lt_cv_file_magic_test_file
=/lib
/libc.so
1732 sysv5uw
[78]* | sysv4
*uw2
*)
1733 lt_cv_deplibs_check_method
=pass_all
1736 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1737 case $host_vendor in
1739 lt_cv_deplibs_check_method
=pass_all
1742 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]'
1743 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1751 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1752 file_magic_cmd
=$lt_cv_file_magic_cmd
1753 deplibs_check_method
=$lt_cv_deplibs_check_method
1755 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1756 echo "configure:1757: checking for object suffix" >&5
1757 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1761 echo 'int i = 1;' > conftest.
$ac_ext
1762 if { (eval echo configure
:1763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1763 for ac_file
in conftest.
*; do
1766 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1770 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1775 echo "$ac_t""$ac_cv_objext" 1>&6
1776 OBJEXT
=$ac_cv_objext
1777 ac_objext
=$ac_cv_objext
1781 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1782 echo "configure:1783: checking for executable suffix" >&5
1783 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1790 echo 'int main () { return 0; }' > conftest.
$ac_ext
1792 if { (eval echo configure
:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1793 for file in conftest.
*; do
1795 *.c |
*.o |
*.obj
) ;;
1796 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1800 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1803 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1808 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1809 echo "$ac_t""${ac_cv_exeext}" 1>&6
1812 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1814 # Only perform the check for file, if the check method requires it
1815 case $deplibs_check_method in
1817 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1818 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1819 echo "configure:1820: checking for ${ac_tool_prefix}file" >&5
1820 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1821 echo $ac_n "(cached) $ac_c" 1>&6
1825 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1828 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1831 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1832 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1833 ac_dummy
="/usr/bin:$PATH"
1834 for ac_dir
in $ac_dummy; do
1835 test -z "$ac_dir" && ac_dir
=.
1836 if test -f $ac_dir/${ac_tool_prefix}file; then
1837 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1838 if test -n "$file_magic_test_file"; then
1839 case $deplibs_check_method in
1841 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1842 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1843 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1844 egrep "$file_magic_regex" > /dev
/null
; then
1849 *** Warning: the command libtool uses to detect shared libraries,
1850 *** $file_magic_cmd, produces output that libtool cannot recognize.
1851 *** The result is that libtool may fail to recognize shared libraries
1852 *** as such. This will affect the creation of libtool libraries that
1853 *** depend on shared libraries, but programs linked with such libtool
1854 *** libraries will work regardless of this problem. Nevertheless, you
1855 *** may want to report the problem to your system manager and/or to
1856 *** bug-libtool@gnu.org
1866 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1871 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1872 if test -n "$MAGIC_CMD"; then
1873 echo "$ac_t""$MAGIC_CMD" 1>&6
1875 echo "$ac_t""no" 1>&6
1878 if test -z "$lt_cv_path_MAGIC_CMD"; then
1879 if test -n "$ac_tool_prefix"; then
1880 echo $ac_n "checking for file""... $ac_c" 1>&6
1881 echo "configure:1882: checking for file" >&5
1882 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1883 echo $ac_n "(cached) $ac_c" 1>&6
1887 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1890 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1893 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1894 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1895 ac_dummy
="/usr/bin:$PATH"
1896 for ac_dir
in $ac_dummy; do
1897 test -z "$ac_dir" && ac_dir
=.
1898 if test -f $ac_dir/file; then
1899 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1900 if test -n "$file_magic_test_file"; then
1901 case $deplibs_check_method in
1903 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1904 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1905 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1906 egrep "$file_magic_regex" > /dev
/null
; then
1911 *** Warning: the command libtool uses to detect shared libraries,
1912 *** $file_magic_cmd, produces output that libtool cannot recognize.
1913 *** The result is that libtool may fail to recognize shared libraries
1914 *** as such. This will affect the creation of libtool libraries that
1915 *** depend on shared libraries, but programs linked with such libtool
1916 *** libraries will work regardless of this problem. Nevertheless, you
1917 *** may want to report the problem to your system manager and/or to
1918 *** bug-libtool@gnu.org
1928 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1933 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1934 if test -n "$MAGIC_CMD"; then
1935 echo "$ac_t""$MAGIC_CMD" 1>&6
1937 echo "$ac_t""no" 1>&6
1949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1950 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1951 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1952 echo "configure:1953: checking for $ac_word" >&5
1953 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 if test -n "$RANLIB"; then
1957 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1959 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1961 for ac_dir
in $ac_dummy; do
1962 test -z "$ac_dir" && ac_dir
=.
1963 if test -f $ac_dir/$ac_word; then
1964 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1971 RANLIB
="$ac_cv_prog_RANLIB"
1972 if test -n "$RANLIB"; then
1973 echo "$ac_t""$RANLIB" 1>&6
1975 echo "$ac_t""no" 1>&6
1979 if test -z "$ac_cv_prog_RANLIB"; then
1980 if test -n "$ac_tool_prefix"; then
1981 # Extract the first word of "ranlib", so it can be a program name with args.
1982 set dummy ranlib
; ac_word
=$2
1983 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1984 echo "configure:1985: checking for $ac_word" >&5
1985 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1986 echo $ac_n "(cached) $ac_c" 1>&6
1988 if test -n "$RANLIB"; then
1989 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1993 for ac_dir
in $ac_dummy; do
1994 test -z "$ac_dir" && ac_dir
=.
1995 if test -f $ac_dir/$ac_word; then
1996 ac_cv_prog_RANLIB
="ranlib"
2001 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2004 RANLIB
="$ac_cv_prog_RANLIB"
2005 if test -n "$RANLIB"; then
2006 echo "$ac_t""$RANLIB" 1>&6
2008 echo "$ac_t""no" 1>&6
2016 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2017 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2019 echo "configure:2020: checking for $ac_word" >&5
2020 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 if test -n "$STRIP"; then
2024 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2026 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2028 for ac_dir
in $ac_dummy; do
2029 test -z "$ac_dir" && ac_dir
=.
2030 if test -f $ac_dir/$ac_word; then
2031 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2038 STRIP
="$ac_cv_prog_STRIP"
2039 if test -n "$STRIP"; then
2040 echo "$ac_t""$STRIP" 1>&6
2042 echo "$ac_t""no" 1>&6
2046 if test -z "$ac_cv_prog_STRIP"; then
2047 if test -n "$ac_tool_prefix"; then
2048 # Extract the first word of "strip", so it can be a program name with args.
2049 set dummy strip
; ac_word
=$2
2050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2051 echo "configure:2052: checking for $ac_word" >&5
2052 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 if test -n "$STRIP"; then
2056 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2058 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2060 for ac_dir
in $ac_dummy; do
2061 test -z "$ac_dir" && ac_dir
=.
2062 if test -f $ac_dir/$ac_word; then
2063 ac_cv_prog_STRIP
="strip"
2068 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2071 STRIP
="$ac_cv_prog_STRIP"
2072 if test -n "$STRIP"; then
2073 echo "$ac_t""$STRIP" 1>&6
2075 echo "$ac_t""no" 1>&6
2084 # Check for any special flags to pass to ltconfig.
2085 libtool_flags
="--cache-file=$cache_file"
2086 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2087 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2088 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2089 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2090 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2093 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2094 if test "${enable_libtool_lock+set}" = set; then
2095 enableval
="$enable_libtool_lock"
2099 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2100 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2102 # Check whether --with-pic or --without-pic was given.
2103 if test "${with_pic+set}" = set; then
2110 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2111 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2113 # Some flags need to be propagated to the compiler or linker for good
2117 # Find out which ABI we are using.
2118 echo '#line 2119 "configure"' > conftest.
$ac_ext
2119 if { (eval echo configure
:2120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2120 if test "$lt_cv_prog_gnu_ld" = yes; then
2121 case `/usr/bin/file conftest.$ac_objext` in
2123 LD
="${LD-ld} -melf32bsmip"
2126 LD
="${LD-ld} -melf32bmipn32"
2129 LD
="${LD-ld} -melf64bmip"
2133 case `/usr/bin/file conftest.$ac_objext` in
2150 # Find out which ABI we are using.
2151 echo 'int i;' > conftest.
$ac_ext
2152 if { (eval echo configure
:2153: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2153 case "`/usr/bin/file conftest.o`" in
2166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2167 SAVE_CFLAGS
="$CFLAGS"
2168 CFLAGS
="$CFLAGS -belf"
2169 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether the C compiler needs -belf" >&5
2171 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2176 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2177 ac_cpp
='$CPP $CPPFLAGS'
2178 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2179 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2180 cross_compiling
=$ac_cv_prog_cc_cross
2182 cat > conftest.
$ac_ext <<EOF
2183 #line 2184 "configure"
2184 #include "confdefs.h"
2190 if { (eval echo configure
:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2192 lt_cv_cc_needs_belf
=yes
2194 echo "configure: failed program was:" >&5
2195 cat conftest.
$ac_ext >&5
2197 lt_cv_cc_needs_belf
=no
2201 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2202 ac_cpp
='$CPP $CPPFLAGS'
2203 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2204 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2205 cross_compiling
=$ac_cv_prog_cc_cross
2209 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2210 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2212 CFLAGS
="$SAVE_CFLAGS"
2220 # Save cache, so that ltconfig can load it
2221 cat > confcache
<<\EOF
2222 # This file is a shell script that caches the results of configure
2223 # tests run on this system so they can be shared between configure
2224 # scripts and configure runs. It is not useful on other systems.
2225 # If it contains results you don't want to keep, you may remove or edit it.
2227 # By default, configure uses ./config.cache as the cache file,
2228 # creating it if it does not exist already. You can give configure
2229 # the --cache-file=FILE option to use a different cache file; that is
2230 # what configure does when it calls configure scripts in
2231 # subdirectories, so they share the cache.
2232 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2233 # config.status only pays attention to the cache file if you give it the
2234 # --recheck option to rerun configure.
2237 # The following way of writing the cache mishandles newlines in values,
2238 # but we know of no workaround that is simple, portable, and efficient.
2239 # So, don't put newlines in cache variables' values.
2240 # Ultrix sh set writes to stderr and can't be redirected directly,
2241 # and sets the high bit in the cache file unless we assign to the vars.
2243 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2245 # `set' does not quote correctly, so add quotes (double-quote substitution
2246 # turns \\\\ into \\, and sed turns \\ into \).
2248 -e "s/'/'\\\\''/g" \
2249 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2252 # `set' quotes correctly as required by POSIX, so do not add quotes.
2253 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2256 if cmp -s $cache_file confcache
; then
2259 if test -w $cache_file; then
2260 echo "updating cache $cache_file"
2261 cat confcache
> $cache_file
2263 echo "not updating unwritable cache $cache_file"
2269 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2270 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2271 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2272 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2273 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2274 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2275 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2276 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2277 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2278 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2280 # Reload cache, that may have been modified by ltconfig
2281 if test -r "$cache_file"; then
2282 echo "loading cache $cache_file"
2285 echo "creating cache $cache_file"
2290 # This can be used to rebuild libtool when needed
2291 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2293 # Always use our own libtool.
2294 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2296 # Redirect the config.log output again, so that the ltconfig log is not
2297 # clobbered by the next message.
2298 exec 5>>.
/config.log
2306 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2307 if test "${enable_64_bit_bfd+set}" = set; then
2308 enableval
="$enable_64_bit_bfd"
2309 case "${enableval}" in
2312 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2317 # Check whether --enable-targets or --disable-targets was given.
2318 if test "${enable_targets+set}" = set; then
2319 enableval
="$enable_targets"
2320 case "${enableval}" in
2321 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2323 no
) enable_targets
= ;;
2324 *) enable_targets
=$enableval ;;
2327 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2328 if test "${enable_commonbfdlib+set}" = set; then
2329 enableval
="$enable_commonbfdlib"
2330 case "${enableval}" in
2331 yes) commonbfdlib
=true
;;
2332 no
) commonbfdlib
=false
;;
2333 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2336 # Check whether --with-mmap or --without-mmap was given.
2337 if test "${with_mmap+set}" = set; then
2338 withval
="$with_mmap"
2339 case "${withval}" in
2340 yes) want_mmap
=true
;;
2341 no
) want_mmap
=false
;;
2342 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2348 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2349 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2350 if test "${enable_build_warnings+set}" = set; then
2351 enableval
="$enable_build_warnings"
2352 case "${enableval}" in
2354 no
) build_warnings
="-w";;
2355 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2356 build_warnings
="${build_warnings} ${t}";;
2357 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2358 build_warnings
="${t} ${build_warnings}";;
2359 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2361 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2362 echo "Setting warning flags = $build_warnings" 6>&1
2366 if test "x${build_warnings}" != x
&& test "x$GCC" = xyes
; then
2367 WARN_CFLAGS
="${build_warnings}"
2375 if test -z "$target" ; then
2376 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2379 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2380 echo "configure:2381: checking whether to enable maintainer-specific portions of Makefiles" >&5
2381 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2382 if test "${enable_maintainer_mode+set}" = set; then
2383 enableval
="$enable_maintainer_mode"
2384 USE_MAINTAINER_MODE
=$enableval
2386 USE_MAINTAINER_MODE
=no
2389 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2392 if test $USE_MAINTAINER_MODE = yes; then
2393 MAINTAINER_MODE_TRUE
=
2394 MAINTAINER_MODE_FALSE
='#'
2396 MAINTAINER_MODE_TRUE
='#'
2397 MAINTAINER_MODE_FALSE
=
2399 MAINT
=$MAINTAINER_MODE_TRUE
2402 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2403 echo "configure:2404: checking whether to install libbfd" >&5
2404 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2405 if test "${enable_install_libbfd+set}" = set; then
2406 enableval
="$enable_install_libbfd"
2407 install_libbfd_p
=$enableval
2409 if test "${host}" = "${target}" ||
test "$enable_shared" = "yes"; then
2410 install_libbfd_p
=yes
2416 echo "$ac_t""$install_libbfd_p" 1>&6
2419 if test $install_libbfd_p = yes; then
2420 INSTALL_LIBBFD_TRUE
=
2421 INSTALL_LIBBFD_FALSE
='#'
2423 INSTALL_LIBBFD_TRUE
='#'
2424 INSTALL_LIBBFD_FALSE
=
2426 # libbfd.a is a host library containing target dependent code
2427 bfdlibdir
='$(libdir)'
2428 bfdincludedir
='$(includedir)'
2429 if test "${host}" != "${target}"; then
2430 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2431 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2439 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2440 echo "configure:2441: checking for executable suffix" >&5
2441 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2448 echo 'int main () { return 0; }' > conftest.
$ac_ext
2450 if { (eval echo configure
:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2451 for file in conftest.
*; do
2453 *.c |
*.o |
*.obj
) ;;
2454 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2458 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2461 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2466 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2467 echo "$ac_t""${ac_cv_exeext}" 1>&6
2473 bfd_default_target_size
=32
2477 # Extract the first word of "gcc", so it can be a program name with args.
2478 set dummy gcc
; ac_word
=$2
2479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2480 echo "configure:2481: checking for $ac_word" >&5
2481 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2482 echo $ac_n "(cached) $ac_c" 1>&6
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC
="$CC" # Let the user override the test.
2487 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2489 for ac_dir
in $ac_dummy; do
2490 test -z "$ac_dir" && ac_dir
=.
2491 if test -f $ac_dir/$ac_word; then
2500 if test -n "$CC"; then
2501 echo "$ac_t""$CC" 1>&6
2503 echo "$ac_t""no" 1>&6
2506 if test -z "$CC"; then
2507 # Extract the first word of "cc", so it can be a program name with args.
2508 set dummy cc
; ac_word
=$2
2509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2510 echo "configure:2511: checking for $ac_word" >&5
2511 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC
="$CC" # Let the user override the test.
2517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2520 for ac_dir
in $ac_dummy; do
2521 test -z "$ac_dir" && ac_dir
=.
2522 if test -f $ac_dir/$ac_word; then
2523 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2524 ac_prog_rejected
=yes
2532 if test $ac_prog_rejected = yes; then
2533 # We found a bogon in the path, so make sure we never use it.
2534 set dummy
$ac_cv_prog_CC
2536 if test $# -gt 0; then
2537 # We chose a different compiler from the bogus one.
2538 # However, it has the same basename, so the bogon will be chosen
2539 # first if we set CC to just the basename; use the full file name.
2541 set dummy
"$ac_dir/$ac_word" "$@"
2549 if test -n "$CC"; then
2550 echo "$ac_t""$CC" 1>&6
2552 echo "$ac_t""no" 1>&6
2555 if test -z "$CC"; then
2556 case "`uname -s`" in
2558 # Extract the first word of "cl", so it can be a program name with args.
2559 set dummy cl
; ac_word
=$2
2560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_word" >&5
2562 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC
="$CC" # Let the user override the test.
2568 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2570 for ac_dir
in $ac_dummy; do
2571 test -z "$ac_dir" && ac_dir
=.
2572 if test -f $ac_dir/$ac_word; then
2581 if test -n "$CC"; then
2582 echo "$ac_t""$CC" 1>&6
2584 echo "$ac_t""no" 1>&6
2589 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2592 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2593 echo "configure:2594: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2596 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2597 ac_cpp
='$CPP $CPPFLAGS'
2598 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2599 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2600 cross_compiling
=$ac_cv_prog_cc_cross
2602 cat > conftest.
$ac_ext << EOF
2604 #line 2605 "configure"
2605 #include "confdefs.h"
2609 if { (eval echo configure
:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2610 ac_cv_prog_cc_works
=yes
2611 # If we can't run a trivial program, we are probably using a cross compiler.
2612 if (.
/conftest
; exit) 2>/dev
/null
; then
2613 ac_cv_prog_cc_cross
=no
2615 ac_cv_prog_cc_cross
=yes
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2620 ac_cv_prog_cc_works
=no
2624 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2625 ac_cpp
='$CPP $CPPFLAGS'
2626 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2627 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2628 cross_compiling
=$ac_cv_prog_cc_cross
2630 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2631 if test $ac_cv_prog_cc_works = no
; then
2632 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2634 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2635 echo "configure:2636: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2636 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2637 cross_compiling
=$ac_cv_prog_cc_cross
2639 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2640 echo "configure:2641: checking whether we are using GNU C" >&5
2641 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.c
<<EOF
2649 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2656 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2658 if test $ac_cv_prog_gcc = yes; then
2664 ac_test_CFLAGS
="${CFLAGS+set}"
2665 ac_save_CFLAGS
="$CFLAGS"
2667 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2668 echo "configure:2669: checking whether ${CC-cc} accepts -g" >&5
2669 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2670 echo $ac_n "(cached) $ac_c" 1>&6
2672 echo 'void f(){}' > conftest.c
2673 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2682 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2683 if test "$ac_test_CFLAGS" = set; then
2684 CFLAGS
="$ac_save_CFLAGS"
2685 elif test $ac_cv_prog_cc_g = yes; then
2686 if test "$GCC" = yes; then
2692 if test "$GCC" = yes; then
2700 ALL_LINGUAS
="fr tr ja es sv da zh_CN ro"
2701 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2702 echo "configure:2703: checking how to run the C preprocessor" >&5
2703 # On Suns, sometimes $CPP names a directory.
2704 if test -n "$CPP" && test -d "$CPP"; then
2707 if test -z "$CPP"; then
2708 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2711 # This must be in double quotes, not single quotes, because CPP may get
2712 # substituted into the Makefile and "${CC-cc}" will confuse make.
2714 # On the NeXT, cc -E runs the code through the compiler's parser,
2715 # not just through cpp.
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2722 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2723 { (eval echo configure
:2724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2724 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2725 if test -z "$ac_err"; then
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2732 CPP
="${CC-cc} -E -traditional-cpp"
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2739 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2740 { (eval echo configure
:2741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2741 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2742 if test -z "$ac_err"; then
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2749 CPP
="${CC-cc} -nologo -E"
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2756 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2757 { (eval echo configure
:2758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2758 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2759 if test -z "$ac_err"; then
2763 echo "configure: failed program was:" >&5
2764 cat conftest.
$ac_ext >&5
2773 ac_cv_prog_CPP
="$CPP"
2775 CPP
="$ac_cv_prog_CPP"
2777 ac_cv_prog_CPP
="$CPP"
2779 echo "$ac_t""$CPP" 1>&6
2781 # Extract the first word of "ranlib", so it can be a program name with args.
2782 set dummy ranlib
; ac_word
=$2
2783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2784 echo "configure:2785: checking for $ac_word" >&5
2785 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 if test -n "$RANLIB"; then
2789 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2793 for ac_dir
in $ac_dummy; do
2794 test -z "$ac_dir" && ac_dir
=.
2795 if test -f $ac_dir/$ac_word; then
2796 ac_cv_prog_RANLIB
="ranlib"
2801 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2804 RANLIB
="$ac_cv_prog_RANLIB"
2805 if test -n "$RANLIB"; then
2806 echo "$ac_t""$RANLIB" 1>&6
2808 echo "$ac_t""no" 1>&6
2811 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2812 echo "configure:2813: checking for ANSI C header files" >&5
2813 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.
$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2824 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2825 { (eval echo configure
:2826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2826 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2827 if test -z "$ac_err"; then
2829 ac_cv_header_stdc
=yes
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 ac_cv_header_stdc
=no
2839 if test $ac_cv_header_stdc = yes; then
2840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2841 cat > conftest.
$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2847 egrep "memchr" >/dev
/null
2>&1; then
2851 ac_cv_header_stdc
=no
2857 if test $ac_cv_header_stdc = yes; then
2858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2859 cat > conftest.
$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2865 egrep "free" >/dev
/null
2>&1; then
2869 ac_cv_header_stdc
=no
2875 if test $ac_cv_header_stdc = yes; then
2876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2877 if test "$cross_compiling" = yes; then
2880 cat > conftest.
$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2884 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2885 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2887 int main () { int i; for (i = 0; i < 256; i++)
2888 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2892 if { (eval echo configure
:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2896 echo "configure: failed program was:" >&5
2897 cat conftest.
$ac_ext >&5
2899 ac_cv_header_stdc
=no
2907 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2908 if test $ac_cv_header_stdc = yes; then
2909 cat >> confdefs.h
<<\EOF
2910 #define STDC_HEADERS 1
2915 echo $ac_n "checking for working const""... $ac_c" 1>&6
2916 echo "configure:2917: checking for working const" >&5
2917 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.
$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2926 /* Ultrix mips cc rejects this. */
2927 typedef int charset[2]; const charset x;
2928 /* SunOS 4.1.1 cc rejects this. */
2929 char const *const *ccp;
2931 /* NEC SVR4.0.2 mips cc rejects this. */
2932 struct point {int x, y;};
2933 static struct point const zero = {0,0};
2934 /* AIX XL C 1.02.0.0 rejects this.
2935 It does not let you subtract one const X* pointer from another in an arm
2936 of an if-expression whose if-part is not a constant expression */
2937 const char *g = "string";
2938 ccp = &g + (g ? g-g : 0);
2939 /* HPUX 7.0 cc rejects these. */
2942 ccp = (char const *const *) p;
2943 { /* SCO 3.2v4 cc rejects this. */
2945 char const *s = 0 ? (char *) 0 : (char const *) 0;
2949 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2951 const int *foo = &x[0];
2954 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2955 typedef const int *iptr;
2959 { /* AIX XL C 1.02.0.0 rejects this saying
2960 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2961 struct s { int j; const int *ap[3]; };
2962 struct s *b; b->j = 5;
2964 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2970 if { (eval echo configure
:2971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2974 echo "configure: failed program was:" >&5
2975 cat conftest.
$ac_ext >&5
2982 echo "$ac_t""$ac_cv_c_const" 1>&6
2983 if test $ac_cv_c_const = no
; then
2984 cat >> confdefs.h
<<\EOF
2990 echo $ac_n "checking for inline""... $ac_c" 1>&6
2991 echo "configure:2992: checking for inline" >&5
2992 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2996 for ac_kw
in inline __inline__ __inline
; do
2997 cat > conftest.
$ac_ext <<EOF
2998 #line 2999 "configure"
2999 #include "confdefs.h"
3005 if { (eval echo configure
:3006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3007 ac_cv_c_inline
=$ac_kw; break
3009 echo "configure: failed program was:" >&5
3010 cat conftest.
$ac_ext >&5
3017 echo "$ac_t""$ac_cv_c_inline" 1>&6
3018 case "$ac_cv_c_inline" in
3020 no
) cat >> confdefs.h
<<\EOF
3024 *) cat >> confdefs.h
<<EOF
3025 #define inline $ac_cv_c_inline
3030 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3031 echo "configure:3032: checking for off_t" >&5
3032 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.
$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 #include <sys/types.h>
3044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3045 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3047 ac_cv_type_off_t
=yes
3055 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3056 if test $ac_cv_type_off_t = no
; then
3057 cat >> confdefs.h
<<\EOF
3063 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3064 echo "configure:3065: checking for size_t" >&5
3065 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.
$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 #include <sys/types.h>
3077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3078 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3080 ac_cv_type_size_t
=yes
3083 ac_cv_type_size_t
=no
3088 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3089 if test $ac_cv_type_size_t = no
; then
3090 cat >> confdefs.h
<<\EOF
3091 #define size_t unsigned
3096 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3097 # for constant arguments. Useless!
3098 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3099 echo "configure:3100: checking for working alloca.h" >&5
3100 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3101 echo $ac_n "(cached) $ac_c" 1>&6
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3108 char *p = alloca(2 * sizeof(int));
3111 if { (eval echo configure
:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3113 ac_cv_header_alloca_h
=yes
3115 echo "configure: failed program was:" >&5
3116 cat conftest.
$ac_ext >&5
3118 ac_cv_header_alloca_h
=no
3123 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3124 if test $ac_cv_header_alloca_h = yes; then
3125 cat >> confdefs.h
<<\EOF
3126 #define HAVE_ALLOCA_H 1
3131 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3132 echo "configure:3133: checking for alloca" >&5
3133 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.
$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3141 # define alloca __builtin_alloca
3144 # include <malloc.h>
3145 # define alloca _alloca
3148 # include <alloca.h>
3153 # ifndef alloca /* predefined by HP cc +Olibcalls */
3162 char *p = (char *) alloca(1);
3165 if { (eval echo configure
:3166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3167 ac_cv_func_alloca_works
=yes
3169 echo "configure: failed program was:" >&5
3170 cat conftest.
$ac_ext >&5
3172 ac_cv_func_alloca_works
=no
3177 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3178 if test $ac_cv_func_alloca_works = yes; then
3179 cat >> confdefs.h
<<\EOF
3180 #define HAVE_ALLOCA 1
3185 if test $ac_cv_func_alloca_works = no
; then
3186 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3187 # that cause trouble. Some versions do not even contain alloca or
3188 # contain a buggy version. If you still want to use their alloca,
3189 # use ar to extract alloca.o from them instead of compiling alloca.c.
3190 ALLOCA
=alloca.
${ac_objext}
3191 cat >> confdefs.h
<<\EOF
3196 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3197 echo "configure:3198: checking whether alloca needs Cray hooks" >&5
3198 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3199 echo $ac_n "(cached) $ac_c" 1>&6
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 #if defined(CRAY) && ! defined(CRAY2)
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 egrep "webecray" >/dev
/null
2>&1; then
3223 echo "$ac_t""$ac_cv_os_cray" 1>&6
3224 if test $ac_cv_os_cray = yes; then
3225 for ac_func
in _getb67 GETB67 getb67
; do
3226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_func" >&5
3228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235 which can conflict with char $ac_func(); below. */
3237 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3244 /* The GNU C library defines this for functions which it implements
3245 to always fail with ENOSYS. Some functions are actually named
3246 something starting with __ and the normal name is an alias. */
3247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3255 if { (eval echo configure
:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3257 eval "ac_cv_func_$ac_func=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3262 eval "ac_cv_func_$ac_func=no"
3267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 cat >> confdefs.h
<<EOF
3270 #define CRAY_STACKSEG_END $ac_func
3275 echo "$ac_t""no" 1>&6
3281 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3282 echo "configure:3283: checking stack direction for C alloca" >&5
3283 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 if test "$cross_compiling" = yes; then
3287 ac_cv_c_stack_direction
=0
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 find_stack_direction ()
3294 static char *addr = 0;
3299 return find_stack_direction ();
3302 return (&dummy > addr) ? 1 : -1;
3306 exit (find_stack_direction() < 0);
3309 if { (eval echo configure
:3310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3311 ac_cv_c_stack_direction
=1
3313 echo "configure: failed program was:" >&5
3314 cat conftest.
$ac_ext >&5
3316 ac_cv_c_stack_direction
=-1
3323 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3324 cat >> confdefs.h
<<EOF
3325 #define STACK_DIRECTION $ac_cv_c_stack_direction
3330 for ac_hdr
in unistd.h
3332 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3334 echo "configure:3335: checking for $ac_hdr" >&5
3335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3338 cat > conftest.
$ac_ext <<EOF
3339 #line 3340 "configure"
3340 #include "confdefs.h"
3343 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3344 { (eval echo configure
:3345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3345 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3346 if test -z "$ac_err"; then
3348 eval "ac_cv_header_$ac_safe=yes"
3351 echo "configure: failed program was:" >&5
3352 cat conftest.
$ac_ext >&5
3354 eval "ac_cv_header_$ac_safe=no"
3358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
3360 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3361 cat >> confdefs.h
<<EOF
3362 #define $ac_tr_hdr 1
3366 echo "$ac_t""no" 1>&6
3370 for ac_func
in getpagesize
3372 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3373 echo "configure:3374: checking for $ac_func" >&5
3374 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3375 echo $ac_n "(cached) $ac_c" 1>&6
3377 cat > conftest.
$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3380 /* System header to define __stub macros and hopefully few prototypes,
3381 which can conflict with char $ac_func(); below. */
3383 /* Override any gcc2 internal prototype to avoid an error. */
3384 /* We use char because int might match the return type of a gcc2
3385 builtin and then its argument prototype would still apply. */
3390 /* The GNU C library defines this for functions which it implements
3391 to always fail with ENOSYS. Some functions are actually named
3392 something starting with __ and the normal name is an alias. */
3393 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3401 if { (eval echo configure
:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3403 eval "ac_cv_func_$ac_func=yes"
3405 echo "configure: failed program was:" >&5
3406 cat conftest.
$ac_ext >&5
3408 eval "ac_cv_func_$ac_func=no"
3413 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3414 echo "$ac_t""yes" 1>&6
3415 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3416 cat >> confdefs.h
<<EOF
3417 #define $ac_tr_func 1
3421 echo "$ac_t""no" 1>&6
3425 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3426 echo "configure:3427: checking for working mmap" >&5
3427 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 if test "$cross_compiling" = yes; then
3431 ac_cv_func_mmap_fixed_mapped
=no
3433 cat > conftest.
$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3437 /* Thanks to Mike Haertel and Jim Avera for this test.
3438 Here is a matrix of mmap possibilities:
3439 mmap private not fixed
3440 mmap private fixed at somewhere currently unmapped
3441 mmap private fixed at somewhere already mapped
3442 mmap shared not fixed
3443 mmap shared fixed at somewhere currently unmapped
3444 mmap shared fixed at somewhere already mapped
3445 For private mappings, we should verify that changes cannot be read()
3446 back from the file, nor mmap's back from the file at a different
3447 address. (There have been systems where private was not correctly
3448 implemented like the infamous i386 svr4.0, and systems where the
3449 VM page cache was not coherent with the filesystem buffer cache
3450 like early versions of FreeBSD and possibly contemporary NetBSD.)
3451 For shared mappings, we should conversely verify that changes get
3452 propogated back to all the places they're supposed to be.
3454 Grep wants private fixed already mapped.
3455 The main things grep needs to know about mmap are:
3456 * does it exist and is it safe to write into the mmap'd area
3457 * how to use it (BSD variants) */
3458 #include <sys/types.h>
3460 #include <sys/mman.h>
3462 /* This mess was copied from the GNU getpagesize.h. */
3463 #ifndef HAVE_GETPAGESIZE
3464 # ifdef HAVE_UNISTD_H
3465 # include <unistd.h>
3468 /* Assume that all systems that can run configure have sys/param.h. */
3469 # ifndef HAVE_SYS_PARAM_H
3470 # define HAVE_SYS_PARAM_H 1
3473 # ifdef _SC_PAGESIZE
3474 # define getpagesize() sysconf(_SC_PAGESIZE)
3475 # else /* no _SC_PAGESIZE */
3476 # ifdef HAVE_SYS_PARAM_H
3477 # include <sys/param.h>
3478 # ifdef EXEC_PAGESIZE
3479 # define getpagesize() EXEC_PAGESIZE
3480 # else /* no EXEC_PAGESIZE */
3482 # define getpagesize() NBPG * CLSIZE
3485 # endif /* no CLSIZE */
3486 # else /* no NBPG */
3488 # define getpagesize() NBPC
3489 # else /* no NBPC */
3491 # define getpagesize() PAGESIZE
3492 # endif /* PAGESIZE */
3493 # endif /* no NBPC */
3494 # endif /* no NBPG */
3495 # endif /* no EXEC_PAGESIZE */
3496 # else /* no HAVE_SYS_PARAM_H */
3497 # define getpagesize() 8192 /* punt totally */
3498 # endif /* no HAVE_SYS_PARAM_H */
3499 # endif /* no _SC_PAGESIZE */
3501 #endif /* no HAVE_GETPAGESIZE */
3504 extern "C" { void *malloc(unsigned); }
3512 char *data, *data2, *data3;
3516 pagesize = getpagesize();
3519 * First, make a file with some known garbage in it.
3521 data = malloc(pagesize);
3524 for (i = 0; i < pagesize; ++i)
3525 *(data + i) = rand();
3527 fd = creat("conftestmmap", 0600);
3530 if (write(fd, data, pagesize) != pagesize)
3535 * Next, try to mmap the file at a fixed address which
3536 * already has something else allocated at it. If we can,
3537 * also make sure that we see the same garbage.
3539 fd = open("conftestmmap", O_RDWR);
3542 data2 = malloc(2 * pagesize);
3545 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3546 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3547 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3549 for (i = 0; i < pagesize; ++i)
3550 if (*(data + i) != *(data2 + i))
3554 * Finally, make sure that changes to the mapped area
3555 * do not percolate back to the file as seen by read().
3556 * (This is a bug on some variants of i386 svr4.0.)
3558 for (i = 0; i < pagesize; ++i)
3559 *(data2 + i) = *(data2 + i) + 1;
3560 data3 = malloc(pagesize);
3563 if (read(fd, data3, pagesize) != pagesize)
3565 for (i = 0; i < pagesize; ++i)
3566 if (*(data + i) != *(data3 + i))
3569 unlink("conftestmmap");
3574 if { (eval echo configure
:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3576 ac_cv_func_mmap_fixed_mapped
=yes
3578 echo "configure: failed program was:" >&5
3579 cat conftest.
$ac_ext >&5
3581 ac_cv_func_mmap_fixed_mapped
=no
3588 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3589 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3590 cat >> confdefs.h
<<\EOF
3597 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3598 unistd.h values.h sys
/param.h
3600 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3601 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_hdr" >&5
3603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 cat > conftest.
$ac_ext <<EOF
3607 #line 3608 "configure"
3608 #include "confdefs.h"
3611 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3612 { (eval echo configure
:3613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3613 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3614 if test -z "$ac_err"; then
3616 eval "ac_cv_header_$ac_safe=yes"
3619 echo "configure: failed program was:" >&5
3620 cat conftest.
$ac_ext >&5
3622 eval "ac_cv_header_$ac_safe=no"
3626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3627 echo "$ac_t""yes" 1>&6
3628 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3629 cat >> confdefs.h
<<EOF
3630 #define $ac_tr_hdr 1
3634 echo "$ac_t""no" 1>&6
3638 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3639 __argz_count __argz_stringify __argz_next
3641 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3642 echo "configure:3643: checking for $ac_func" >&5
3643 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 cat > conftest.
$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 /* System header to define __stub macros and hopefully few prototypes,
3650 which can conflict with char $ac_func(); below. */
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3659 /* The GNU C library defines this for functions which it implements
3660 to always fail with ENOSYS. Some functions are actually named
3661 something starting with __ and the normal name is an alias. */
3662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3670 if { (eval echo configure
:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3672 eval "ac_cv_func_$ac_func=yes"
3674 echo "configure: failed program was:" >&5
3675 cat conftest.
$ac_ext >&5
3677 eval "ac_cv_func_$ac_func=no"
3682 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3685 cat >> confdefs.h
<<EOF
3686 #define $ac_tr_func 1
3690 echo "$ac_t""no" 1>&6
3695 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3696 for ac_func
in stpcpy
3698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3699 echo "configure:3700: checking for $ac_func" >&5
3700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3701 echo $ac_n "(cached) $ac_c" 1>&6
3703 cat > conftest.
$ac_ext <<EOF
3704 #line 3705 "configure"
3705 #include "confdefs.h"
3706 /* System header to define __stub macros and hopefully few prototypes,
3707 which can conflict with char $ac_func(); below. */
3709 /* Override any gcc2 internal prototype to avoid an error. */
3710 /* We use char because int might match the return type of a gcc2
3711 builtin and then its argument prototype would still apply. */
3716 /* The GNU C library defines this for functions which it implements
3717 to always fail with ENOSYS. Some functions are actually named
3718 something starting with __ and the normal name is an alias. */
3719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3727 if { (eval echo configure
:3728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3729 eval "ac_cv_func_$ac_func=yes"
3731 echo "configure: failed program was:" >&5
3732 cat conftest.
$ac_ext >&5
3734 eval "ac_cv_func_$ac_func=no"
3739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3740 echo "$ac_t""yes" 1>&6
3741 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3742 cat >> confdefs.h
<<EOF
3743 #define $ac_tr_func 1
3747 echo "$ac_t""no" 1>&6
3752 if test "${ac_cv_func_stpcpy}" = "yes"; then
3753 cat >> confdefs.h
<<\EOF
3754 #define HAVE_STPCPY 1
3759 if test $ac_cv_header_locale_h = yes; then
3760 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3761 echo "configure:3762: checking for LC_MESSAGES" >&5
3762 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3763 echo $ac_n "(cached) $ac_c" 1>&6
3765 cat > conftest.
$ac_ext <<EOF
3766 #line 3767 "configure"
3767 #include "confdefs.h"
3773 if { (eval echo configure
:3774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3775 am_cv_val_LC_MESSAGES
=yes
3777 echo "configure: failed program was:" >&5
3778 cat conftest.
$ac_ext >&5
3780 am_cv_val_LC_MESSAGES
=no
3785 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3786 if test $am_cv_val_LC_MESSAGES = yes; then
3787 cat >> confdefs.h
<<\EOF
3788 #define HAVE_LC_MESSAGES 1
3793 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3794 echo "configure:3795: checking whether NLS is requested" >&5
3795 # Check whether --enable-nls or --disable-nls was given.
3796 if test "${enable_nls+set}" = set; then
3797 enableval
="$enable_nls"
3803 echo "$ac_t""$USE_NLS" 1>&6
3806 USE_INCLUDED_LIBINTL
=no
3808 if test "$USE_NLS" = "yes"; then
3809 cat >> confdefs.h
<<\EOF
3810 #define ENABLE_NLS 1
3813 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3814 echo "configure:3815: checking whether included gettext is requested" >&5
3815 # Check whether --with-included-gettext or --without-included-gettext was given.
3816 if test "${with_included_gettext+set}" = set; then
3817 withval
="$with_included_gettext"
3818 nls_cv_force_use_gnu_gettext
=$withval
3820 nls_cv_force_use_gnu_gettext
=no
3823 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3825 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3826 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3828 nls_cv_header_libgt
=
3831 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3832 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3833 echo "configure:3834: checking for libintl.h" >&5
3834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.
$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3840 #include <libintl.h>
3842 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3843 { (eval echo configure
:3844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3844 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3845 if test -z "$ac_err"; then
3847 eval "ac_cv_header_$ac_safe=yes"
3850 echo "configure: failed program was:" >&5
3851 cat conftest.
$ac_ext >&5
3853 eval "ac_cv_header_$ac_safe=no"
3857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3860 echo "configure:3861: checking for gettext in libc" >&5
3861 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3864 cat > conftest.
$ac_ext <<EOF
3865 #line 3866 "configure"
3866 #include "confdefs.h"
3867 #include <libintl.h>
3869 return (int) gettext ("")
3872 if { (eval echo configure
:3873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3874 gt_cv_func_gettext_libc
=yes
3876 echo "configure: failed program was:" >&5
3877 cat conftest.
$ac_ext >&5
3879 gt_cv_func_gettext_libc
=no
3884 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3886 if test "$gt_cv_func_gettext_libc" != "yes"; then
3887 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3888 echo "configure:3889: checking for bindtextdomain in -lintl" >&5
3889 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3891 echo $ac_n "(cached) $ac_c" 1>&6
3893 ac_save_LIBS
="$LIBS"
3895 cat > conftest.
$ac_ext <<EOF
3896 #line 3897 "configure"
3897 #include "confdefs.h"
3898 /* Override any gcc2 internal prototype to avoid an error. */
3899 /* We use char because int might match the return type of a gcc2
3900 builtin and then its argument prototype would still apply. */
3901 char bindtextdomain();
3907 if { (eval echo configure
:3908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3909 eval "ac_cv_lib_$ac_lib_var=yes"
3911 echo "configure: failed program was:" >&5
3912 cat conftest.
$ac_ext >&5
3914 eval "ac_cv_lib_$ac_lib_var=no"
3917 LIBS
="$ac_save_LIBS"
3920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3921 echo "$ac_t""yes" 1>&6
3922 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3923 echo "configure:3924: checking for gettext in libintl" >&5
3924 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3925 echo $ac_n "(cached) $ac_c" 1>&6
3927 cat > conftest.
$ac_ext <<EOF
3928 #line 3929 "configure"
3929 #include "confdefs.h"
3932 return (int) gettext ("")
3935 if { (eval echo configure
:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3937 gt_cv_func_gettext_libintl
=yes
3939 echo "configure: failed program was:" >&5
3940 cat conftest.
$ac_ext >&5
3942 gt_cv_func_gettext_libintl
=no
3947 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3949 echo "$ac_t""no" 1>&6
3954 if test "$gt_cv_func_gettext_libc" = "yes" \
3955 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3956 cat >> confdefs.h
<<\EOF
3957 #define HAVE_GETTEXT 1
3960 # Extract the first word of "msgfmt", so it can be a program name with args.
3961 set dummy msgfmt
; ac_word
=$2
3962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3963 echo "configure:3964: checking for $ac_word" >&5
3964 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3969 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3972 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3973 for ac_dir
in $PATH; do
3974 test -z "$ac_dir" && ac_dir
=.
3975 if test -f $ac_dir/$ac_word; then
3976 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3977 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3983 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3987 MSGFMT
="$ac_cv_path_MSGFMT"
3988 if test -n "$MSGFMT"; then
3989 echo "$ac_t""$MSGFMT" 1>&6
3991 echo "$ac_t""no" 1>&6
3993 if test "$MSGFMT" != "no"; then
3994 for ac_func
in dcgettext
3996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3997 echo "configure:3998: checking for $ac_func" >&5
3998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* System header to define __stub macros and hopefully few prototypes,
4005 which can conflict with char $ac_func(); below. */
4007 /* Override any gcc2 internal prototype to avoid an error. */
4008 /* We use char because int might match the return type of a gcc2
4009 builtin and then its argument prototype would still apply. */
4014 /* The GNU C library defines this for functions which it implements
4015 to always fail with ENOSYS. Some functions are actually named
4016 something starting with __ and the normal name is an alias. */
4017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4025 if { (eval echo configure
:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4027 eval "ac_cv_func_$ac_func=yes"
4029 echo "configure: failed program was:" >&5
4030 cat conftest.
$ac_ext >&5
4032 eval "ac_cv_func_$ac_func=no"
4037 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4038 echo "$ac_t""yes" 1>&6
4039 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4040 cat >> confdefs.h
<<EOF
4041 #define $ac_tr_func 1
4045 echo "$ac_t""no" 1>&6
4049 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4050 set dummy gmsgfmt
; ac_word
=$2
4051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_word" >&5
4053 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4058 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4061 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4064 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4066 for ac_dir
in $ac_dummy; do
4067 test -z "$ac_dir" && ac_dir
=.
4068 if test -f $ac_dir/$ac_word; then
4069 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4074 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4078 GMSGFMT
="$ac_cv_path_GMSGFMT"
4079 if test -n "$GMSGFMT"; then
4080 echo "$ac_t""$GMSGFMT" 1>&6
4082 echo "$ac_t""no" 1>&6
4085 # Extract the first word of "xgettext", so it can be a program name with args.
4086 set dummy xgettext
; ac_word
=$2
4087 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4088 echo "configure:4089: checking for $ac_word" >&5
4089 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4090 echo $ac_n "(cached) $ac_c" 1>&6
4094 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4097 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4098 for ac_dir
in $PATH; do
4099 test -z "$ac_dir" && ac_dir
=.
4100 if test -f $ac_dir/$ac_word; then
4101 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4102 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4108 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4112 XGETTEXT
="$ac_cv_path_XGETTEXT"
4113 if test -n "$XGETTEXT"; then
4114 echo "$ac_t""$XGETTEXT" 1>&6
4116 echo "$ac_t""no" 1>&6
4119 cat > conftest.
$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4124 extern int _nl_msg_cat_cntr;
4125 return _nl_msg_cat_cntr
4128 if { (eval echo configure
:4129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4133 echo "configure: failed program was:" >&5
4134 cat conftest.
$ac_ext >&5
4145 echo "$ac_t""no" 1>&6
4150 if test "$CATOBJEXT" = "NONE"; then
4151 nls_cv_use_gnu_gettext
=yes
4155 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4156 INTLOBJS
="\$(GETTOBJS)"
4157 # Extract the first word of "msgfmt", so it can be a program name with args.
4158 set dummy msgfmt
; ac_word
=$2
4159 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4160 echo "configure:4161: checking for $ac_word" >&5
4161 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4162 echo $ac_n "(cached) $ac_c" 1>&6
4166 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4170 for ac_dir
in $PATH; do
4171 test -z "$ac_dir" && ac_dir
=.
4172 if test -f $ac_dir/$ac_word; then
4173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4174 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4180 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4184 MSGFMT
="$ac_cv_path_MSGFMT"
4185 if test -n "$MSGFMT"; then
4186 echo "$ac_t""$MSGFMT" 1>&6
4188 echo "$ac_t""no" 1>&6
4191 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4192 set dummy gmsgfmt
; ac_word
=$2
4193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_word" >&5
4195 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4203 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4208 for ac_dir
in $ac_dummy; do
4209 test -z "$ac_dir" && ac_dir
=.
4210 if test -f $ac_dir/$ac_word; then
4211 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4216 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4220 GMSGFMT
="$ac_cv_path_GMSGFMT"
4221 if test -n "$GMSGFMT"; then
4222 echo "$ac_t""$GMSGFMT" 1>&6
4224 echo "$ac_t""no" 1>&6
4227 # Extract the first word of "xgettext", so it can be a program name with args.
4228 set dummy xgettext
; ac_word
=$2
4229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4230 echo "configure:4231: checking for $ac_word" >&5
4231 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4232 echo $ac_n "(cached) $ac_c" 1>&6
4236 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4239 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4240 for ac_dir
in $PATH; do
4241 test -z "$ac_dir" && ac_dir
=.
4242 if test -f $ac_dir/$ac_word; then
4243 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4244 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4250 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4254 XGETTEXT
="$ac_cv_path_XGETTEXT"
4255 if test -n "$XGETTEXT"; then
4256 echo "$ac_t""$XGETTEXT" 1>&6
4258 echo "$ac_t""no" 1>&6
4262 USE_INCLUDED_LIBINTL
=yes
4266 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4268 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4269 nls_cv_header_intl
=libintl.h
4270 nls_cv_header_libgt
=libgettext.h
4273 if test "$XGETTEXT" != ":"; then
4274 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4277 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4282 # We need to process the po/ directory.
4286 nls_cv_header_intl
=libintl.h
4287 nls_cv_header_libgt
=libgettext.h
4290 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4291 # because some of the sources are only built for this goal.
4292 if test "$PACKAGE" = gettext; then
4294 USE_INCLUDED_LIBINTL
=yes
4297 for lang
in $ALL_LINGUAS; do
4298 GMOFILES
="$GMOFILES $lang.gmo"
4299 POFILES
="$POFILES $lang.po"
4315 if test "x$CATOBJEXT" != "x"; then
4316 if test "x$ALL_LINGUAS" = "x"; then
4319 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4320 echo "configure:4321: checking for catalogs to be installed" >&5
4322 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4323 case "$ALL_LINGUAS" in
4324 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4327 LINGUAS
=$NEW_LINGUAS
4328 echo "$ac_t""$LINGUAS" 1>&6
4331 if test -n "$LINGUAS"; then
4332 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4336 if test $ac_cv_header_locale_h = yes; then
4337 INCLUDE_LOCALE_H
="#include <locale.h>"
4340 /* The system does not provide the header <locale.h>. Take care yourself. */"
4344 if test -f $srcdir/po2tbl.
sed.
in; then
4345 if test "$CATOBJEXT" = ".cat"; then
4346 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4347 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4348 echo "configure:4349: checking for linux/version.h" >&5
4349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4350 echo $ac_n "(cached) $ac_c" 1>&6
4352 cat > conftest.
$ac_ext <<EOF
4353 #line 4354 "configure"
4354 #include "confdefs.h"
4355 #include <linux/version.h>
4357 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4358 { (eval echo configure
:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4359 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4360 if test -z "$ac_err"; then
4362 eval "ac_cv_header_$ac_safe=yes"
4365 echo "configure: failed program was:" >&5
4366 cat conftest.
$ac_ext >&5
4368 eval "ac_cv_header_$ac_safe=no"
4372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4373 echo "$ac_t""yes" 1>&6
4376 echo "$ac_t""no" 1>&6
4381 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4383 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4384 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4387 if test "$PACKAGE" = "gettext"; then
4397 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4403 if test -f $srcdir/po
/POTFILES.
in; then
4404 test -d po || mkdir po
4405 if test "x$srcdir" != "x."; then
4406 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4407 posrcprefix
="$srcdir/"
4409 posrcprefix
="../$srcdir/"
4415 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4416 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4420 # Permit host specific settings.
4421 .
${srcdir}/configure.
host
4424 # Find a good install program. We prefer a C program (faster),
4425 # so one script is as good as another. But avoid the broken or
4426 # incompatible versions:
4427 # SysV /etc/install, /usr/sbin/install
4428 # SunOS /usr/etc/install
4429 # IRIX /sbin/install
4431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4434 # ./install, which can be erroneously created by make from ./install.sh.
4435 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4436 echo "configure:4437: checking for a BSD compatible install" >&5
4437 if test -z "$INSTALL"; then
4438 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4441 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4442 for ac_dir
in $PATH; do
4443 # Account for people who put trailing slashes in PATH elements.
4445 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4447 # OSF1 and SCO ODT 3.0 have their own names for install.
4448 # Don't use installbsd from OSF since it installs stuff as root
4450 for ac_prog
in ginstall scoinst
install; do
4451 if test -f $ac_dir/$ac_prog; then
4452 if test $ac_prog = install &&
4453 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4454 # AIX install. It has an incompatible calling convention.
4457 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4468 if test "${ac_cv_path_install+set}" = set; then
4469 INSTALL
="$ac_cv_path_install"
4471 # As a last resort, use the slow shell script. We don't cache a
4472 # path for INSTALL within a source directory, because that will
4473 # break other packages using the cache if that directory is
4474 # removed, or if the path is relative.
4475 INSTALL
="$ac_install_sh"
4478 echo "$ac_t""$INSTALL" 1>&6
4480 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4481 # It thinks the first close brace ends the variable substitution.
4482 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4484 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4486 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4489 BFD_HOST_64BIT_LONG
=0
4490 BFD_HOST_LONG_LONG
=0
4491 BFD_HOST_64_BIT_DEFINED
=0
4495 echo $ac_n "checking for long long""... $ac_c" 1>&6
4496 echo "configure:4497: checking for long long" >&5
4497 if eval "test \"`echo '$''{'bfd_cv_has_long_long'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4500 cat > conftest.
$ac_ext <<EOF
4501 #line 4502 "configure"
4502 #include "confdefs.h"
4505 unsigned long long ll = 18446744073709551615ULL;
4508 if { (eval echo configure
:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510 bfd_cv_has_long_long
=yes
4512 echo "configure: failed program was:" >&5
4513 cat conftest.
$ac_ext >&5
4515 bfd_cv_has_long_long
=no
4520 echo "$ac_t""$bfd_cv_has_long_long" 1>&6
4521 if test $bfd_cv_has_long_long = yes; then
4522 BFD_HOST_LONG_LONG
=1
4523 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4524 echo "configure:4525: checking size of long long" >&5
4525 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4529 cat > conftest.
$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 #include "confdefs.h"
4533 #include <sys/types.h>
4537 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4540 if { (eval echo configure
:4541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4542 ac_cv_sizeof_long_long
=$ac_size
4544 echo "configure: failed program was:" >&5
4545 cat conftest.
$ac_ext >&5
4548 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
4553 if test x
$ac_cv_sizeof_long_long = x
; then
4554 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
4556 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4557 cat >> confdefs.h
<<EOF
4558 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4564 echo $ac_n "checking size of long""... $ac_c" 1>&6
4565 echo "configure:4566: checking size of long" >&5
4566 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include "confdefs.h"
4574 #include <sys/types.h>
4578 switch (0) case 0: case (sizeof (long) == $ac_size):;
4581 if { (eval echo configure
:4582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4583 ac_cv_sizeof_long
=$ac_size
4585 echo "configure: failed program was:" >&5
4586 cat conftest.
$ac_ext >&5
4589 if test x
$ac_cv_sizeof_long != x
; then break; fi
4594 if test x
$ac_cv_sizeof_long = x
; then
4595 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
4597 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4598 cat >> confdefs.h
<<EOF
4599 #define SIZEOF_LONG $ac_cv_sizeof_long
4603 if test "x${ac_cv_sizeof_long}" = "x8"; then
4605 BFD_HOST_64BIT_LONG
=1
4606 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE
="long"
4607 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE
="unsigned long"
4608 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
4609 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE
="long long"
4610 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE
="unsigned long long"
4613 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
4614 BFD_HOST_64_BIT_DEFINED
=1
4615 BFD_HOST_64_BIT
="${HOST_64BIT_TYPE}"
4616 BFD_HOST_U_64_BIT
="${HOST_U_64BIT_TYPE}"
4625 # Put a plausible default for CC_FOR_BUILD in Makefile.
4626 if test -z "$CC_FOR_BUILD"; then
4627 if test "x$cross_compiling" = "xno"; then
4628 CC_FOR_BUILD
='$(CC)'
4634 # Also set EXEEXT_FOR_BUILD.
4635 if test "x$cross_compiling" = "xno"; then
4636 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4638 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4639 echo "configure:4640: checking for build system executable suffix" >&5
4640 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4644 echo 'int main () { return 0; }' > conftest.c
4645 bfd_cv_build_exeext
=
4646 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4647 for file in conftest.
*; do
4649 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4650 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4654 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4657 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4659 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4663 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4665 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_hdr" >&5
4668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 cat > conftest.
$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4677 { (eval echo configure
:4678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4678 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4679 if test -z "$ac_err"; then
4681 eval "ac_cv_header_$ac_safe=yes"
4684 echo "configure: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4687 eval "ac_cv_header_$ac_safe=no"
4691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4692 echo "$ac_t""yes" 1>&6
4693 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4694 cat >> confdefs.h
<<EOF
4695 #define $ac_tr_hdr 1
4699 echo "$ac_t""no" 1>&6
4703 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4705 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4707 echo "configure:4708: checking for $ac_hdr" >&5
4708 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.
$ac_ext <<EOF
4712 #line 4713 "configure"
4713 #include "confdefs.h"
4716 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4717 { (eval echo configure
:4718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4718 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4719 if test -z "$ac_err"; then
4721 eval "ac_cv_header_$ac_safe=yes"
4724 echo "configure: failed program was:" >&5
4725 cat conftest.
$ac_ext >&5
4727 eval "ac_cv_header_$ac_safe=no"
4731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4732 echo "$ac_t""yes" 1>&6
4733 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4734 cat >> confdefs.h
<<EOF
4735 #define $ac_tr_hdr 1
4739 echo "$ac_t""no" 1>&6
4743 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4744 echo "configure:4745: checking whether time.h and sys/time.h may both be included" >&5
4745 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4746 echo $ac_n "(cached) $ac_c" 1>&6
4748 cat > conftest.
$ac_ext <<EOF
4749 #line 4750 "configure"
4750 #include "confdefs.h"
4751 #include <sys/types.h>
4752 #include <sys/time.h>
4758 if { (eval echo configure
:4759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4760 ac_cv_header_time
=yes
4762 echo "configure: failed program was:" >&5
4763 cat conftest.
$ac_ext >&5
4765 ac_cv_header_time
=no
4770 echo "$ac_t""$ac_cv_header_time" 1>&6
4771 if test $ac_cv_header_time = yes; then
4772 cat >> confdefs.h
<<\EOF
4773 #define TIME_WITH_SYS_TIME 1
4779 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4781 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4782 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4783 echo "configure:4784: checking for $ac_hdr that defines DIR" >&5
4784 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4785 echo $ac_n "(cached) $ac_c" 1>&6
4787 cat > conftest.
$ac_ext <<EOF
4788 #line 4789 "configure"
4789 #include "confdefs.h"
4790 #include <sys/types.h>
4796 if { (eval echo configure
:4797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4798 eval "ac_cv_header_dirent_$ac_safe=yes"
4800 echo "configure: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4803 eval "ac_cv_header_dirent_$ac_safe=no"
4807 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4808 echo "$ac_t""yes" 1>&6
4809 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4810 cat >> confdefs.h
<<EOF
4811 #define $ac_tr_hdr 1
4813 ac_header_dirent
=$ac_hdr; break
4815 echo "$ac_t""no" 1>&6
4818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4819 if test $ac_header_dirent = dirent.h
; then
4820 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4821 echo "configure:4822: checking for opendir in -ldir" >&5
4822 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4824 echo $ac_n "(cached) $ac_c" 1>&6
4826 ac_save_LIBS
="$LIBS"
4828 cat > conftest.
$ac_ext <<EOF
4829 #line 4830 "configure"
4830 #include "confdefs.h"
4831 /* Override any gcc2 internal prototype to avoid an error. */
4832 /* We use char because int might match the return type of a gcc2
4833 builtin and then its argument prototype would still apply. */
4840 if { (eval echo configure
:4841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4842 eval "ac_cv_lib_$ac_lib_var=yes"
4844 echo "configure: failed program was:" >&5
4845 cat conftest.
$ac_ext >&5
4847 eval "ac_cv_lib_$ac_lib_var=no"
4850 LIBS
="$ac_save_LIBS"
4853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4854 echo "$ac_t""yes" 1>&6
4857 echo "$ac_t""no" 1>&6
4861 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4862 echo "configure:4863: checking for opendir in -lx" >&5
4863 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 ac_save_LIBS
="$LIBS"
4869 cat > conftest.
$ac_ext <<EOF
4870 #line 4871 "configure"
4871 #include "confdefs.h"
4872 /* Override any gcc2 internal prototype to avoid an error. */
4873 /* We use char because int might match the return type of a gcc2
4874 builtin and then its argument prototype would still apply. */
4881 if { (eval echo configure
:4882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4883 eval "ac_cv_lib_$ac_lib_var=yes"
4885 echo "configure: failed program was:" >&5
4886 cat conftest.
$ac_ext >&5
4888 eval "ac_cv_lib_$ac_lib_var=no"
4891 LIBS
="$ac_save_LIBS"
4894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4898 echo "$ac_t""no" 1>&6
4903 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4906 echo "configure:4907: checking for $ac_func" >&5
4907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4910 cat > conftest.
$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* System header to define __stub macros and hopefully few prototypes,
4914 which can conflict with char $ac_func(); below. */
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4923 /* The GNU C library defines this for functions which it implements
4924 to always fail with ENOSYS. Some functions are actually named
4925 something starting with __ and the normal name is an alias. */
4926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4934 if { (eval echo configure
:4935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4936 eval "ac_cv_func_$ac_func=yes"
4938 echo "configure: failed program was:" >&5
4939 cat conftest.
$ac_ext >&5
4941 eval "ac_cv_func_$ac_func=no"
4946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4947 echo "$ac_t""yes" 1>&6
4948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4949 cat >> confdefs.h
<<EOF
4950 #define $ac_tr_func 1
4954 echo "$ac_t""no" 1>&6
4958 for ac_func
in strtoull
4960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4961 echo "configure:4962: checking for $ac_func" >&5
4962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4963 echo $ac_n "(cached) $ac_c" 1>&6
4965 cat > conftest.
$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* System header to define __stub macros and hopefully few prototypes,
4969 which can conflict with char $ac_func(); below. */
4971 /* Override any gcc2 internal prototype to avoid an error. */
4972 /* We use char because int might match the return type of a gcc2
4973 builtin and then its argument prototype would still apply. */
4978 /* The GNU C library defines this for functions which it implements
4979 to always fail with ENOSYS. Some functions are actually named
4980 something starting with __ and the normal name is an alias. */
4981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4989 if { (eval echo configure
:4990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4991 eval "ac_cv_func_$ac_func=yes"
4993 echo "configure: failed program was:" >&5
4994 cat conftest.
$ac_ext >&5
4996 eval "ac_cv_func_$ac_func=no"
5001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5004 cat >> confdefs.h
<<EOF
5005 #define $ac_tr_func 1
5009 echo "$ac_t""no" 1>&6
5016 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5017 cat >> confdefs.h
<<\EOF
5018 #define USE_BINARY_FOPEN 1
5023 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5024 echo "configure:5025: checking whether strstr must be declared" >&5
5025 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5028 cat > conftest.
$ac_ext <<EOF
5029 #line 5030 "configure"
5030 #include "confdefs.h"
5033 #ifdef HAVE_STRING_H
5036 #ifdef HAVE_STRINGS_H
5037 #include <strings.h>
5040 #ifdef HAVE_STDLIB_H
5043 #ifdef HAVE_UNISTD_H
5047 char *(*pfn) = (char *(*)) strstr
5050 if { (eval echo configure
:5051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5052 bfd_cv_decl_needed_strstr
=no
5054 echo "configure: failed program was:" >&5
5055 cat conftest.
$ac_ext >&5
5057 bfd_cv_decl_needed_strstr
=yes
5062 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5063 if test $bfd_cv_decl_needed_strstr = yes; then
5064 cat >> confdefs.h
<<\EOF
5065 #define NEED_DECLARATION_STRSTR 1
5070 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
5071 echo "configure:5072: checking whether malloc must be declared" >&5
5072 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 cat > conftest.
$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5080 #ifdef HAVE_STRING_H
5083 #ifdef HAVE_STRINGS_H
5084 #include <strings.h>
5087 #ifdef HAVE_STDLIB_H
5090 #ifdef HAVE_UNISTD_H
5094 char *(*pfn) = (char *(*)) malloc
5097 if { (eval echo configure
:5098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5099 bfd_cv_decl_needed_malloc
=no
5101 echo "configure: failed program was:" >&5
5102 cat conftest.
$ac_ext >&5
5104 bfd_cv_decl_needed_malloc
=yes
5109 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5110 if test $bfd_cv_decl_needed_malloc = yes; then
5111 cat >> confdefs.h
<<\EOF
5112 #define NEED_DECLARATION_MALLOC 1
5117 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5118 echo "configure:5119: checking whether realloc must be declared" >&5
5119 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 cat > conftest.
$ac_ext <<EOF
5123 #line 5124 "configure"
5124 #include "confdefs.h"
5127 #ifdef HAVE_STRING_H
5130 #ifdef HAVE_STRINGS_H
5131 #include <strings.h>
5134 #ifdef HAVE_STDLIB_H
5137 #ifdef HAVE_UNISTD_H
5141 char *(*pfn) = (char *(*)) realloc
5144 if { (eval echo configure
:5145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5146 bfd_cv_decl_needed_realloc
=no
5148 echo "configure: failed program was:" >&5
5149 cat conftest.
$ac_ext >&5
5151 bfd_cv_decl_needed_realloc
=yes
5156 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
5157 if test $bfd_cv_decl_needed_realloc = yes; then
5158 cat >> confdefs.h
<<\EOF
5159 #define NEED_DECLARATION_REALLOC 1
5164 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5165 echo "configure:5166: checking whether free must be declared" >&5
5166 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 cat > conftest.
$ac_ext <<EOF
5170 #line 5171 "configure"
5171 #include "confdefs.h"
5174 #ifdef HAVE_STRING_H
5177 #ifdef HAVE_STRINGS_H
5178 #include <strings.h>
5181 #ifdef HAVE_STDLIB_H
5184 #ifdef HAVE_UNISTD_H
5188 char *(*pfn) = (char *(*)) free
5191 if { (eval echo configure
:5192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5193 bfd_cv_decl_needed_free
=no
5195 echo "configure: failed program was:" >&5
5196 cat conftest.
$ac_ext >&5
5198 bfd_cv_decl_needed_free
=yes
5203 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5204 if test $bfd_cv_decl_needed_free = yes; then
5205 cat >> confdefs.h
<<\EOF
5206 #define NEED_DECLARATION_FREE 1
5211 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5212 echo "configure:5213: checking whether getenv must be declared" >&5
5213 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 cat > conftest.
$ac_ext <<EOF
5217 #line 5218 "configure"
5218 #include "confdefs.h"
5221 #ifdef HAVE_STRING_H
5224 #ifdef HAVE_STRINGS_H
5225 #include <strings.h>
5228 #ifdef HAVE_STDLIB_H
5231 #ifdef HAVE_UNISTD_H
5235 char *(*pfn) = (char *(*)) getenv
5238 if { (eval echo configure
:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5240 bfd_cv_decl_needed_getenv
=no
5242 echo "configure: failed program was:" >&5
5243 cat conftest.
$ac_ext >&5
5245 bfd_cv_decl_needed_getenv
=yes
5250 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5251 if test $bfd_cv_decl_needed_getenv = yes; then
5252 cat >> confdefs.h
<<\EOF
5253 #define NEED_DECLARATION_GETENV 1
5259 # If we are configured native, pick a core file support file.
5263 if test "${target}" = "${host}"; then
5265 alpha
*-*-freebsd* | alpha
*-*-kfreebsd*-gnu)
5268 alpha
*-*-linux-gnu*)
5269 COREFILE
=trad-core.lo
5270 TRAD_HEADER
='"hosts/alphalinux.h"'
5272 alpha
*-*-netbsd* | alpha
*-*-openbsd*)
5273 COREFILE
=netbsd-core.lo
5275 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5276 arm-
*-freebsd* | arm-
*-kfreebsd*-gnu)
5278 arm-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5279 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5280 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5281 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5282 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5283 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5284 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5286 COREFILE
=trad-core.lo
5287 TRAD_HEADER
='"hosts/i370linux.h"'
5290 i
[3-7]86-sequent-bsd*)
5291 COREFILE
=trad-core.lo
5292 TRAD_HEADER
='"hosts/symmetry.h"'
5294 i
[3-7]86-sequent-sysv4*) ;;
5295 i
[3-7]86-sequent-sysv*)
5296 COREFILE
=trad-core.lo
5297 TRAD_HEADER
='"hosts/symmetry.h"'
5302 i
[3-7]86-*-bsd* | i
[3-7]86-*-freebsd[123] | i
[3-7]86-*-freebsd[123]\.
* | i
[3-7]86-*-freebsd4\.
[01234]* | i
[3-7]86-*-freebsd*aout
*)
5303 COREFILE
=trad-core.lo
5304 TRAD_HEADER
='"hosts/i386bsd.h"'
5306 i
[3-7]86-*-freebsd* | i
[3-7]86-*-kfreebsd*-gnu)
5308 TRAD_HEADER
='"hosts/i386bsd.h"'
5310 i
[3-7]86-*-netbsd* | i
[3-7]86-*-knetbsd*-gnu | i
[3-7]86-*-openbsd*)
5311 COREFILE
=netbsd-core.lo
5313 i
[3-7]86-esix-sysv3*)
5314 COREFILE
=trad-core.lo
5315 TRAD_HEADER
='"hosts/esix.h"'
5317 i
[3-7]86-*-sco3.2v5
*)
5318 COREFILE
=sco5-core.lo
5320 i
[3-7]86-*-sco* | i
[3-7]86-*-isc*)
5321 COREFILE
=trad-core.lo
5322 TRAD_HEADER
='"hosts/i386sco.h"'
5325 COREFILE
=trad-core.lo
5326 TRAD_HEADER
='"hosts/i386mach3.h"'
5328 i
[3-7]86-*-linux-gnu*)
5329 COREFILE
=trad-core.lo
5330 TRAD_HEADER
='"hosts/i386linux.h"'
5332 i
[3-7]86-*-isc*) COREFILE
=trad-core.lo
;;
5333 i
[3-7]86-*-aix*) COREFILE
=aix386-core.lo
;;
5334 i860-
*-mach3* | i860-
*-osf1*)
5335 COREFILE
=trad-core.lo
5336 TRAD_HEADER
='"hosts/i860mach3.h"'
5338 mips-
*-netbsd* | mips
*-*-openbsd*)
5339 COREFILE
=netbsd-core.lo
5342 COREFILE
=trad-core.lo
5343 TRAD_HEADER
='"hosts/decstation.h"'
5345 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5346 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5347 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5349 mips-
*-sysv* | mips-
*-riscos*)
5350 COREFILE
=trad-core.lo
5351 TRAD_HEADER
='"hosts/riscos.h"'
5354 COREFILE
=trad-core.lo
5355 TRAD_HEADER
='"hosts/news-mips.h"'
5358 COREFILE
=trad-core.lo
5359 TRAD_HEADER
='"hosts/dpx2.h"'
5361 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5363 COREFILE
=trad-core.lo
5364 TRAD_HEADER
='"hosts/hp300bsd.h"'
5367 COREFILE
=trad-core.lo
5368 TRAD_HEADER
='"hosts/m68klinux.h"'
5370 m68
*-motorola-sysv*)
5371 COREFILE
=trad-core.lo
5372 TRAD_HEADER
='"hosts/delta68.h"'
5375 COREFILE
=trad-core.lo
5376 TRAD_HEADER
='"hosts/news.h"'
5378 m68
*-*-netbsd* | m68
*-*-openbsd*)
5379 COREFILE
=netbsd-core.lo
5382 COREFILE
=trad-core.lo
5383 TRAD_HEADER
='"hosts/m68kaux.h"'
5387 m88
*-motorola-sysv*)
5388 COREFILE
=ptrace-core.lo
5391 COREFILE
=trad-core.lo
5392 TRAD_HEADER
='"hosts/m88kmach3.h"'
5395 COREFILE
=trad-core.lo
5396 TRAD_HEADER
='"hosts/pc532mach.h"'
5398 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5399 COREFILE
=netbsd-core.lo
5402 COREFILE
=lynx-core.lo
5404 rs6000-
*-aix5.
* | powerpc-
*-aix5.
*)
5405 COREFILE
=rs6000-core.lo
5406 COREFLAG
="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5408 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5409 COREFILE
=rs6000-core.lo
5410 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5411 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5412 # have c_impl as a member of struct core_dumpx
5413 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5414 echo "configure:5415: checking for c_impl in struct core_dumpx" >&5
5415 cat > conftest.
$ac_ext <<EOF
5416 #line 5417 "configure"
5417 #include "confdefs.h"
5420 struct core_dumpx c; c.c_impl = 0;
5423 if { (eval echo configure
:5424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5425 cat >> confdefs.h
<<\EOF
5426 #define HAVE_ST_C_IMPL 1
5429 echo "$ac_t""yes" 1>&6
5431 echo "configure: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5434 echo "$ac_t""no" 1>&6
5438 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5439 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5440 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5441 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5443 powerpc-
*-freebsd* | powerpc-
*-kfreebsd*-gnu)
5445 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5446 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5447 s390
*-*-*) COREFILE
=trad-core.lo
;;
5448 sh
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5449 sparc-
*-netbsd* | sparc
*-*-openbsd*)
5450 COREFILE
=netbsd-core.lo
5453 COREFILE
=trad-core.lo
5454 TRAD_HEADER
='"hosts/tahoe.h"'
5456 vax-
*-netbsd* | vax-
*-openbsd*)
5457 COREFILE
=netbsd-core.lo
5460 COREFILE
=trad-core.lo
5461 TRAD_HEADER
='"hosts/vaxult2.h"'
5464 COREFILE
=trad-core.lo
5465 TRAD_HEADER
='"hosts/vaxult2.h"'
5468 COREFILE
=trad-core.lo
5469 TRAD_HEADER
='"hosts/vaxlinux.h"'
5472 COREFILE
=trad-core.lo
5473 TRAD_HEADER
='"hosts/vaxbsd.h"'
5475 x86_64-
*-netbsd* | x86_64-
*-openbsd*)
5476 COREFILE
=netbsd-core.lo
5481 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5482 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5483 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5484 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5485 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5486 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5487 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5488 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5489 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5490 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5491 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5494 # ELF corefile support has several flavors, but all of
5495 # them use something called <sys/procfs.h>
5496 for ac_hdr
in sys
/procfs.h
5498 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5500 echo "configure:5501: checking for $ac_hdr" >&5
5501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5502 echo $ac_n "(cached) $ac_c" 1>&6
5504 cat > conftest.
$ac_ext <<EOF
5505 #line 5506 "configure"
5506 #include "confdefs.h"
5509 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5510 { (eval echo configure
:5511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5511 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5512 if test -z "$ac_err"; then
5514 eval "ac_cv_header_$ac_safe=yes"
5517 echo "configure: failed program was:" >&5
5518 cat conftest.
$ac_ext >&5
5520 eval "ac_cv_header_$ac_safe=no"
5524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5525 echo "$ac_t""yes" 1>&6
5526 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5527 cat >> confdefs.h
<<EOF
5528 #define $ac_tr_hdr 1
5532 echo "$ac_t""no" 1>&6
5536 if test "$ac_cv_header_sys_procfs_h" = yes; then
5537 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5538 echo "configure:5539: checking for prstatus_t in sys/procfs.h" >&5
5539 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5540 echo $ac_n "(cached) $ac_c" 1>&6
5542 cat > conftest.
$ac_ext <<EOF
5543 #line 5544 "configure"
5544 #include "confdefs.h"
5547 #include <sys/procfs.h>
5552 if { (eval echo configure
:5553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5554 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5556 echo "configure: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5559 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5565 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5566 cat >> confdefs.h
<<\EOF
5567 #define HAVE_PRSTATUS_T 1
5571 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5573 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5574 echo "configure:5575: checking for prstatus32_t in sys/procfs.h" >&5
5575 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5576 echo $ac_n "(cached) $ac_c" 1>&6
5578 cat > conftest.
$ac_ext <<EOF
5579 #line 5580 "configure"
5580 #include "confdefs.h"
5583 #include <sys/procfs.h>
5588 if { (eval echo configure
:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5590 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5592 echo "configure: failed program was:" >&5
5593 cat conftest.
$ac_ext >&5
5595 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5601 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5602 cat >> confdefs.h
<<\EOF
5603 #define HAVE_PRSTATUS32_T 1
5607 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5609 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5610 echo "configure:5611: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5611 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5612 echo $ac_n "(cached) $ac_c" 1>&6
5614 cat > conftest.
$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5619 #include <sys/procfs.h>
5621 prstatus_t avar; void* aref = (void*) &avar.pr_who
5624 if { (eval echo configure
:5625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5626 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5628 echo "configure: failed program was:" >&5
5629 cat conftest.
$ac_ext >&5
5631 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5637 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5638 cat >> confdefs.h
<<\EOF
5639 #define HAVE_PRSTATUS_T_PR_WHO 1
5643 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5645 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5646 echo "configure:5647: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5647 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5648 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.
$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5655 #include <sys/procfs.h>
5657 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5660 if { (eval echo configure
:5661: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5662 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5664 echo "configure: failed program was:" >&5
5665 cat conftest.
$ac_ext >&5
5667 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5673 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5674 cat >> confdefs.h
<<\EOF
5675 #define HAVE_PRSTATUS32_T_PR_WHO 1
5679 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5681 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5682 echo "configure:5683: checking for pstatus_t in sys/procfs.h" >&5
5683 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5684 echo $ac_n "(cached) $ac_c" 1>&6
5686 cat > conftest.
$ac_ext <<EOF
5687 #line 5688 "configure"
5688 #include "confdefs.h"
5691 #include <sys/procfs.h>
5696 if { (eval echo configure
:5697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5698 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5700 echo "configure: failed program was:" >&5
5701 cat conftest.
$ac_ext >&5
5703 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5709 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5710 cat >> confdefs.h
<<\EOF
5711 #define HAVE_PSTATUS_T 1
5715 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5717 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5718 echo "configure:5719: checking for pxstatus_t in sys/procfs.h" >&5
5719 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5720 echo $ac_n "(cached) $ac_c" 1>&6
5722 cat > conftest.
$ac_ext <<EOF
5723 #line 5724 "configure"
5724 #include "confdefs.h"
5727 #include <sys/procfs.h>
5732 if { (eval echo configure
:5733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5734 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5736 echo "configure: failed program was:" >&5
5737 cat conftest.
$ac_ext >&5
5739 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5745 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5746 cat >> confdefs.h
<<\EOF
5747 #define HAVE_PXSTATUS_T 1
5751 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5753 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5754 echo "configure:5755: checking for pstatus32_t in sys/procfs.h" >&5
5755 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5758 cat > conftest.
$ac_ext <<EOF
5759 #line 5760 "configure"
5760 #include "confdefs.h"
5763 #include <sys/procfs.h>
5768 if { (eval echo configure
:5769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5770 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5772 echo "configure: failed program was:" >&5
5773 cat conftest.
$ac_ext >&5
5775 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5781 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5782 cat >> confdefs.h
<<\EOF
5783 #define HAVE_PSTATUS32_T 1
5787 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5789 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5790 echo "configure:5791: checking for prpsinfo_t in sys/procfs.h" >&5
5791 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5792 echo $ac_n "(cached) $ac_c" 1>&6
5794 cat > conftest.
$ac_ext <<EOF
5795 #line 5796 "configure"
5796 #include "confdefs.h"
5799 #include <sys/procfs.h>
5804 if { (eval echo configure
:5805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5806 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5808 echo "configure: failed program was:" >&5
5809 cat conftest.
$ac_ext >&5
5811 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5817 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5818 cat >> confdefs.h
<<\EOF
5819 #define HAVE_PRPSINFO_T 1
5823 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5825 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5826 echo "configure:5827: checking for prpsinfo32_t in sys/procfs.h" >&5
5827 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5828 echo $ac_n "(cached) $ac_c" 1>&6
5830 cat > conftest.
$ac_ext <<EOF
5831 #line 5832 "configure"
5832 #include "confdefs.h"
5835 #include <sys/procfs.h>
5840 if { (eval echo configure
:5841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5842 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5844 echo "configure: failed program was:" >&5
5845 cat conftest.
$ac_ext >&5
5847 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5853 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5854 cat >> confdefs.h
<<\EOF
5855 #define HAVE_PRPSINFO32_T 1
5859 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5861 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5862 echo "configure:5863: checking for psinfo_t in sys/procfs.h" >&5
5863 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5864 echo $ac_n "(cached) $ac_c" 1>&6
5866 cat > conftest.
$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5871 #include <sys/procfs.h>
5876 if { (eval echo configure
:5877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5878 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5880 echo "configure: failed program was:" >&5
5881 cat conftest.
$ac_ext >&5
5883 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5889 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5890 cat >> confdefs.h
<<\EOF
5891 #define HAVE_PSINFO_T 1
5895 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5897 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5898 echo "configure:5899: checking for psinfo32_t in sys/procfs.h" >&5
5899 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5900 echo $ac_n "(cached) $ac_c" 1>&6
5902 cat > conftest.
$ac_ext <<EOF
5903 #line 5904 "configure"
5904 #include "confdefs.h"
5907 #include <sys/procfs.h>
5912 if { (eval echo configure
:5913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5914 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5916 echo "configure: failed program was:" >&5
5917 cat conftest.
$ac_ext >&5
5919 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5925 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5926 cat >> confdefs.h
<<\EOF
5927 #define HAVE_PSINFO32_T 1
5931 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5933 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5934 echo "configure:5935: checking for lwpstatus_t in sys/procfs.h" >&5
5935 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.
$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5943 #include <sys/procfs.h>
5948 if { (eval echo configure
:5949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5950 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5952 echo "configure: failed program was:" >&5
5953 cat conftest.
$ac_ext >&5
5955 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5961 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5962 cat >> confdefs.h
<<\EOF
5963 #define HAVE_LWPSTATUS_T 1
5967 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5969 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5970 echo "configure:5971: checking for lwpxstatus_t in sys/procfs.h" >&5
5971 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5972 echo $ac_n "(cached) $ac_c" 1>&6
5974 cat > conftest.
$ac_ext <<EOF
5975 #line 5976 "configure"
5976 #include "confdefs.h"
5979 #include <sys/procfs.h>
5984 if { (eval echo configure
:5985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5986 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5988 echo "configure: failed program was:" >&5
5989 cat conftest.
$ac_ext >&5
5991 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5997 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5998 cat >> confdefs.h
<<\EOF
5999 #define HAVE_LWPXSTATUS_T 1
6003 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
6005 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
6006 echo "configure:6007: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
6007 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
6008 echo $ac_n "(cached) $ac_c" 1>&6
6010 cat > conftest.
$ac_ext <<EOF
6011 #line 6012 "configure"
6012 #include "confdefs.h"
6015 #include <sys/procfs.h>
6017 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
6020 if { (eval echo configure
:6021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6022 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
6024 echo "configure: failed program was:" >&5
6025 cat conftest.
$ac_ext >&5
6027 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
6033 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
6034 cat >> confdefs.h
<<\EOF
6035 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
6039 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
6041 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
6042 echo "configure:6043: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
6043 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
6044 echo $ac_n "(cached) $ac_c" 1>&6
6046 cat > conftest.
$ac_ext <<EOF
6047 #line 6048 "configure"
6048 #include "confdefs.h"
6051 #include <sys/procfs.h>
6053 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
6056 if { (eval echo configure
:6057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6058 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
6060 echo "configure: failed program was:" >&5
6061 cat conftest.
$ac_ext >&5
6063 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
6069 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
6070 cat >> confdefs.h
<<\EOF
6071 #define HAVE_LWPSTATUS_T_PR_REG 1
6075 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
6077 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6078 echo "configure:6079: checking for win32_pstatus_t in sys/procfs.h" >&5
6079 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 cat > conftest.
$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6087 #include <sys/procfs.h>
6089 win32_pstatus_t avar
6092 if { (eval echo configure
:6093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6094 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
6096 echo "configure: failed program was:" >&5
6097 cat conftest.
$ac_ext >&5
6099 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
6105 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6106 cat >> confdefs.h
<<\EOF
6107 #define HAVE_WIN32_PSTATUS_T 1
6111 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
6117 if test -n "$TRAD_HEADER"; then
6118 cat >> confdefs.h
<<EOF
6119 #define TRAD_HEADER $TRAD_HEADER
6124 # Horrible hacks to build DLLs on Windows.
6129 if test "$enable_shared" = "yes"; then
6130 WIN32LDFLAGS
="-no-undefined"
6131 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
6135 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
6139 # Linux/MIPS uses PIC by default.
6140 if test "$enable_shared" = "yes"; then
6141 WIN32LIBADD
="-L../libiberty -liberty"
6145 x
=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
6146 if test -n "$x"; then
6147 WIN32LIBADD
="-L../libiberty/pic -liberty"
6158 # Canonicalize the secondary target names.
6159 if test -n "$enable_targets" ; then
6160 for targ
in `echo $enable_targets | sed 's/,/ /g'`
6162 result
=`$ac_config_sub $targ 2>/dev/null`
6163 if test -n "$result" ; then
6164 canon_targets
="$canon_targets $result"
6166 # Allow targets that config.sub doesn't recognize, like "all".
6167 canon_targets
="$canon_targets $targ"
6178 for targ
in $target $canon_targets
6180 if test "x$targ" = "xall"; then
6182 assocvecs
="$assocvecs $targ_defvec $targ_selvecs"
6184 .
$srcdir/config.bfd
6185 if test "x$targ" = "x$target"; then
6188 selvecs
="$selvecs $targ_defvec $targ_selvecs"
6189 selarchs
="$selarchs $targ_archs"
6190 TDEFINES
="$TDEFINES $targ_cflags"
6195 # This processing still needs to be done if we're to decide properly whether
6196 # 64-bit support needs to be compiled in. Currently, it will be included if
6197 # the default or any other explicitly requested target requires it; it
6198 # will not be included on a 32-bit host if no 64-bit target is requested, and
6199 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6202 # uniq the default and selected vectors in all the configured targets.
6204 for i
in $selvecs ; do
6213 # uniq the associated vectors in all the configured targets.
6215 for i
in $assocvecs ; do
6224 # uniq the architectures in all the configured targets.
6226 for i
in $selarchs ; do
6234 # Target backend .o files.
6237 elf
="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6243 # This list is alphabetized to make it easy to compare
6244 # with the two vector lists in targets.c. For the same reason,
6245 # use one entry per line, even though this leads to long lines.
6246 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
6247 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
6248 aix5coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6249 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
6250 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6251 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6252 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
6253 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6254 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6255 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6256 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6257 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6258 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6259 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
6260 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6261 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6262 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6263 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6264 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
6265 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
6266 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6267 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size
=64 ;;
6268 bfd_elf32_am33lin_vec
) tb
="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6269 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
6270 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6271 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6272 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6273 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6274 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6275 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6276 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
6277 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
6278 bfd_elf32_dlx_big_vec
) tb
="$tb elf32-dlx.lo elf32.lo $elf" ;;
6279 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
6280 bfd_elf32_frv_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6281 bfd_elf32_frvfdpic_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6282 bfd_elf32_h8300_vec
) tb
="$tb elf32-h8300.lo elf32.lo $elf" ;;
6283 bfd_elf32_hppa_linux_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6284 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6285 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
6286 bfd_elf32_i386_freebsd_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6287 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6288 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6289 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6290 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
6291 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
6292 bfd_elf32_ia64_hpux_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf";;
6293 bfd_elf32_ip2k_vec
) tb
="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6294 bfd_elf32_iq2000_vec
) tb
="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6295 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6296 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6297 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6298 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6299 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6300 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6301 bfd_elf32_m32rle_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6302 bfd_elf32_m32rlin_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6303 bfd_elf32_m32rlelin_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6304 bfd_elf32_zpu_vec
) tb
="$tb elf32-zpu.lo elf32.lo $elf" ;;
6305 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6306 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6307 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
6308 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
6309 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6310 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6311 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
6312 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
6313 bfd_elf32_msp430_vec
) tb
="$tb elf32-msp430.lo elf32.lo $elf" ;;
6314 bfd_elf32_nbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6315 bfd_elf32_nlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6316 bfd_elf32_ntradbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6317 bfd_elf32_ntradlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6318 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6319 bfd_elf32_or32_big_vec
) tb
="$tb elf32-or32.lo elf32.lo $elf" ;;
6320 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6321 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6322 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6323 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6324 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
6325 # FIXME: We include cofflink.lo not because it's needed for
6326 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6327 # which needs it but does not list it. Should be fixed in right place.
6328 bfd_elf32_sh64_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6329 bfd_elf32_sh64l_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6330 bfd_elf32_sh64lin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6331 bfd_elf32_sh64blin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6332 bfd_elf32_sh64lnbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6333 bfd_elf32_sh64nbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6334 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6335 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6336 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6337 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6338 bfd_elf32_shlnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6339 bfd_elf32_shnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6340 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
6341 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6342 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6343 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6344 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
6345 bfd_elf32_vax_vec
) tb
="$tb elf32-vax.lo elf32.lo $elf" ;;
6346 bfd_elf32_xstormy16_vec
) tb
="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6347 bfd_elf32_xtensa_le_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6348 bfd_elf32_xtensa_be_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6349 bfd_elf64_alpha_freebsd_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6350 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6351 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6352 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6353 bfd_elf64_hppa_linux_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6354 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6355 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6356 bfd_elf64_ia64_hpux_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6357 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6358 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6359 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6360 bfd_elf64_mmix_vec
) tb
="$tb elf64-mmix.lo elf64.lo $elf" target_size
=64 ;;
6361 bfd_elf64_powerpc_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6362 bfd_elf64_powerpcle_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size
=64 ;;
6363 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"; target_size
=64 ;;
6364 bfd_elf64_sh64_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6365 bfd_elf64_sh64l_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6366 bfd_elf64_sh64lin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6367 bfd_elf64_sh64blin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6368 bfd_elf64_sh64lnbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6369 bfd_elf64_sh64nbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6370 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"; target_size
=64 ;;
6371 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6372 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6373 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"; target_size
=64 ;;
6374 bfd_mmo_vec
) tb
="$tb mmo.lo" target_size
=64 ;;
6375 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6376 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6377 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6378 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6379 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6380 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"; target_size
=64 ;;
6381 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6382 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6383 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6384 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size
=64 ;;
6385 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6386 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6387 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6388 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6389 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6390 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6391 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6392 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6393 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6394 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6395 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6396 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6397 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6398 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6399 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6400 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6401 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6402 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6403 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6404 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6405 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6406 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6407 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6408 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6409 ieee_vec
) tb
="$tb ieee.lo" ;;
6410 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6411 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6412 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6413 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6414 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6415 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6416 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6417 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6418 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6419 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6420 m88kmach3_vec
) tb
="$tb m88kmach3.lo aout32.lo" ;;
6421 mach_o_be_vec
) tb
="$tb mach-o.lo" ;;
6422 mach_o_le_vec
) tb
="$tb mach-o.lo" ;;
6423 mach_o_fat_vec
) tb
="$tb mach-o.lo" ;;
6424 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6425 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6426 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6427 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6428 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6429 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6430 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6431 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size
=64 ;;
6432 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6433 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6434 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6435 or32coff_big_vec
) tb
="$tb coff-or32.lo cofflink.lo" ;;
6436 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6437 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6438 pef_vec
) tb
="$tb pef.lo" ;;
6439 pef_xlib_vec
) tb
="$tb pef.lo" ;;
6440 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6441 pmac_xcoff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6442 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6443 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6444 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6445 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6446 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6447 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6448 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6449 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6450 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6451 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6452 som_vec
) tb
="$tb som.lo" ;;
6453 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6454 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6455 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6456 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6457 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6458 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6459 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6460 sym_vec
) tb
="$tb xsym.lo" ;;
6461 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6462 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6463 tic4x_coff0_vec
) tb
="$tb coff-tic4x.lo" ;;
6464 tic4x_coff0_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6465 tic4x_coff1_vec
) tb
="$tb coff-tic4x.lo" ;;
6466 tic4x_coff1_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6467 tic4x_coff2_vec
) tb
="$tb coff-tic4x.lo" ;;
6468 tic4x_coff2_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6469 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6470 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6471 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6472 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6473 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6474 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6475 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6476 vaxnetbsd_vec
) tb
="$tb vaxnetbsd.lo aout32.lo" ;;
6477 vax1knetbsd_vec
) tb
="$tb vax1knetbsd.lo aout32.lo" ;;
6478 vaxbsd_vec
) tb
="$tb vaxbsd.lo aout32.lo" ;;
6479 versados_vec
) tb
="$tb versados.lo" ;;
6480 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size
=64 ;;
6481 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6482 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6483 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6484 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6486 # These appear out of order in targets.c
6487 srec_vec
) tb
="$tb srec.lo" ;;
6488 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6489 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6490 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6491 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6494 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6497 if test ${target_size} = 64; then
6500 if test x
"${vec}" = x
"${defvec}"; then
6501 bfd_default_target_size
=${target_size}
6505 # Target architecture .o files.
6506 # A couple of CPUs use shorter file names to avoid problems on DOS
6508 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6510 # Weed out duplicate .o files.
6532 if test x
${all_targets} = xtrue
; then
6533 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6534 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6538 test -n "$assocvecs" &&
6539 assocvecs
=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6540 else # all_targets is true
6541 # Only set these if they will be nonempty, for the clever echo.
6544 test -n "$selvecs" &&
6545 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6546 test -n "$selvecs" &&
6547 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6548 test -n "$selarchs" &&
6549 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6550 fi # all_targets is true
6552 case ${host64}-${target64}-${want64} in
6555 bfd_libs
='$(BFD64_LIBS) $(BFD32_LIBS)'
6556 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6557 if test $BFD_HOST_64_BIT_DEFINED = 0; then
6558 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6559 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6561 if test -n "$GCC" ; then
6563 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6564 echo "configure:6565: checking for gcc version with buggy 64-bit support" >&5
6565 # Add more tests for gcc versions with non-working 64-bit support here.
6566 cat > conftest.
$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 :__GNUC__:__GNUC_MINOR__:__i386__:
6571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6572 egrep ": 2 : 91 : 1 :" >/dev
/null
2>&1; then
6575 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6578 echo "$ac_t""no" 1>&6
6582 if test $bad_64bit_gcc = yes ; then
6583 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6589 bfd_libs
='$(BFD32_LIBS)'
6590 all_backends
='$(BFD32_BACKENDS)'
6601 # Determine the host dependant file_ptr a.k.a. off_t type. In order
6602 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
6603 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
6604 # Hopefully a reasonable assumption since fseeko et.al. should be
6605 # upward compatible.
6606 for ac_func
in ftello ftello64 fseeko fseeko64
6608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6609 echo "configure:6610: checking for $ac_func" >&5
6610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 cat > conftest.
$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* System header to define __stub macros and hopefully few prototypes,
6617 which can conflict with char $ac_func(); below. */
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 /* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6626 /* The GNU C library defines this for functions which it implements
6627 to always fail with ENOSYS. Some functions are actually named
6628 something starting with __ and the normal name is an alias. */
6629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6637 if { (eval echo configure
:6638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6639 eval "ac_cv_func_$ac_func=yes"
6641 echo "configure: failed program was:" >&5
6642 cat conftest.
$ac_ext >&5
6644 eval "ac_cv_func_$ac_func=no"
6649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6650 echo "$ac_t""yes" 1>&6
6651 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6652 cat >> confdefs.h
<<EOF
6653 #define $ac_tr_func 1
6657 echo "$ac_t""no" 1>&6
6661 if test x
"$ac_cv_func_ftello" = xyes
-a x
"$ac_cv_func_fseeko" = xyes
; then
6662 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
6663 echo "configure:6664: checking size of off_t" >&5
6664 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
6668 cat > conftest.
$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 #include "confdefs.h"
6672 #include <sys/types.h>
6676 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
6679 if { (eval echo configure
:6680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6681 ac_cv_sizeof_off_t
=$ac_size
6683 echo "configure: failed program was:" >&5
6684 cat conftest.
$ac_ext >&5
6687 if test x
$ac_cv_sizeof_off_t != x
; then break; fi
6692 if test x
$ac_cv_sizeof_off_t = x
; then
6693 { echo "configure: error: cannot determine a size for off_t" 1>&2; exit 1; }
6695 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
6696 cat >> confdefs.h
<<EOF
6697 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
6702 echo $ac_n "checking file_ptr type""... $ac_c" 1>&6
6703 echo "configure:6704: checking file_ptr type" >&5
6705 bfd_ufile_ptr
="unsigned long"
6706 if test x
"$ac_cv_func_ftello64" = xyes
-a x
"$ac_cv_func_fseeko64" = xyes \
6707 -o x
"${ac_cv_sizeof_off_t}" = x8
; then
6708 bfd_file_ptr
=BFD_HOST_64_BIT
6709 bfd_ufile_ptr
=BFD_HOST_U_64_BIT
6711 echo "$ac_t""$bfd_file_ptr" 1>&6
6717 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6718 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6719 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6720 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6721 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6724 for ac_hdr
in unistd.h
6726 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6728 echo "configure:6729: checking for $ac_hdr" >&5
6729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 cat > conftest.
$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6737 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6738 { (eval echo configure
:6739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6739 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6740 if test -z "$ac_err"; then
6742 eval "ac_cv_header_$ac_safe=yes"
6745 echo "configure: failed program was:" >&5
6746 cat conftest.
$ac_ext >&5
6748 eval "ac_cv_header_$ac_safe=no"
6752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6753 echo "$ac_t""yes" 1>&6
6754 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6755 cat >> confdefs.h
<<EOF
6756 #define $ac_tr_hdr 1
6760 echo "$ac_t""no" 1>&6
6764 for ac_func
in getpagesize
6766 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6767 echo "configure:6768: checking for $ac_func" >&5
6768 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6771 cat > conftest.
$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char $ac_func(); below. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6784 /* The GNU C library defines this for functions which it implements
6785 to always fail with ENOSYS. Some functions are actually named
6786 something starting with __ and the normal name is an alias. */
6787 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6795 if { (eval echo configure
:6796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6797 eval "ac_cv_func_$ac_func=yes"
6799 echo "configure: failed program was:" >&5
6800 cat conftest.
$ac_ext >&5
6802 eval "ac_cv_func_$ac_func=no"
6807 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6808 echo "$ac_t""yes" 1>&6
6809 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6810 cat >> confdefs.h
<<EOF
6811 #define $ac_tr_func 1
6815 echo "$ac_t""no" 1>&6
6819 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6820 echo "configure:6821: checking for working mmap" >&5
6821 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6822 echo $ac_n "(cached) $ac_c" 1>&6
6824 if test "$cross_compiling" = yes; then
6825 ac_cv_func_mmap_fixed_mapped
=no
6827 cat > conftest.
$ac_ext <<EOF
6828 #line 6829 "configure"
6829 #include "confdefs.h"
6831 /* Thanks to Mike Haertel and Jim Avera for this test.
6832 Here is a matrix of mmap possibilities:
6833 mmap private not fixed
6834 mmap private fixed at somewhere currently unmapped
6835 mmap private fixed at somewhere already mapped
6836 mmap shared not fixed
6837 mmap shared fixed at somewhere currently unmapped
6838 mmap shared fixed at somewhere already mapped
6839 For private mappings, we should verify that changes cannot be read()
6840 back from the file, nor mmap's back from the file at a different
6841 address. (There have been systems where private was not correctly
6842 implemented like the infamous i386 svr4.0, and systems where the
6843 VM page cache was not coherent with the filesystem buffer cache
6844 like early versions of FreeBSD and possibly contemporary NetBSD.)
6845 For shared mappings, we should conversely verify that changes get
6846 propogated back to all the places they're supposed to be.
6848 Grep wants private fixed already mapped.
6849 The main things grep needs to know about mmap are:
6850 * does it exist and is it safe to write into the mmap'd area
6851 * how to use it (BSD variants) */
6852 #include <sys/types.h>
6854 #include <sys/mman.h>
6856 /* This mess was copied from the GNU getpagesize.h. */
6857 #ifndef HAVE_GETPAGESIZE
6858 # ifdef HAVE_UNISTD_H
6859 # include <unistd.h>
6862 /* Assume that all systems that can run configure have sys/param.h. */
6863 # ifndef HAVE_SYS_PARAM_H
6864 # define HAVE_SYS_PARAM_H 1
6867 # ifdef _SC_PAGESIZE
6868 # define getpagesize() sysconf(_SC_PAGESIZE)
6869 # else /* no _SC_PAGESIZE */
6870 # ifdef HAVE_SYS_PARAM_H
6871 # include <sys/param.h>
6872 # ifdef EXEC_PAGESIZE
6873 # define getpagesize() EXEC_PAGESIZE
6874 # else /* no EXEC_PAGESIZE */
6876 # define getpagesize() NBPG * CLSIZE
6879 # endif /* no CLSIZE */
6880 # else /* no NBPG */
6882 # define getpagesize() NBPC
6883 # else /* no NBPC */
6885 # define getpagesize() PAGESIZE
6886 # endif /* PAGESIZE */
6887 # endif /* no NBPC */
6888 # endif /* no NBPG */
6889 # endif /* no EXEC_PAGESIZE */
6890 # else /* no HAVE_SYS_PARAM_H */
6891 # define getpagesize() 8192 /* punt totally */
6892 # endif /* no HAVE_SYS_PARAM_H */
6893 # endif /* no _SC_PAGESIZE */
6895 #endif /* no HAVE_GETPAGESIZE */
6898 extern "C" { void *malloc(unsigned); }
6906 char *data, *data2, *data3;
6910 pagesize = getpagesize();
6913 * First, make a file with some known garbage in it.
6915 data = malloc(pagesize);
6918 for (i = 0; i < pagesize; ++i)
6919 *(data + i) = rand();
6921 fd = creat("conftestmmap", 0600);
6924 if (write(fd, data, pagesize) != pagesize)
6929 * Next, try to mmap the file at a fixed address which
6930 * already has something else allocated at it. If we can,
6931 * also make sure that we see the same garbage.
6933 fd = open("conftestmmap", O_RDWR);
6936 data2 = malloc(2 * pagesize);
6939 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6940 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6941 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6943 for (i = 0; i < pagesize; ++i)
6944 if (*(data + i) != *(data2 + i))
6948 * Finally, make sure that changes to the mapped area
6949 * do not percolate back to the file as seen by read().
6950 * (This is a bug on some variants of i386 svr4.0.)
6952 for (i = 0; i < pagesize; ++i)
6953 *(data2 + i) = *(data2 + i) + 1;
6954 data3 = malloc(pagesize);
6957 if (read(fd, data3, pagesize) != pagesize)
6959 for (i = 0; i < pagesize; ++i)
6960 if (*(data + i) != *(data3 + i))
6963 unlink("conftestmmap");
6968 if { (eval echo configure
:6969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6970 ac_cv_func_mmap_fixed_mapped
=yes
6972 echo "configure: failed program was:" >&5
6973 cat conftest.
$ac_ext >&5
6975 ac_cv_func_mmap_fixed_mapped
=no
6982 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6983 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6984 cat >> confdefs.h
<<\EOF
6990 for ac_func
in madvise mprotect
6992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6993 echo "configure:6994: checking for $ac_func" >&5
6994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6995 echo $ac_n "(cached) $ac_c" 1>&6
6997 cat > conftest.
$ac_ext <<EOF
6998 #line 6999 "configure"
6999 #include "confdefs.h"
7000 /* System header to define __stub macros and hopefully few prototypes,
7001 which can conflict with char $ac_func(); below. */
7003 /* Override any gcc2 internal prototype to avoid an error. */
7004 /* We use char because int might match the return type of a gcc2
7005 builtin and then its argument prototype would still apply. */
7010 /* The GNU C library defines this for functions which it implements
7011 to always fail with ENOSYS. Some functions are actually named
7012 something starting with __ and the normal name is an alias. */
7013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7021 if { (eval echo configure
:7022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7023 eval "ac_cv_func_$ac_func=yes"
7025 echo "configure: failed program was:" >&5
7026 cat conftest.
$ac_ext >&5
7028 eval "ac_cv_func_$ac_func=no"
7033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7034 echo "$ac_t""yes" 1>&6
7035 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7036 cat >> confdefs.h
<<EOF
7037 #define $ac_tr_func 1
7041 echo "$ac_t""no" 1>&6
7045 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
7046 true
+yes ) cat >> confdefs.h
<<\EOF
7052 rm -f doc
/config.status
7054 cat > confcache
<<\EOF
7055 # This file is a shell script that caches the results of configure
7056 # tests run on this system so they can be shared between configure
7057 # scripts and configure runs. It is not useful on other systems.
7058 # If it contains results you don't want to keep, you may remove or edit it.
7060 # By default, configure uses ./config.cache as the cache file,
7061 # creating it if it does not exist already. You can give configure
7062 # the --cache-file=FILE option to use a different cache file; that is
7063 # what configure does when it calls configure scripts in
7064 # subdirectories, so they share the cache.
7065 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7066 # config.status only pays attention to the cache file if you give it the
7067 # --recheck option to rerun configure.
7070 # The following way of writing the cache mishandles newlines in values,
7071 # but we know of no workaround that is simple, portable, and efficient.
7072 # So, don't put newlines in cache variables' values.
7073 # Ultrix sh set writes to stderr and can't be redirected directly,
7074 # and sets the high bit in the cache file unless we assign to the vars.
7076 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7078 # `set' does not quote correctly, so add quotes (double-quote substitution
7079 # turns \\\\ into \\, and sed turns \\ into \).
7081 -e "s/'/'\\\\''/g" \
7082 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7085 # `set' quotes correctly as required by POSIX, so do not add quotes.
7086 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7089 if cmp -s $cache_file confcache
; then
7092 if test -w $cache_file; then
7093 echo "updating cache $cache_file"
7094 cat confcache
> $cache_file
7096 echo "not updating unwritable cache $cache_file"
7101 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7103 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7104 # Let make expand exec_prefix.
7105 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7107 # Any assignment to VPATH causes Sun make to only execute
7108 # the first set of double-colon rules, so remove it if not needed.
7109 # If there is a colon in the path, we need to keep it.
7110 if test "x$srcdir" = x.
; then
7111 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7114 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7116 DEFS
=-DHAVE_CONFIG_H
7118 # Without the "./", some shells look in PATH for config.status.
7119 : ${CONFIG_STATUS=./config.status}
7121 echo creating
$CONFIG_STATUS
7122 rm -f $CONFIG_STATUS
7123 cat > $CONFIG_STATUS <<EOF
7125 # Generated automatically by configure.
7126 # Run this file to recreate the current configuration.
7127 # This directory was configured as follows,
7128 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7130 # $0 $ac_configure_args
7132 # Compiler output produced by configure, useful for debugging
7133 # configure, is in ./config.log if it exists.
7135 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7138 case "\$ac_option" in
7139 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7140 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7141 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7142 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7143 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7145 -help | --help | --hel | --he | --h)
7146 echo "\$ac_cs_usage"; exit 0 ;;
7147 *) echo "\$ac_cs_usage"; exit 1 ;;
7151 ac_given_srcdir=$srcdir
7152 ac_given_INSTALL="$INSTALL"
7154 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7156 cat >> $CONFIG_STATUS <<EOF
7158 # Protect against being on the right side of a sed subst in config.status.
7159 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7160 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7164 s%@CFLAGS@%$CFLAGS%g
7165 s%@CPPFLAGS@%$CPPFLAGS%g
7166 s%@CXXFLAGS@%$CXXFLAGS%g
7167 s%@FFLAGS@%$FFLAGS%g
7169 s%@LDFLAGS@%$LDFLAGS%g
7171 s%@exec_prefix@%$exec_prefix%g
7172 s%@prefix@%$prefix%g
7173 s%@program_transform_name@%$program_transform_name%g
7174 s%@bindir@%$bindir%g
7175 s%@sbindir@%$sbindir%g
7176 s%@libexecdir@%$libexecdir%g
7177 s%@datadir@%$datadir%g
7178 s%@sysconfdir@%$sysconfdir%g
7179 s%@sharedstatedir@%$sharedstatedir%g
7180 s%@localstatedir@%$localstatedir%g
7181 s%@libdir@%$libdir%g
7182 s%@includedir@%$includedir%g
7183 s%@oldincludedir@%$oldincludedir%g
7184 s%@infodir@%$infodir%g
7185 s%@mandir@%$mandir%g
7187 s%@host_alias@%$host_alias%g
7188 s%@host_cpu@%$host_cpu%g
7189 s%@host_vendor@%$host_vendor%g
7190 s%@host_os@%$host_os%g
7191 s%@target@%$target%g
7192 s%@target_alias@%$target_alias%g
7193 s%@target_cpu@%$target_cpu%g
7194 s%@target_vendor@%$target_vendor%g
7195 s%@target_os@%$target_os%g
7197 s%@build_alias@%$build_alias%g
7198 s%@build_cpu@%$build_cpu%g
7199 s%@build_vendor@%$build_vendor%g
7200 s%@build_os@%$build_os%g
7201 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7202 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7203 s%@INSTALL_DATA@%$INSTALL_DATA%g
7204 s%@PACKAGE@%$PACKAGE%g
7205 s%@VERSION@%$VERSION%g
7206 s%@ACLOCAL@%$ACLOCAL%g
7207 s%@AUTOCONF@%$AUTOCONF%g
7208 s%@AUTOMAKE@%$AUTOMAKE%g
7209 s%@AUTOHEADER@%$AUTOHEADER%g
7210 s%@MAKEINFO@%$MAKEINFO%g
7211 s%@SET_MAKE@%$SET_MAKE%g
7212 s%@bfd_version@%$bfd_version%g
7213 s%@bfd_version_string@%$bfd_version_string%g
7215 s%@RANLIB@%$RANLIB%g
7218 s%@OBJEXT@%$OBJEXT%g
7219 s%@EXEEXT@%$EXEEXT%g
7221 s%@LIBTOOL@%$LIBTOOL%g
7222 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7223 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7224 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7226 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
7227 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
7228 s%@bfdlibdir@%$bfdlibdir%g
7229 s%@bfdincludedir@%$bfdincludedir%g
7231 s%@ALLOCA@%$ALLOCA%g
7232 s%@USE_NLS@%$USE_NLS%g
7233 s%@MSGFMT@%$MSGFMT%g
7234 s%@GMSGFMT@%$GMSGFMT%g
7235 s%@XGETTEXT@%$XGETTEXT%g
7236 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7237 s%@CATALOGS@%$CATALOGS%g
7238 s%@CATOBJEXT@%$CATOBJEXT%g
7239 s%@DATADIRNAME@%$DATADIRNAME%g
7240 s%@GMOFILES@%$GMOFILES%g
7241 s%@INSTOBJEXT@%$INSTOBJEXT%g
7242 s%@INTLDEPS@%$INTLDEPS%g
7243 s%@INTLLIBS@%$INTLLIBS%g
7244 s%@INTLOBJS@%$INTLOBJS%g
7245 s%@POFILES@%$POFILES%g
7247 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7249 s%@GT_YES@%$GT_YES%g
7250 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7252 s%@HDEFINES@%$HDEFINES%g
7253 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
7254 s%@BFD_HOST_LONG_LONG@%$BFD_HOST_LONG_LONG%g
7255 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
7256 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
7257 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
7258 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7259 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
7260 s%@COREFILE@%$COREFILE%g
7261 s%@COREFLAG@%$COREFLAG%g
7262 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
7263 s%@WIN32LIBADD@%$WIN32LIBADD%g
7264 s%@TDEFINES@%$TDEFINES%g
7265 s%@wordsize@%$wordsize%g
7266 s%@bfd_libs@%$bfd_libs%g
7267 s%@all_backends@%$all_backends%g
7268 s%@bfd_backends@%$bfd_backends%g
7269 s%@bfd_machines@%$bfd_machines%g
7270 s%@bfd_default_target_size@%$bfd_default_target_size%g
7271 s%@bfd_file_ptr@%$bfd_file_ptr%g
7272 s%@bfd_ufile_ptr@%$bfd_ufile_ptr%g
7273 s%@tdefaults@%$tdefaults%g
7278 cat >> $CONFIG_STATUS <<\EOF
7280 # Split the substitutions into bite-sized pieces for seds with
7281 # small command number limits, like on Digital OSF/1 and HP-UX.
7282 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7283 ac_file
=1 # Number of current file.
7284 ac_beg
=1 # First line for current file.
7285 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7288 while $ac_more_lines; do
7289 if test $ac_beg -gt 1; then
7290 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7292 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7294 if test ! -s conftest.s
$ac_file; then
7296 rm -f conftest.s
$ac_file
7298 if test -z "$ac_sed_cmds"; then
7299 ac_sed_cmds
="sed -f conftest.s$ac_file"
7301 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7303 ac_file
=`expr $ac_file + 1`
7305 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7308 if test -z "$ac_sed_cmds"; then
7313 cat >> $CONFIG_STATUS <<EOF
7315 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7317 cat >> $CONFIG_STATUS <<\EOF
7318 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7321 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7322 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7323 *) ac_file_in
="${ac_file}.in" ;;
7326 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7328 # Remove last slash and all that follows it. Not all systems have dirname.
7329 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7330 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7331 # The file is in a subdirectory.
7332 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7333 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7334 # A "../" for each directory in $ac_dir_suffix.
7335 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7337 ac_dir_suffix
= ac_dots
=
7340 case "$ac_given_srcdir" in
7342 if test -z "$ac_dots"; then top_srcdir
=.
7343 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7344 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7346 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7347 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7350 case "$ac_given_INSTALL" in
7351 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7352 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7355 echo creating
"$ac_file"
7357 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7359 *Makefile
*) ac_comsub
="1i\\
7360 # $configure_input" ;;
7364 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7366 s%@configure_input@%$configure_input%g
7367 s%@srcdir@%$srcdir%g
7368 s%@top_srcdir@%$top_srcdir%g
7369 s%@INSTALL@%$INSTALL%g
7370 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7374 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7375 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7377 # ac_d sets the value in "#define NAME VALUE" lines.
7378 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7379 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7382 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7383 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7384 ac_uB
='\([ ]\)%\1#\2define\3'
7387 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7388 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7389 ac_eB
='$%\1#\2define\3'
7393 if test "${CONFIG_HEADERS+set}" != set; then
7395 cat >> $CONFIG_STATUS <<EOF
7396 CONFIG_HEADERS="config.h:config.in"
7398 cat >> $CONFIG_STATUS <<\EOF
7400 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7401 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7403 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7404 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7405 *) ac_file_in
="${ac_file}.in" ;;
7408 echo creating
$ac_file
7410 rm -f conftest.frag conftest.
in conftest.out
7411 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7412 cat $ac_file_inputs > conftest.
in
7416 # Transform confdefs.h into a sed script conftest.vals that substitutes
7417 # the proper values into config.h.in to produce config.h. And first:
7418 # Protect against being on the right side of a sed subst in config.status.
7419 # Protect against being in an unquoted here document in config.status.
7421 cat > conftest.hdr
<<\EOF
7424 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7428 sed -n -f conftest.hdr confdefs.h > conftest.vals
7431 # This sed command replaces #undef with comments. This is necessary, for
7432 # example, in the case of _POSIX_SOURCE, which is predefined and required
7433 # on some systems where configure will not decide to define it.
7434 cat >> conftest.vals <<\EOF
7435 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7438 # Break up conftest.vals because some shells have a limit on
7439 # the size of here documents, and old seds have small limits too.
7444 ac_lines=`grep -c . conftest.vals
`
7445 # grep -c gives empty output for an empty file on some AIX systems.
7446 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7447 # Write a limited-size here document to conftest.frag.
7448 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7449 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7451 sed -f conftest.frag conftest.in > conftest.out
7453 mv conftest.out conftest.in
7455 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7457 mv conftest.tail conftest.vals
7461 cat >> $CONFIG_STATUS <<\EOF
7462 rm -f conftest.frag conftest.h
7463 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7464 cat conftest.in >> conftest.h
7466 if cmp -s $ac_file conftest.h 2>/dev/null; then
7467 echo "$ac_file is unchanged"
7470 # Remove last slash and all that follows it. Not all systems have dirname.
7471 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7472 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7473 # The file is in a subdirectory.
7474 test ! -d "$ac_dir" && mkdir "$ac_dir"
7477 mv conftest.h $ac_file
7482 cat >> $CONFIG_STATUS <<EOF
7486 cat >> $CONFIG_STATUS <<\EOF
7487 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7488 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7491 chmod +x $CONFIG_STATUS
7492 rm -fr confdefs* $ac_clean_files
7493 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1