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
,
68 bindir
='${exec_prefix}/bin'
69 sbindir
='${exec_prefix}/sbin'
70 libexecdir
='${exec_prefix}/libexec'
71 datadir
='${prefix}/share'
72 sysconfdir
='${prefix}/etc'
73 sharedstatedir
='${prefix}/com'
74 localstatedir
='${prefix}/var'
75 libdir
='${exec_prefix}/lib'
76 includedir
='${prefix}/include'
77 oldincludedir
='/usr/include'
78 infodir
='${prefix}/info'
79 mandir
='${prefix}/man'
81 # Initialize some other variables.
84 SHELL
=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
110 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
111 bindir
="$ac_optarg" ;;
113 -build |
--build |
--buil |
--bui |
--bu)
115 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
116 build
="$ac_optarg" ;;
118 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
119 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
120 ac_prev
=cache_file
;;
121 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
122 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
123 cache_file
="$ac_optarg" ;;
125 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
127 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
129 datadir
="$ac_optarg" ;;
131 -disable-* |
--disable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* |
--enable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
154 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
155 |
--exec |
--exe |
--ex)
156 ac_prev
=exec_prefix
;;
157 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
158 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
159 |
--exec=* |
--exe=* |
--ex=*)
160 exec_prefix
="$ac_optarg" ;;
162 -gas |
--gas |
--ga |
--g)
163 # Obsolete; use --with-gas.
166 -help |
--help |
--hel |
--he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --site-file=FILE use FILE as the site file
178 --version print the version of autoconf that created configure
179 Directory and file names:
180 --prefix=PREFIX install architecture-independent files in PREFIX
182 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
184 --bindir=DIR user executables in DIR [EPREFIX/bin]
185 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
186 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
187 --datadir=DIR read-only architecture-independent data in DIR
189 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
190 --sharedstatedir=DIR modifiable architecture-independent data in DIR
192 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
193 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
194 --includedir=DIR C header files in DIR [PREFIX/include]
195 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
196 --infodir=DIR info documentation in DIR [PREFIX/info]
197 --mandir=DIR man documentation in DIR [PREFIX/man]
198 --srcdir=DIR find the sources in DIR [configure dir or ..]
199 --program-prefix=PREFIX prepend PREFIX to installed program names
200 --program-suffix=SUFFIX append SUFFIX to installed program names
201 --program-transform-name=PROGRAM
202 run sed PROGRAM on installed program names
206 --build=BUILD configure for building on BUILD [BUILD=HOST]
207 --host=HOST configure for HOST [guessed]
208 --target=TARGET configure for TARGET [TARGET=HOST]
209 Features and packages:
210 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
211 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
212 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
213 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
214 --x-includes=DIR X include files are in DIR
215 --x-libraries=DIR X library files are in DIR
217 if test -n "$ac_help"; then
218 echo "--enable and --with options recognized:$ac_help"
222 -host |
--host |
--hos |
--ho)
224 -host=* |
--host=* |
--hos=* |
--ho=*)
227 -includedir |
--includedir |
--includedi |
--included |
--include \
228 |
--includ |
--inclu |
--incl |
--inc)
229 ac_prev
=includedir
;;
230 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
231 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
232 includedir
="$ac_optarg" ;;
234 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
236 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
237 infodir
="$ac_optarg" ;;
239 -libdir |
--libdir |
--libdi |
--libd)
241 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
242 libdir
="$ac_optarg" ;;
244 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
245 |
--libexe |
--libex |
--libe)
246 ac_prev
=libexecdir
;;
247 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
248 |
--libexe=* |
--libex=* |
--libe=*)
249 libexecdir
="$ac_optarg" ;;
251 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
252 |
--localstate |
--localstat |
--localsta |
--localst \
253 |
--locals |
--local |
--loca |
--loc |
--lo)
254 ac_prev
=localstatedir
;;
255 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
256 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
257 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
258 localstatedir
="$ac_optarg" ;;
260 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
262 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
263 mandir
="$ac_optarg" ;;
266 # Obsolete; use --without-fp.
269 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
273 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
274 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
277 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
278 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
279 |
--oldin |
--oldi |
--old |
--ol |
--o)
280 ac_prev
=oldincludedir
;;
281 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
282 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
283 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
284 oldincludedir
="$ac_optarg" ;;
286 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
288 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
289 prefix
="$ac_optarg" ;;
291 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
292 |
--program-pre |
--program-pr |
--program-p)
293 ac_prev
=program_prefix
;;
294 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
295 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
296 program_prefix
="$ac_optarg" ;;
298 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
299 |
--program-suf |
--program-su |
--program-s)
300 ac_prev
=program_suffix
;;
301 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
302 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
303 program_suffix
="$ac_optarg" ;;
305 -program-transform-name |
--program-transform-name \
306 |
--program-transform-nam |
--program-transform-na \
307 |
--program-transform-n |
--program-transform- \
308 |
--program-transform |
--program-transfor \
309 |
--program-transfo |
--program-transf \
310 |
--program-trans |
--program-tran \
311 |
--progr-tra |
--program-tr |
--program-t)
312 ac_prev
=program_transform_name
;;
313 -program-transform-name=* |
--program-transform-name=* \
314 |
--program-transform-nam=* |
--program-transform-na=* \
315 |
--program-transform-n=* |
--program-transform-=* \
316 |
--program-transform=* |
--program-transfor=* \
317 |
--program-transfo=* |
--program-transf=* \
318 |
--program-trans=* |
--program-tran=* \
319 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
320 program_transform_name
="$ac_optarg" ;;
322 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
323 |
-silent |
--silent |
--silen |
--sile |
--sil)
326 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
328 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
330 sbindir
="$ac_optarg" ;;
332 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
333 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
334 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
336 ac_prev
=sharedstatedir
;;
337 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
338 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
339 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
341 sharedstatedir
="$ac_optarg" ;;
343 -site |
--site |
--sit)
345 -site=* |
--site=* |
--sit=*)
348 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
350 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
351 sitefile
="$ac_optarg" ;;
353 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
355 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
356 srcdir
="$ac_optarg" ;;
358 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
359 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
360 ac_prev
=sysconfdir
;;
361 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
362 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
363 sysconfdir
="$ac_optarg" ;;
365 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
367 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
368 target
="$ac_optarg" ;;
370 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
373 -version |
--version |
--versio |
--versi |
--vers)
374 echo "configure generated by autoconf version 2.13"
378 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
388 eval "with_${ac_package}='$ac_optarg'" ;;
390 -without-* |
--without-*)
391 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396 ac_package
=`echo $ac_package| sed 's/-/_/g'`
397 eval "with_${ac_package}=no" ;;
400 # Obsolete; use --with-x.
403 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
404 |
--x-incl |
--x-inc |
--x-in |
--x-i)
405 ac_prev
=x_includes
;;
406 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
407 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
408 x_includes
="$ac_optarg" ;;
410 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
411 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
412 ac_prev
=x_libraries
;;
413 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
414 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
415 x_libraries
="$ac_optarg" ;;
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
424 if test "x$nonopt" != xNONE
; then
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433 if test -n "$ac_prev"; then
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439 # File descriptor usage:
442 # 2 errors and warnings
443 # 3 some systems may open it to /dev/tty
444 # 4 used on the Kubota Titan
445 # 6 checking for... messages and results
446 # 5 compiler messages saved in config.log
447 if test "$silent" = yes; then
455 This file contains any messages produced by compilers while
456 running configure, to aid debugging if configure makes a mistake.
459 # Strip out --no-create and --no-recursion so they do not pile up.
460 # Also quote any args containing shell metacharacters.
465 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
466 |
--no-cr |
--no-c) ;;
467 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
468 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
469 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
471 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
476 # Only set these to C if already set. These must not be set unconditionally
477 # because not all systems understand e.g. LANG=C (notably SCO).
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479 # Non-C LC_CTYPE values break the ctype check.
480 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
481 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
486 rm -rf conftest
* confdefs.h
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 # A filename unique to this package, relative to the directory that
491 # configure is in, which we can look for to find out if srcdir is correct.
492 ac_unique_file
=libbfd.c
494 # Find the source files, if location was not specified.
495 if test -z "$srcdir"; then
496 ac_srcdir_defaulted
=yes
497 # Try the directory containing this script, then its parent.
499 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
502 if test ! -r $srcdir/$ac_unique_file; then
506 ac_srcdir_defaulted
=no
508 if test ! -r $srcdir/$ac_unique_file; then
509 if test "$ac_srcdir_defaulted" = yes; then
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517 # Prefer explicitly selected file to automatically selected ones.
518 if test -z "$sitefile"; then
519 if test -z "$CONFIG_SITE"; then
520 if test "x$prefix" != xNONE
; then
521 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
523 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
527 CONFIG_SITE
="$sitefile"
529 for ac_site_file
in $CONFIG_SITE; do
530 if test -r "$ac_site_file"; then
531 echo "loading site script $ac_site_file"
536 if test -r "$cache_file"; then
537 echo "loading cache $cache_file"
540 echo "creating cache $cache_file"
545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
546 ac_cpp
='$CPP $CPPFLAGS'
547 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
548 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
549 cross_compiling
=$ac_cv_prog_cc_cross
553 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
554 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
555 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
562 ac_n
= ac_c
='\c' ac_t
=
565 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
566 echo "configure:567: checking for Cygwin environment" >&5
567 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 cat > conftest.
$ac_ext <<EOF
571 #line 572 "configure"
572 #include "confdefs.h"
577 #define __CYGWIN__ __CYGWIN32__
582 if { (eval echo configure
:583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
586 echo "configure: failed program was:" >&5
587 cat conftest.
$ac_ext >&5
595 echo "$ac_t""$ac_cv_cygwin" 1>&6
597 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
598 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
599 echo "configure:600: checking for mingw32 environment" >&5
600 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
601 echo $ac_n "(cached) $ac_c" 1>&6
603 cat > conftest.
$ac_ext <<EOF
604 #line 605 "configure"
605 #include "confdefs.h"
611 if { (eval echo configure
:612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
615 echo "configure: failed program was:" >&5
616 cat conftest.
$ac_ext >&5
624 echo "$ac_t""$ac_cv_mingw32" 1>&6
626 test "$ac_cv_mingw32" = yes && MINGW32
=yes
630 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
631 if test -f $ac_dir/install-sh
; then
633 ac_install_sh
="$ac_aux_dir/install-sh -c"
635 elif test -f $ac_dir/install.sh
; then
637 ac_install_sh
="$ac_aux_dir/install.sh -c"
641 if test -z "$ac_aux_dir"; then
642 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
644 ac_config_guess
=$ac_aux_dir/config.guess
645 ac_config_sub
=$ac_aux_dir/config.sub
646 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
649 # Do some error checking and defaulting for the host and target type.
651 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
654 # 1. You are not allowed to specify --host, --target, and nonopt at the
656 # 2. Host defaults to nonopt.
657 # 3. If nonopt is not specified, then host defaults to the current host,
658 # as determined by config.guess.
659 # 4. Target and build default to nonopt.
660 # 5. If nonopt is not specified, then target and build default to host.
662 # The aliases save the names the user supplied, while $host etc.
663 # will get canonicalized.
664 case $host---$target---$nonopt in
665 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
666 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
670 # Make sure we can run config.sub.
671 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
672 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
675 echo $ac_n "checking host system type""... $ac_c" 1>&6
676 echo "configure:677: checking host system type" >&5
679 case "$host_alias" in
683 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
684 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
686 *) host_alias
=$nonopt ;;
690 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
691 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
692 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
693 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
694 echo "$ac_t""$host" 1>&6
696 echo $ac_n "checking target system type""... $ac_c" 1>&6
697 echo "configure:698: checking target system type" >&5
700 case "$target_alias" in
703 NONE
) target_alias
=$host_alias ;;
704 *) target_alias
=$nonopt ;;
708 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
709 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
710 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
711 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo "$ac_t""$target" 1>&6
714 echo $ac_n "checking build system type""... $ac_c" 1>&6
715 echo "configure:716: checking build system type" >&5
718 case "$build_alias" in
721 NONE
) build_alias
=$host_alias ;;
722 *) build_alias
=$nonopt ;;
726 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
727 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
728 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
729 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
730 echo "$ac_t""$build" 1>&6
732 test "$host_alias" != "$target_alias" &&
733 test "$program_prefix$program_suffix$program_transform_name" = \
735 program_prefix
=${target_alias}-
738 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
739 echo "configure:740: checking for strerror in -lcposix" >&5
740 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
742 echo $ac_n "(cached) $ac_c" 1>&6
745 LIBS
="-lcposix $LIBS"
746 cat > conftest.
$ac_ext <<EOF
747 #line 748 "configure"
748 #include "confdefs.h"
749 /* Override any gcc2 internal prototype to avoid an error. */
750 /* We use char because int might match the return type of a gcc2
751 builtin and then its argument prototype would still apply. */
758 if { (eval echo configure
:759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
760 eval "ac_cv_lib_$ac_lib_var=yes"
762 echo "configure: failed program was:" >&5
763 cat conftest.
$ac_ext >&5
765 eval "ac_cv_lib_$ac_lib_var=no"
771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
772 echo "$ac_t""yes" 1>&6
773 LIBS
="$LIBS -lcposix"
775 echo "$ac_t""no" 1>&6
781 am__api_version
="1.4"
782 # Find a good install program. We prefer a C program (faster),
783 # so one script is as good as another. But avoid the broken or
784 # incompatible versions:
785 # SysV /etc/install, /usr/sbin/install
786 # SunOS /usr/etc/install
789 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
790 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
791 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
792 # ./install, which can be erroneously created by make from ./install.sh.
793 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
794 echo "configure:795: checking for a BSD compatible install" >&5
795 if test -z "$INSTALL"; then
796 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
800 for ac_dir
in $PATH; do
801 # Account for people who put trailing slashes in PATH elements.
803 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
805 # OSF1 and SCO ODT 3.0 have their own names for install.
806 # Don't use installbsd from OSF since it installs stuff as root
808 for ac_prog
in ginstall scoinst
install; do
809 if test -f $ac_dir/$ac_prog; then
810 if test $ac_prog = install &&
811 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
812 # AIX install. It has an incompatible calling convention.
815 ac_cv_path_install
="$ac_dir/$ac_prog -c"
826 if test "${ac_cv_path_install+set}" = set; then
827 INSTALL
="$ac_cv_path_install"
829 # As a last resort, use the slow shell script. We don't cache a
830 # path for INSTALL within a source directory, because that will
831 # break other packages using the cache if that directory is
832 # removed, or if the path is relative.
833 INSTALL
="$ac_install_sh"
836 echo "$ac_t""$INSTALL" 1>&6
838 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
839 # It thinks the first close brace ends the variable substitution.
840 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
842 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
844 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
846 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
847 echo "configure:848: checking whether build environment is sane" >&5
850 echo timestamp
> conftestfile
851 # Do `set' in a subshell so we don't clobber the current shell's
852 # arguments. Must try -L first in case configure is actually a
853 # symlink; some systems play weird games with the mod time of symlinks
854 # (eg FreeBSD returns the mod time of the symlink's containing
857 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
858 if test "$*" = "X"; then
860 set X
`ls -t $srcdir/configure conftestfile`
862 if test "$*" != "X $srcdir/configure conftestfile" \
863 && test "$*" != "X conftestfile $srcdir/configure"; then
865 # If neither matched, then we have a broken ls. This can happen
866 # if, for instance, CONFIG_SHELL is bash and it inherits a
867 # broken ls alias from the environment. This has actually
868 # happened. Such a system could not be considered "sane".
869 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
870 alias in your environment" 1>&2; exit 1; }
873 test "$2" = conftestfile
879 { echo "configure: error: newly created file is older than distributed files!
880 Check your system clock" 1>&2; exit 1; }
883 echo "$ac_t""yes" 1>&6
884 if test "$program_transform_name" = s
,x
,x
,; then
885 program_transform_name
=
887 # Double any \ or $. echo might interpret backslashes.
888 cat <<\EOF_SED
> conftestsed
889 s
,\\,\\\\,g
; s
,\$
,$$
,g
891 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
894 test "$program_prefix" != NONE
&&
895 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
896 # Use a double $ so make ignores it.
897 test "$program_suffix" != NONE
&&
898 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
900 # sed with no file args requires a program.
901 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
903 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
904 echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5
905 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
906 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&6
909 cat > conftestmake
<<\EOF
911 @
echo 'ac_maketemp="${MAKE}"'
913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
914 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
915 if test -n "$ac_maketemp"; then
916 eval ac_cv_prog_make_
${ac_make}_set
=yes
918 eval ac_cv_prog_make_
${ac_make}_set
=no
922 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
923 echo "$ac_t""yes" 1>&6
926 echo "$ac_t""no" 1>&6
927 SET_MAKE
="MAKE=${MAKE-make}"
935 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
936 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
938 cat >> confdefs.h
<<EOF
939 #define PACKAGE "$PACKAGE"
942 cat >> confdefs.h
<<EOF
943 #define VERSION "$VERSION"
948 missing_dir
=`cd $ac_aux_dir && pwd`
949 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
950 echo "configure:951: checking for working aclocal-${am__api_version}" >&5
951 # Run test in a subshell; some versions of sh will print an error if
952 # an executable is not found, even if stderr is redirected.
953 # Redirect stdin to placate older versions of autoconf. Sigh.
954 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
955 ACLOCAL
=aclocal-
${am__api_version}
956 echo "$ac_t""found" 1>&6
958 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
959 echo "$ac_t""missing" 1>&6
962 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
963 echo "configure:964: checking for working autoconf" >&5
964 # Run test in a subshell; some versions of sh will print an error if
965 # an executable is not found, even if stderr is redirected.
966 # Redirect stdin to placate older versions of autoconf. Sigh.
967 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
969 echo "$ac_t""found" 1>&6
971 AUTOCONF
="$missing_dir/missing autoconf"
972 echo "$ac_t""missing" 1>&6
975 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
976 echo "configure:977: checking for working automake-${am__api_version}" >&5
977 # Run test in a subshell; some versions of sh will print an error if
978 # an executable is not found, even if stderr is redirected.
979 # Redirect stdin to placate older versions of autoconf. Sigh.
980 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
981 AUTOMAKE
=automake-
${am__api_version}
982 echo "$ac_t""found" 1>&6
984 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
985 echo "$ac_t""missing" 1>&6
988 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
989 echo "configure:990: checking for working autoheader" >&5
990 # Run test in a subshell; some versions of sh will print an error if
991 # an executable is not found, even if stderr is redirected.
992 # Redirect stdin to placate older versions of autoconf. Sigh.
993 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
994 AUTOHEADER
=autoheader
995 echo "$ac_t""found" 1>&6
997 AUTOHEADER
="$missing_dir/missing autoheader"
998 echo "$ac_t""missing" 1>&6
1001 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1002 echo "configure:1003: checking for working makeinfo" >&5
1003 # Run test in a subshell; some versions of sh will print an error if
1004 # an executable is not found, even if stderr is redirected.
1005 # Redirect stdin to placate older versions of autoconf. Sigh.
1006 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1008 echo "$ac_t""found" 1>&6
1010 MAKEINFO
="$missing_dir/missing makeinfo"
1011 echo "$ac_t""missing" 1>&6
1015 # Uncomment the next line to remove the date from the reported bfd version
1018 bfd_version
=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1020 bfd_version_string
="\"${VERSION}\""
1021 if test x
${is_release} = x
; then
1022 bfd_version_date
=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1023 bfd_version_string
="\"${VERSION} ${bfd_version_date}\""
1028 if test $host != $build; then
1029 ac_tool_prefix
=${host_alias}-
1034 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1035 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1037 echo "configure:1038: checking for $ac_word" >&5
1038 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 if test -n "$AR"; then
1042 ac_cv_prog_AR
="$AR" # Let the user override the test.
1044 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1046 for ac_dir
in $ac_dummy; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1049 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1054 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1058 if test -n "$AR"; then
1059 echo "$ac_t""$AR" 1>&6
1061 echo "$ac_t""no" 1>&6
1066 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1067 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1069 echo "configure:1070: checking for $ac_word" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1073 if test -n "$RANLIB"; then
1074 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1076 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1078 for ac_dir
in $ac_dummy; do
1079 test -z "$ac_dir" && ac_dir
=.
1080 if test -f $ac_dir/$ac_word; then
1081 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1088 RANLIB
="$ac_cv_prog_RANLIB"
1089 if test -n "$RANLIB"; then
1090 echo "$ac_t""$RANLIB" 1>&6
1092 echo "$ac_t""no" 1>&6
1096 if test -z "$ac_cv_prog_RANLIB"; then
1097 if test -n "$ac_tool_prefix"; then
1098 # Extract the first word of "ranlib", so it can be a program name with args.
1099 set dummy ranlib
; ac_word
=$2
1100 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101 echo "configure:1102: checking for $ac_word" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 if test -n "$RANLIB"; then
1106 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1110 for ac_dir
in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir
=.
1112 if test -f $ac_dir/$ac_word; then
1113 ac_cv_prog_RANLIB
="ranlib"
1118 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1121 RANLIB
="$ac_cv_prog_RANLIB"
1122 if test -n "$RANLIB"; then
1123 echo "$ac_t""$RANLIB" 1>&6
1125 echo "$ac_t""no" 1>&6
1134 # Check whether --enable-shared or --disable-shared was given.
1135 if test "${enable_shared+set}" = set; then
1136 enableval
="$enable_shared"
1137 p
=${PACKAGE-default}
1139 yes) enable_shared
=yes ;;
1140 no
) enable_shared
=no
;;
1143 # Look at the argument we got. We use all the common list separators.
1144 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1145 for pkg
in $enableval; do
1146 if test "X$pkg" = "X$p"; then
1158 # Check whether --enable-static or --disable-static was given.
1159 if test "${enable_static+set}" = set; then
1160 enableval
="$enable_static"
1161 p
=${PACKAGE-default}
1163 yes) enable_static
=yes ;;
1164 no
) enable_static
=no
;;
1167 # Look at the argument we got. We use all the common list separators.
1168 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1169 for pkg
in $enableval; do
1170 if test "X$pkg" = "X$p"; then
1181 # Check whether --enable-fast-install or --disable-fast-install was given.
1182 if test "${enable_fast_install+set}" = set; then
1183 enableval
="$enable_fast_install"
1184 p
=${PACKAGE-default}
1186 yes) enable_fast_install
=yes ;;
1187 no
) enable_fast_install
=no
;;
1189 enable_fast_install
=no
1190 # Look at the argument we got. We use all the common list separators.
1191 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1192 for pkg
in $enableval; do
1193 if test "X$pkg" = "X$p"; then
1194 enable_fast_install
=yes
1201 enable_fast_install
=yes
1204 # Extract the first word of "gcc", so it can be a program name with args.
1205 set dummy gcc
; ac_word
=$2
1206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1207 echo "configure:1208: checking for $ac_word" >&5
1208 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1209 echo $ac_n "(cached) $ac_c" 1>&6
1211 if test -n "$CC"; then
1212 ac_cv_prog_CC
="$CC" # Let the user override the test.
1214 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1216 for ac_dir
in $ac_dummy; do
1217 test -z "$ac_dir" && ac_dir
=.
1218 if test -f $ac_dir/$ac_word; then
1227 if test -n "$CC"; then
1228 echo "$ac_t""$CC" 1>&6
1230 echo "$ac_t""no" 1>&6
1233 if test -z "$CC"; then
1234 # Extract the first word of "cc", so it can be a program name with args.
1235 set dummy cc
; ac_word
=$2
1236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1237 echo "configure:1238: checking for $ac_word" >&5
1238 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1239 echo $ac_n "(cached) $ac_c" 1>&6
1241 if test -n "$CC"; then
1242 ac_cv_prog_CC
="$CC" # Let the user override the test.
1244 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1247 for ac_dir
in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir
=.
1249 if test -f $ac_dir/$ac_word; then
1250 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1251 ac_prog_rejected
=yes
1259 if test $ac_prog_rejected = yes; then
1260 # We found a bogon in the path, so make sure we never use it.
1261 set dummy
$ac_cv_prog_CC
1263 if test $# -gt 0; then
1264 # We chose a different compiler from the bogus one.
1265 # However, it has the same basename, so the bogon will be chosen
1266 # first if we set CC to just the basename; use the full file name.
1268 set dummy
"$ac_dir/$ac_word" "$@"
1276 if test -n "$CC"; then
1277 echo "$ac_t""$CC" 1>&6
1279 echo "$ac_t""no" 1>&6
1282 if test -z "$CC"; then
1283 case "`uname -s`" in
1285 # Extract the first word of "cl", so it can be a program name with args.
1286 set dummy cl
; ac_word
=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC
="$CC" # Let the user override the test.
1295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1297 for ac_dir
in $ac_dummy; do
1298 test -z "$ac_dir" && ac_dir
=.
1299 if test -f $ac_dir/$ac_word; then
1308 if test -n "$CC"; then
1309 echo "$ac_t""$CC" 1>&6
1311 echo "$ac_t""no" 1>&6
1316 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1319 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1320 echo "configure:1321: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1324 ac_cpp
='$CPP $CPPFLAGS'
1325 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1326 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1327 cross_compiling
=$ac_cv_prog_cc_cross
1329 cat > conftest.
$ac_ext << EOF
1331 #line 1332 "configure"
1332 #include "confdefs.h"
1336 if { (eval echo configure
:1337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1337 ac_cv_prog_cc_works
=yes
1338 # If we can't run a trivial program, we are probably using a cross compiler.
1339 if (.
/conftest
; exit) 2>/dev
/null
; then
1340 ac_cv_prog_cc_cross
=no
1342 ac_cv_prog_cc_cross
=yes
1345 echo "configure: failed program was:" >&5
1346 cat conftest.
$ac_ext >&5
1347 ac_cv_prog_cc_works
=no
1351 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1352 ac_cpp
='$CPP $CPPFLAGS'
1353 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1354 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1355 cross_compiling
=$ac_cv_prog_cc_cross
1357 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1358 if test $ac_cv_prog_cc_works = no
; then
1359 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1361 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1362 echo "configure:1363: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1363 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1364 cross_compiling
=$ac_cv_prog_cc_cross
1366 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1367 echo "configure:1368: checking whether we are using GNU C" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 cat > conftest.c
<<EOF
1376 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1383 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1385 if test $ac_cv_prog_gcc = yes; then
1391 ac_test_CFLAGS
="${CFLAGS+set}"
1392 ac_save_CFLAGS
="$CFLAGS"
1394 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1395 echo "configure:1396: checking whether ${CC-cc} accepts -g" >&5
1396 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 echo 'void f(){}' > conftest.c
1400 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1409 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1410 if test "$ac_test_CFLAGS" = set; then
1411 CFLAGS
="$ac_save_CFLAGS"
1412 elif test $ac_cv_prog_cc_g = yes; then
1413 if test "$GCC" = yes; then
1419 if test "$GCC" = yes; then
1426 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1427 if test "${with_gnu_ld+set}" = set; then
1428 withval
="$with_gnu_ld"
1429 test "$withval" = no || with_gnu_ld
=yes
1435 if test "$GCC" = yes; then
1436 # Check if gcc -print-prog-name=ld gives a path.
1437 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1438 echo "configure:1439: checking for ld used by GCC" >&5
1441 # gcc leaves a trailing carriage return which upsets mingw
1442 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1444 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1447 # Accept absolute paths.
1448 [\\/]* |
[A-Za-z
]:[\\/]*)
1449 re_direlt
='/[^/][^/]*/\.\./'
1450 # Canonicalize the path of ld
1451 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1452 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1453 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1455 test -z "$LD" && LD
="$ac_prog"
1458 # If it fails, then pretend we aren't using GCC.
1462 # If it is relative, then search for the first ld in PATH.
1466 elif test "$with_gnu_ld" = yes; then
1467 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1468 echo "configure:1469: checking for GNU ld" >&5
1470 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1471 echo "configure:1472: checking for non-GNU ld" >&5
1473 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 if test -z "$LD"; then
1477 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1478 for ac_dir
in $PATH; do
1479 test -z "$ac_dir" && ac_dir
=.
1480 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1481 lt_cv_path_LD
="$ac_dir/$ac_prog"
1482 # Check to see if the program is GNU ld. I'd rather use --version,
1483 # but apparently some GNU ld's only accept -v.
1484 # Break only if it was the GNU/non-GNU ld that we prefer.
1485 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1486 test "$with_gnu_ld" != no
&& break
1488 test "$with_gnu_ld" != yes && break
1494 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1499 if test -n "$LD"; then
1500 echo "$ac_t""$LD" 1>&6
1502 echo "$ac_t""no" 1>&6
1504 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1505 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1506 echo "configure:1507: checking if the linker ($LD) is GNU ld" >&5
1507 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1511 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1512 lt_cv_prog_gnu_ld
=yes
1514 lt_cv_prog_gnu_ld
=no
1518 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1519 with_gnu_ld
=$lt_cv_prog_gnu_ld
1522 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $LD option to reload object files" >&5
1524 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 lt_cv_ld_reload_flag
='-r'
1530 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1531 reload_flag
=$lt_cv_ld_reload_flag
1532 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1534 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1535 echo "configure:1536: checking for BSD-compatible nm" >&5
1536 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1537 echo $ac_n "(cached) $ac_c" 1>&6
1539 if test -n "$NM"; then
1540 # Let the user override the test.
1543 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1544 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1545 test -z "$ac_dir" && ac_dir
=.
1546 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1547 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1548 # Check to see if the nm accepts a BSD-compat flag.
1549 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1550 # nm: unknown option "B" ignored
1551 # Tru64's nm complains that /dev/null is an invalid object file
1552 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1553 lt_cv_path_NM
="$tmp_nm -B"
1555 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1556 lt_cv_path_NM
="$tmp_nm -p"
1559 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1560 continue # so that we can try to find one that supports BSD flags
1565 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1570 echo "$ac_t""$NM" 1>&6
1572 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1573 echo "configure:1574: checking whether ln -s works" >&5
1574 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1578 if ln -s X conftestdata
2>/dev
/null
1581 ac_cv_prog_LN_S
="ln -s"
1586 LN_S
="$ac_cv_prog_LN_S"
1587 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1588 echo "$ac_t""yes" 1>&6
1590 echo "$ac_t""no" 1>&6
1593 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1594 echo "configure:1595: checking how to recognise dependant libraries" >&5
1595 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1599 lt_cv_file_magic_test_file
=
1600 lt_cv_deplibs_check_method
='unknown'
1601 # Need to set the preceding variable on all platforms that support
1602 # interlibrary dependencies.
1603 # 'none' -- dependencies not supported.
1604 # `unknown' -- same as none, but documents that we really don't know.
1605 # 'pass_all' -- all dependencies passed with no checks.
1606 # 'test_compile' -- check by making test program.
1607 # 'file_magic [regex]' -- check by looking for files in library path
1608 # which responds to the $file_magic_cmd with a given egrep regex.
1609 # If you have `file' or equivalent on your system and you're not sure
1610 # whether `pass_all' will *always* work, you probably want this one.
1614 lt_cv_deplibs_check_method
=pass_all
1618 lt_cv_deplibs_check_method
=pass_all
1622 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1623 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1624 lt_cv_file_magic_test_file
=/shlib
/libc.so
1627 cygwin
* | mingw
* |pw32
*)
1628 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1629 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1632 darwin
* | rhapsody
*)
1633 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1634 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1636 rhapsody
* | darwin1.012
)
1637 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1640 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1646 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1649 # Not sure whether the presence of OpenBSD here was a mistake.
1650 # Let's accept both of them until this is cleared up.
1651 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1652 lt_cv_file_magic_cmd
=/usr
/bin
/file
1653 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1657 lt_cv_deplibs_check_method
=pass_all
1662 lt_cv_deplibs_check_method
=pass_all
1668 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1669 lt_cv_file_magic_cmd
=/usr
/bin
/file
1670 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1673 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1674 lt_cv_file_magic_cmd
=/usr
/bin
/file
1675 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1683 # this will be overridden with pass_all, but let us keep it just in case
1684 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1688 *-32|
*"-32 ") libmagic
=32-bit;;
1689 *-n32|
*"-n32 ") libmagic
=N32
;;
1690 *-64|
*"-64 ") libmagic
=64-bit;;
1691 *) libmagic
=never-match
;;
1693 # this will be overridden with pass_all, but let us keep it just in case
1694 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1697 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1698 lt_cv_deplibs_check_method
=pass_all
1701 # This must be Linux ELF.
1704 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1705 lt_cv_deplibs_check_method
=pass_all
;;
1707 # glibc up to 2.1.1 does not perform some relocations on ARM
1708 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1710 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1714 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1715 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1717 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1722 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1723 lt_cv_file_magic_cmd
=/usr
/bin
/file
1724 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1727 osf3
* | osf4
* | osf5
*)
1728 # this will be overridden with pass_all, but let us keep it just in case
1729 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1730 lt_cv_file_magic_test_file
=/shlib
/libc.so
1731 lt_cv_deplibs_check_method
=pass_all
1735 lt_cv_deplibs_check_method
=pass_all
1739 lt_cv_deplibs_check_method
=pass_all
1740 lt_cv_file_magic_test_file
=/lib
/libc.so
1743 sysv5uw
[78]* | sysv4
*uw2
*)
1744 lt_cv_deplibs_check_method
=pass_all
1747 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1748 case $host_vendor in
1750 lt_cv_deplibs_check_method
=pass_all
1753 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]'
1754 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1762 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1763 file_magic_cmd
=$lt_cv_file_magic_cmd
1764 deplibs_check_method
=$lt_cv_deplibs_check_method
1766 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1767 echo "configure:1768: checking for object suffix" >&5
1768 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1769 echo $ac_n "(cached) $ac_c" 1>&6
1772 echo 'int i = 1;' > conftest.
$ac_ext
1773 if { (eval echo configure
:1774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1774 for ac_file
in conftest.
*; do
1777 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1781 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1786 echo "$ac_t""$ac_cv_objext" 1>&6
1787 OBJEXT
=$ac_cv_objext
1788 ac_objext
=$ac_cv_objext
1792 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1793 echo "configure:1794: checking for executable suffix" >&5
1794 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1797 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1801 echo 'int main () { return 0; }' > conftest.
$ac_ext
1803 if { (eval echo configure
:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1804 for file in conftest.
*; do
1806 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1807 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1811 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1814 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1819 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1820 echo "$ac_t""${ac_cv_exeext}" 1>&6
1823 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1825 # Only perform the check for file, if the check method requires it
1826 case $deplibs_check_method in
1828 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1829 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1830 echo "configure:1831: checking for ${ac_tool_prefix}file" >&5
1831 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1836 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1839 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1842 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1843 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1844 ac_dummy
="/usr/bin:$PATH"
1845 for ac_dir
in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir
=.
1847 if test -f $ac_dir/${ac_tool_prefix}file; then
1848 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1849 if test -n "$file_magic_test_file"; then
1850 case $deplibs_check_method in
1852 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1853 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1854 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1855 egrep "$file_magic_regex" > /dev
/null
; then
1860 *** Warning: the command libtool uses to detect shared libraries,
1861 *** $file_magic_cmd, produces output that libtool cannot recognize.
1862 *** The result is that libtool may fail to recognize shared libraries
1863 *** as such. This will affect the creation of libtool libraries that
1864 *** depend on shared libraries, but programs linked with such libtool
1865 *** libraries will work regardless of this problem. Nevertheless, you
1866 *** may want to report the problem to your system manager and/or to
1867 *** bug-libtool@gnu.org
1877 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1882 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1883 if test -n "$MAGIC_CMD"; then
1884 echo "$ac_t""$MAGIC_CMD" 1>&6
1886 echo "$ac_t""no" 1>&6
1889 if test -z "$lt_cv_path_MAGIC_CMD"; then
1890 if test -n "$ac_tool_prefix"; then
1891 echo $ac_n "checking for file""... $ac_c" 1>&6
1892 echo "configure:1893: checking for file" >&5
1893 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1898 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1901 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1904 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1905 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1906 ac_dummy
="/usr/bin:$PATH"
1907 for ac_dir
in $ac_dummy; do
1908 test -z "$ac_dir" && ac_dir
=.
1909 if test -f $ac_dir/file; then
1910 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1911 if test -n "$file_magic_test_file"; then
1912 case $deplibs_check_method in
1914 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1915 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1916 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1917 egrep "$file_magic_regex" > /dev
/null
; then
1922 *** Warning: the command libtool uses to detect shared libraries,
1923 *** $file_magic_cmd, produces output that libtool cannot recognize.
1924 *** The result is that libtool may fail to recognize shared libraries
1925 *** as such. This will affect the creation of libtool libraries that
1926 *** depend on shared libraries, but programs linked with such libtool
1927 *** libraries will work regardless of this problem. Nevertheless, you
1928 *** may want to report the problem to your system manager and/or to
1929 *** bug-libtool@gnu.org
1939 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1944 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1945 if test -n "$MAGIC_CMD"; then
1946 echo "$ac_t""$MAGIC_CMD" 1>&6
1948 echo "$ac_t""no" 1>&6
1960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1961 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 if test -n "$RANLIB"; then
1968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1972 for ac_dir
in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir
=.
1974 if test -f $ac_dir/$ac_word; then
1975 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1982 RANLIB
="$ac_cv_prog_RANLIB"
1983 if test -n "$RANLIB"; then
1984 echo "$ac_t""$RANLIB" 1>&6
1986 echo "$ac_t""no" 1>&6
1990 if test -z "$ac_cv_prog_RANLIB"; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "ranlib", so it can be a program name with args.
1993 set dummy ranlib
; ac_word
=$2
1994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1995 echo "configure:1996: checking for $ac_word" >&5
1996 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 if test -n "$RANLIB"; then
2000 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2004 for ac_dir
in $ac_dummy; do
2005 test -z "$ac_dir" && ac_dir
=.
2006 if test -f $ac_dir/$ac_word; then
2007 ac_cv_prog_RANLIB
="ranlib"
2012 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2015 RANLIB
="$ac_cv_prog_RANLIB"
2016 if test -n "$RANLIB"; then
2017 echo "$ac_t""$RANLIB" 1>&6
2019 echo "$ac_t""no" 1>&6
2027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2028 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2030 echo "configure:2031: checking for $ac_word" >&5
2031 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 if test -n "$STRIP"; then
2035 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2039 for ac_dir
in $ac_dummy; do
2040 test -z "$ac_dir" && ac_dir
=.
2041 if test -f $ac_dir/$ac_word; then
2042 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2049 STRIP
="$ac_cv_prog_STRIP"
2050 if test -n "$STRIP"; then
2051 echo "$ac_t""$STRIP" 1>&6
2053 echo "$ac_t""no" 1>&6
2057 if test -z "$ac_cv_prog_STRIP"; then
2058 if test -n "$ac_tool_prefix"; then
2059 # Extract the first word of "strip", so it can be a program name with args.
2060 set dummy strip
; ac_word
=$2
2061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2062 echo "configure:2063: checking for $ac_word" >&5
2063 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 if test -n "$STRIP"; then
2067 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2069 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2071 for ac_dir
in $ac_dummy; do
2072 test -z "$ac_dir" && ac_dir
=.
2073 if test -f $ac_dir/$ac_word; then
2074 ac_cv_prog_STRIP
="strip"
2079 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2082 STRIP
="$ac_cv_prog_STRIP"
2083 if test -n "$STRIP"; then
2084 echo "$ac_t""$STRIP" 1>&6
2086 echo "$ac_t""no" 1>&6
2095 # Check for any special flags to pass to ltconfig.
2096 libtool_flags
="--cache-file=$cache_file"
2097 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2098 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2099 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2100 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2101 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2104 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2105 if test "${enable_libtool_lock+set}" = set; then
2106 enableval
="$enable_libtool_lock"
2110 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2111 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2113 # Check whether --with-pic or --without-pic was given.
2114 if test "${with_pic+set}" = set; then
2121 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2122 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2124 # Some flags need to be propagated to the compiler or linker for good
2128 # Find out which ABI we are using.
2129 echo '#line 2130 "configure"' > conftest.
$ac_ext
2130 if { (eval echo configure
:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2131 if test "$lt_cv_prog_gnu_ld" = yes; then
2132 case `/usr/bin/file conftest.$ac_objext` in
2134 LD
="${LD-ld} -melf32bsmip"
2137 LD
="${LD-ld} -melf32bmipn32"
2140 LD
="${LD-ld} -melf64bmip"
2144 case `/usr/bin/file conftest.$ac_objext` in
2161 # Find out which ABI we are using.
2162 echo 'int i;' > conftest.
$ac_ext
2163 if { (eval echo configure
:2164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2164 case "`/usr/bin/file conftest.o`" in
2177 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2178 SAVE_CFLAGS
="$CFLAGS"
2179 CFLAGS
="$CFLAGS -belf"
2180 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2181 echo "configure:2182: checking whether the C compiler needs -belf" >&5
2182 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2188 ac_cpp
='$CPP $CPPFLAGS'
2189 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2190 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2191 cross_compiling
=$ac_cv_prog_cc_cross
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2201 if { (eval echo configure
:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2203 lt_cv_cc_needs_belf
=yes
2205 echo "configure: failed program was:" >&5
2206 cat conftest.
$ac_ext >&5
2208 lt_cv_cc_needs_belf
=no
2212 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2213 ac_cpp
='$CPP $CPPFLAGS'
2214 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2215 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2216 cross_compiling
=$ac_cv_prog_cc_cross
2220 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2221 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2222 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2223 CFLAGS
="$SAVE_CFLAGS"
2231 # Save cache, so that ltconfig can load it
2232 cat > confcache
<<\EOF
2233 # This file is a shell script that caches the results of configure
2234 # tests run on this system so they can be shared between configure
2235 # scripts and configure runs. It is not useful on other systems.
2236 # If it contains results you don't want to keep, you may remove or edit it.
2238 # By default, configure uses ./config.cache as the cache file,
2239 # creating it if it does not exist already. You can give configure
2240 # the --cache-file=FILE option to use a different cache file; that is
2241 # what configure does when it calls configure scripts in
2242 # subdirectories, so they share the cache.
2243 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2244 # config.status only pays attention to the cache file if you give it the
2245 # --recheck option to rerun configure.
2248 # The following way of writing the cache mishandles newlines in values,
2249 # but we know of no workaround that is simple, portable, and efficient.
2250 # So, don't put newlines in cache variables' values.
2251 # Ultrix sh set writes to stderr and can't be redirected directly,
2252 # and sets the high bit in the cache file unless we assign to the vars.
2254 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2256 # `set' does not quote correctly, so add quotes (double-quote substitution
2257 # turns \\\\ into \\, and sed turns \\ into \).
2259 -e "s/'/'\\\\''/g" \
2260 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2263 # `set' quotes correctly as required by POSIX, so do not add quotes.
2264 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2267 if cmp -s $cache_file confcache
; then
2270 if test -w $cache_file; then
2271 echo "updating cache $cache_file"
2272 cat confcache
> $cache_file
2274 echo "not updating unwritable cache $cache_file"
2280 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2281 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2282 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2283 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2284 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2285 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2286 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2287 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2288 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2289 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2291 # Reload cache, that may have been modified by ltconfig
2292 if test -r "$cache_file"; then
2293 echo "loading cache $cache_file"
2296 echo "creating cache $cache_file"
2301 # This can be used to rebuild libtool when needed
2302 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2304 # Always use our own libtool.
2305 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2307 # Redirect the config.log output again, so that the ltconfig log is not
2308 # clobbered by the next message.
2309 exec 5>>.
/config.log
2317 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2318 if test "${enable_64_bit_bfd+set}" = set; then
2319 enableval
="$enable_64_bit_bfd"
2320 case "${enableval}" in
2323 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2328 # Check whether --enable-targets or --disable-targets was given.
2329 if test "${enable_targets+set}" = set; then
2330 enableval
="$enable_targets"
2331 case "${enableval}" in
2332 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2334 no
) enable_targets
= ;;
2335 *) enable_targets
=$enableval ;;
2338 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2339 if test "${enable_commonbfdlib+set}" = set; then
2340 enableval
="$enable_commonbfdlib"
2341 case "${enableval}" in
2342 yes) commonbfdlib
=true
;;
2343 no
) commonbfdlib
=false
;;
2344 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2347 # Check whether --with-mmap or --without-mmap was given.
2348 if test "${with_mmap+set}" = set; then
2349 withval
="$with_mmap"
2350 case "${withval}" in
2351 yes) want_mmap
=true
;;
2352 no
) want_mmap
=false
;;
2353 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2359 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2360 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2361 if test "${enable_build_warnings+set}" = set; then
2362 enableval
="$enable_build_warnings"
2363 case "${enableval}" in
2365 no
) build_warnings
="-w";;
2366 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2367 build_warnings
="${build_warnings} ${t}";;
2368 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2369 build_warnings
="${t} ${build_warnings}";;
2370 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2372 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2373 echo "Setting warning flags = $build_warnings" 6>&1
2377 if test "x${build_warnings}" != x
&& test "x$GCC" = xyes
; then
2378 WARN_CFLAGS
="${build_warnings}"
2386 if test -z "$target" ; then
2387 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2390 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2391 echo "configure:2392: checking whether to enable maintainer-specific portions of Makefiles" >&5
2392 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2393 if test "${enable_maintainer_mode+set}" = set; then
2394 enableval
="$enable_maintainer_mode"
2395 USE_MAINTAINER_MODE
=$enableval
2397 USE_MAINTAINER_MODE
=no
2400 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2403 if test $USE_MAINTAINER_MODE = yes; then
2404 MAINTAINER_MODE_TRUE
=
2405 MAINTAINER_MODE_FALSE
='#'
2407 MAINTAINER_MODE_TRUE
='#'
2408 MAINTAINER_MODE_FALSE
=
2410 MAINT
=$MAINTAINER_MODE_TRUE
2413 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2414 echo "configure:2415: checking whether to install libbfd" >&5
2415 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2416 if test "${enable_install_libbfd+set}" = set; then
2417 enableval
="$enable_install_libbfd"
2418 install_libbfd_p
=$enableval
2420 if test "${host}" = "${target}" ||
test "$enable_shared" = "yes"; then
2421 install_libbfd_p
=yes
2427 echo "$ac_t""$install_libbfd_p" 1>&6
2430 if test $install_libbfd_p = yes; then
2431 INSTALL_LIBBFD_TRUE
=
2432 INSTALL_LIBBFD_FALSE
='#'
2434 INSTALL_LIBBFD_TRUE
='#'
2435 INSTALL_LIBBFD_FALSE
=
2437 # libbfd.a is a host library containing target dependent code
2438 bfdlibdir
='$(libdir)'
2439 bfdincludedir
='$(includedir)'
2440 if test "${host}" != "${target}"; then
2441 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2442 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2450 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2451 echo "configure:2452: checking for executable suffix" >&5
2452 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2453 echo $ac_n "(cached) $ac_c" 1>&6
2455 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2459 echo 'int main () { return 0; }' > conftest.
$ac_ext
2461 if { (eval echo configure
:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2462 for file in conftest.
*; do
2464 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2465 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2469 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2472 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2477 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2478 echo "$ac_t""${ac_cv_exeext}" 1>&6
2484 bfd_default_target_size
=32
2488 # Extract the first word of "gcc", so it can be a program name with args.
2489 set dummy gcc
; ac_word
=$2
2490 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2491 echo "configure:2492: checking for $ac_word" >&5
2492 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2493 echo $ac_n "(cached) $ac_c" 1>&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC
="$CC" # Let the user override the test.
2498 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2500 for ac_dir
in $ac_dummy; do
2501 test -z "$ac_dir" && ac_dir
=.
2502 if test -f $ac_dir/$ac_word; then
2511 if test -n "$CC"; then
2512 echo "$ac_t""$CC" 1>&6
2514 echo "$ac_t""no" 1>&6
2517 if test -z "$CC"; then
2518 # Extract the first word of "cc", so it can be a program name with args.
2519 set dummy cc
; ac_word
=$2
2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2521 echo "configure:2522: checking for $ac_word" >&5
2522 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2523 echo $ac_n "(cached) $ac_c" 1>&6
2525 if test -n "$CC"; then
2526 ac_cv_prog_CC
="$CC" # Let the user override the test.
2528 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2531 for ac_dir
in $ac_dummy; do
2532 test -z "$ac_dir" && ac_dir
=.
2533 if test -f $ac_dir/$ac_word; then
2534 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2535 ac_prog_rejected
=yes
2543 if test $ac_prog_rejected = yes; then
2544 # We found a bogon in the path, so make sure we never use it.
2545 set dummy
$ac_cv_prog_CC
2547 if test $# -gt 0; then
2548 # We chose a different compiler from the bogus one.
2549 # However, it has the same basename, so the bogon will be chosen
2550 # first if we set CC to just the basename; use the full file name.
2552 set dummy
"$ac_dir/$ac_word" "$@"
2560 if test -n "$CC"; then
2561 echo "$ac_t""$CC" 1>&6
2563 echo "$ac_t""no" 1>&6
2566 if test -z "$CC"; then
2567 case "`uname -s`" in
2569 # Extract the first word of "cl", so it can be a program name with args.
2570 set dummy cl
; ac_word
=$2
2571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2572 echo "configure:2573: checking for $ac_word" >&5
2573 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2574 echo $ac_n "(cached) $ac_c" 1>&6
2576 if test -n "$CC"; then
2577 ac_cv_prog_CC
="$CC" # Let the user override the test.
2579 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2581 for ac_dir
in $ac_dummy; do
2582 test -z "$ac_dir" && ac_dir
=.
2583 if test -f $ac_dir/$ac_word; then
2592 if test -n "$CC"; then
2593 echo "$ac_t""$CC" 1>&6
2595 echo "$ac_t""no" 1>&6
2600 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2603 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2604 echo "configure:2605: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2608 ac_cpp
='$CPP $CPPFLAGS'
2609 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2610 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2611 cross_compiling
=$ac_cv_prog_cc_cross
2613 cat > conftest.
$ac_ext << EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2620 if { (eval echo configure
:2621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2621 ac_cv_prog_cc_works
=yes
2622 # If we can't run a trivial program, we are probably using a cross compiler.
2623 if (.
/conftest
; exit) 2>/dev
/null
; then
2624 ac_cv_prog_cc_cross
=no
2626 ac_cv_prog_cc_cross
=yes
2629 echo "configure: failed program was:" >&5
2630 cat conftest.
$ac_ext >&5
2631 ac_cv_prog_cc_works
=no
2635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2636 ac_cpp
='$CPP $CPPFLAGS'
2637 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2638 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2639 cross_compiling
=$ac_cv_prog_cc_cross
2641 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2642 if test $ac_cv_prog_cc_works = no
; then
2643 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2645 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2646 echo "configure:2647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2647 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2648 cross_compiling
=$ac_cv_prog_cc_cross
2650 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2651 echo "configure:2652: checking whether we are using GNU C" >&5
2652 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.c
<<EOF
2660 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2667 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2669 if test $ac_cv_prog_gcc = yes; then
2675 ac_test_CFLAGS
="${CFLAGS+set}"
2676 ac_save_CFLAGS
="$CFLAGS"
2678 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2679 echo "configure:2680: checking whether ${CC-cc} accepts -g" >&5
2680 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 echo 'void f(){}' > conftest.c
2684 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2693 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2694 if test "$ac_test_CFLAGS" = set; then
2695 CFLAGS
="$ac_save_CFLAGS"
2696 elif test $ac_cv_prog_cc_g = yes; then
2697 if test "$GCC" = yes; then
2703 if test "$GCC" = yes; then
2711 ALL_LINGUAS
="fr tr ja es sv da zh_CN ro"
2712 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2713 echo "configure:2714: checking how to run the C preprocessor" >&5
2714 # On Suns, sometimes $CPP names a directory.
2715 if test -n "$CPP" && test -d "$CPP"; then
2718 if test -z "$CPP"; then
2719 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 # This must be in double quotes, not single quotes, because CPP may get
2723 # substituted into the Makefile and "${CC-cc}" will confuse make.
2725 # On the NeXT, cc -E runs the code through the compiler's parser,
2726 # not just through cpp.
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2729 "configure"
2729 #include "confdefs.h"
2733 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734 { (eval echo configure
:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736 if test -z "$ac_err"; then
2740 echo "configure: failed program was:" >&5
2741 cat conftest.
$ac_ext >&5
2743 CPP
="${CC-cc} -E -traditional-cpp"
2744 cat > conftest.
$ac_ext <<EOF
2745 #line 2746 "configure"
2746 #include "confdefs.h"
2750 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2751 { (eval echo configure
:2752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2752 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2753 if test -z "$ac_err"; then
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2760 CPP
="${CC-cc} -nologo -E"
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2767 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2768 { (eval echo configure
:2769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2769 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2770 if test -z "$ac_err"; then
2774 echo "configure: failed program was:" >&5
2775 cat conftest.
$ac_ext >&5
2784 ac_cv_prog_CPP
="$CPP"
2786 CPP
="$ac_cv_prog_CPP"
2788 ac_cv_prog_CPP
="$CPP"
2790 echo "$ac_t""$CPP" 1>&6
2792 # Extract the first word of "ranlib", so it can be a program name with args.
2793 set dummy ranlib
; ac_word
=$2
2794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2795 echo "configure:2796: checking for $ac_word" >&5
2796 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2797 echo $ac_n "(cached) $ac_c" 1>&6
2799 if test -n "$RANLIB"; then
2800 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2802 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2804 for ac_dir
in $ac_dummy; do
2805 test -z "$ac_dir" && ac_dir
=.
2806 if test -f $ac_dir/$ac_word; then
2807 ac_cv_prog_RANLIB
="ranlib"
2812 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2815 RANLIB
="$ac_cv_prog_RANLIB"
2816 if test -n "$RANLIB"; then
2817 echo "$ac_t""$RANLIB" 1>&6
2819 echo "$ac_t""no" 1>&6
2822 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2823 echo "configure:2824: checking for ANSI C header files" >&5
2824 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 cat > conftest.
$ac_ext <<EOF
2828 #line 2829 "configure"
2829 #include "confdefs.h"
2835 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2836 { (eval echo configure
:2837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2837 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2838 if test -z "$ac_err"; then
2840 ac_cv_header_stdc
=yes
2843 echo "configure: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2846 ac_cv_header_stdc
=no
2850 if test $ac_cv_header_stdc = yes; then
2851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2852 cat > conftest.
$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2858 egrep "memchr" >/dev
/null
2>&1; then
2862 ac_cv_header_stdc
=no
2868 if test $ac_cv_header_stdc = yes; then
2869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2870 cat > conftest.
$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2876 egrep "free" >/dev
/null
2>&1; then
2880 ac_cv_header_stdc
=no
2886 if test $ac_cv_header_stdc = yes; then
2887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2888 if test "$cross_compiling" = yes; then
2891 cat > conftest.
$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2895 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2896 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2898 int main () { int i; for (i = 0; i < 256; i++)
2899 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2903 if { (eval echo configure
:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2907 echo "configure: failed program was:" >&5
2908 cat conftest.
$ac_ext >&5
2910 ac_cv_header_stdc
=no
2918 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2919 if test $ac_cv_header_stdc = yes; then
2920 cat >> confdefs.h
<<\EOF
2921 #define STDC_HEADERS 1
2926 echo $ac_n "checking for working const""... $ac_c" 1>&6
2927 echo "configure:2928: checking for working const" >&5
2928 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.
$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2937 /* Ultrix mips cc rejects this. */
2938 typedef int charset[2]; const charset x;
2939 /* SunOS 4.1.1 cc rejects this. */
2940 char const *const *ccp;
2942 /* NEC SVR4.0.2 mips cc rejects this. */
2943 struct point {int x, y;};
2944 static struct point const zero = {0,0};
2945 /* AIX XL C 1.02.0.0 rejects this.
2946 It does not let you subtract one const X* pointer from another in an arm
2947 of an if-expression whose if-part is not a constant expression */
2948 const char *g = "string";
2949 ccp = &g + (g ? g-g : 0);
2950 /* HPUX 7.0 cc rejects these. */
2953 ccp = (char const *const *) p;
2954 { /* SCO 3.2v4 cc rejects this. */
2956 char const *s = 0 ? (char *) 0 : (char const *) 0;
2960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2962 const int *foo = &x[0];
2965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2966 typedef const int *iptr;
2970 { /* AIX XL C 1.02.0.0 rejects this saying
2971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2972 struct s { int j; const int *ap[3]; };
2973 struct s *b; b->j = 5;
2975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2981 if { (eval echo configure
:2982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2985 echo "configure: failed program was:" >&5
2986 cat conftest.
$ac_ext >&5
2993 echo "$ac_t""$ac_cv_c_const" 1>&6
2994 if test $ac_cv_c_const = no
; then
2995 cat >> confdefs.h
<<\EOF
3001 echo $ac_n "checking for inline""... $ac_c" 1>&6
3002 echo "configure:3003: checking for inline" >&5
3003 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3007 for ac_kw
in inline __inline__ __inline
; do
3008 cat > conftest.
$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3016 if { (eval echo configure
:3017: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3018 ac_cv_c_inline
=$ac_kw; break
3020 echo "configure: failed program was:" >&5
3021 cat conftest.
$ac_ext >&5
3028 echo "$ac_t""$ac_cv_c_inline" 1>&6
3029 case "$ac_cv_c_inline" in
3031 no
) cat >> confdefs.h
<<\EOF
3035 *) cat >> confdefs.h
<<EOF
3036 #define inline $ac_cv_c_inline
3041 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3042 echo "configure:3043: checking for off_t" >&5
3043 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3044 echo $ac_n "(cached) $ac_c" 1>&6
3046 cat > conftest.
$ac_ext <<EOF
3047 #line 3048 "configure"
3048 #include "confdefs.h"
3049 #include <sys/types.h>
3055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3056 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3058 ac_cv_type_off_t
=yes
3066 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3067 if test $ac_cv_type_off_t = no
; then
3068 cat >> confdefs.h
<<\EOF
3074 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3075 echo "configure:3076: checking for size_t" >&5
3076 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 #include <sys/types.h>
3088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3089 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3091 ac_cv_type_size_t
=yes
3094 ac_cv_type_size_t
=no
3099 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3100 if test $ac_cv_type_size_t = no
; then
3101 cat >> confdefs.h
<<\EOF
3102 #define size_t unsigned
3107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3108 # for constant arguments. Useless!
3109 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3110 echo "configure:3111: checking for working alloca.h" >&5
3111 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 cat > conftest.
$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3119 char *p = alloca(2 * sizeof(int));
3122 if { (eval echo configure
:3123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3124 ac_cv_header_alloca_h
=yes
3126 echo "configure: failed program was:" >&5
3127 cat conftest.
$ac_ext >&5
3129 ac_cv_header_alloca_h
=no
3134 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3135 if test $ac_cv_header_alloca_h = yes; then
3136 cat >> confdefs.h
<<\EOF
3137 #define HAVE_ALLOCA_H 1
3142 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3143 echo "configure:3144: checking for alloca" >&5
3144 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.
$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3152 # define alloca __builtin_alloca
3155 # include <malloc.h>
3156 # define alloca _alloca
3159 # include <alloca.h>
3164 # ifndef alloca /* predefined by HP cc +Olibcalls */
3173 char *p = (char *) alloca(1);
3176 if { (eval echo configure
:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3178 ac_cv_func_alloca_works
=yes
3180 echo "configure: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3183 ac_cv_func_alloca_works
=no
3188 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3189 if test $ac_cv_func_alloca_works = yes; then
3190 cat >> confdefs.h
<<\EOF
3191 #define HAVE_ALLOCA 1
3196 if test $ac_cv_func_alloca_works = no
; then
3197 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3198 # that cause trouble. Some versions do not even contain alloca or
3199 # contain a buggy version. If you still want to use their alloca,
3200 # use ar to extract alloca.o from them instead of compiling alloca.c.
3201 ALLOCA
=alloca.
${ac_objext}
3202 cat >> confdefs.h
<<\EOF
3207 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3208 echo "configure:3209: checking whether alloca needs Cray hooks" >&5
3209 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 cat > conftest.
$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3215 #if defined(CRAY) && ! defined(CRAY2)
3222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3223 egrep "webecray" >/dev
/null
2>&1; then
3234 echo "$ac_t""$ac_cv_os_cray" 1>&6
3235 if test $ac_cv_os_cray = yes; then
3236 for ac_func
in _getb67 GETB67 getb67
; do
3237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3238 echo "configure:3239: checking for $ac_func" >&5
3239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.
$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 /* System header to define __stub macros and hopefully few prototypes,
3246 which can conflict with char $ac_func(); below. */
3248 /* Override any gcc2 internal prototype to avoid an error. */
3249 /* We use char because int might match the return type of a gcc2
3250 builtin and then its argument prototype would still apply. */
3255 /* The GNU C library defines this for functions which it implements
3256 to always fail with ENOSYS. Some functions are actually named
3257 something starting with __ and the normal name is an alias. */
3258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3266 if { (eval echo configure
:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3268 eval "ac_cv_func_$ac_func=yes"
3270 echo "configure: failed program was:" >&5
3271 cat conftest.
$ac_ext >&5
3273 eval "ac_cv_func_$ac_func=no"
3278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 cat >> confdefs.h
<<EOF
3281 #define CRAY_STACKSEG_END $ac_func
3286 echo "$ac_t""no" 1>&6
3292 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3293 echo "configure:3294: checking stack direction for C alloca" >&5
3294 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3295 echo $ac_n "(cached) $ac_c" 1>&6
3297 if test "$cross_compiling" = yes; then
3298 ac_cv_c_stack_direction
=0
3300 cat > conftest.
$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 find_stack_direction ()
3305 static char *addr = 0;
3310 return find_stack_direction ();
3313 return (&dummy > addr) ? 1 : -1;
3317 exit (find_stack_direction() < 0);
3320 if { (eval echo configure
:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3322 ac_cv_c_stack_direction
=1
3324 echo "configure: failed program was:" >&5
3325 cat conftest.
$ac_ext >&5
3327 ac_cv_c_stack_direction
=-1
3334 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3335 cat >> confdefs.h
<<EOF
3336 #define STACK_DIRECTION $ac_cv_c_stack_direction
3341 for ac_hdr
in unistd.h
3343 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_hdr" >&5
3346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.
$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3354 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3355 { (eval echo configure
:3356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3356 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3357 if test -z "$ac_err"; then
3359 eval "ac_cv_header_$ac_safe=yes"
3362 echo "configure: failed program was:" >&5
3363 cat conftest.
$ac_ext >&5
3365 eval "ac_cv_header_$ac_safe=no"
3369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3370 echo "$ac_t""yes" 1>&6
3371 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3372 cat >> confdefs.h
<<EOF
3373 #define $ac_tr_hdr 1
3377 echo "$ac_t""no" 1>&6
3381 for ac_func
in getpagesize
3383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_func" >&5
3385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 cat > conftest.
$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3391 /* System header to define __stub macros and hopefully few prototypes,
3392 which can conflict with char $ac_func(); below. */
3394 /* Override any gcc2 internal prototype to avoid an error. */
3395 /* We use char because int might match the return type of a gcc2
3396 builtin and then its argument prototype would still apply. */
3401 /* The GNU C library defines this for functions which it implements
3402 to always fail with ENOSYS. Some functions are actually named
3403 something starting with __ and the normal name is an alias. */
3404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3412 if { (eval echo configure
:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3414 eval "ac_cv_func_$ac_func=yes"
3416 echo "configure: failed program was:" >&5
3417 cat conftest.
$ac_ext >&5
3419 eval "ac_cv_func_$ac_func=no"
3424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3425 echo "$ac_t""yes" 1>&6
3426 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3427 cat >> confdefs.h
<<EOF
3428 #define $ac_tr_func 1
3432 echo "$ac_t""no" 1>&6
3436 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3437 echo "configure:3438: checking for working mmap" >&5
3438 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3439 echo $ac_n "(cached) $ac_c" 1>&6
3441 if test "$cross_compiling" = yes; then
3442 ac_cv_func_mmap_fixed_mapped
=no
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3448 /* Thanks to Mike Haertel and Jim Avera for this test.
3449 Here is a matrix of mmap possibilities:
3450 mmap private not fixed
3451 mmap private fixed at somewhere currently unmapped
3452 mmap private fixed at somewhere already mapped
3453 mmap shared not fixed
3454 mmap shared fixed at somewhere currently unmapped
3455 mmap shared fixed at somewhere already mapped
3456 For private mappings, we should verify that changes cannot be read()
3457 back from the file, nor mmap's back from the file at a different
3458 address. (There have been systems where private was not correctly
3459 implemented like the infamous i386 svr4.0, and systems where the
3460 VM page cache was not coherent with the filesystem buffer cache
3461 like early versions of FreeBSD and possibly contemporary NetBSD.)
3462 For shared mappings, we should conversely verify that changes get
3463 propogated back to all the places they're supposed to be.
3465 Grep wants private fixed already mapped.
3466 The main things grep needs to know about mmap are:
3467 * does it exist and is it safe to write into the mmap'd area
3468 * how to use it (BSD variants) */
3469 #include <sys/types.h>
3471 #include <sys/mman.h>
3473 /* This mess was copied from the GNU getpagesize.h. */
3474 #ifndef HAVE_GETPAGESIZE
3475 # ifdef HAVE_UNISTD_H
3476 # include <unistd.h>
3479 /* Assume that all systems that can run configure have sys/param.h. */
3480 # ifndef HAVE_SYS_PARAM_H
3481 # define HAVE_SYS_PARAM_H 1
3484 # ifdef _SC_PAGESIZE
3485 # define getpagesize() sysconf(_SC_PAGESIZE)
3486 # else /* no _SC_PAGESIZE */
3487 # ifdef HAVE_SYS_PARAM_H
3488 # include <sys/param.h>
3489 # ifdef EXEC_PAGESIZE
3490 # define getpagesize() EXEC_PAGESIZE
3491 # else /* no EXEC_PAGESIZE */
3493 # define getpagesize() NBPG * CLSIZE
3496 # endif /* no CLSIZE */
3497 # else /* no NBPG */
3499 # define getpagesize() NBPC
3500 # else /* no NBPC */
3502 # define getpagesize() PAGESIZE
3503 # endif /* PAGESIZE */
3504 # endif /* no NBPC */
3505 # endif /* no NBPG */
3506 # endif /* no EXEC_PAGESIZE */
3507 # else /* no HAVE_SYS_PARAM_H */
3508 # define getpagesize() 8192 /* punt totally */
3509 # endif /* no HAVE_SYS_PARAM_H */
3510 # endif /* no _SC_PAGESIZE */
3512 #endif /* no HAVE_GETPAGESIZE */
3515 extern "C" { void *malloc(unsigned); }
3523 char *data, *data2, *data3;
3527 pagesize = getpagesize();
3530 * First, make a file with some known garbage in it.
3532 data = malloc(pagesize);
3535 for (i = 0; i < pagesize; ++i)
3536 *(data + i) = rand();
3538 fd = creat("conftestmmap", 0600);
3541 if (write(fd, data, pagesize) != pagesize)
3546 * Next, try to mmap the file at a fixed address which
3547 * already has something else allocated at it. If we can,
3548 * also make sure that we see the same garbage.
3550 fd = open("conftestmmap", O_RDWR);
3553 data2 = malloc(2 * pagesize);
3556 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3557 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3560 for (i = 0; i < pagesize; ++i)
3561 if (*(data + i) != *(data2 + i))
3565 * Finally, make sure that changes to the mapped area
3566 * do not percolate back to the file as seen by read().
3567 * (This is a bug on some variants of i386 svr4.0.)
3569 for (i = 0; i < pagesize; ++i)
3570 *(data2 + i) = *(data2 + i) + 1;
3571 data3 = malloc(pagesize);
3574 if (read(fd, data3, pagesize) != pagesize)
3576 for (i = 0; i < pagesize; ++i)
3577 if (*(data + i) != *(data3 + i))
3580 unlink("conftestmmap");
3585 if { (eval echo configure
:3586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3587 ac_cv_func_mmap_fixed_mapped
=yes
3589 echo "configure: failed program was:" >&5
3590 cat conftest.
$ac_ext >&5
3592 ac_cv_func_mmap_fixed_mapped
=no
3599 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3600 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3601 cat >> confdefs.h
<<\EOF
3608 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3609 unistd.h values.h sys
/param.h
3611 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3613 echo "configure:3614: checking for $ac_hdr" >&5
3614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 cat > conftest.
$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure
:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3625 if test -z "$ac_err"; then
3627 eval "ac_cv_header_$ac_safe=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 eval "ac_cv_header_$ac_safe=no"
3637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3640 cat >> confdefs.h
<<EOF
3641 #define $ac_tr_hdr 1
3645 echo "$ac_t""no" 1>&6
3649 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3650 __argz_count __argz_stringify __argz_next
3652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $ac_func" >&5
3654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3660 /* System header to define __stub macros and hopefully few prototypes,
3661 which can conflict with char $ac_func(); below. */
3663 /* Override any gcc2 internal prototype to avoid an error. */
3664 /* We use char because int might match the return type of a gcc2
3665 builtin and then its argument prototype would still apply. */
3670 /* The GNU C library defines this for functions which it implements
3671 to always fail with ENOSYS. Some functions are actually named
3672 something starting with __ and the normal name is an alias. */
3673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3681 if { (eval echo configure
:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3683 eval "ac_cv_func_$ac_func=yes"
3685 echo "configure: failed program was:" >&5
3686 cat conftest.
$ac_ext >&5
3688 eval "ac_cv_func_$ac_func=no"
3693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3694 echo "$ac_t""yes" 1>&6
3695 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3696 cat >> confdefs.h
<<EOF
3697 #define $ac_tr_func 1
3701 echo "$ac_t""no" 1>&6
3706 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3707 for ac_func
in stpcpy
3709 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3710 echo "configure:3711: checking for $ac_func" >&5
3711 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 cat > conftest.
$ac_ext <<EOF
3715 #line 3716 "configure"
3716 #include "confdefs.h"
3717 /* System header to define __stub macros and hopefully few prototypes,
3718 which can conflict with char $ac_func(); below. */
3720 /* Override any gcc2 internal prototype to avoid an error. */
3721 /* We use char because int might match the return type of a gcc2
3722 builtin and then its argument prototype would still apply. */
3727 /* The GNU C library defines this for functions which it implements
3728 to always fail with ENOSYS. Some functions are actually named
3729 something starting with __ and the normal name is an alias. */
3730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3738 if { (eval echo configure
:3739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3740 eval "ac_cv_func_$ac_func=yes"
3742 echo "configure: failed program was:" >&5
3743 cat conftest.
$ac_ext >&5
3745 eval "ac_cv_func_$ac_func=no"
3750 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3751 echo "$ac_t""yes" 1>&6
3752 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3753 cat >> confdefs.h
<<EOF
3754 #define $ac_tr_func 1
3758 echo "$ac_t""no" 1>&6
3763 if test "${ac_cv_func_stpcpy}" = "yes"; then
3764 cat >> confdefs.h
<<\EOF
3765 #define HAVE_STPCPY 1
3770 if test $ac_cv_header_locale_h = yes; then
3771 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3772 echo "configure:3773: checking for LC_MESSAGES" >&5
3773 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 cat > conftest.
$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 am_cv_val_LC_MESSAGES
=yes
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 am_cv_val_LC_MESSAGES
=no
3796 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3797 if test $am_cv_val_LC_MESSAGES = yes; then
3798 cat >> confdefs.h
<<\EOF
3799 #define HAVE_LC_MESSAGES 1
3804 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3805 echo "configure:3806: checking whether NLS is requested" >&5
3806 # Check whether --enable-nls or --disable-nls was given.
3807 if test "${enable_nls+set}" = set; then
3808 enableval
="$enable_nls"
3814 echo "$ac_t""$USE_NLS" 1>&6
3817 USE_INCLUDED_LIBINTL
=no
3819 if test "$USE_NLS" = "yes"; then
3820 cat >> confdefs.h
<<\EOF
3821 #define ENABLE_NLS 1
3824 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3825 echo "configure:3826: checking whether included gettext is requested" >&5
3826 # Check whether --with-included-gettext or --without-included-gettext was given.
3827 if test "${with_included_gettext+set}" = set; then
3828 withval
="$with_included_gettext"
3829 nls_cv_force_use_gnu_gettext
=$withval
3831 nls_cv_force_use_gnu_gettext
=no
3834 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3836 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3837 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3839 nls_cv_header_libgt
=
3842 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3843 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3844 echo "configure:3845: checking for libintl.h" >&5
3845 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3851 #include <libintl.h>
3853 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3854 { (eval echo configure
:3855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3855 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3856 if test -z "$ac_err"; then
3858 eval "ac_cv_header_$ac_safe=yes"
3861 echo "configure: failed program was:" >&5
3862 cat conftest.
$ac_ext >&5
3864 eval "ac_cv_header_$ac_safe=no"
3868 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3869 echo "$ac_t""yes" 1>&6
3870 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3871 echo "configure:3872: checking for gettext in libc" >&5
3872 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3875 cat > conftest.
$ac_ext <<EOF
3876 #line 3877 "configure"
3877 #include "confdefs.h"
3878 #include <libintl.h>
3880 return (int) gettext ("")
3883 if { (eval echo configure
:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3885 gt_cv_func_gettext_libc
=yes
3887 echo "configure: failed program was:" >&5
3888 cat conftest.
$ac_ext >&5
3890 gt_cv_func_gettext_libc
=no
3895 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3897 if test "$gt_cv_func_gettext_libc" != "yes"; then
3898 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3899 echo "configure:3900: checking for bindtextdomain in -lintl" >&5
3900 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 ac_save_LIBS
="$LIBS"
3906 cat > conftest.
$ac_ext <<EOF
3907 #line 3908 "configure"
3908 #include "confdefs.h"
3909 /* Override any gcc2 internal prototype to avoid an error. */
3910 /* We use char because int might match the return type of a gcc2
3911 builtin and then its argument prototype would still apply. */
3912 char bindtextdomain();
3918 if { (eval echo configure
:3919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3920 eval "ac_cv_lib_$ac_lib_var=yes"
3922 echo "configure: failed program was:" >&5
3923 cat conftest.
$ac_ext >&5
3925 eval "ac_cv_lib_$ac_lib_var=no"
3928 LIBS
="$ac_save_LIBS"
3931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3932 echo "$ac_t""yes" 1>&6
3933 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3934 echo "configure:3935: checking for gettext in libintl" >&5
3935 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3938 cat > conftest.
$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3943 return (int) gettext ("")
3946 if { (eval echo configure
:3947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3948 gt_cv_func_gettext_libintl
=yes
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 gt_cv_func_gettext_libintl
=no
3958 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3960 echo "$ac_t""no" 1>&6
3965 if test "$gt_cv_func_gettext_libc" = "yes" \
3966 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3967 cat >> confdefs.h
<<\EOF
3968 #define HAVE_GETTEXT 1
3971 # Extract the first word of "msgfmt", so it can be a program name with args.
3972 set dummy msgfmt
; ac_word
=$2
3973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3974 echo "configure:3975: checking for $ac_word" >&5
3975 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3980 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3983 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3984 for ac_dir
in $PATH; do
3985 test -z "$ac_dir" && ac_dir
=.
3986 if test -f $ac_dir/$ac_word; then
3987 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3988 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3994 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3998 MSGFMT
="$ac_cv_path_MSGFMT"
3999 if test -n "$MSGFMT"; then
4000 echo "$ac_t""$MSGFMT" 1>&6
4002 echo "$ac_t""no" 1>&6
4004 if test "$MSGFMT" != "no"; then
4005 for ac_func
in dcgettext
4007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4008 echo "configure:4009: checking for $ac_func" >&5
4009 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.
$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 /* System header to define __stub macros and hopefully few prototypes,
4016 which can conflict with char $ac_func(); below. */
4018 /* Override any gcc2 internal prototype to avoid an error. */
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4025 /* The GNU C library defines this for functions which it implements
4026 to always fail with ENOSYS. Some functions are actually named
4027 something starting with __ and the normal name is an alias. */
4028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4036 if { (eval echo configure
:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4038 eval "ac_cv_func_$ac_func=yes"
4040 echo "configure: failed program was:" >&5
4041 cat conftest.
$ac_ext >&5
4043 eval "ac_cv_func_$ac_func=no"
4048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4050 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4051 cat >> confdefs.h
<<EOF
4052 #define $ac_tr_func 1
4056 echo "$ac_t""no" 1>&6
4060 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4061 set dummy gmsgfmt
; ac_word
=$2
4062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4063 echo "configure:4064: checking for $ac_word" >&5
4064 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4065 echo $ac_n "(cached) $ac_c" 1>&6
4069 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4072 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4077 for ac_dir
in $ac_dummy; do
4078 test -z "$ac_dir" && ac_dir
=.
4079 if test -f $ac_dir/$ac_word; then
4080 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4085 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4089 GMSGFMT
="$ac_cv_path_GMSGFMT"
4090 if test -n "$GMSGFMT"; then
4091 echo "$ac_t""$GMSGFMT" 1>&6
4093 echo "$ac_t""no" 1>&6
4096 # Extract the first word of "xgettext", so it can be a program name with args.
4097 set dummy xgettext
; ac_word
=$2
4098 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4099 echo "configure:4100: checking for $ac_word" >&5
4100 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4105 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4108 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4109 for ac_dir
in $PATH; do
4110 test -z "$ac_dir" && ac_dir
=.
4111 if test -f $ac_dir/$ac_word; then
4112 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4113 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4119 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4123 XGETTEXT
="$ac_cv_path_XGETTEXT"
4124 if test -n "$XGETTEXT"; then
4125 echo "$ac_t""$XGETTEXT" 1>&6
4127 echo "$ac_t""no" 1>&6
4130 cat > conftest.
$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4135 extern int _nl_msg_cat_cntr;
4136 return _nl_msg_cat_cntr
4139 if { (eval echo configure
:4140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4144 echo "configure: failed program was:" >&5
4145 cat conftest.
$ac_ext >&5
4156 echo "$ac_t""no" 1>&6
4161 if test "$CATOBJEXT" = "NONE"; then
4162 nls_cv_use_gnu_gettext
=yes
4166 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4167 INTLOBJS
="\$(GETTOBJS)"
4168 # Extract the first word of "msgfmt", so it can be a program name with args.
4169 set dummy msgfmt
; ac_word
=$2
4170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_word" >&5
4172 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4177 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4180 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4181 for ac_dir
in $PATH; do
4182 test -z "$ac_dir" && ac_dir
=.
4183 if test -f $ac_dir/$ac_word; then
4184 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4185 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4191 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4195 MSGFMT
="$ac_cv_path_MSGFMT"
4196 if test -n "$MSGFMT"; then
4197 echo "$ac_t""$MSGFMT" 1>&6
4199 echo "$ac_t""no" 1>&6
4202 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4203 set dummy gmsgfmt
; ac_word
=$2
4204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4205 echo "configure:4206: checking for $ac_word" >&5
4206 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4207 echo $ac_n "(cached) $ac_c" 1>&6
4211 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4214 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4217 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4219 for ac_dir
in $ac_dummy; do
4220 test -z "$ac_dir" && ac_dir
=.
4221 if test -f $ac_dir/$ac_word; then
4222 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4227 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4231 GMSGFMT
="$ac_cv_path_GMSGFMT"
4232 if test -n "$GMSGFMT"; then
4233 echo "$ac_t""$GMSGFMT" 1>&6
4235 echo "$ac_t""no" 1>&6
4238 # Extract the first word of "xgettext", so it can be a program name with args.
4239 set dummy xgettext
; ac_word
=$2
4240 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4241 echo "configure:4242: checking for $ac_word" >&5
4242 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4243 echo $ac_n "(cached) $ac_c" 1>&6
4247 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4250 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4251 for ac_dir
in $PATH; do
4252 test -z "$ac_dir" && ac_dir
=.
4253 if test -f $ac_dir/$ac_word; then
4254 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4255 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4261 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4265 XGETTEXT
="$ac_cv_path_XGETTEXT"
4266 if test -n "$XGETTEXT"; then
4267 echo "$ac_t""$XGETTEXT" 1>&6
4269 echo "$ac_t""no" 1>&6
4273 USE_INCLUDED_LIBINTL
=yes
4277 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4279 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4280 nls_cv_header_intl
=libintl.h
4281 nls_cv_header_libgt
=libgettext.h
4284 if test "$XGETTEXT" != ":"; then
4285 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4288 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4293 # We need to process the po/ directory.
4297 nls_cv_header_intl
=libintl.h
4298 nls_cv_header_libgt
=libgettext.h
4301 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4302 # because some of the sources are only built for this goal.
4303 if test "$PACKAGE" = gettext; then
4305 USE_INCLUDED_LIBINTL
=yes
4308 for lang
in $ALL_LINGUAS; do
4309 GMOFILES
="$GMOFILES $lang.gmo"
4310 POFILES
="$POFILES $lang.po"
4326 if test "x$CATOBJEXT" != "x"; then
4327 if test "x$ALL_LINGUAS" = "x"; then
4330 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4331 echo "configure:4332: checking for catalogs to be installed" >&5
4333 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4334 case "$ALL_LINGUAS" in
4335 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4338 LINGUAS
=$NEW_LINGUAS
4339 echo "$ac_t""$LINGUAS" 1>&6
4342 if test -n "$LINGUAS"; then
4343 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4347 if test $ac_cv_header_locale_h = yes; then
4348 INCLUDE_LOCALE_H
="#include <locale.h>"
4351 /* The system does not provide the header <locale.h>. Take care yourself. */"
4355 if test -f $srcdir/po2tbl.
sed.
in; then
4356 if test "$CATOBJEXT" = ".cat"; then
4357 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4358 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4359 echo "configure:4360: checking for linux/version.h" >&5
4360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4363 cat > conftest.
$ac_ext <<EOF
4364 #line 4365 "configure"
4365 #include "confdefs.h"
4366 #include <linux/version.h>
4368 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4369 { (eval echo configure
:4370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4370 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4371 if test -z "$ac_err"; then
4373 eval "ac_cv_header_$ac_safe=yes"
4376 echo "configure: failed program was:" >&5
4377 cat conftest.
$ac_ext >&5
4379 eval "ac_cv_header_$ac_safe=no"
4383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4384 echo "$ac_t""yes" 1>&6
4387 echo "$ac_t""no" 1>&6
4392 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4394 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4395 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4398 if test "$PACKAGE" = "gettext"; then
4408 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4414 if test -f $srcdir/po
/POTFILES.
in; then
4415 test -d po || mkdir po
4416 if test "x$srcdir" != "x."; then
4417 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4418 posrcprefix
="$srcdir/"
4420 posrcprefix
="../$srcdir/"
4426 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4427 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4431 # Permit host specific settings.
4432 .
${srcdir}/configure.
host
4435 # Find a good install program. We prefer a C program (faster),
4436 # so one script is as good as another. But avoid the broken or
4437 # incompatible versions:
4438 # SysV /etc/install, /usr/sbin/install
4439 # SunOS /usr/etc/install
4440 # IRIX /sbin/install
4442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4445 # ./install, which can be erroneously created by make from ./install.sh.
4446 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4447 echo "configure:4448: checking for a BSD compatible install" >&5
4448 if test -z "$INSTALL"; then
4449 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4453 for ac_dir
in $PATH; do
4454 # Account for people who put trailing slashes in PATH elements.
4456 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4458 # OSF1 and SCO ODT 3.0 have their own names for install.
4459 # Don't use installbsd from OSF since it installs stuff as root
4461 for ac_prog
in ginstall scoinst
install; do
4462 if test -f $ac_dir/$ac_prog; then
4463 if test $ac_prog = install &&
4464 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4465 # AIX install. It has an incompatible calling convention.
4468 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4479 if test "${ac_cv_path_install+set}" = set; then
4480 INSTALL
="$ac_cv_path_install"
4482 # As a last resort, use the slow shell script. We don't cache a
4483 # path for INSTALL within a source directory, because that will
4484 # break other packages using the cache if that directory is
4485 # removed, or if the path is relative.
4486 INSTALL
="$ac_install_sh"
4489 echo "$ac_t""$INSTALL" 1>&6
4491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4492 # It thinks the first close brace ends the variable substitution.
4493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4497 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4500 BFD_HOST_64BIT_LONG
=0
4501 BFD_HOST_LONG_LONG
=0
4502 BFD_HOST_64_BIT_DEFINED
=0
4506 echo $ac_n "checking for long long""... $ac_c" 1>&6
4507 echo "configure:4508: checking for long long" >&5
4508 if eval "test \"`echo '$''{'bfd_cv_has_long_long'+set}'`\" = set"; then
4509 echo $ac_n "(cached) $ac_c" 1>&6
4511 cat > conftest.
$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4516 unsigned long long ll = 18446744073709551615ULL;
4519 if { (eval echo configure
:4520: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4521 bfd_cv_has_long_long
=yes
4523 echo "configure: failed program was:" >&5
4524 cat conftest.
$ac_ext >&5
4526 bfd_cv_has_long_long
=no
4531 echo "$ac_t""$bfd_cv_has_long_long" 1>&6
4532 if test $bfd_cv_has_long_long = yes; then
4533 BFD_HOST_LONG_LONG
=1
4534 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4535 echo "configure:4536: checking size of long long" >&5
4536 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4537 echo $ac_n "(cached) $ac_c" 1>&6
4539 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4540 cat > conftest.
$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 #include "confdefs.h"
4544 #include <sys/types.h>
4548 switch (0) case 0: case (sizeof (long long) == $ac_size):;
4551 if { (eval echo configure
:4552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4553 ac_cv_sizeof_long_long
=$ac_size
4555 echo "configure: failed program was:" >&5
4556 cat conftest.
$ac_ext >&5
4559 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
4564 if test x
$ac_cv_sizeof_long_long = x
; then
4565 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
4567 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4568 cat >> confdefs.h
<<EOF
4569 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4575 echo $ac_n "checking size of long""... $ac_c" 1>&6
4576 echo "configure:4577: checking size of long" >&5
4577 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
4581 cat > conftest.
$ac_ext <<EOF
4582 #line 4583 "configure"
4583 #include "confdefs.h"
4584 #include "confdefs.h"
4585 #include <sys/types.h>
4589 switch (0) case 0: case (sizeof (long) == $ac_size):;
4592 if { (eval echo configure
:4593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4594 ac_cv_sizeof_long
=$ac_size
4596 echo "configure: failed program was:" >&5
4597 cat conftest.
$ac_ext >&5
4600 if test x
$ac_cv_sizeof_long != x
; then break; fi
4605 if test x
$ac_cv_sizeof_long = x
; then
4606 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
4608 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4609 cat >> confdefs.h
<<EOF
4610 #define SIZEOF_LONG $ac_cv_sizeof_long
4614 if test "x${ac_cv_sizeof_long}" = "x8"; then
4616 HOST_64BIT_TYPE
="long"
4617 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
4618 HOST_64BIT_TYPE
="long long"
4619 HOST_U_64BIT_TYPE
="unsigned long long"
4622 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4623 BFD_HOST_64BIT_LONG
=1
4624 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4625 BFD_HOST_64_BIT_DEFINED
=1
4626 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4627 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4636 # Put a plausible default for CC_FOR_BUILD in Makefile.
4637 if test -z "$CC_FOR_BUILD"; then
4638 if test "x$cross_compiling" = "xno"; then
4639 CC_FOR_BUILD
='$(CC)'
4645 # Also set EXEEXT_FOR_BUILD.
4646 if test "x$cross_compiling" = "xno"; then
4647 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4649 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4650 echo "configure:4651: checking for build system executable suffix" >&5
4651 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4655 echo 'int main () { return 0; }' > conftest.c
4656 bfd_cv_build_exeext
=
4657 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4658 for file in conftest.
*; do
4660 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4661 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4665 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4668 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4670 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4674 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4676 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4677 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_hdr" >&5
4679 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 cat > conftest.
$ac_ext <<EOF
4683 #line 4684 "configure"
4684 #include "confdefs.h"
4687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4688 { (eval echo configure
:4689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4690 if test -z "$ac_err"; then
4692 eval "ac_cv_header_$ac_safe=yes"
4695 echo "configure: failed program was:" >&5
4696 cat conftest.
$ac_ext >&5
4698 eval "ac_cv_header_$ac_safe=no"
4702 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4705 cat >> confdefs.h
<<EOF
4706 #define $ac_tr_hdr 1
4710 echo "$ac_t""no" 1>&6
4714 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_hdr" >&5
4719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 cat > conftest.
$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure
:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4730 if test -z "$ac_err"; then
4732 eval "ac_cv_header_$ac_safe=yes"
4735 echo "configure: failed program was:" >&5
4736 cat conftest.
$ac_ext >&5
4738 eval "ac_cv_header_$ac_safe=no"
4742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4745 cat >> confdefs.h
<<EOF
4746 #define $ac_tr_hdr 1
4750 echo "$ac_t""no" 1>&6
4754 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4755 echo "configure:4756: checking whether time.h and sys/time.h may both be included" >&5
4756 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.
$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4762 #include <sys/types.h>
4763 #include <sys/time.h>
4769 if { (eval echo configure
:4770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4771 ac_cv_header_time
=yes
4773 echo "configure: failed program was:" >&5
4774 cat conftest.
$ac_ext >&5
4776 ac_cv_header_time
=no
4781 echo "$ac_t""$ac_cv_header_time" 1>&6
4782 if test $ac_cv_header_time = yes; then
4783 cat >> confdefs.h
<<\EOF
4784 #define TIME_WITH_SYS_TIME 1
4790 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4793 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4794 echo "configure:4795: checking for $ac_hdr that defines DIR" >&5
4795 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4796 echo $ac_n "(cached) $ac_c" 1>&6
4798 cat > conftest.
$ac_ext <<EOF
4799 #line 4800 "configure"
4800 #include "confdefs.h"
4801 #include <sys/types.h>
4807 if { (eval echo configure
:4808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4809 eval "ac_cv_header_dirent_$ac_safe=yes"
4811 echo "configure: failed program was:" >&5
4812 cat conftest.
$ac_ext >&5
4814 eval "ac_cv_header_dirent_$ac_safe=no"
4818 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4819 echo "$ac_t""yes" 1>&6
4820 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4821 cat >> confdefs.h
<<EOF
4822 #define $ac_tr_hdr 1
4824 ac_header_dirent
=$ac_hdr; break
4826 echo "$ac_t""no" 1>&6
4829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4830 if test $ac_header_dirent = dirent.h
; then
4831 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4832 echo "configure:4833: checking for opendir in -ldir" >&5
4833 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4835 echo $ac_n "(cached) $ac_c" 1>&6
4837 ac_save_LIBS
="$LIBS"
4839 cat > conftest.
$ac_ext <<EOF
4840 #line 4841 "configure"
4841 #include "confdefs.h"
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4851 if { (eval echo configure
:4852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4853 eval "ac_cv_lib_$ac_lib_var=yes"
4855 echo "configure: failed program was:" >&5
4856 cat conftest.
$ac_ext >&5
4858 eval "ac_cv_lib_$ac_lib_var=no"
4861 LIBS
="$ac_save_LIBS"
4864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4865 echo "$ac_t""yes" 1>&6
4868 echo "$ac_t""no" 1>&6
4872 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4873 echo "configure:4874: checking for opendir in -lx" >&5
4874 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4876 echo $ac_n "(cached) $ac_c" 1>&6
4878 ac_save_LIBS
="$LIBS"
4880 cat > conftest.
$ac_ext <<EOF
4881 #line 4882 "configure"
4882 #include "confdefs.h"
4883 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4892 if { (eval echo configure
:4893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4894 eval "ac_cv_lib_$ac_lib_var=yes"
4896 echo "configure: failed program was:" >&5
4897 cat conftest.
$ac_ext >&5
4899 eval "ac_cv_lib_$ac_lib_var=no"
4902 LIBS
="$ac_save_LIBS"
4905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4906 echo "$ac_t""yes" 1>&6
4909 echo "$ac_t""no" 1>&6
4914 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4917 echo "configure:4918: checking for $ac_func" >&5
4918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4921 cat > conftest.
$ac_ext <<EOF
4922 #line 4923 "configure"
4923 #include "confdefs.h"
4924 /* System header to define __stub macros and hopefully few prototypes,
4925 which can conflict with char $ac_func(); below. */
4927 /* Override any gcc2 internal prototype to avoid an error. */
4928 /* We use char because int might match the return type of a gcc2
4929 builtin and then its argument prototype would still apply. */
4934 /* The GNU C library defines this for functions which it implements
4935 to always fail with ENOSYS. Some functions are actually named
4936 something starting with __ and the normal name is an alias. */
4937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4945 if { (eval echo configure
:4946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4947 eval "ac_cv_func_$ac_func=yes"
4949 echo "configure: failed program was:" >&5
4950 cat conftest.
$ac_ext >&5
4952 eval "ac_cv_func_$ac_func=no"
4957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4958 echo "$ac_t""yes" 1>&6
4959 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4960 cat >> confdefs.h
<<EOF
4961 #define $ac_tr_func 1
4965 echo "$ac_t""no" 1>&6
4969 for ac_func
in strtoull
4971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $ac_func" >&5
4973 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 cat > conftest.
$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* System header to define __stub macros and hopefully few prototypes,
4980 which can conflict with char $ac_func(); below. */
4982 /* Override any gcc2 internal prototype to avoid an error. */
4983 /* We use char because int might match the return type of a gcc2
4984 builtin and then its argument prototype would still apply. */
4989 /* The GNU C library defines this for functions which it implements
4990 to always fail with ENOSYS. Some functions are actually named
4991 something starting with __ and the normal name is an alias. */
4992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5000 if { (eval echo configure
:5001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5002 eval "ac_cv_func_$ac_func=yes"
5004 echo "configure: failed program was:" >&5
5005 cat conftest.
$ac_ext >&5
5007 eval "ac_cv_func_$ac_func=no"
5012 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5013 echo "$ac_t""yes" 1>&6
5014 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5015 cat >> confdefs.h
<<EOF
5016 #define $ac_tr_func 1
5020 echo "$ac_t""no" 1>&6
5027 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5028 cat >> confdefs.h
<<\EOF
5029 #define USE_BINARY_FOPEN 1
5034 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5035 echo "configure:5036: checking whether strstr must be declared" >&5
5036 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5037 echo $ac_n "(cached) $ac_c" 1>&6
5039 cat > conftest.
$ac_ext <<EOF
5040 #line 5041 "configure"
5041 #include "confdefs.h"
5044 #ifdef HAVE_STRING_H
5047 #ifdef HAVE_STRINGS_H
5048 #include <strings.h>
5051 #ifdef HAVE_STDLIB_H
5054 #ifdef HAVE_UNISTD_H
5058 char *(*pfn) = (char *(*)) strstr
5061 if { (eval echo configure
:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5063 bfd_cv_decl_needed_strstr
=no
5065 echo "configure: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5068 bfd_cv_decl_needed_strstr
=yes
5073 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5074 if test $bfd_cv_decl_needed_strstr = yes; then
5075 cat >> confdefs.h
<<\EOF
5076 #define NEED_DECLARATION_STRSTR 1
5081 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
5082 echo "configure:5083: checking whether malloc must be declared" >&5
5083 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
5084 echo $ac_n "(cached) $ac_c" 1>&6
5086 cat > conftest.
$ac_ext <<EOF
5087 #line 5088 "configure"
5088 #include "confdefs.h"
5091 #ifdef HAVE_STRING_H
5094 #ifdef HAVE_STRINGS_H
5095 #include <strings.h>
5098 #ifdef HAVE_STDLIB_H
5101 #ifdef HAVE_UNISTD_H
5105 char *(*pfn) = (char *(*)) malloc
5108 if { (eval echo configure
:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5110 bfd_cv_decl_needed_malloc
=no
5112 echo "configure: failed program was:" >&5
5113 cat conftest.
$ac_ext >&5
5115 bfd_cv_decl_needed_malloc
=yes
5120 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5121 if test $bfd_cv_decl_needed_malloc = yes; then
5122 cat >> confdefs.h
<<\EOF
5123 #define NEED_DECLARATION_MALLOC 1
5128 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5129 echo "configure:5130: checking whether realloc must be declared" >&5
5130 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 cat > conftest.
$ac_ext <<EOF
5134 #line 5135 "configure"
5135 #include "confdefs.h"
5138 #ifdef HAVE_STRING_H
5141 #ifdef HAVE_STRINGS_H
5142 #include <strings.h>
5145 #ifdef HAVE_STDLIB_H
5148 #ifdef HAVE_UNISTD_H
5152 char *(*pfn) = (char *(*)) realloc
5155 if { (eval echo configure
:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5157 bfd_cv_decl_needed_realloc
=no
5159 echo "configure: failed program was:" >&5
5160 cat conftest.
$ac_ext >&5
5162 bfd_cv_decl_needed_realloc
=yes
5167 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
5168 if test $bfd_cv_decl_needed_realloc = yes; then
5169 cat >> confdefs.h
<<\EOF
5170 #define NEED_DECLARATION_REALLOC 1
5175 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5176 echo "configure:5177: checking whether free must be declared" >&5
5177 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5178 echo $ac_n "(cached) $ac_c" 1>&6
5180 cat > conftest.
$ac_ext <<EOF
5181 #line 5182 "configure"
5182 #include "confdefs.h"
5185 #ifdef HAVE_STRING_H
5188 #ifdef HAVE_STRINGS_H
5189 #include <strings.h>
5192 #ifdef HAVE_STDLIB_H
5195 #ifdef HAVE_UNISTD_H
5199 char *(*pfn) = (char *(*)) free
5202 if { (eval echo configure
:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5204 bfd_cv_decl_needed_free
=no
5206 echo "configure: failed program was:" >&5
5207 cat conftest.
$ac_ext >&5
5209 bfd_cv_decl_needed_free
=yes
5214 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5215 if test $bfd_cv_decl_needed_free = yes; then
5216 cat >> confdefs.h
<<\EOF
5217 #define NEED_DECLARATION_FREE 1
5222 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5223 echo "configure:5224: checking whether getenv must be declared" >&5
5224 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5225 echo $ac_n "(cached) $ac_c" 1>&6
5227 cat > conftest.
$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5232 #ifdef HAVE_STRING_H
5235 #ifdef HAVE_STRINGS_H
5236 #include <strings.h>
5239 #ifdef HAVE_STDLIB_H
5242 #ifdef HAVE_UNISTD_H
5246 char *(*pfn) = (char *(*)) getenv
5249 if { (eval echo configure
:5250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5251 bfd_cv_decl_needed_getenv
=no
5253 echo "configure: failed program was:" >&5
5254 cat conftest.
$ac_ext >&5
5256 bfd_cv_decl_needed_getenv
=yes
5261 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5262 if test $bfd_cv_decl_needed_getenv = yes; then
5263 cat >> confdefs.h
<<\EOF
5264 #define NEED_DECLARATION_GETENV 1
5270 # If we are configured native, pick a core file support file.
5274 if test "${target}" = "${host}"; then
5276 alpha
*-*-freebsd* | alpha
*-*-kfreebsd*-gnu)
5279 alpha
*-*-linux-gnu*)
5280 COREFILE
=trad-core.lo
5281 TRAD_HEADER
='"hosts/alphalinux.h"'
5283 alpha
*-*-netbsd* | alpha
*-*-openbsd*)
5284 COREFILE
=netbsd-core.lo
5286 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5287 arm-
*-freebsd* | arm-
*-kfreebsd*-gnu)
5289 arm-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5290 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5291 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5292 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5293 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5294 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5295 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5297 COREFILE
=trad-core.lo
5298 TRAD_HEADER
='"hosts/i370linux.h"'
5301 i
[3-7]86-sequent-bsd*)
5302 COREFILE
=trad-core.lo
5303 TRAD_HEADER
='"hosts/symmetry.h"'
5305 i
[3-7]86-sequent-sysv4*) ;;
5306 i
[3-7]86-sequent-sysv*)
5307 COREFILE
=trad-core.lo
5308 TRAD_HEADER
='"hosts/symmetry.h"'
5313 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
*)
5314 COREFILE
=trad-core.lo
5315 TRAD_HEADER
='"hosts/i386bsd.h"'
5317 i
[3-7]86-*-freebsd* | i
[3-7]86-*-kfreebsd*-gnu)
5319 TRAD_HEADER
='"hosts/i386bsd.h"'
5321 i
[3-7]86-*-netbsd* | i
[3-7]86-*-knetbsd*-gnu | i
[3-7]86-*-openbsd*)
5322 COREFILE
=netbsd-core.lo
5324 i
[3-7]86-esix-sysv3*)
5325 COREFILE
=trad-core.lo
5326 TRAD_HEADER
='"hosts/esix.h"'
5328 i
[3-7]86-*-sco3.2v5
*)
5329 COREFILE
=sco5-core.lo
5331 i
[3-7]86-*-sco* | i
[3-7]86-*-isc*)
5332 COREFILE
=trad-core.lo
5333 TRAD_HEADER
='"hosts/i386sco.h"'
5336 COREFILE
=trad-core.lo
5337 TRAD_HEADER
='"hosts/i386mach3.h"'
5339 i
[3-7]86-*-linux-gnu*)
5340 COREFILE
=trad-core.lo
5341 TRAD_HEADER
='"hosts/i386linux.h"'
5343 i
[3-7]86-*-isc*) COREFILE
=trad-core.lo
;;
5344 i
[3-7]86-*-aix*) COREFILE
=aix386-core.lo
;;
5345 i860-
*-mach3* | i860-
*-osf1*)
5346 COREFILE
=trad-core.lo
5347 TRAD_HEADER
='"hosts/i860mach3.h"'
5350 COREFILE
=trad-core.lo
5351 TRAD_HEADER
='"hosts/mipsbsd.h"'
5354 COREFILE
=trad-core.lo
5355 TRAD_HEADER
='"hosts/mipsmach3.h"'
5357 mips-
*-netbsd* | mips
*-*-openbsd*)
5358 COREFILE
=netbsd-core.lo
5361 COREFILE
=trad-core.lo
5362 TRAD_HEADER
='"hosts/decstation.h"'
5364 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5365 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5366 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5368 COREFILE
=trad-core.lo
5369 TRAD_HEADER
='"hosts/mipsmach3.h"'
5372 mips-
*-sysv* | mips-
*-riscos*)
5373 COREFILE
=trad-core.lo
5374 TRAD_HEADER
='"hosts/riscos.h"'
5377 COREFILE
=trad-core.lo
5378 TRAD_HEADER
='"hosts/news-mips.h"'
5381 COREFILE
=trad-core.lo
5382 TRAD_HEADER
='"hosts/dpx2.h"'
5384 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5386 COREFILE
=trad-core.lo
5387 TRAD_HEADER
='"hosts/hp300bsd.h"'
5390 COREFILE
=trad-core.lo
5391 TRAD_HEADER
='"hosts/m68klinux.h"'
5393 m68
*-motorola-sysv*)
5394 COREFILE
=trad-core.lo
5395 TRAD_HEADER
='"hosts/delta68.h"'
5398 COREFILE
=trad-core.lo
5399 TRAD_HEADER
='"hosts/news.h"'
5401 m68
*-*-netbsd* | m68
*-*-openbsd*)
5402 COREFILE
=netbsd-core.lo
5405 COREFILE
=trad-core.lo
5406 TRAD_HEADER
='"hosts/m68kaux.h"'
5410 m88
*-motorola-sysv*)
5411 COREFILE
=ptrace-core.lo
5414 COREFILE
=trad-core.lo
5415 TRAD_HEADER
='"hosts/m88kmach3.h"'
5418 COREFILE
=trad-core.lo
5419 TRAD_HEADER
='"hosts/pc532mach.h"'
5421 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5422 COREFILE
=netbsd-core.lo
5425 COREFILE
=lynx-core.lo
5427 rs6000-
*-aix5.
* | powerpc-
*-aix5.
*)
5428 COREFILE
=rs6000-core.lo
5429 COREFLAG
="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5431 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5432 COREFILE
=rs6000-core.lo
5433 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5434 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5435 # have c_impl as a member of struct core_dumpx
5436 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5437 echo "configure:5438: checking for c_impl in struct core_dumpx" >&5
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5443 struct core_dumpx c; c.c_impl = 0;
5446 if { (eval echo configure
:5447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5448 cat >> confdefs.h
<<\EOF
5449 #define HAVE_ST_C_IMPL 1
5452 echo "$ac_t""yes" 1>&6
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 echo "$ac_t""no" 1>&6
5461 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5462 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5463 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5464 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5466 powerpc-
*-freebsd* | powerpc-
*-kfreebsd*-gnu)
5468 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5469 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5470 s390
*-*-*) COREFILE
=trad-core.lo
;;
5471 sh
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5472 sparc-
*-netbsd* | sparc
*-*-openbsd*)
5473 COREFILE
=netbsd-core.lo
5476 COREFILE
=trad-core.lo
5477 TRAD_HEADER
='"hosts/tahoe.h"'
5479 vax-
*-netbsd* | vax-
*-openbsd*)
5480 COREFILE
=netbsd-core.lo
5483 COREFILE
=trad-core.lo
5484 TRAD_HEADER
='"hosts/vaxult2.h"'
5487 COREFILE
=trad-core.lo
5488 TRAD_HEADER
='"hosts/vaxult2.h"'
5491 COREFILE
=trad-core.lo
5492 TRAD_HEADER
='"hosts/vaxlinux.h"'
5495 COREFILE
=trad-core.lo
5496 TRAD_HEADER
='"hosts/vaxbsd.h"'
5498 x86_64-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5502 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5503 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5504 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5505 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5506 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5507 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5508 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5509 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5510 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5511 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5512 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5515 # ELF corefile support has several flavors, but all of
5516 # them use something called <sys/procfs.h>
5517 for ac_hdr
in sys
/procfs.h
5519 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5521 echo "configure:5522: checking for $ac_hdr" >&5
5522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.
$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5530 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5531 { (eval echo configure
:5532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5532 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5533 if test -z "$ac_err"; then
5535 eval "ac_cv_header_$ac_safe=yes"
5538 echo "configure: failed program was:" >&5
5539 cat conftest.
$ac_ext >&5
5541 eval "ac_cv_header_$ac_safe=no"
5545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5546 echo "$ac_t""yes" 1>&6
5547 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5548 cat >> confdefs.h
<<EOF
5549 #define $ac_tr_hdr 1
5553 echo "$ac_t""no" 1>&6
5557 if test "$ac_cv_header_sys_procfs_h" = yes; then
5558 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5559 echo "configure:5560: checking for prstatus_t in sys/procfs.h" >&5
5560 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5561 echo $ac_n "(cached) $ac_c" 1>&6
5563 cat > conftest.
$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5568 #include <sys/procfs.h>
5573 if { (eval echo configure
:5574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5575 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5577 echo "configure: failed program was:" >&5
5578 cat conftest.
$ac_ext >&5
5580 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5586 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5587 cat >> confdefs.h
<<\EOF
5588 #define HAVE_PRSTATUS_T 1
5592 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5594 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5595 echo "configure:5596: checking for prstatus32_t in sys/procfs.h" >&5
5596 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5597 echo $ac_n "(cached) $ac_c" 1>&6
5599 cat > conftest.
$ac_ext <<EOF
5600 #line 5601 "configure"
5601 #include "confdefs.h"
5604 #include <sys/procfs.h>
5609 if { (eval echo configure
:5610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5611 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5613 echo "configure: failed program was:" >&5
5614 cat conftest.
$ac_ext >&5
5616 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5622 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5623 cat >> confdefs.h
<<\EOF
5624 #define HAVE_PRSTATUS32_T 1
5628 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5630 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5631 echo "configure:5632: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5632 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5633 echo $ac_n "(cached) $ac_c" 1>&6
5635 cat > conftest.
$ac_ext <<EOF
5636 #line 5637 "configure"
5637 #include "confdefs.h"
5640 #include <sys/procfs.h>
5642 prstatus_t avar; void* aref = (void*) &avar.pr_who
5645 if { (eval echo configure
:5646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5647 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5649 echo "configure: failed program was:" >&5
5650 cat conftest.
$ac_ext >&5
5652 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5658 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5659 cat >> confdefs.h
<<\EOF
5660 #define HAVE_PRSTATUS_T_PR_WHO 1
5664 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5666 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5667 echo "configure:5668: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5668 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 cat > conftest.
$ac_ext <<EOF
5672 #line 5673 "configure"
5673 #include "confdefs.h"
5676 #include <sys/procfs.h>
5678 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5681 if { (eval echo configure
:5682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5683 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5685 echo "configure: failed program was:" >&5
5686 cat conftest.
$ac_ext >&5
5688 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5694 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5695 cat >> confdefs.h
<<\EOF
5696 #define HAVE_PRSTATUS32_T_PR_WHO 1
5700 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5702 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5703 echo "configure:5704: checking for pstatus_t in sys/procfs.h" >&5
5704 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5705 echo $ac_n "(cached) $ac_c" 1>&6
5707 cat > conftest.
$ac_ext <<EOF
5708 #line 5709 "configure"
5709 #include "confdefs.h"
5712 #include <sys/procfs.h>
5717 if { (eval echo configure
:5718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5719 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5721 echo "configure: failed program was:" >&5
5722 cat conftest.
$ac_ext >&5
5724 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5730 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5731 cat >> confdefs.h
<<\EOF
5732 #define HAVE_PSTATUS_T 1
5736 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5738 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5739 echo "configure:5740: checking for pxstatus_t in sys/procfs.h" >&5
5740 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 cat > conftest.
$ac_ext <<EOF
5744 #line 5745 "configure"
5745 #include "confdefs.h"
5748 #include <sys/procfs.h>
5753 if { (eval echo configure
:5754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5755 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5757 echo "configure: failed program was:" >&5
5758 cat conftest.
$ac_ext >&5
5760 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5766 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5767 cat >> confdefs.h
<<\EOF
5768 #define HAVE_PXSTATUS_T 1
5772 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5774 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5775 echo "configure:5776: checking for pstatus32_t in sys/procfs.h" >&5
5776 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5777 echo $ac_n "(cached) $ac_c" 1>&6
5779 cat > conftest.
$ac_ext <<EOF
5780 #line 5781 "configure"
5781 #include "confdefs.h"
5784 #include <sys/procfs.h>
5789 if { (eval echo configure
:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5791 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5793 echo "configure: failed program was:" >&5
5794 cat conftest.
$ac_ext >&5
5796 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5802 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5803 cat >> confdefs.h
<<\EOF
5804 #define HAVE_PSTATUS32_T 1
5808 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5810 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5811 echo "configure:5812: checking for prpsinfo_t in sys/procfs.h" >&5
5812 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5813 echo $ac_n "(cached) $ac_c" 1>&6
5815 cat > conftest.
$ac_ext <<EOF
5816 #line 5817 "configure"
5817 #include "confdefs.h"
5820 #include <sys/procfs.h>
5825 if { (eval echo configure
:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5827 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5829 echo "configure: failed program was:" >&5
5830 cat conftest.
$ac_ext >&5
5832 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5838 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5839 cat >> confdefs.h
<<\EOF
5840 #define HAVE_PRPSINFO_T 1
5844 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5846 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5847 echo "configure:5848: checking for prpsinfo32_t in sys/procfs.h" >&5
5848 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 cat > conftest.
$ac_ext <<EOF
5852 #line 5853 "configure"
5853 #include "confdefs.h"
5856 #include <sys/procfs.h>
5861 if { (eval echo configure
:5862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5863 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5865 echo "configure: failed program was:" >&5
5866 cat conftest.
$ac_ext >&5
5868 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5874 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5875 cat >> confdefs.h
<<\EOF
5876 #define HAVE_PRPSINFO32_T 1
5880 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5882 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5883 echo "configure:5884: checking for psinfo_t in sys/procfs.h" >&5
5884 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5885 echo $ac_n "(cached) $ac_c" 1>&6
5887 cat > conftest.
$ac_ext <<EOF
5888 #line 5889 "configure"
5889 #include "confdefs.h"
5892 #include <sys/procfs.h>
5897 if { (eval echo configure
:5898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5899 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5901 echo "configure: failed program was:" >&5
5902 cat conftest.
$ac_ext >&5
5904 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5910 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5911 cat >> confdefs.h
<<\EOF
5912 #define HAVE_PSINFO_T 1
5916 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5918 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5919 echo "configure:5920: checking for psinfo32_t in sys/procfs.h" >&5
5920 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6
5923 cat > conftest.
$ac_ext <<EOF
5924 #line 5925 "configure"
5925 #include "confdefs.h"
5928 #include <sys/procfs.h>
5933 if { (eval echo configure
:5934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5935 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5937 echo "configure: failed program was:" >&5
5938 cat conftest.
$ac_ext >&5
5940 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5946 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5947 cat >> confdefs.h
<<\EOF
5948 #define HAVE_PSINFO32_T 1
5952 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5954 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5955 echo "configure:5956: checking for lwpstatus_t in sys/procfs.h" >&5
5956 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5957 echo $ac_n "(cached) $ac_c" 1>&6
5959 cat > conftest.
$ac_ext <<EOF
5960 #line 5961 "configure"
5961 #include "confdefs.h"
5964 #include <sys/procfs.h>
5969 if { (eval echo configure
:5970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5971 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5973 echo "configure: failed program was:" >&5
5974 cat conftest.
$ac_ext >&5
5976 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5982 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5983 cat >> confdefs.h
<<\EOF
5984 #define HAVE_LWPSTATUS_T 1
5988 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5990 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5991 echo "configure:5992: checking for lwpxstatus_t in sys/procfs.h" >&5
5992 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5993 echo $ac_n "(cached) $ac_c" 1>&6
5995 cat > conftest.
$ac_ext <<EOF
5996 #line 5997 "configure"
5997 #include "confdefs.h"
6000 #include <sys/procfs.h>
6005 if { (eval echo configure
:6006: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6007 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
6009 echo "configure: failed program was:" >&5
6010 cat conftest.
$ac_ext >&5
6012 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
6018 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
6019 cat >> confdefs.h
<<\EOF
6020 #define HAVE_LWPXSTATUS_T 1
6024 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
6026 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
6027 echo "configure:6028: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
6028 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 cat > conftest.
$ac_ext <<EOF
6032 #line 6033 "configure"
6033 #include "confdefs.h"
6036 #include <sys/procfs.h>
6038 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
6041 if { (eval echo configure
:6042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6043 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
6045 echo "configure: failed program was:" >&5
6046 cat conftest.
$ac_ext >&5
6048 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
6054 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
6055 cat >> confdefs.h
<<\EOF
6056 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
6060 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
6062 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
6063 echo "configure:6064: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
6064 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
6065 echo $ac_n "(cached) $ac_c" 1>&6
6067 cat > conftest.
$ac_ext <<EOF
6068 #line 6069 "configure"
6069 #include "confdefs.h"
6072 #include <sys/procfs.h>
6074 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
6077 if { (eval echo configure
:6078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6079 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
6081 echo "configure: failed program was:" >&5
6082 cat conftest.
$ac_ext >&5
6084 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
6090 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
6091 cat >> confdefs.h
<<\EOF
6092 #define HAVE_LWPSTATUS_T_PR_REG 1
6096 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
6098 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6099 echo "configure:6100: checking for win32_pstatus_t in sys/procfs.h" >&5
6100 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 cat > conftest.
$ac_ext <<EOF
6104 #line 6105 "configure"
6105 #include "confdefs.h"
6108 #include <sys/procfs.h>
6110 win32_pstatus_t avar
6113 if { (eval echo configure
:6114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6115 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
6117 echo "configure: failed program was:" >&5
6118 cat conftest.
$ac_ext >&5
6120 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
6126 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6127 cat >> confdefs.h
<<\EOF
6128 #define HAVE_WIN32_PSTATUS_T 1
6132 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
6138 if test -n "$TRAD_HEADER"; then
6139 cat >> confdefs.h
<<EOF
6140 #define TRAD_HEADER $TRAD_HEADER
6145 # Horrible hacks to build DLLs on Windows.
6150 if test "$enable_shared" = "yes"; then
6151 WIN32LDFLAGS
="-no-undefined"
6152 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
6156 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
6160 # Linux/MIPS uses PIC by default.
6161 if test "$enable_shared" = "yes"; then
6162 WIN32LIBADD
="-L../libiberty -liberty"
6166 x
=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
6167 if test -n "$x"; then
6168 WIN32LIBADD
="-L../libiberty/pic -liberty"
6179 # Canonicalize the secondary target names.
6180 if test -n "$enable_targets" ; then
6181 for targ
in `echo $enable_targets | sed 's/,/ /g'`
6183 result
=`$ac_config_sub $targ 2>/dev/null`
6184 if test -n "$result" ; then
6185 canon_targets
="$canon_targets $result"
6187 # Allow targets that config.sub doesn't recognize, like "all".
6188 canon_targets
="$canon_targets $targ"
6199 for targ
in $target $canon_targets
6201 if test "x$targ" = "xall"; then
6203 assocvecs
="$assocvecs $targ_defvec $targ_selvecs"
6205 .
$srcdir/config.bfd
6206 if test "x$targ" = "x$target"; then
6209 selvecs
="$selvecs $targ_defvec $targ_selvecs"
6210 selarchs
="$selarchs $targ_archs"
6211 TDEFINES
="$TDEFINES $targ_cflags"
6216 # This processing still needs to be done if we're to decide properly whether
6217 # 64-bit support needs to be compiled in. Currently, it will be included if
6218 # the default or any other explicitly requested target requires it; it
6219 # will not be included on a 32-bit host if no 64-bit target is requested, and
6220 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6223 # uniq the default and selected vectors in all the configured targets.
6225 for i
in $selvecs ; do
6234 # uniq the associated vectors in all the configured targets.
6236 for i
in $assocvecs ; do
6245 # uniq the architectures in all the configured targets.
6247 for i
in $selarchs ; do
6255 # Target backend .o files.
6258 elf
="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6264 # This list is alphabetized to make it easy to compare
6265 # with the two vector lists in targets.c. For the same reason,
6266 # use one entry per line, even though this leads to long lines.
6267 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
6268 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
6269 aix5coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6270 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
6271 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6272 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6273 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
6274 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
6275 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
6276 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6277 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6278 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6279 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6280 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6281 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6282 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
6283 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6284 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6285 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6286 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6287 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
6288 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
6289 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6290 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size
=64 ;;
6291 bfd_elf32_am33lin_vec
) tb
="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6292 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
6293 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6294 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6295 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6296 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6297 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6298 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6299 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
6300 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
6301 bfd_elf32_dlx_big_vec
) tb
="$tb elf32-dlx.lo elf32.lo $elf" ;;
6302 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
6303 bfd_elf32_frv_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6304 bfd_elf32_h8300_vec
) tb
="$tb elf32-h8300.lo elf32.lo $elf" ;;
6305 bfd_elf32_hppa_linux_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6306 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6307 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
6308 bfd_elf32_i386_freebsd_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6309 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6310 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6311 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6312 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
6313 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
6314 bfd_elf32_ia64_hpux_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf";;
6315 bfd_elf32_ip2k_vec
) tb
="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6316 bfd_elf32_iq2000_vec
) tb
="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6317 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6318 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6319 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6320 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6321 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6322 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6323 bfd_elf32_m32rle_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6324 bfd_elf32_m32rlin_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6325 bfd_elf32_m32rlelin_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6326 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6327 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6328 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
6329 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
6330 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6331 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6332 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
6333 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
6334 bfd_elf32_msp430_vec
) tb
="$tb elf32-msp430.lo elf32.lo $elf" ;;
6335 bfd_elf32_nbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6336 bfd_elf32_nlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6337 bfd_elf32_ntradbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6338 bfd_elf32_ntradlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6339 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6340 bfd_elf32_or32_big_vec
) tb
="$tb elf32-or32.lo elf32.lo $elf" ;;
6341 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6342 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6343 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6344 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6345 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
6346 # FIXME: We include cofflink.lo not because it's needed for
6347 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6348 # which needs it but does not list it. Should be fixed in right place.
6349 bfd_elf32_sh64_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6350 bfd_elf32_sh64l_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6351 bfd_elf32_sh64lin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6352 bfd_elf32_sh64blin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6353 bfd_elf32_sh64lnbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6354 bfd_elf32_sh64nbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6355 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6356 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6357 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6358 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6359 bfd_elf32_shlnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6360 bfd_elf32_shnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6361 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
6362 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6363 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6364 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6365 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
6366 bfd_elf32_vax_vec
) tb
="$tb elf32-vax.lo elf32.lo $elf" ;;
6367 bfd_elf32_xstormy16_vec
) tb
="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6368 bfd_elf32_xtensa_le_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6369 bfd_elf32_xtensa_be_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6370 bfd_elf64_alpha_freebsd_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6371 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6372 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6373 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6374 bfd_elf64_hppa_linux_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6375 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6376 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6377 bfd_elf64_ia64_hpux_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6378 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6379 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6380 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6381 bfd_elf64_mmix_vec
) tb
="$tb elf64-mmix.lo elf64.lo $elf" target_size
=64 ;;
6382 bfd_elf64_powerpc_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6383 bfd_elf64_powerpcle_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size
=64 ;;
6384 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"; target_size
=64 ;;
6385 bfd_elf64_sh64_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6386 bfd_elf64_sh64l_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6387 bfd_elf64_sh64lin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6388 bfd_elf64_sh64blin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6389 bfd_elf64_sh64lnbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6390 bfd_elf64_sh64nbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6391 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"; target_size
=64 ;;
6392 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6393 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6394 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"; target_size
=64 ;;
6395 bfd_mmo_vec
) tb
="$tb mmo.lo" target_size
=64 ;;
6396 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6397 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6398 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6399 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6400 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6401 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"; target_size
=64 ;;
6402 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6403 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6404 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6405 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size
=64 ;;
6406 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6407 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6408 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6409 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6410 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6411 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6412 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6413 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6414 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6415 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6416 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6417 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6418 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6419 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6420 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6421 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6422 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6423 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6424 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6425 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6426 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6427 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6428 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6429 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6430 ieee_vec
) tb
="$tb ieee.lo" ;;
6431 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6432 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6433 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6434 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6435 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6436 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6437 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6438 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6439 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6440 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6441 m88kmach3_vec
) tb
="$tb m88kmach3.lo aout32.lo" ;;
6442 mach_o_be_vec
) tb
="$tb mach-o.lo" ;;
6443 mach_o_le_vec
) tb
="$tb mach-o.lo" ;;
6444 mach_o_fat_vec
) tb
="$tb mach-o.lo" ;;
6445 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6446 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6447 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6448 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6449 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6450 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6451 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6452 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size
=64 ;;
6453 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6454 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6455 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6456 or32coff_big_vec
) tb
="$tb coff-or32.lo cofflink.lo" ;;
6457 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6458 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6459 pef_vec
) tb
="$tb pef.lo" ;;
6460 pef_xlib_vec
) tb
="$tb pef.lo" ;;
6461 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6462 pmac_xcoff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6463 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6464 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6465 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6466 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6467 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6468 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6469 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6470 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6471 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6472 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6473 som_vec
) tb
="$tb som.lo" ;;
6474 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6475 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6476 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6477 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6478 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6479 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6480 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6481 sym_vec
) tb
="$tb xsym.lo" ;;
6482 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6483 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6484 tic4x_coff0_vec
) tb
="$tb coff-tic4x.lo" ;;
6485 tic4x_coff0_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6486 tic4x_coff1_vec
) tb
="$tb coff-tic4x.lo" ;;
6487 tic4x_coff1_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6488 tic4x_coff2_vec
) tb
="$tb coff-tic4x.lo" ;;
6489 tic4x_coff2_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6490 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6491 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6492 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6493 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6494 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6495 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6496 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6497 vaxnetbsd_vec
) tb
="$tb vaxnetbsd.lo aout32.lo" ;;
6498 vax1knetbsd_vec
) tb
="$tb vax1knetbsd.lo aout32.lo" ;;
6499 vaxbsd_vec
) tb
="$tb vaxbsd.lo aout32.lo" ;;
6500 versados_vec
) tb
="$tb versados.lo" ;;
6501 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size
=64 ;;
6502 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6503 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6504 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6505 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6507 # These appear out of order in targets.c
6508 srec_vec
) tb
="$tb srec.lo" ;;
6509 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6510 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6511 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6512 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6515 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6518 if test ${target_size} = 64; then
6521 if test x
"${vec}" = x
"${defvec}"; then
6522 bfd_default_target_size
=${target_size}
6526 # Target architecture .o files.
6527 # A couple of CPUs use shorter file names to avoid problems on DOS
6529 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6531 # Weed out duplicate .o files.
6553 if test x
${all_targets} = xtrue
; then
6554 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6555 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6559 test -n "$assocvecs" &&
6560 assocvecs
=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6561 else # all_targets is true
6562 # Only set these if they will be nonempty, for the clever echo.
6565 test -n "$selvecs" &&
6566 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6567 test -n "$selvecs" &&
6568 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6569 test -n "$selarchs" &&
6570 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6571 fi # all_targets is true
6573 case ${host64}-${target64}-${want64} in
6576 bfd_libs
='$(BFD64_LIBS) $(BFD32_LIBS)'
6577 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6578 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6579 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6580 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6582 if test -n "$GCC" ; then
6584 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6585 echo "configure:6586: checking for gcc version with buggy 64-bit support" >&5
6586 # Add more tests for gcc versions with non-working 64-bit support here.
6587 cat > conftest.
$ac_ext <<EOF
6588 #line 6589 "configure"
6589 #include "confdefs.h"
6590 :__GNUC__:__GNUC_MINOR__:__i386__:
6592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593 egrep ": 2 : 91 : 1 :" >/dev
/null
2>&1; then
6596 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6599 echo "$ac_t""no" 1>&6
6603 if test $bad_64bit_gcc = yes ; then
6604 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6610 bfd_libs
='$(BFD32_LIBS)'
6611 all_backends
='$(BFD32_BACKENDS)'
6623 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6624 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6625 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6626 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6627 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6630 for ac_hdr
in unistd.h
6632 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6634 echo "configure:6635: checking for $ac_hdr" >&5
6635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6638 cat > conftest.
$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6644 { (eval echo configure
:6645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6646 if test -z "$ac_err"; then
6648 eval "ac_cv_header_$ac_safe=yes"
6651 echo "configure: failed program was:" >&5
6652 cat conftest.
$ac_ext >&5
6654 eval "ac_cv_header_$ac_safe=no"
6658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6661 cat >> confdefs.h
<<EOF
6662 #define $ac_tr_hdr 1
6666 echo "$ac_t""no" 1>&6
6670 for ac_func
in getpagesize
6672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6673 echo "configure:6674: checking for $ac_func" >&5
6674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6675 echo $ac_n "(cached) $ac_c" 1>&6
6677 cat > conftest.
$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 /* System header to define __stub macros and hopefully few prototypes,
6681 which can conflict with char $ac_func(); below. */
6683 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6690 /* The GNU C library defines this for functions which it implements
6691 to always fail with ENOSYS. Some functions are actually named
6692 something starting with __ and the normal name is an alias. */
6693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6701 if { (eval echo configure
:6702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6703 eval "ac_cv_func_$ac_func=yes"
6705 echo "configure: failed program was:" >&5
6706 cat conftest.
$ac_ext >&5
6708 eval "ac_cv_func_$ac_func=no"
6713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6714 echo "$ac_t""yes" 1>&6
6715 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6716 cat >> confdefs.h
<<EOF
6717 #define $ac_tr_func 1
6721 echo "$ac_t""no" 1>&6
6725 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6726 echo "configure:6727: checking for working mmap" >&5
6727 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 if test "$cross_compiling" = yes; then
6731 ac_cv_func_mmap_fixed_mapped
=no
6733 cat > conftest.
$ac_ext <<EOF
6734 #line 6735 "configure"
6735 #include "confdefs.h"
6737 /* Thanks to Mike Haertel and Jim Avera for this test.
6738 Here is a matrix of mmap possibilities:
6739 mmap private not fixed
6740 mmap private fixed at somewhere currently unmapped
6741 mmap private fixed at somewhere already mapped
6742 mmap shared not fixed
6743 mmap shared fixed at somewhere currently unmapped
6744 mmap shared fixed at somewhere already mapped
6745 For private mappings, we should verify that changes cannot be read()
6746 back from the file, nor mmap's back from the file at a different
6747 address. (There have been systems where private was not correctly
6748 implemented like the infamous i386 svr4.0, and systems where the
6749 VM page cache was not coherent with the filesystem buffer cache
6750 like early versions of FreeBSD and possibly contemporary NetBSD.)
6751 For shared mappings, we should conversely verify that changes get
6752 propogated back to all the places they're supposed to be.
6754 Grep wants private fixed already mapped.
6755 The main things grep needs to know about mmap are:
6756 * does it exist and is it safe to write into the mmap'd area
6757 * how to use it (BSD variants) */
6758 #include <sys/types.h>
6760 #include <sys/mman.h>
6762 /* This mess was copied from the GNU getpagesize.h. */
6763 #ifndef HAVE_GETPAGESIZE
6764 # ifdef HAVE_UNISTD_H
6765 # include <unistd.h>
6768 /* Assume that all systems that can run configure have sys/param.h. */
6769 # ifndef HAVE_SYS_PARAM_H
6770 # define HAVE_SYS_PARAM_H 1
6773 # ifdef _SC_PAGESIZE
6774 # define getpagesize() sysconf(_SC_PAGESIZE)
6775 # else /* no _SC_PAGESIZE */
6776 # ifdef HAVE_SYS_PARAM_H
6777 # include <sys/param.h>
6778 # ifdef EXEC_PAGESIZE
6779 # define getpagesize() EXEC_PAGESIZE
6780 # else /* no EXEC_PAGESIZE */
6782 # define getpagesize() NBPG * CLSIZE
6785 # endif /* no CLSIZE */
6786 # else /* no NBPG */
6788 # define getpagesize() NBPC
6789 # else /* no NBPC */
6791 # define getpagesize() PAGESIZE
6792 # endif /* PAGESIZE */
6793 # endif /* no NBPC */
6794 # endif /* no NBPG */
6795 # endif /* no EXEC_PAGESIZE */
6796 # else /* no HAVE_SYS_PARAM_H */
6797 # define getpagesize() 8192 /* punt totally */
6798 # endif /* no HAVE_SYS_PARAM_H */
6799 # endif /* no _SC_PAGESIZE */
6801 #endif /* no HAVE_GETPAGESIZE */
6804 extern "C" { void *malloc(unsigned); }
6812 char *data, *data2, *data3;
6816 pagesize = getpagesize();
6819 * First, make a file with some known garbage in it.
6821 data = malloc(pagesize);
6824 for (i = 0; i < pagesize; ++i)
6825 *(data + i) = rand();
6827 fd = creat("conftestmmap", 0600);
6830 if (write(fd, data, pagesize) != pagesize)
6835 * Next, try to mmap the file at a fixed address which
6836 * already has something else allocated at it. If we can,
6837 * also make sure that we see the same garbage.
6839 fd = open("conftestmmap", O_RDWR);
6842 data2 = malloc(2 * pagesize);
6845 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6846 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6847 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6849 for (i = 0; i < pagesize; ++i)
6850 if (*(data + i) != *(data2 + i))
6854 * Finally, make sure that changes to the mapped area
6855 * do not percolate back to the file as seen by read().
6856 * (This is a bug on some variants of i386 svr4.0.)
6858 for (i = 0; i < pagesize; ++i)
6859 *(data2 + i) = *(data2 + i) + 1;
6860 data3 = malloc(pagesize);
6863 if (read(fd, data3, pagesize) != pagesize)
6865 for (i = 0; i < pagesize; ++i)
6866 if (*(data + i) != *(data3 + i))
6869 unlink("conftestmmap");
6874 if { (eval echo configure
:6875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6876 ac_cv_func_mmap_fixed_mapped
=yes
6878 echo "configure: failed program was:" >&5
6879 cat conftest.
$ac_ext >&5
6881 ac_cv_func_mmap_fixed_mapped
=no
6888 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6889 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6890 cat >> confdefs.h
<<\EOF
6896 for ac_func
in madvise mprotect
6898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6899 echo "configure:6900: checking for $ac_func" >&5
6900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6901 echo $ac_n "(cached) $ac_c" 1>&6
6903 cat > conftest.
$ac_ext <<EOF
6904 #line 6905 "configure"
6905 #include "confdefs.h"
6906 /* System header to define __stub macros and hopefully few prototypes,
6907 which can conflict with char $ac_func(); below. */
6909 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6916 /* The GNU C library defines this for functions which it implements
6917 to always fail with ENOSYS. Some functions are actually named
6918 something starting with __ and the normal name is an alias. */
6919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6927 if { (eval echo configure
:6928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6929 eval "ac_cv_func_$ac_func=yes"
6931 echo "configure: failed program was:" >&5
6932 cat conftest.
$ac_ext >&5
6934 eval "ac_cv_func_$ac_func=no"
6939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6940 echo "$ac_t""yes" 1>&6
6941 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6942 cat >> confdefs.h
<<EOF
6943 #define $ac_tr_func 1
6947 echo "$ac_t""no" 1>&6
6951 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6952 true
+yes ) cat >> confdefs.h
<<\EOF
6958 rm -f doc
/config.status
6960 cat > confcache
<<\EOF
6961 # This file is a shell script that caches the results of configure
6962 # tests run on this system so they can be shared between configure
6963 # scripts and configure runs. It is not useful on other systems.
6964 # If it contains results you don't want to keep, you may remove or edit it.
6966 # By default, configure uses ./config.cache as the cache file,
6967 # creating it if it does not exist already. You can give configure
6968 # the --cache-file=FILE option to use a different cache file; that is
6969 # what configure does when it calls configure scripts in
6970 # subdirectories, so they share the cache.
6971 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6972 # config.status only pays attention to the cache file if you give it the
6973 # --recheck option to rerun configure.
6976 # The following way of writing the cache mishandles newlines in values,
6977 # but we know of no workaround that is simple, portable, and efficient.
6978 # So, don't put newlines in cache variables' values.
6979 # Ultrix sh set writes to stderr and can't be redirected directly,
6980 # and sets the high bit in the cache file unless we assign to the vars.
6982 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6984 # `set' does not quote correctly, so add quotes (double-quote substitution
6985 # turns \\\\ into \\, and sed turns \\ into \).
6987 -e "s/'/'\\\\''/g" \
6988 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6991 # `set' quotes correctly as required by POSIX, so do not add quotes.
6992 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6995 if cmp -s $cache_file confcache
; then
6998 if test -w $cache_file; then
6999 echo "updating cache $cache_file"
7000 cat confcache
> $cache_file
7002 echo "not updating unwritable cache $cache_file"
7007 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7009 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7010 # Let make expand exec_prefix.
7011 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7013 # Any assignment to VPATH causes Sun make to only execute
7014 # the first set of double-colon rules, so remove it if not needed.
7015 # If there is a colon in the path, we need to keep it.
7016 if test "x$srcdir" = x.
; then
7017 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7020 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7022 DEFS
=-DHAVE_CONFIG_H
7024 # Without the "./", some shells look in PATH for config.status.
7025 : ${CONFIG_STATUS=./config.status}
7027 echo creating
$CONFIG_STATUS
7028 rm -f $CONFIG_STATUS
7029 cat > $CONFIG_STATUS <<EOF
7031 # Generated automatically by configure.
7032 # Run this file to recreate the current configuration.
7033 # This directory was configured as follows,
7034 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7036 # $0 $ac_configure_args
7038 # Compiler output produced by configure, useful for debugging
7039 # configure, is in ./config.log if it exists.
7041 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7044 case "\$ac_option" in
7045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7046 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7047 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7048 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7049 echo "$CONFIG_STATUS generated by autoconf version 2.13"
7051 -help | --help | --hel | --he | --h)
7052 echo "\$ac_cs_usage"; exit 0 ;;
7053 *) echo "\$ac_cs_usage"; exit 1 ;;
7057 ac_given_srcdir=$srcdir
7058 ac_given_INSTALL="$INSTALL"
7060 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
7062 cat >> $CONFIG_STATUS <<EOF
7064 # Protect against being on the right side of a sed subst in config.status.
7065 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7066 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7070 s%@CFLAGS@%$CFLAGS%g
7071 s%@CPPFLAGS@%$CPPFLAGS%g
7072 s%@CXXFLAGS@%$CXXFLAGS%g
7073 s%@FFLAGS@%$FFLAGS%g
7075 s%@LDFLAGS@%$LDFLAGS%g
7077 s%@exec_prefix@%$exec_prefix%g
7078 s%@prefix@%$prefix%g
7079 s%@program_transform_name@%$program_transform_name%g
7080 s%@bindir@%$bindir%g
7081 s%@sbindir@%$sbindir%g
7082 s%@libexecdir@%$libexecdir%g
7083 s%@datadir@%$datadir%g
7084 s%@sysconfdir@%$sysconfdir%g
7085 s%@sharedstatedir@%$sharedstatedir%g
7086 s%@localstatedir@%$localstatedir%g
7087 s%@libdir@%$libdir%g
7088 s%@includedir@%$includedir%g
7089 s%@oldincludedir@%$oldincludedir%g
7090 s%@infodir@%$infodir%g
7091 s%@mandir@%$mandir%g
7093 s%@host_alias@%$host_alias%g
7094 s%@host_cpu@%$host_cpu%g
7095 s%@host_vendor@%$host_vendor%g
7096 s%@host_os@%$host_os%g
7097 s%@target@%$target%g
7098 s%@target_alias@%$target_alias%g
7099 s%@target_cpu@%$target_cpu%g
7100 s%@target_vendor@%$target_vendor%g
7101 s%@target_os@%$target_os%g
7103 s%@build_alias@%$build_alias%g
7104 s%@build_cpu@%$build_cpu%g
7105 s%@build_vendor@%$build_vendor%g
7106 s%@build_os@%$build_os%g
7107 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7108 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7109 s%@INSTALL_DATA@%$INSTALL_DATA%g
7110 s%@PACKAGE@%$PACKAGE%g
7111 s%@VERSION@%$VERSION%g
7112 s%@ACLOCAL@%$ACLOCAL%g
7113 s%@AUTOCONF@%$AUTOCONF%g
7114 s%@AUTOMAKE@%$AUTOMAKE%g
7115 s%@AUTOHEADER@%$AUTOHEADER%g
7116 s%@MAKEINFO@%$MAKEINFO%g
7117 s%@SET_MAKE@%$SET_MAKE%g
7118 s%@bfd_version@%$bfd_version%g
7119 s%@bfd_version_string@%$bfd_version_string%g
7121 s%@RANLIB@%$RANLIB%g
7124 s%@OBJEXT@%$OBJEXT%g
7125 s%@EXEEXT@%$EXEEXT%g
7127 s%@LIBTOOL@%$LIBTOOL%g
7128 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7129 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7130 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7132 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
7133 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
7134 s%@bfdlibdir@%$bfdlibdir%g
7135 s%@bfdincludedir@%$bfdincludedir%g
7137 s%@ALLOCA@%$ALLOCA%g
7138 s%@USE_NLS@%$USE_NLS%g
7139 s%@MSGFMT@%$MSGFMT%g
7140 s%@GMSGFMT@%$GMSGFMT%g
7141 s%@XGETTEXT@%$XGETTEXT%g
7142 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7143 s%@CATALOGS@%$CATALOGS%g
7144 s%@CATOBJEXT@%$CATOBJEXT%g
7145 s%@DATADIRNAME@%$DATADIRNAME%g
7146 s%@GMOFILES@%$GMOFILES%g
7147 s%@INSTOBJEXT@%$INSTOBJEXT%g
7148 s%@INTLDEPS@%$INTLDEPS%g
7149 s%@INTLLIBS@%$INTLLIBS%g
7150 s%@INTLOBJS@%$INTLOBJS%g
7151 s%@POFILES@%$POFILES%g
7153 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7155 s%@GT_YES@%$GT_YES%g
7156 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7158 s%@HDEFINES@%$HDEFINES%g
7159 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
7160 s%@BFD_HOST_LONG_LONG@%$BFD_HOST_LONG_LONG%g
7161 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
7162 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
7163 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
7164 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7165 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
7166 s%@COREFILE@%$COREFILE%g
7167 s%@COREFLAG@%$COREFLAG%g
7168 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
7169 s%@WIN32LIBADD@%$WIN32LIBADD%g
7170 s%@TDEFINES@%$TDEFINES%g
7171 s%@wordsize@%$wordsize%g
7172 s%@bfd_libs@%$bfd_libs%g
7173 s%@all_backends@%$all_backends%g
7174 s%@bfd_backends@%$bfd_backends%g
7175 s%@bfd_machines@%$bfd_machines%g
7176 s%@bfd_default_target_size@%$bfd_default_target_size%g
7177 s%@tdefaults@%$tdefaults%g
7182 cat >> $CONFIG_STATUS <<\EOF
7184 # Split the substitutions into bite-sized pieces for seds with
7185 # small command number limits, like on Digital OSF/1 and HP-UX.
7186 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7187 ac_file
=1 # Number of current file.
7188 ac_beg
=1 # First line for current file.
7189 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7192 while $ac_more_lines; do
7193 if test $ac_beg -gt 1; then
7194 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7196 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7198 if test ! -s conftest.s
$ac_file; then
7200 rm -f conftest.s
$ac_file
7202 if test -z "$ac_sed_cmds"; then
7203 ac_sed_cmds
="sed -f conftest.s$ac_file"
7205 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7207 ac_file
=`expr $ac_file + 1`
7209 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7212 if test -z "$ac_sed_cmds"; then
7217 cat >> $CONFIG_STATUS <<EOF
7219 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7221 cat >> $CONFIG_STATUS <<\EOF
7222 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7223 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7225 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7226 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7227 *) ac_file_in
="${ac_file}.in" ;;
7230 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7232 # Remove last slash and all that follows it. Not all systems have dirname.
7233 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7234 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7235 # The file is in a subdirectory.
7236 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7237 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7238 # A "../" for each directory in $ac_dir_suffix.
7239 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7241 ac_dir_suffix
= ac_dots
=
7244 case "$ac_given_srcdir" in
7246 if test -z "$ac_dots"; then top_srcdir
=.
7247 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7248 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7250 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7251 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7254 case "$ac_given_INSTALL" in
7255 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7256 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7259 echo creating
"$ac_file"
7261 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7263 *Makefile
*) ac_comsub
="1i\\
7264 # $configure_input" ;;
7268 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7270 s%@configure_input@%$configure_input%g
7271 s%@srcdir@%$srcdir%g
7272 s%@top_srcdir@%$top_srcdir%g
7273 s%@INSTALL@%$INSTALL%g
7274 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7278 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7279 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7281 # ac_d sets the value in "#define NAME VALUE" lines.
7282 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7283 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7286 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7287 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7288 ac_uB
='\([ ]\)%\1#\2define\3'
7291 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7292 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7293 ac_eB
='$%\1#\2define\3'
7297 if test "${CONFIG_HEADERS+set}" != set; then
7299 cat >> $CONFIG_STATUS <<EOF
7300 CONFIG_HEADERS="config.h:config.in"
7302 cat >> $CONFIG_STATUS <<\EOF
7304 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7307 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7308 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7309 *) ac_file_in
="${ac_file}.in" ;;
7312 echo creating
$ac_file
7314 rm -f conftest.frag conftest.
in conftest.out
7315 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7316 cat $ac_file_inputs > conftest.
in
7320 # Transform confdefs.h into a sed script conftest.vals that substitutes
7321 # the proper values into config.h.in to produce config.h. And first:
7322 # Protect against being on the right side of a sed subst in config.status.
7323 # Protect against being in an unquoted here document in config.status.
7325 cat > conftest.hdr
<<\EOF
7328 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7332 sed -n -f conftest.hdr confdefs.h > conftest.vals
7335 # This sed command replaces #undef with comments. This is necessary, for
7336 # example, in the case of _POSIX_SOURCE, which is predefined and required
7337 # on some systems where configure will not decide to define it.
7338 cat >> conftest.vals <<\EOF
7339 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7342 # Break up conftest.vals because some shells have a limit on
7343 # the size of here documents, and old seds have small limits too.
7348 ac_lines=`grep -c . conftest.vals
`
7349 # grep -c gives empty output for an empty file on some AIX systems.
7350 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7351 # Write a limited-size here document to conftest.frag.
7352 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7353 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7355 sed -f conftest.frag conftest.in > conftest.out
7357 mv conftest.out conftest.in
7359 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7361 mv conftest.tail conftest.vals
7365 cat >> $CONFIG_STATUS <<\EOF
7366 rm -f conftest.frag conftest.h
7367 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7368 cat conftest.in >> conftest.h
7370 if cmp -s $ac_file conftest.h 2>/dev/null; then
7371 echo "$ac_file is unchanged"
7374 # Remove last slash and all that follows it. Not all systems have dirname.
7375 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7376 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7377 # The file is in a subdirectory.
7378 test ! -d "$ac_dir" && mkdir "$ac_dir"
7381 mv conftest.h $ac_file
7386 cat >> $CONFIG_STATUS <<EOF
7390 cat >> $CONFIG_STATUS <<\EOF
7391 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7392 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7395 chmod +x $CONFIG_STATUS
7396 rm -fr confdefs* $ac_clean_files
7397 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1