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 # Find a good install program. We prefer a C program (faster),
782 # so one script is as good as another. But avoid the broken or
783 # incompatible versions:
784 # SysV /etc/install, /usr/sbin/install
785 # SunOS /usr/etc/install
788 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
789 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
790 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
791 # ./install, which can be erroneously created by make from ./install.sh.
792 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
793 echo "configure:794: checking for a BSD compatible install" >&5
794 if test -z "$INSTALL"; then
795 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
799 for ac_dir
in $PATH; do
800 # Account for people who put trailing slashes in PATH elements.
802 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
804 # OSF1 and SCO ODT 3.0 have their own names for install.
805 # Don't use installbsd from OSF since it installs stuff as root
807 for ac_prog
in ginstall scoinst
install; do
808 if test -f $ac_dir/$ac_prog; then
809 if test $ac_prog = install &&
810 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
811 # AIX install. It has an incompatible calling convention.
814 ac_cv_path_install
="$ac_dir/$ac_prog -c"
825 if test "${ac_cv_path_install+set}" = set; then
826 INSTALL
="$ac_cv_path_install"
828 # As a last resort, use the slow shell script. We don't cache a
829 # path for INSTALL within a source directory, because that will
830 # break other packages using the cache if that directory is
831 # removed, or if the path is relative.
832 INSTALL
="$ac_install_sh"
835 echo "$ac_t""$INSTALL" 1>&6
837 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
838 # It thinks the first close brace ends the variable substitution.
839 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
841 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
843 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
845 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
846 echo "configure:847: checking whether build environment is sane" >&5
849 echo timestamp
> conftestfile
850 # Do `set' in a subshell so we don't clobber the current shell's
851 # arguments. Must try -L first in case configure is actually a
852 # symlink; some systems play weird games with the mod time of symlinks
853 # (eg FreeBSD returns the mod time of the symlink's containing
856 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
857 if test "$*" = "X"; then
859 set X
`ls -t $srcdir/configure conftestfile`
861 if test "$*" != "X $srcdir/configure conftestfile" \
862 && test "$*" != "X conftestfile $srcdir/configure"; then
864 # If neither matched, then we have a broken ls. This can happen
865 # if, for instance, CONFIG_SHELL is bash and it inherits a
866 # broken ls alias from the environment. This has actually
867 # happened. Such a system could not be considered "sane".
868 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
869 alias in your environment" 1>&2; exit 1; }
872 test "$2" = conftestfile
878 { echo "configure: error: newly created file is older than distributed files!
879 Check your system clock" 1>&2; exit 1; }
882 echo "$ac_t""yes" 1>&6
883 if test "$program_transform_name" = s
,x
,x
,; then
884 program_transform_name
=
886 # Double any \ or $. echo might interpret backslashes.
887 cat <<\EOF_SED
> conftestsed
888 s
,\\,\\\\,g
; s
,\$
,$$
,g
890 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
893 test "$program_prefix" != NONE
&&
894 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
895 # Use a double $ so make ignores it.
896 test "$program_suffix" != NONE
&&
897 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
899 # sed with no file args requires a program.
900 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
902 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
903 echo "configure:904: checking whether ${MAKE-make} sets \${MAKE}" >&5
904 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
905 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 cat > conftestmake
<<\EOF
910 @
echo 'ac_maketemp="${MAKE}"'
912 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
913 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
914 if test -n "$ac_maketemp"; then
915 eval ac_cv_prog_make_
${ac_make}_set
=yes
917 eval ac_cv_prog_make_
${ac_make}_set
=no
921 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
922 echo "$ac_t""yes" 1>&6
925 echo "$ac_t""no" 1>&6
926 SET_MAKE
="MAKE=${MAKE-make}"
934 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
935 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
937 cat >> confdefs.h
<<EOF
938 #define PACKAGE "$PACKAGE"
941 cat >> confdefs.h
<<EOF
942 #define VERSION "$VERSION"
947 missing_dir
=`cd $ac_aux_dir && pwd`
948 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
949 echo "configure:950: checking for working aclocal" >&5
950 # Run test in a subshell; some versions of sh will print an error if
951 # an executable is not found, even if stderr is redirected.
952 # Redirect stdin to placate older versions of autoconf. Sigh.
953 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
955 echo "$ac_t""found" 1>&6
957 ACLOCAL
="$missing_dir/missing aclocal"
958 echo "$ac_t""missing" 1>&6
961 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
962 echo "configure:963: checking for working autoconf" >&5
963 # Run test in a subshell; some versions of sh will print an error if
964 # an executable is not found, even if stderr is redirected.
965 # Redirect stdin to placate older versions of autoconf. Sigh.
966 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
968 echo "$ac_t""found" 1>&6
970 AUTOCONF
="$missing_dir/missing autoconf"
971 echo "$ac_t""missing" 1>&6
974 echo $ac_n "checking for working automake""... $ac_c" 1>&6
975 echo "configure:976: checking for working automake" >&5
976 # Run test in a subshell; some versions of sh will print an error if
977 # an executable is not found, even if stderr is redirected.
978 # Redirect stdin to placate older versions of autoconf. Sigh.
979 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
981 echo "$ac_t""found" 1>&6
983 AUTOMAKE
="$missing_dir/missing automake"
984 echo "$ac_t""missing" 1>&6
987 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
988 echo "configure:989: checking for working autoheader" >&5
989 # Run test in a subshell; some versions of sh will print an error if
990 # an executable is not found, even if stderr is redirected.
991 # Redirect stdin to placate older versions of autoconf. Sigh.
992 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
993 AUTOHEADER
=autoheader
994 echo "$ac_t""found" 1>&6
996 AUTOHEADER
="$missing_dir/missing autoheader"
997 echo "$ac_t""missing" 1>&6
1000 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1001 echo "configure:1002: checking for working makeinfo" >&5
1002 # Run test in a subshell; some versions of sh will print an error if
1003 # an executable is not found, even if stderr is redirected.
1004 # Redirect stdin to placate older versions of autoconf. Sigh.
1005 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1007 echo "$ac_t""found" 1>&6
1009 MAKEINFO
="$missing_dir/missing makeinfo"
1010 echo "$ac_t""missing" 1>&6
1014 # Uncomment the next line to remove the date from the reported bfd version
1017 bfd_version
=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1019 bfd_version_string
="\"${VERSION}\""
1020 if test x
${is_release} = x
; then
1021 bfd_version_date
=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1022 bfd_version_string
="\"${VERSION} ${bfd_version_date}\""
1027 if test $host != $build; then
1028 ac_tool_prefix
=${host_alias}-
1033 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1034 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1036 echo "configure:1037: checking for $ac_word" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 if test -n "$AR"; then
1041 ac_cv_prog_AR
="$AR" # Let the user override the test.
1043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1045 for ac_dir
in $ac_dummy; do
1046 test -z "$ac_dir" && ac_dir
=.
1047 if test -f $ac_dir/$ac_word; then
1048 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1053 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1057 if test -n "$AR"; then
1058 echo "$ac_t""$AR" 1>&6
1060 echo "$ac_t""no" 1>&6
1065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1066 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1072 if test -n "$RANLIB"; then
1073 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1075 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1077 for ac_dir
in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir
=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1087 RANLIB
="$ac_cv_prog_RANLIB"
1088 if test -n "$RANLIB"; then
1089 echo "$ac_t""$RANLIB" 1>&6
1091 echo "$ac_t""no" 1>&6
1095 if test -z "$ac_cv_prog_RANLIB"; then
1096 if test -n "$ac_tool_prefix"; then
1097 # Extract the first word of "ranlib", so it can be a program name with args.
1098 set dummy ranlib
; ac_word
=$2
1099 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1100 echo "configure:1101: checking for $ac_word" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 if test -n "$RANLIB"; then
1105 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1109 for ac_dir
in $ac_dummy; do
1110 test -z "$ac_dir" && ac_dir
=.
1111 if test -f $ac_dir/$ac_word; then
1112 ac_cv_prog_RANLIB
="ranlib"
1117 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1120 RANLIB
="$ac_cv_prog_RANLIB"
1121 if test -n "$RANLIB"; then
1122 echo "$ac_t""$RANLIB" 1>&6
1124 echo "$ac_t""no" 1>&6
1133 # Check whether --enable-shared or --disable-shared was given.
1134 if test "${enable_shared+set}" = set; then
1135 enableval
="$enable_shared"
1136 p
=${PACKAGE-default}
1138 yes) enable_shared
=yes ;;
1139 no
) enable_shared
=no
;;
1142 # Look at the argument we got. We use all the common list separators.
1143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1144 for pkg
in $enableval; do
1145 if test "X$pkg" = "X$p"; then
1157 # Check whether --enable-static or --disable-static was given.
1158 if test "${enable_static+set}" = set; then
1159 enableval
="$enable_static"
1160 p
=${PACKAGE-default}
1162 yes) enable_static
=yes ;;
1163 no
) enable_static
=no
;;
1166 # Look at the argument we got. We use all the common list separators.
1167 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1168 for pkg
in $enableval; do
1169 if test "X$pkg" = "X$p"; then
1180 # Check whether --enable-fast-install or --disable-fast-install was given.
1181 if test "${enable_fast_install+set}" = set; then
1182 enableval
="$enable_fast_install"
1183 p
=${PACKAGE-default}
1185 yes) enable_fast_install
=yes ;;
1186 no
) enable_fast_install
=no
;;
1188 enable_fast_install
=no
1189 # Look at the argument we got. We use all the common list separators.
1190 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1191 for pkg
in $enableval; do
1192 if test "X$pkg" = "X$p"; then
1193 enable_fast_install
=yes
1200 enable_fast_install
=yes
1203 # Extract the first word of "gcc", so it can be a program name with args.
1204 set dummy gcc
; ac_word
=$2
1205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1206 echo "configure:1207: checking for $ac_word" >&5
1207 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1208 echo $ac_n "(cached) $ac_c" 1>&6
1210 if test -n "$CC"; then
1211 ac_cv_prog_CC
="$CC" # Let the user override the test.
1213 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1215 for ac_dir
in $ac_dummy; do
1216 test -z "$ac_dir" && ac_dir
=.
1217 if test -f $ac_dir/$ac_word; then
1226 if test -n "$CC"; then
1227 echo "$ac_t""$CC" 1>&6
1229 echo "$ac_t""no" 1>&6
1232 if test -z "$CC"; then
1233 # Extract the first word of "cc", so it can be a program name with args.
1234 set dummy cc
; ac_word
=$2
1235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1236 echo "configure:1237: checking for $ac_word" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC
="$CC" # Let the user override the test.
1243 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1246 for ac_dir
in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir
=.
1248 if test -f $ac_dir/$ac_word; then
1249 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1250 ac_prog_rejected
=yes
1258 if test $ac_prog_rejected = yes; then
1259 # We found a bogon in the path, so make sure we never use it.
1260 set dummy
$ac_cv_prog_CC
1262 if test $# -gt 0; then
1263 # We chose a different compiler from the bogus one.
1264 # However, it has the same basename, so the bogon will be chosen
1265 # first if we set CC to just the basename; use the full file name.
1267 set dummy
"$ac_dir/$ac_word" "$@"
1275 if test -n "$CC"; then
1276 echo "$ac_t""$CC" 1>&6
1278 echo "$ac_t""no" 1>&6
1281 if test -z "$CC"; then
1282 case "`uname -s`" in
1284 # Extract the first word of "cl", so it can be a program name with args.
1285 set dummy cl
; ac_word
=$2
1286 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1287 echo "configure:1288: checking for $ac_word" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC
="$CC" # Let the user override the test.
1294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1296 for ac_dir
in $ac_dummy; do
1297 test -z "$ac_dir" && ac_dir
=.
1298 if test -f $ac_dir/$ac_word; then
1307 if test -n "$CC"; then
1308 echo "$ac_t""$CC" 1>&6
1310 echo "$ac_t""no" 1>&6
1315 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1318 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1319 echo "configure:1320: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1322 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1323 ac_cpp
='$CPP $CPPFLAGS'
1324 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1325 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1326 cross_compiling
=$ac_cv_prog_cc_cross
1328 cat > conftest.
$ac_ext << EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1335 if { (eval echo configure
:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1336 ac_cv_prog_cc_works
=yes
1337 # If we can't run a trivial program, we are probably using a cross compiler.
1338 if (.
/conftest
; exit) 2>/dev
/null
; then
1339 ac_cv_prog_cc_cross
=no
1341 ac_cv_prog_cc_cross
=yes
1344 echo "configure: failed program was:" >&5
1345 cat conftest.
$ac_ext >&5
1346 ac_cv_prog_cc_works
=no
1350 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1351 ac_cpp
='$CPP $CPPFLAGS'
1352 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1353 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1354 cross_compiling
=$ac_cv_prog_cc_cross
1356 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1357 if test $ac_cv_prog_cc_works = no
; then
1358 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1360 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1361 echo "configure:1362: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1362 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1363 cross_compiling
=$ac_cv_prog_cc_cross
1365 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1366 echo "configure:1367: checking whether we are using GNU C" >&5
1367 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 cat > conftest.c
<<EOF
1375 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1382 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1384 if test $ac_cv_prog_gcc = yes; then
1390 ac_test_CFLAGS
="${CFLAGS+set}"
1391 ac_save_CFLAGS
="$CFLAGS"
1393 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1394 echo "configure:1395: checking whether ${CC-cc} accepts -g" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 echo 'void f(){}' > conftest.c
1399 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1408 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1409 if test "$ac_test_CFLAGS" = set; then
1410 CFLAGS
="$ac_save_CFLAGS"
1411 elif test $ac_cv_prog_cc_g = yes; then
1412 if test "$GCC" = yes; then
1418 if test "$GCC" = yes; then
1425 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1426 if test "${with_gnu_ld+set}" = set; then
1427 withval
="$with_gnu_ld"
1428 test "$withval" = no || with_gnu_ld
=yes
1434 if test "$GCC" = yes; then
1435 # Check if gcc -print-prog-name=ld gives a path.
1436 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1437 echo "configure:1438: checking for ld used by GCC" >&5
1440 # gcc leaves a trailing carriage return which upsets mingw
1441 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1443 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1446 # Accept absolute paths.
1447 [\\/]* |
[A-Za-z
]:[\\/]*)
1448 re_direlt
='/[^/][^/]*/\.\./'
1449 # Canonicalize the path of ld
1450 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1451 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1452 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1454 test -z "$LD" && LD
="$ac_prog"
1457 # If it fails, then pretend we aren't using GCC.
1461 # If it is relative, then search for the first ld in PATH.
1465 elif test "$with_gnu_ld" = yes; then
1466 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1467 echo "configure:1468: checking for GNU ld" >&5
1469 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1470 echo "configure:1471: checking for non-GNU ld" >&5
1472 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 if test -z "$LD"; then
1476 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1477 for ac_dir
in $PATH; do
1478 test -z "$ac_dir" && ac_dir
=.
1479 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1480 lt_cv_path_LD
="$ac_dir/$ac_prog"
1481 # Check to see if the program is GNU ld. I'd rather use --version,
1482 # but apparently some GNU ld's only accept -v.
1483 # Break only if it was the GNU/non-GNU ld that we prefer.
1484 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1485 test "$with_gnu_ld" != no
&& break
1487 test "$with_gnu_ld" != yes && break
1493 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1498 if test -n "$LD"; then
1499 echo "$ac_t""$LD" 1>&6
1501 echo "$ac_t""no" 1>&6
1503 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1504 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1505 echo "configure:1506: checking if the linker ($LD) is GNU ld" >&5
1506 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1510 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1511 lt_cv_prog_gnu_ld
=yes
1513 lt_cv_prog_gnu_ld
=no
1517 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1518 with_gnu_ld
=$lt_cv_prog_gnu_ld
1521 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $LD option to reload object files" >&5
1523 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 lt_cv_ld_reload_flag
='-r'
1529 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1530 reload_flag
=$lt_cv_ld_reload_flag
1531 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1533 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1534 echo "configure:1535: checking for BSD-compatible nm" >&5
1535 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 if test -n "$NM"; then
1539 # Let the user override the test.
1542 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1543 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1544 test -z "$ac_dir" && ac_dir
=.
1545 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1546 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1547 # Check to see if the nm accepts a BSD-compat flag.
1548 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1549 # nm: unknown option "B" ignored
1550 # Tru64's nm complains that /dev/null is an invalid object file
1551 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1552 lt_cv_path_NM
="$tmp_nm -B"
1554 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1555 lt_cv_path_NM
="$tmp_nm -p"
1558 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1559 continue # so that we can try to find one that supports BSD flags
1564 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1569 echo "$ac_t""$NM" 1>&6
1571 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1572 echo "configure:1573: checking whether ln -s works" >&5
1573 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1577 if ln -s X conftestdata
2>/dev
/null
1580 ac_cv_prog_LN_S
="ln -s"
1585 LN_S
="$ac_cv_prog_LN_S"
1586 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1587 echo "$ac_t""yes" 1>&6
1589 echo "$ac_t""no" 1>&6
1592 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1593 echo "configure:1594: checking how to recognise dependant libraries" >&5
1594 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1598 lt_cv_file_magic_test_file
=
1599 lt_cv_deplibs_check_method
='unknown'
1600 # Need to set the preceding variable on all platforms that support
1601 # interlibrary dependencies.
1602 # 'none' -- dependencies not supported.
1603 # `unknown' -- same as none, but documents that we really don't know.
1604 # 'pass_all' -- all dependencies passed with no checks.
1605 # 'test_compile' -- check by making test program.
1606 # 'file_magic [regex]' -- check by looking for files in library path
1607 # which responds to the $file_magic_cmd with a given egrep regex.
1608 # If you have `file' or equivalent on your system and you're not sure
1609 # whether `pass_all' will *always* work, you probably want this one.
1613 lt_cv_deplibs_check_method
=pass_all
1617 lt_cv_deplibs_check_method
=pass_all
1621 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1622 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1623 lt_cv_file_magic_test_file
=/shlib
/libc.so
1626 cygwin
* | mingw
* |pw32
*)
1627 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1628 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1631 darwin
* | rhapsody
*)
1632 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1633 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1635 rhapsody
* | darwin1.012
)
1636 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1639 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1645 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1648 # Not sure whether the presence of OpenBSD here was a mistake.
1649 # Let's accept both of them until this is cleared up.
1650 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1651 lt_cv_file_magic_cmd
=/usr
/bin
/file
1652 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1656 lt_cv_deplibs_check_method
=pass_all
1661 lt_cv_deplibs_check_method
=pass_all
1667 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1668 lt_cv_file_magic_cmd
=/usr
/bin
/file
1669 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1672 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1673 lt_cv_file_magic_cmd
=/usr
/bin
/file
1674 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1682 # this will be overridden with pass_all, but let us keep it just in case
1683 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1687 *-32|
*"-32 ") libmagic
=32-bit;;
1688 *-n32|
*"-n32 ") libmagic
=N32
;;
1689 *-64|
*"-64 ") libmagic
=64-bit;;
1690 *) libmagic
=never-match
;;
1692 # this will be overridden with pass_all, but let us keep it just in case
1693 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1696 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1697 lt_cv_deplibs_check_method
=pass_all
1700 # This must be Linux ELF.
1703 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1704 lt_cv_deplibs_check_method
=pass_all
;;
1706 # glibc up to 2.1.1 does not perform some relocations on ARM
1707 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1709 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1713 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1714 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1716 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1721 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1722 lt_cv_file_magic_cmd
=/usr
/bin
/file
1723 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1726 osf3
* | osf4
* | osf5
*)
1727 # this will be overridden with pass_all, but let us keep it just in case
1728 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1729 lt_cv_file_magic_test_file
=/shlib
/libc.so
1730 lt_cv_deplibs_check_method
=pass_all
1734 lt_cv_deplibs_check_method
=pass_all
1738 lt_cv_deplibs_check_method
=pass_all
1739 lt_cv_file_magic_test_file
=/lib
/libc.so
1742 sysv5uw
[78]* | sysv4
*uw2
*)
1743 lt_cv_deplibs_check_method
=pass_all
1746 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1747 case $host_vendor in
1749 lt_cv_deplibs_check_method
=pass_all
1752 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]'
1753 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1761 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1762 file_magic_cmd
=$lt_cv_file_magic_cmd
1763 deplibs_check_method
=$lt_cv_deplibs_check_method
1765 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1766 echo "configure:1767: checking for object suffix" >&5
1767 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1771 echo 'int i = 1;' > conftest.
$ac_ext
1772 if { (eval echo configure
:1773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1773 for ac_file
in conftest.
*; do
1776 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1780 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1785 echo "$ac_t""$ac_cv_objext" 1>&6
1786 OBJEXT
=$ac_cv_objext
1787 ac_objext
=$ac_cv_objext
1791 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1792 echo "configure:1793: checking for executable suffix" >&5
1793 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1796 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1800 echo 'int main () { return 0; }' > conftest.
$ac_ext
1802 if { (eval echo configure
:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1803 for file in conftest.
*; do
1805 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1806 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1810 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1813 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1818 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1819 echo "$ac_t""${ac_cv_exeext}" 1>&6
1822 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1824 # Only perform the check for file, if the check method requires it
1825 case $deplibs_check_method in
1827 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1828 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1829 echo "configure:1830: checking for ${ac_tool_prefix}file" >&5
1830 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1831 echo $ac_n "(cached) $ac_c" 1>&6
1835 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1838 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1841 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1842 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1843 ac_dummy
="/usr/bin:$PATH"
1844 for ac_dir
in $ac_dummy; do
1845 test -z "$ac_dir" && ac_dir
=.
1846 if test -f $ac_dir/${ac_tool_prefix}file; then
1847 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1848 if test -n "$file_magic_test_file"; then
1849 case $deplibs_check_method in
1851 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1852 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1853 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1854 egrep "$file_magic_regex" > /dev
/null
; then
1859 *** Warning: the command libtool uses to detect shared libraries,
1860 *** $file_magic_cmd, produces output that libtool cannot recognize.
1861 *** The result is that libtool may fail to recognize shared libraries
1862 *** as such. This will affect the creation of libtool libraries that
1863 *** depend on shared libraries, but programs linked with such libtool
1864 *** libraries will work regardless of this problem. Nevertheless, you
1865 *** may want to report the problem to your system manager and/or to
1866 *** bug-libtool@gnu.org
1876 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1881 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1882 if test -n "$MAGIC_CMD"; then
1883 echo "$ac_t""$MAGIC_CMD" 1>&6
1885 echo "$ac_t""no" 1>&6
1888 if test -z "$lt_cv_path_MAGIC_CMD"; then
1889 if test -n "$ac_tool_prefix"; then
1890 echo $ac_n "checking for file""... $ac_c" 1>&6
1891 echo "configure:1892: checking for file" >&5
1892 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1893 echo $ac_n "(cached) $ac_c" 1>&6
1897 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1900 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1903 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1904 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1905 ac_dummy
="/usr/bin:$PATH"
1906 for ac_dir
in $ac_dummy; do
1907 test -z "$ac_dir" && ac_dir
=.
1908 if test -f $ac_dir/file; then
1909 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1910 if test -n "$file_magic_test_file"; then
1911 case $deplibs_check_method in
1913 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1914 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1915 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1916 egrep "$file_magic_regex" > /dev
/null
; then
1921 *** Warning: the command libtool uses to detect shared libraries,
1922 *** $file_magic_cmd, produces output that libtool cannot recognize.
1923 *** The result is that libtool may fail to recognize shared libraries
1924 *** as such. This will affect the creation of libtool libraries that
1925 *** depend on shared libraries, but programs linked with such libtool
1926 *** libraries will work regardless of this problem. Nevertheless, you
1927 *** may want to report the problem to your system manager and/or to
1928 *** bug-libtool@gnu.org
1938 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1943 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1944 if test -n "$MAGIC_CMD"; then
1945 echo "$ac_t""$MAGIC_CMD" 1>&6
1947 echo "$ac_t""no" 1>&6
1959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1960 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$RANLIB"; then
1967 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1971 for ac_dir
in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir
=.
1973 if test -f $ac_dir/$ac_word; then
1974 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1981 RANLIB
="$ac_cv_prog_RANLIB"
1982 if test -n "$RANLIB"; then
1983 echo "$ac_t""$RANLIB" 1>&6
1985 echo "$ac_t""no" 1>&6
1989 if test -z "$ac_cv_prog_RANLIB"; then
1990 if test -n "$ac_tool_prefix"; then
1991 # Extract the first word of "ranlib", so it can be a program name with args.
1992 set dummy ranlib
; ac_word
=$2
1993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_word" >&5
1995 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 if test -n "$RANLIB"; then
1999 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2001 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2003 for ac_dir
in $ac_dummy; do
2004 test -z "$ac_dir" && ac_dir
=.
2005 if test -f $ac_dir/$ac_word; then
2006 ac_cv_prog_RANLIB
="ranlib"
2011 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2014 RANLIB
="$ac_cv_prog_RANLIB"
2015 if test -n "$RANLIB"; then
2016 echo "$ac_t""$RANLIB" 1>&6
2018 echo "$ac_t""no" 1>&6
2026 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2027 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_word" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 if test -n "$STRIP"; then
2034 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2038 for ac_dir
in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir
=.
2040 if test -f $ac_dir/$ac_word; then
2041 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2048 STRIP
="$ac_cv_prog_STRIP"
2049 if test -n "$STRIP"; then
2050 echo "$ac_t""$STRIP" 1>&6
2052 echo "$ac_t""no" 1>&6
2056 if test -z "$ac_cv_prog_STRIP"; then
2057 if test -n "$ac_tool_prefix"; then
2058 # Extract the first word of "strip", so it can be a program name with args.
2059 set dummy strip
; ac_word
=$2
2060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2061 echo "configure:2062: checking for $ac_word" >&5
2062 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2065 if test -n "$STRIP"; then
2066 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2070 for ac_dir
in $ac_dummy; do
2071 test -z "$ac_dir" && ac_dir
=.
2072 if test -f $ac_dir/$ac_word; then
2073 ac_cv_prog_STRIP
="strip"
2078 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2081 STRIP
="$ac_cv_prog_STRIP"
2082 if test -n "$STRIP"; then
2083 echo "$ac_t""$STRIP" 1>&6
2085 echo "$ac_t""no" 1>&6
2094 # Check for any special flags to pass to ltconfig.
2095 libtool_flags
="--cache-file=$cache_file"
2096 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2097 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2098 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2099 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2100 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2103 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2104 if test "${enable_libtool_lock+set}" = set; then
2105 enableval
="$enable_libtool_lock"
2109 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2110 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2112 # Check whether --with-pic or --without-pic was given.
2113 if test "${with_pic+set}" = set; then
2120 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2121 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2123 # Some flags need to be propagated to the compiler or linker for good
2127 # Find out which ABI we are using.
2128 echo '#line 2129 "configure"' > conftest.
$ac_ext
2129 if { (eval echo configure
:2130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2130 if test "$lt_cv_prog_gnu_ld" = yes; then
2131 case `/usr/bin/file conftest.$ac_objext` in
2133 LD
="${LD-ld} -melf32bsmip"
2136 LD
="${LD-ld} -melf32bmipn32"
2139 LD
="${LD-ld} -melf64bmip"
2143 case `/usr/bin/file conftest.$ac_objext` in
2160 # Find out which ABI we are using.
2161 echo 'int i;' > conftest.
$ac_ext
2162 if { (eval echo configure
:2163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2163 case "`/usr/bin/file conftest.o`" in
2176 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2177 SAVE_CFLAGS
="$CFLAGS"
2178 CFLAGS
="$CFLAGS -belf"
2179 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2180 echo "configure:2181: checking whether the C compiler needs -belf" >&5
2181 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2187 ac_cpp
='$CPP $CPPFLAGS'
2188 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2189 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2190 cross_compiling
=$ac_cv_prog_cc_cross
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2200 if { (eval echo configure
:2201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2202 lt_cv_cc_needs_belf
=yes
2204 echo "configure: failed program was:" >&5
2205 cat conftest.
$ac_ext >&5
2207 lt_cv_cc_needs_belf
=no
2211 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2212 ac_cpp
='$CPP $CPPFLAGS'
2213 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2214 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2215 cross_compiling
=$ac_cv_prog_cc_cross
2219 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2220 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2221 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2222 CFLAGS
="$SAVE_CFLAGS"
2230 # Save cache, so that ltconfig can load it
2231 cat > confcache
<<\EOF
2232 # This file is a shell script that caches the results of configure
2233 # tests run on this system so they can be shared between configure
2234 # scripts and configure runs. It is not useful on other systems.
2235 # If it contains results you don't want to keep, you may remove or edit it.
2237 # By default, configure uses ./config.cache as the cache file,
2238 # creating it if it does not exist already. You can give configure
2239 # the --cache-file=FILE option to use a different cache file; that is
2240 # what configure does when it calls configure scripts in
2241 # subdirectories, so they share the cache.
2242 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2243 # config.status only pays attention to the cache file if you give it the
2244 # --recheck option to rerun configure.
2247 # The following way of writing the cache mishandles newlines in values,
2248 # but we know of no workaround that is simple, portable, and efficient.
2249 # So, don't put newlines in cache variables' values.
2250 # Ultrix sh set writes to stderr and can't be redirected directly,
2251 # and sets the high bit in the cache file unless we assign to the vars.
2253 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2255 # `set' does not quote correctly, so add quotes (double-quote substitution
2256 # turns \\\\ into \\, and sed turns \\ into \).
2258 -e "s/'/'\\\\''/g" \
2259 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2262 # `set' quotes correctly as required by POSIX, so do not add quotes.
2263 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2266 if cmp -s $cache_file confcache
; then
2269 if test -w $cache_file; then
2270 echo "updating cache $cache_file"
2271 cat confcache
> $cache_file
2273 echo "not updating unwritable cache $cache_file"
2279 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2280 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2281 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2282 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2283 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2284 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2285 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2286 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2287 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2288 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2290 # Reload cache, that may have been modified by ltconfig
2291 if test -r "$cache_file"; then
2292 echo "loading cache $cache_file"
2295 echo "creating cache $cache_file"
2300 # This can be used to rebuild libtool when needed
2301 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2303 # Always use our own libtool.
2304 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2306 # Redirect the config.log output again, so that the ltconfig log is not
2307 # clobbered by the next message.
2308 exec 5>>.
/config.log
2316 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2317 if test "${enable_64_bit_bfd+set}" = set; then
2318 enableval
="$enable_64_bit_bfd"
2319 case "${enableval}" in
2322 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2327 # Check whether --enable-targets or --disable-targets was given.
2328 if test "${enable_targets+set}" = set; then
2329 enableval
="$enable_targets"
2330 case "${enableval}" in
2331 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2333 no
) enable_targets
= ;;
2334 *) enable_targets
=$enableval ;;
2337 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2338 if test "${enable_commonbfdlib+set}" = set; then
2339 enableval
="$enable_commonbfdlib"
2340 case "${enableval}" in
2341 yes) commonbfdlib
=true
;;
2342 no
) commonbfdlib
=false
;;
2343 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2346 # Check whether --with-mmap or --without-mmap was given.
2347 if test "${with_mmap+set}" = set; then
2348 withval
="$with_mmap"
2349 case "${withval}" in
2350 yes) want_mmap
=true
;;
2351 no
) want_mmap
=false
;;
2352 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2358 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2359 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2360 if test "${enable_build_warnings+set}" = set; then
2361 enableval
="$enable_build_warnings"
2362 case "${enableval}" in
2364 no
) build_warnings
="-w";;
2365 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2366 build_warnings
="${build_warnings} ${t}";;
2367 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2368 build_warnings
="${t} ${build_warnings}";;
2369 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2371 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2372 echo "Setting warning flags = $build_warnings" 6>&1
2376 if test "x${build_warnings}" != x
&& test "x$GCC" = xyes
; then
2377 WARN_CFLAGS
="${build_warnings}"
2385 if test -z "$target" ; then
2386 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2389 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2390 echo "configure:2391: checking whether to enable maintainer-specific portions of Makefiles" >&5
2391 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2392 if test "${enable_maintainer_mode+set}" = set; then
2393 enableval
="$enable_maintainer_mode"
2394 USE_MAINTAINER_MODE
=$enableval
2396 USE_MAINTAINER_MODE
=no
2399 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2402 if test $USE_MAINTAINER_MODE = yes; then
2403 MAINTAINER_MODE_TRUE
=
2404 MAINTAINER_MODE_FALSE
='#'
2406 MAINTAINER_MODE_TRUE
='#'
2407 MAINTAINER_MODE_FALSE
=
2409 MAINT
=$MAINTAINER_MODE_TRUE
2412 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2413 echo "configure:2414: checking whether to install libbfd" >&5
2414 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2415 if test "${enable_install_libbfd+set}" = set; then
2416 enableval
="$enable_install_libbfd"
2417 install_libbfd_p
=$enableval
2419 if test "${host}" = "${target}" ||
test "$enable_shared" = "yes"; then
2420 install_libbfd_p
=yes
2426 echo "$ac_t""$install_libbfd_p" 1>&6
2429 if test $install_libbfd_p = yes; then
2430 INSTALL_LIBBFD_TRUE
=
2431 INSTALL_LIBBFD_FALSE
='#'
2433 INSTALL_LIBBFD_TRUE
='#'
2434 INSTALL_LIBBFD_FALSE
=
2436 # libbfd.a is a host library containing target dependent code
2437 bfdlibdir
='$(libdir)'
2438 bfdincludedir
='$(includedir)'
2439 if test "${host}" != "${target}"; then
2440 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2441 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2449 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2450 echo "configure:2451: checking for executable suffix" >&5
2451 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2454 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2458 echo 'int main () { return 0; }' > conftest.
$ac_ext
2460 if { (eval echo configure
:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2461 for file in conftest.
*; do
2463 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2464 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2468 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2471 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2476 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2477 echo "$ac_t""${ac_cv_exeext}" 1>&6
2483 bfd_default_target_size
=32
2487 # Extract the first word of "gcc", so it can be a program name with args.
2488 set dummy gcc
; ac_word
=$2
2489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2490 echo "configure:2491: checking for $ac_word" >&5
2491 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2494 if test -n "$CC"; then
2495 ac_cv_prog_CC
="$CC" # Let the user override the test.
2497 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2499 for ac_dir
in $ac_dummy; do
2500 test -z "$ac_dir" && ac_dir
=.
2501 if test -f $ac_dir/$ac_word; then
2510 if test -n "$CC"; then
2511 echo "$ac_t""$CC" 1>&6
2513 echo "$ac_t""no" 1>&6
2516 if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518 set dummy cc
; ac_word
=$2
2519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2520 echo "configure:2521: checking for $ac_word" >&5
2521 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2522 echo $ac_n "(cached) $ac_c" 1>&6
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC
="$CC" # Let the user override the test.
2527 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2530 for ac_dir
in $ac_dummy; do
2531 test -z "$ac_dir" && ac_dir
=.
2532 if test -f $ac_dir/$ac_word; then
2533 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2534 ac_prog_rejected
=yes
2542 if test $ac_prog_rejected = yes; then
2543 # We found a bogon in the path, so make sure we never use it.
2544 set dummy
$ac_cv_prog_CC
2546 if test $# -gt 0; then
2547 # We chose a different compiler from the bogus one.
2548 # However, it has the same basename, so the bogon will be chosen
2549 # first if we set CC to just the basename; use the full file name.
2551 set dummy
"$ac_dir/$ac_word" "$@"
2559 if test -n "$CC"; then
2560 echo "$ac_t""$CC" 1>&6
2562 echo "$ac_t""no" 1>&6
2565 if test -z "$CC"; then
2566 case "`uname -s`" in
2568 # Extract the first word of "cl", so it can be a program name with args.
2569 set dummy cl
; ac_word
=$2
2570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_word" >&5
2572 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC
="$CC" # Let the user override the test.
2578 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2580 for ac_dir
in $ac_dummy; do
2581 test -z "$ac_dir" && ac_dir
=.
2582 if test -f $ac_dir/$ac_word; then
2591 if test -n "$CC"; then
2592 echo "$ac_t""$CC" 1>&6
2594 echo "$ac_t""no" 1>&6
2599 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2602 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2603 echo "configure:2604: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2607 ac_cpp
='$CPP $CPPFLAGS'
2608 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2609 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2610 cross_compiling
=$ac_cv_prog_cc_cross
2612 cat > conftest.
$ac_ext << EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2619 if { (eval echo configure
:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2620 ac_cv_prog_cc_works
=yes
2621 # If we can't run a trivial program, we are probably using a cross compiler.
2622 if (.
/conftest
; exit) 2>/dev
/null
; then
2623 ac_cv_prog_cc_cross
=no
2625 ac_cv_prog_cc_cross
=yes
2628 echo "configure: failed program was:" >&5
2629 cat conftest.
$ac_ext >&5
2630 ac_cv_prog_cc_works
=no
2634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2635 ac_cpp
='$CPP $CPPFLAGS'
2636 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2637 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2638 cross_compiling
=$ac_cv_prog_cc_cross
2640 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2641 if test $ac_cv_prog_cc_works = no
; then
2642 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2644 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2645 echo "configure:2646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2646 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2647 cross_compiling
=$ac_cv_prog_cc_cross
2649 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2650 echo "configure:2651: checking whether we are using GNU C" >&5
2651 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2652 echo $ac_n "(cached) $ac_c" 1>&6
2654 cat > conftest.c
<<EOF
2659 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2666 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2668 if test $ac_cv_prog_gcc = yes; then
2674 ac_test_CFLAGS
="${CFLAGS+set}"
2675 ac_save_CFLAGS
="$CFLAGS"
2677 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2678 echo "configure:2679: checking whether ${CC-cc} accepts -g" >&5
2679 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2682 echo 'void f(){}' > conftest.c
2683 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2692 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2693 if test "$ac_test_CFLAGS" = set; then
2694 CFLAGS
="$ac_save_CFLAGS"
2695 elif test $ac_cv_prog_cc_g = yes; then
2696 if test "$GCC" = yes; then
2702 if test "$GCC" = yes; then
2710 ALL_LINGUAS
="fr tr ja es sv da zh_CN"
2711 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2712 echo "configure:2713: checking how to run the C preprocessor" >&5
2713 # On Suns, sometimes $CPP names a directory.
2714 if test -n "$CPP" && test -d "$CPP"; then
2717 if test -z "$CPP"; then
2718 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2719 echo $ac_n "(cached) $ac_c" 1>&6
2721 # This must be in double quotes, not single quotes, because CPP may get
2722 # substituted into the Makefile and "${CC-cc}" will confuse make.
2724 # On the NeXT, cc -E runs the code through the compiler's parser,
2725 # not just through cpp.
2726 cat > conftest.
$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2732 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2733 { (eval echo configure
:2734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2734 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2735 if test -z "$ac_err"; then
2739 echo "configure: failed program was:" >&5
2740 cat conftest.
$ac_ext >&5
2742 CPP
="${CC-cc} -E -traditional-cpp"
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2749 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2750 { (eval echo configure
:2751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2751 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2752 if test -z "$ac_err"; then
2756 echo "configure: failed program was:" >&5
2757 cat conftest.
$ac_ext >&5
2759 CPP
="${CC-cc} -nologo -E"
2760 cat > conftest.
$ac_ext <<EOF
2761 #line 2762 "configure"
2762 #include "confdefs.h"
2766 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2767 { (eval echo configure
:2768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2768 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2769 if test -z "$ac_err"; then
2773 echo "configure: failed program was:" >&5
2774 cat conftest.
$ac_ext >&5
2783 ac_cv_prog_CPP
="$CPP"
2785 CPP
="$ac_cv_prog_CPP"
2787 ac_cv_prog_CPP
="$CPP"
2789 echo "$ac_t""$CPP" 1>&6
2791 # Extract the first word of "ranlib", so it can be a program name with args.
2792 set dummy ranlib
; ac_word
=$2
2793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_word" >&5
2795 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 if test -n "$RANLIB"; then
2799 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2801 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2803 for ac_dir
in $ac_dummy; do
2804 test -z "$ac_dir" && ac_dir
=.
2805 if test -f $ac_dir/$ac_word; then
2806 ac_cv_prog_RANLIB
="ranlib"
2811 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2814 RANLIB
="$ac_cv_prog_RANLIB"
2815 if test -n "$RANLIB"; then
2816 echo "$ac_t""$RANLIB" 1>&6
2818 echo "$ac_t""no" 1>&6
2821 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2822 echo "configure:2823: checking for ANSI C header files" >&5
2823 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 cat > conftest.
$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2835 { (eval echo configure
:2836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2837 if test -z "$ac_err"; then
2839 ac_cv_header_stdc
=yes
2842 echo "configure: failed program was:" >&5
2843 cat conftest.
$ac_ext >&5
2845 ac_cv_header_stdc
=no
2849 if test $ac_cv_header_stdc = yes; then
2850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 egrep "memchr" >/dev
/null
2>&1; then
2861 ac_cv_header_stdc
=no
2867 if test $ac_cv_header_stdc = yes; then
2868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2869 cat > conftest.
$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2875 egrep "free" >/dev
/null
2>&1; then
2879 ac_cv_header_stdc
=no
2885 if test $ac_cv_header_stdc = yes; then
2886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2887 if test "$cross_compiling" = yes; then
2890 cat > conftest.
$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2894 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2895 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2897 int main () { int i; for (i = 0; i < 256; i++)
2898 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2902 if { (eval echo configure
:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2906 echo "configure: failed program was:" >&5
2907 cat conftest.
$ac_ext >&5
2909 ac_cv_header_stdc
=no
2917 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2918 if test $ac_cv_header_stdc = yes; then
2919 cat >> confdefs.h
<<\EOF
2920 #define STDC_HEADERS 1
2925 echo $ac_n "checking for working const""... $ac_c" 1>&6
2926 echo "configure:2927: checking for working const" >&5
2927 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.
$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2936 /* Ultrix mips cc rejects this. */
2937 typedef int charset[2]; const charset x;
2938 /* SunOS 4.1.1 cc rejects this. */
2939 char const *const *ccp;
2941 /* NEC SVR4.0.2 mips cc rejects this. */
2942 struct point {int x, y;};
2943 static struct point const zero = {0,0};
2944 /* AIX XL C 1.02.0.0 rejects this.
2945 It does not let you subtract one const X* pointer from another in an arm
2946 of an if-expression whose if-part is not a constant expression */
2947 const char *g = "string";
2948 ccp = &g + (g ? g-g : 0);
2949 /* HPUX 7.0 cc rejects these. */
2952 ccp = (char const *const *) p;
2953 { /* SCO 3.2v4 cc rejects this. */
2955 char const *s = 0 ? (char *) 0 : (char const *) 0;
2959 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2961 const int *foo = &x[0];
2964 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2965 typedef const int *iptr;
2969 { /* AIX XL C 1.02.0.0 rejects this saying
2970 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2971 struct s { int j; const int *ap[3]; };
2972 struct s *b; b->j = 5;
2974 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2980 if { (eval echo configure
:2981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2984 echo "configure: failed program was:" >&5
2985 cat conftest.
$ac_ext >&5
2992 echo "$ac_t""$ac_cv_c_const" 1>&6
2993 if test $ac_cv_c_const = no
; then
2994 cat >> confdefs.h
<<\EOF
3000 echo $ac_n "checking for inline""... $ac_c" 1>&6
3001 echo "configure:3002: checking for inline" >&5
3002 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3006 for ac_kw
in inline __inline__ __inline
; do
3007 cat > conftest.
$ac_ext <<EOF
3008 #line 3009 "configure"
3009 #include "confdefs.h"
3015 if { (eval echo configure
:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3017 ac_cv_c_inline
=$ac_kw; break
3019 echo "configure: failed program was:" >&5
3020 cat conftest.
$ac_ext >&5
3027 echo "$ac_t""$ac_cv_c_inline" 1>&6
3028 case "$ac_cv_c_inline" in
3030 no
) cat >> confdefs.h
<<\EOF
3034 *) cat >> confdefs.h
<<EOF
3035 #define inline $ac_cv_c_inline
3040 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3041 echo "configure:3042: checking for off_t" >&5
3042 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3045 cat > conftest.
$ac_ext <<EOF
3046 #line 3047 "configure"
3047 #include "confdefs.h"
3048 #include <sys/types.h>
3054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3055 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3057 ac_cv_type_off_t
=yes
3065 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3066 if test $ac_cv_type_off_t = no
; then
3067 cat >> confdefs.h
<<\EOF
3073 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3074 echo "configure:3075: checking for size_t" >&5
3075 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3076 echo $ac_n "(cached) $ac_c" 1>&6
3078 cat > conftest.
$ac_ext <<EOF
3079 #line 3080 "configure"
3080 #include "confdefs.h"
3081 #include <sys/types.h>
3087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3088 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3090 ac_cv_type_size_t
=yes
3093 ac_cv_type_size_t
=no
3098 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3099 if test $ac_cv_type_size_t = no
; then
3100 cat >> confdefs.h
<<\EOF
3101 #define size_t unsigned
3106 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3107 # for constant arguments. Useless!
3108 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3109 echo "configure:3110: checking for working alloca.h" >&5
3110 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3118 char *p = alloca(2 * sizeof(int));
3121 if { (eval echo configure
:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3123 ac_cv_header_alloca_h
=yes
3125 echo "configure: failed program was:" >&5
3126 cat conftest.
$ac_ext >&5
3128 ac_cv_header_alloca_h
=no
3133 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3134 if test $ac_cv_header_alloca_h = yes; then
3135 cat >> confdefs.h
<<\EOF
3136 #define HAVE_ALLOCA_H 1
3141 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3142 echo "configure:3143: checking for alloca" >&5
3143 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3144 echo $ac_n "(cached) $ac_c" 1>&6
3146 cat > conftest.
$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3151 # define alloca __builtin_alloca
3154 # include <malloc.h>
3155 # define alloca _alloca
3158 # include <alloca.h>
3163 # ifndef alloca /* predefined by HP cc +Olibcalls */
3172 char *p = (char *) alloca(1);
3175 if { (eval echo configure
:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3177 ac_cv_func_alloca_works
=yes
3179 echo "configure: failed program was:" >&5
3180 cat conftest.
$ac_ext >&5
3182 ac_cv_func_alloca_works
=no
3187 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3188 if test $ac_cv_func_alloca_works = yes; then
3189 cat >> confdefs.h
<<\EOF
3190 #define HAVE_ALLOCA 1
3195 if test $ac_cv_func_alloca_works = no
; then
3196 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3197 # that cause trouble. Some versions do not even contain alloca or
3198 # contain a buggy version. If you still want to use their alloca,
3199 # use ar to extract alloca.o from them instead of compiling alloca.c.
3200 ALLOCA
=alloca.
${ac_objext}
3201 cat >> confdefs.h
<<\EOF
3206 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3207 echo "configure:3208: checking whether alloca needs Cray hooks" >&5
3208 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 cat > conftest.
$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 #if defined(CRAY) && ! defined(CRAY2)
3221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3222 egrep "webecray" >/dev
/null
2>&1; then
3233 echo "$ac_t""$ac_cv_os_cray" 1>&6
3234 if test $ac_cv_os_cray = yes; then
3235 for ac_func
in _getb67 GETB67 getb67
; do
3236 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3237 echo "configure:3238: checking for $ac_func" >&5
3238 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 cat > conftest.
$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3244 /* System header to define __stub macros and hopefully few prototypes,
3245 which can conflict with char $ac_func(); below. */
3247 /* Override any gcc2 internal prototype to avoid an error. */
3248 /* We use char because int might match the return type of a gcc2
3249 builtin and then its argument prototype would still apply. */
3254 /* The GNU C library defines this for functions which it implements
3255 to always fail with ENOSYS. Some functions are actually named
3256 something starting with __ and the normal name is an alias. */
3257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3265 if { (eval echo configure
:3266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3267 eval "ac_cv_func_$ac_func=yes"
3269 echo "configure: failed program was:" >&5
3270 cat conftest.
$ac_ext >&5
3272 eval "ac_cv_func_$ac_func=no"
3277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3278 echo "$ac_t""yes" 1>&6
3279 cat >> confdefs.h
<<EOF
3280 #define CRAY_STACKSEG_END $ac_func
3285 echo "$ac_t""no" 1>&6
3291 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3292 echo "configure:3293: checking stack direction for C alloca" >&5
3293 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3294 echo $ac_n "(cached) $ac_c" 1>&6
3296 if test "$cross_compiling" = yes; then
3297 ac_cv_c_stack_direction
=0
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 find_stack_direction ()
3304 static char *addr = 0;
3309 return find_stack_direction ();
3312 return (&dummy > addr) ? 1 : -1;
3316 exit (find_stack_direction() < 0);
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3321 ac_cv_c_stack_direction
=1
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 ac_cv_c_stack_direction
=-1
3333 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3334 cat >> confdefs.h
<<EOF
3335 #define STACK_DIRECTION $ac_cv_c_stack_direction
3340 for ac_hdr
in unistd.h
3342 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3343 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_hdr" >&5
3345 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.
$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3353 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3354 { (eval echo configure
:3355: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3355 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3356 if test -z "$ac_err"; then
3358 eval "ac_cv_header_$ac_safe=yes"
3361 echo "configure: failed program was:" >&5
3362 cat conftest.
$ac_ext >&5
3364 eval "ac_cv_header_$ac_safe=no"
3368 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3369 echo "$ac_t""yes" 1>&6
3370 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3371 cat >> confdefs.h
<<EOF
3372 #define $ac_tr_hdr 1
3376 echo "$ac_t""no" 1>&6
3380 for ac_func
in getpagesize
3382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3383 echo "configure:3384: checking for $ac_func" >&5
3384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.
$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 /* System header to define __stub macros and hopefully few prototypes,
3391 which can conflict with char $ac_func(); below. */
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3400 /* The GNU C library defines this for functions which it implements
3401 to always fail with ENOSYS. Some functions are actually named
3402 something starting with __ and the normal name is an alias. */
3403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3411 if { (eval echo configure
:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3413 eval "ac_cv_func_$ac_func=yes"
3415 echo "configure: failed program was:" >&5
3416 cat conftest.
$ac_ext >&5
3418 eval "ac_cv_func_$ac_func=no"
3423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3424 echo "$ac_t""yes" 1>&6
3425 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3426 cat >> confdefs.h
<<EOF
3427 #define $ac_tr_func 1
3431 echo "$ac_t""no" 1>&6
3435 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3436 echo "configure:3437: checking for working mmap" >&5
3437 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3438 echo $ac_n "(cached) $ac_c" 1>&6
3440 if test "$cross_compiling" = yes; then
3441 ac_cv_func_mmap_fixed_mapped
=no
3443 cat > conftest.
$ac_ext <<EOF
3444 #line 3445 "configure"
3445 #include "confdefs.h"
3447 /* Thanks to Mike Haertel and Jim Avera for this test.
3448 Here is a matrix of mmap possibilities:
3449 mmap private not fixed
3450 mmap private fixed at somewhere currently unmapped
3451 mmap private fixed at somewhere already mapped
3452 mmap shared not fixed
3453 mmap shared fixed at somewhere currently unmapped
3454 mmap shared fixed at somewhere already mapped
3455 For private mappings, we should verify that changes cannot be read()
3456 back from the file, nor mmap's back from the file at a different
3457 address. (There have been systems where private was not correctly
3458 implemented like the infamous i386 svr4.0, and systems where the
3459 VM page cache was not coherent with the filesystem buffer cache
3460 like early versions of FreeBSD and possibly contemporary NetBSD.)
3461 For shared mappings, we should conversely verify that changes get
3462 propogated back to all the places they're supposed to be.
3464 Grep wants private fixed already mapped.
3465 The main things grep needs to know about mmap are:
3466 * does it exist and is it safe to write into the mmap'd area
3467 * how to use it (BSD variants) */
3468 #include <sys/types.h>
3470 #include <sys/mman.h>
3472 /* This mess was copied from the GNU getpagesize.h. */
3473 #ifndef HAVE_GETPAGESIZE
3474 # ifdef HAVE_UNISTD_H
3475 # include <unistd.h>
3478 /* Assume that all systems that can run configure have sys/param.h. */
3479 # ifndef HAVE_SYS_PARAM_H
3480 # define HAVE_SYS_PARAM_H 1
3483 # ifdef _SC_PAGESIZE
3484 # define getpagesize() sysconf(_SC_PAGESIZE)
3485 # else /* no _SC_PAGESIZE */
3486 # ifdef HAVE_SYS_PARAM_H
3487 # include <sys/param.h>
3488 # ifdef EXEC_PAGESIZE
3489 # define getpagesize() EXEC_PAGESIZE
3490 # else /* no EXEC_PAGESIZE */
3492 # define getpagesize() NBPG * CLSIZE
3495 # endif /* no CLSIZE */
3496 # else /* no NBPG */
3498 # define getpagesize() NBPC
3499 # else /* no NBPC */
3501 # define getpagesize() PAGESIZE
3502 # endif /* PAGESIZE */
3503 # endif /* no NBPC */
3504 # endif /* no NBPG */
3505 # endif /* no EXEC_PAGESIZE */
3506 # else /* no HAVE_SYS_PARAM_H */
3507 # define getpagesize() 8192 /* punt totally */
3508 # endif /* no HAVE_SYS_PARAM_H */
3509 # endif /* no _SC_PAGESIZE */
3511 #endif /* no HAVE_GETPAGESIZE */
3514 extern "C" { void *malloc(unsigned); }
3522 char *data, *data2, *data3;
3526 pagesize = getpagesize();
3529 * First, make a file with some known garbage in it.
3531 data = malloc(pagesize);
3534 for (i = 0; i < pagesize; ++i)
3535 *(data + i) = rand();
3537 fd = creat("conftestmmap", 0600);
3540 if (write(fd, data, pagesize) != pagesize)
3545 * Next, try to mmap the file at a fixed address which
3546 * already has something else allocated at it. If we can,
3547 * also make sure that we see the same garbage.
3549 fd = open("conftestmmap", O_RDWR);
3552 data2 = malloc(2 * pagesize);
3555 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3556 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3559 for (i = 0; i < pagesize; ++i)
3560 if (*(data + i) != *(data2 + i))
3564 * Finally, make sure that changes to the mapped area
3565 * do not percolate back to the file as seen by read().
3566 * (This is a bug on some variants of i386 svr4.0.)
3568 for (i = 0; i < pagesize; ++i)
3569 *(data2 + i) = *(data2 + i) + 1;
3570 data3 = malloc(pagesize);
3573 if (read(fd, data3, pagesize) != pagesize)
3575 for (i = 0; i < pagesize; ++i)
3576 if (*(data + i) != *(data3 + i))
3579 unlink("conftestmmap");
3584 if { (eval echo configure
:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3586 ac_cv_func_mmap_fixed_mapped
=yes
3588 echo "configure: failed program was:" >&5
3589 cat conftest.
$ac_ext >&5
3591 ac_cv_func_mmap_fixed_mapped
=no
3598 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3599 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3600 cat >> confdefs.h
<<\EOF
3607 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3608 unistd.h values.h sys
/param.h
3610 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3612 echo "configure:3613: checking for $ac_hdr" >&5
3613 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 cat > conftest.
$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3621 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3622 { (eval echo configure
:3623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3623 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3624 if test -z "$ac_err"; then
3626 eval "ac_cv_header_$ac_safe=yes"
3629 echo "configure: failed program was:" >&5
3630 cat conftest.
$ac_ext >&5
3632 eval "ac_cv_header_$ac_safe=no"
3636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3638 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3639 cat >> confdefs.h
<<EOF
3640 #define $ac_tr_hdr 1
3644 echo "$ac_t""no" 1>&6
3648 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3649 __argz_count __argz_stringify __argz_next
3651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3652 echo "configure:3653: checking for $ac_func" >&5
3653 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.
$ac_ext <<EOF
3657 #line 3658 "configure"
3658 #include "confdefs.h"
3659 /* System header to define __stub macros and hopefully few prototypes,
3660 which can conflict with char $ac_func(); below. */
3662 /* Override any gcc2 internal prototype to avoid an error. */
3663 /* We use char because int might match the return type of a gcc2
3664 builtin and then its argument prototype would still apply. */
3669 /* The GNU C library defines this for functions which it implements
3670 to always fail with ENOSYS. Some functions are actually named
3671 something starting with __ and the normal name is an alias. */
3672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3680 if { (eval echo configure
:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3682 eval "ac_cv_func_$ac_func=yes"
3684 echo "configure: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3687 eval "ac_cv_func_$ac_func=no"
3692 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3693 echo "$ac_t""yes" 1>&6
3694 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3695 cat >> confdefs.h
<<EOF
3696 #define $ac_tr_func 1
3700 echo "$ac_t""no" 1>&6
3705 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3706 for ac_func
in stpcpy
3708 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3709 echo "configure:3710: checking for $ac_func" >&5
3710 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3711 echo $ac_n "(cached) $ac_c" 1>&6
3713 cat > conftest.
$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3716 /* System header to define __stub macros and hopefully few prototypes,
3717 which can conflict with char $ac_func(); below. */
3719 /* Override any gcc2 internal prototype to avoid an error. */
3720 /* We use char because int might match the return type of a gcc2
3721 builtin and then its argument prototype would still apply. */
3726 /* The GNU C library defines this for functions which it implements
3727 to always fail with ENOSYS. Some functions are actually named
3728 something starting with __ and the normal name is an alias. */
3729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3737 if { (eval echo configure
:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3739 eval "ac_cv_func_$ac_func=yes"
3741 echo "configure: failed program was:" >&5
3742 cat conftest.
$ac_ext >&5
3744 eval "ac_cv_func_$ac_func=no"
3749 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3750 echo "$ac_t""yes" 1>&6
3751 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3752 cat >> confdefs.h
<<EOF
3753 #define $ac_tr_func 1
3757 echo "$ac_t""no" 1>&6
3762 if test "${ac_cv_func_stpcpy}" = "yes"; then
3763 cat >> confdefs.h
<<\EOF
3764 #define HAVE_STPCPY 1
3769 if test $ac_cv_header_locale_h = yes; then
3770 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3771 echo "configure:3772: checking for LC_MESSAGES" >&5
3772 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3773 echo $ac_n "(cached) $ac_c" 1>&6
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3783 if { (eval echo configure
:3784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3785 am_cv_val_LC_MESSAGES
=yes
3787 echo "configure: failed program was:" >&5
3788 cat conftest.
$ac_ext >&5
3790 am_cv_val_LC_MESSAGES
=no
3795 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3796 if test $am_cv_val_LC_MESSAGES = yes; then
3797 cat >> confdefs.h
<<\EOF
3798 #define HAVE_LC_MESSAGES 1
3803 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3804 echo "configure:3805: checking whether NLS is requested" >&5
3805 # Check whether --enable-nls or --disable-nls was given.
3806 if test "${enable_nls+set}" = set; then
3807 enableval
="$enable_nls"
3813 echo "$ac_t""$USE_NLS" 1>&6
3816 USE_INCLUDED_LIBINTL
=no
3818 if test "$USE_NLS" = "yes"; then
3819 cat >> confdefs.h
<<\EOF
3820 #define ENABLE_NLS 1
3823 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3824 echo "configure:3825: checking whether included gettext is requested" >&5
3825 # Check whether --with-included-gettext or --without-included-gettext was given.
3826 if test "${with_included_gettext+set}" = set; then
3827 withval
="$with_included_gettext"
3828 nls_cv_force_use_gnu_gettext
=$withval
3830 nls_cv_force_use_gnu_gettext
=no
3833 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3835 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3836 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3838 nls_cv_header_libgt
=
3841 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3842 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3843 echo "configure:3844: checking for libintl.h" >&5
3844 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.
$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <libintl.h>
3852 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3853 { (eval echo configure
:3854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3854 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3855 if test -z "$ac_err"; then
3857 eval "ac_cv_header_$ac_safe=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.
$ac_ext >&5
3863 eval "ac_cv_header_$ac_safe=no"
3867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3868 echo "$ac_t""yes" 1>&6
3869 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3870 echo "configure:3871: checking for gettext in libc" >&5
3871 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3874 cat > conftest.
$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 #include <libintl.h>
3879 return (int) gettext ("")
3882 if { (eval echo configure
:3883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3884 gt_cv_func_gettext_libc
=yes
3886 echo "configure: failed program was:" >&5
3887 cat conftest.
$ac_ext >&5
3889 gt_cv_func_gettext_libc
=no
3894 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3896 if test "$gt_cv_func_gettext_libc" != "yes"; then
3897 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3898 echo "configure:3899: checking for bindtextdomain in -lintl" >&5
3899 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 ac_save_LIBS
="$LIBS"
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 /* Override any gcc2 internal prototype to avoid an error. */
3909 /* We use char because int might match the return type of a gcc2
3910 builtin and then its argument prototype would still apply. */
3911 char bindtextdomain();
3917 if { (eval echo configure
:3918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3919 eval "ac_cv_lib_$ac_lib_var=yes"
3921 echo "configure: failed program was:" >&5
3922 cat conftest.
$ac_ext >&5
3924 eval "ac_cv_lib_$ac_lib_var=no"
3927 LIBS
="$ac_save_LIBS"
3930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3931 echo "$ac_t""yes" 1>&6
3932 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3933 echo "configure:3934: checking for gettext in libintl" >&5
3934 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3935 echo $ac_n "(cached) $ac_c" 1>&6
3937 cat > conftest.
$ac_ext <<EOF
3938 #line 3939 "configure"
3939 #include "confdefs.h"
3942 return (int) gettext ("")
3945 if { (eval echo configure
:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3947 gt_cv_func_gettext_libintl
=yes
3949 echo "configure: failed program was:" >&5
3950 cat conftest.
$ac_ext >&5
3952 gt_cv_func_gettext_libintl
=no
3957 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3959 echo "$ac_t""no" 1>&6
3964 if test "$gt_cv_func_gettext_libc" = "yes" \
3965 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3966 cat >> confdefs.h
<<\EOF
3967 #define HAVE_GETTEXT 1
3970 # Extract the first word of "msgfmt", so it can be a program name with args.
3971 set dummy msgfmt
; ac_word
=$2
3972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3973 echo "configure:3974: checking for $ac_word" >&5
3974 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3979 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3982 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3983 for ac_dir
in $PATH; do
3984 test -z "$ac_dir" && ac_dir
=.
3985 if test -f $ac_dir/$ac_word; then
3986 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3987 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3993 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3997 MSGFMT
="$ac_cv_path_MSGFMT"
3998 if test -n "$MSGFMT"; then
3999 echo "$ac_t""$MSGFMT" 1>&6
4001 echo "$ac_t""no" 1>&6
4003 if test "$MSGFMT" != "no"; then
4004 for ac_func
in dcgettext
4006 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4007 echo "configure:4008: checking for $ac_func" >&5
4008 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 cat > conftest.
$ac_ext <<EOF
4012 #line 4013 "configure"
4013 #include "confdefs.h"
4014 /* System header to define __stub macros and hopefully few prototypes,
4015 which can conflict with char $ac_func(); below. */
4017 /* Override any gcc2 internal prototype to avoid an error. */
4018 /* We use char because int might match the return type of a gcc2
4019 builtin and then its argument prototype would still apply. */
4024 /* The GNU C library defines this for functions which it implements
4025 to always fail with ENOSYS. Some functions are actually named
4026 something starting with __ and the normal name is an alias. */
4027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4035 if { (eval echo configure
:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4037 eval "ac_cv_func_$ac_func=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.
$ac_ext >&5
4042 eval "ac_cv_func_$ac_func=no"
4047 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4048 echo "$ac_t""yes" 1>&6
4049 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4050 cat >> confdefs.h
<<EOF
4051 #define $ac_tr_func 1
4055 echo "$ac_t""no" 1>&6
4059 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4060 set dummy gmsgfmt
; ac_word
=$2
4061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4062 echo "configure:4063: checking for $ac_word" >&5
4063 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4068 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4071 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4074 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4076 for ac_dir
in $ac_dummy; do
4077 test -z "$ac_dir" && ac_dir
=.
4078 if test -f $ac_dir/$ac_word; then
4079 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4084 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4088 GMSGFMT
="$ac_cv_path_GMSGFMT"
4089 if test -n "$GMSGFMT"; then
4090 echo "$ac_t""$GMSGFMT" 1>&6
4092 echo "$ac_t""no" 1>&6
4095 # Extract the first word of "xgettext", so it can be a program name with args.
4096 set dummy xgettext
; ac_word
=$2
4097 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4098 echo "configure:4099: checking for $ac_word" >&5
4099 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4104 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4107 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4108 for ac_dir
in $PATH; do
4109 test -z "$ac_dir" && ac_dir
=.
4110 if test -f $ac_dir/$ac_word; then
4111 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4112 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4118 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4122 XGETTEXT
="$ac_cv_path_XGETTEXT"
4123 if test -n "$XGETTEXT"; then
4124 echo "$ac_t""$XGETTEXT" 1>&6
4126 echo "$ac_t""no" 1>&6
4129 cat > conftest.
$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4134 extern int _nl_msg_cat_cntr;
4135 return _nl_msg_cat_cntr
4138 if { (eval echo configure
:4139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4143 echo "configure: failed program was:" >&5
4144 cat conftest.
$ac_ext >&5
4155 echo "$ac_t""no" 1>&6
4160 if test "$CATOBJEXT" = "NONE"; then
4161 nls_cv_use_gnu_gettext
=yes
4165 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4166 INTLOBJS
="\$(GETTOBJS)"
4167 # Extract the first word of "msgfmt", so it can be a program name with args.
4168 set dummy msgfmt
; ac_word
=$2
4169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4170 echo "configure:4171: checking for $ac_word" >&5
4171 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4176 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4180 for ac_dir
in $PATH; do
4181 test -z "$ac_dir" && ac_dir
=.
4182 if test -f $ac_dir/$ac_word; then
4183 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4184 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4190 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4194 MSGFMT
="$ac_cv_path_MSGFMT"
4195 if test -n "$MSGFMT"; then
4196 echo "$ac_t""$MSGFMT" 1>&6
4198 echo "$ac_t""no" 1>&6
4201 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4202 set dummy gmsgfmt
; ac_word
=$2
4203 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4204 echo "configure:4205: checking for $ac_word" >&5
4205 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
4210 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4213 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4216 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4218 for ac_dir
in $ac_dummy; do
4219 test -z "$ac_dir" && ac_dir
=.
4220 if test -f $ac_dir/$ac_word; then
4221 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4226 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4230 GMSGFMT
="$ac_cv_path_GMSGFMT"
4231 if test -n "$GMSGFMT"; then
4232 echo "$ac_t""$GMSGFMT" 1>&6
4234 echo "$ac_t""no" 1>&6
4237 # Extract the first word of "xgettext", so it can be a program name with args.
4238 set dummy xgettext
; ac_word
=$2
4239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4240 echo "configure:4241: checking for $ac_word" >&5
4241 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4246 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4249 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4250 for ac_dir
in $PATH; do
4251 test -z "$ac_dir" && ac_dir
=.
4252 if test -f $ac_dir/$ac_word; then
4253 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4254 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4260 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4264 XGETTEXT
="$ac_cv_path_XGETTEXT"
4265 if test -n "$XGETTEXT"; then
4266 echo "$ac_t""$XGETTEXT" 1>&6
4268 echo "$ac_t""no" 1>&6
4272 USE_INCLUDED_LIBINTL
=yes
4276 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4278 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4279 nls_cv_header_intl
=libintl.h
4280 nls_cv_header_libgt
=libgettext.h
4283 if test "$XGETTEXT" != ":"; then
4284 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4287 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4292 # We need to process the po/ directory.
4296 nls_cv_header_intl
=libintl.h
4297 nls_cv_header_libgt
=libgettext.h
4300 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4301 # because some of the sources are only built for this goal.
4302 if test "$PACKAGE" = gettext; then
4304 USE_INCLUDED_LIBINTL
=yes
4307 for lang
in $ALL_LINGUAS; do
4308 GMOFILES
="$GMOFILES $lang.gmo"
4309 POFILES
="$POFILES $lang.po"
4325 if test "x$CATOBJEXT" != "x"; then
4326 if test "x$ALL_LINGUAS" = "x"; then
4329 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4330 echo "configure:4331: checking for catalogs to be installed" >&5
4332 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4333 case "$ALL_LINGUAS" in
4334 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4337 LINGUAS
=$NEW_LINGUAS
4338 echo "$ac_t""$LINGUAS" 1>&6
4341 if test -n "$LINGUAS"; then
4342 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4346 if test $ac_cv_header_locale_h = yes; then
4347 INCLUDE_LOCALE_H
="#include <locale.h>"
4350 /* The system does not provide the header <locale.h>. Take care yourself. */"
4354 if test -f $srcdir/po2tbl.
sed.
in; then
4355 if test "$CATOBJEXT" = ".cat"; then
4356 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4357 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4358 echo "configure:4359: checking for linux/version.h" >&5
4359 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 cat > conftest.
$ac_ext <<EOF
4363 #line 4364 "configure"
4364 #include "confdefs.h"
4365 #include <linux/version.h>
4367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4368 { (eval echo configure
:4369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4369 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4370 if test -z "$ac_err"; then
4372 eval "ac_cv_header_$ac_safe=yes"
4375 echo "configure: failed program was:" >&5
4376 cat conftest.
$ac_ext >&5
4378 eval "ac_cv_header_$ac_safe=no"
4382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4383 echo "$ac_t""yes" 1>&6
4386 echo "$ac_t""no" 1>&6
4391 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4393 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4394 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4397 if test "$PACKAGE" = "gettext"; then
4407 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4413 if test -f $srcdir/po
/POTFILES.
in; then
4414 test -d po || mkdir po
4415 if test "x$srcdir" != "x."; then
4416 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4417 posrcprefix
="$srcdir/"
4419 posrcprefix
="../$srcdir/"
4425 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4426 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4430 # Permit host specific settings.
4431 .
${srcdir}/configure.
host
4434 # Find a good install program. We prefer a C program (faster),
4435 # so one script is as good as another. But avoid the broken or
4436 # incompatible versions:
4437 # SysV /etc/install, /usr/sbin/install
4438 # SunOS /usr/etc/install
4439 # IRIX /sbin/install
4441 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4442 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4443 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4444 # ./install, which can be erroneously created by make from ./install.sh.
4445 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4446 echo "configure:4447: checking for a BSD compatible install" >&5
4447 if test -z "$INSTALL"; then
4448 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4452 for ac_dir
in $PATH; do
4453 # Account for people who put trailing slashes in PATH elements.
4455 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4457 # OSF1 and SCO ODT 3.0 have their own names for install.
4458 # Don't use installbsd from OSF since it installs stuff as root
4460 for ac_prog
in ginstall scoinst
install; do
4461 if test -f $ac_dir/$ac_prog; then
4462 if test $ac_prog = install &&
4463 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4464 # AIX install. It has an incompatible calling convention.
4467 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4478 if test "${ac_cv_path_install+set}" = set; then
4479 INSTALL
="$ac_cv_path_install"
4481 # As a last resort, use the slow shell script. We don't cache a
4482 # path for INSTALL within a source directory, because that will
4483 # break other packages using the cache if that directory is
4484 # removed, or if the path is relative.
4485 INSTALL
="$ac_install_sh"
4488 echo "$ac_t""$INSTALL" 1>&6
4490 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4491 # It thinks the first close brace ends the variable substitution.
4492 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4494 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4496 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4499 BFD_HOST_64BIT_LONG
=0
4500 BFD_HOST_LONG_LONG
=0
4501 BFD_HOST_64_BIT_DEFINED
=0
4504 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4505 BFD_HOST_64BIT_LONG
=1
4506 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4507 BFD_HOST_64_BIT_DEFINED
=1
4508 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4509 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4512 echo $ac_n "checking for long long""... $ac_c" 1>&6
4513 echo "configure:4514: checking for long long" >&5
4514 if eval "test \"`echo '$''{'bfd_cv_has_long_long'+set}'`\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 cat > conftest.
$ac_ext <<EOF
4518 #line 4519 "configure"
4519 #include "confdefs.h"
4522 unsigned long long ll = 18446744073709551615ULL;
4525 if { (eval echo configure
:4526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4527 bfd_cv_has_long_long
=yes
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 bfd_cv_has_long_long
=no
4537 echo "$ac_t""$bfd_cv_has_long_long" 1>&6
4538 if test $bfd_cv_has_long_long = yes; then
4539 BFD_HOST_LONG_LONG
=1
4548 # Put a plausible default for CC_FOR_BUILD in Makefile.
4549 if test -z "$CC_FOR_BUILD"; then
4550 if test "x$cross_compiling" = "xno"; then
4551 CC_FOR_BUILD
='$(CC)'
4557 # Also set EXEEXT_FOR_BUILD.
4558 if test "x$cross_compiling" = "xno"; then
4559 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4561 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4562 echo "configure:4563: checking for build system executable suffix" >&5
4563 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4567 echo 'int main () { return 0; }' > conftest.c
4568 bfd_cv_build_exeext
=
4569 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4570 for file in conftest.
*; do
4572 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4573 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4577 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4580 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4582 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4586 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4588 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4590 echo "configure:4591: checking for $ac_hdr" >&5
4591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 cat > conftest.
$ac_ext <<EOF
4595 #line 4596 "configure"
4596 #include "confdefs.h"
4599 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4600 { (eval echo configure
:4601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4601 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4602 if test -z "$ac_err"; then
4604 eval "ac_cv_header_$ac_safe=yes"
4607 echo "configure: failed program was:" >&5
4608 cat conftest.
$ac_ext >&5
4610 eval "ac_cv_header_$ac_safe=no"
4614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4615 echo "$ac_t""yes" 1>&6
4616 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4617 cat >> confdefs.h
<<EOF
4618 #define $ac_tr_hdr 1
4622 echo "$ac_t""no" 1>&6
4626 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4628 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4629 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_hdr" >&5
4631 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 cat > conftest.
$ac_ext <<EOF
4635 #line 4636 "configure"
4636 #include "confdefs.h"
4639 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4640 { (eval echo configure
:4641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4641 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4642 if test -z "$ac_err"; then
4644 eval "ac_cv_header_$ac_safe=yes"
4647 echo "configure: failed program was:" >&5
4648 cat conftest.
$ac_ext >&5
4650 eval "ac_cv_header_$ac_safe=no"
4654 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4656 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4657 cat >> confdefs.h
<<EOF
4658 #define $ac_tr_hdr 1
4662 echo "$ac_t""no" 1>&6
4666 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4667 echo "configure:4668: checking whether time.h and sys/time.h may both be included" >&5
4668 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 cat > conftest.
$ac_ext <<EOF
4672 #line 4673 "configure"
4673 #include "confdefs.h"
4674 #include <sys/types.h>
4675 #include <sys/time.h>
4681 if { (eval echo configure
:4682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4683 ac_cv_header_time
=yes
4685 echo "configure: failed program was:" >&5
4686 cat conftest.
$ac_ext >&5
4688 ac_cv_header_time
=no
4693 echo "$ac_t""$ac_cv_header_time" 1>&6
4694 if test $ac_cv_header_time = yes; then
4695 cat >> confdefs.h
<<\EOF
4696 #define TIME_WITH_SYS_TIME 1
4702 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4704 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4705 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4706 echo "configure:4707: checking for $ac_hdr that defines DIR" >&5
4707 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.
$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <sys/types.h>
4719 if { (eval echo configure
:4720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4721 eval "ac_cv_header_dirent_$ac_safe=yes"
4723 echo "configure: failed program was:" >&5
4724 cat conftest.
$ac_ext >&5
4726 eval "ac_cv_header_dirent_$ac_safe=no"
4730 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4731 echo "$ac_t""yes" 1>&6
4732 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4733 cat >> confdefs.h
<<EOF
4734 #define $ac_tr_hdr 1
4736 ac_header_dirent
=$ac_hdr; break
4738 echo "$ac_t""no" 1>&6
4741 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4742 if test $ac_header_dirent = dirent.h
; then
4743 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4744 echo "configure:4745: checking for opendir in -ldir" >&5
4745 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 ac_save_LIBS
="$LIBS"
4751 cat > conftest.
$ac_ext <<EOF
4752 #line 4753 "configure"
4753 #include "confdefs.h"
4754 /* Override any gcc2 internal prototype to avoid an error. */
4755 /* We use char because int might match the return type of a gcc2
4756 builtin and then its argument prototype would still apply. */
4763 if { (eval echo configure
:4764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4765 eval "ac_cv_lib_$ac_lib_var=yes"
4767 echo "configure: failed program was:" >&5
4768 cat conftest.
$ac_ext >&5
4770 eval "ac_cv_lib_$ac_lib_var=no"
4773 LIBS
="$ac_save_LIBS"
4776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4780 echo "$ac_t""no" 1>&6
4784 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4785 echo "configure:4786: checking for opendir in -lx" >&5
4786 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4788 echo $ac_n "(cached) $ac_c" 1>&6
4790 ac_save_LIBS
="$LIBS"
4792 cat > conftest.
$ac_ext <<EOF
4793 #line 4794 "configure"
4794 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */
4796 /* We use char because int might match the return type of a gcc2
4797 builtin and then its argument prototype would still apply. */
4804 if { (eval echo configure
:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4806 eval "ac_cv_lib_$ac_lib_var=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 eval "ac_cv_lib_$ac_lib_var=no"
4814 LIBS
="$ac_save_LIBS"
4817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4818 echo "$ac_t""yes" 1>&6
4821 echo "$ac_t""no" 1>&6
4826 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4829 echo "configure:4830: checking for $ac_func" >&5
4830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4831 echo $ac_n "(cached) $ac_c" 1>&6
4833 cat > conftest.
$ac_ext <<EOF
4834 #line 4835 "configure"
4835 #include "confdefs.h"
4836 /* System header to define __stub macros and hopefully few prototypes,
4837 which can conflict with char $ac_func(); below. */
4839 /* Override any gcc2 internal prototype to avoid an error. */
4840 /* We use char because int might match the return type of a gcc2
4841 builtin and then its argument prototype would still apply. */
4846 /* The GNU C library defines this for functions which it implements
4847 to always fail with ENOSYS. Some functions are actually named
4848 something starting with __ and the normal name is an alias. */
4849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4857 if { (eval echo configure
:4858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4859 eval "ac_cv_func_$ac_func=yes"
4861 echo "configure: failed program was:" >&5
4862 cat conftest.
$ac_ext >&5
4864 eval "ac_cv_func_$ac_func=no"
4869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4870 echo "$ac_t""yes" 1>&6
4871 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4872 cat >> confdefs.h
<<EOF
4873 #define $ac_tr_func 1
4877 echo "$ac_t""no" 1>&6
4881 for ac_func
in strtoull
4883 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4884 echo "configure:4885: checking for $ac_func" >&5
4885 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4886 echo $ac_n "(cached) $ac_c" 1>&6
4888 cat > conftest.
$ac_ext <<EOF
4889 #line 4890 "configure"
4890 #include "confdefs.h"
4891 /* System header to define __stub macros and hopefully few prototypes,
4892 which can conflict with char $ac_func(); below. */
4894 /* Override any gcc2 internal prototype to avoid an error. */
4895 /* We use char because int might match the return type of a gcc2
4896 builtin and then its argument prototype would still apply. */
4901 /* The GNU C library defines this for functions which it implements
4902 to always fail with ENOSYS. Some functions are actually named
4903 something starting with __ and the normal name is an alias. */
4904 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4912 if { (eval echo configure
:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4914 eval "ac_cv_func_$ac_func=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.
$ac_ext >&5
4919 eval "ac_cv_func_$ac_func=no"
4924 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4927 cat >> confdefs.h
<<EOF
4928 #define $ac_tr_func 1
4932 echo "$ac_t""no" 1>&6
4939 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4940 cat >> confdefs.h
<<\EOF
4941 #define USE_BINARY_FOPEN 1
4946 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4947 echo "configure:4948: checking whether strstr must be declared" >&5
4948 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4949 echo $ac_n "(cached) $ac_c" 1>&6
4951 cat > conftest.
$ac_ext <<EOF
4952 #line 4953 "configure"
4953 #include "confdefs.h"
4956 #ifdef HAVE_STRING_H
4959 #ifdef HAVE_STRINGS_H
4960 #include <strings.h>
4963 #ifdef HAVE_STDLIB_H
4966 #ifdef HAVE_UNISTD_H
4970 char *(*pfn) = (char *(*)) strstr
4973 if { (eval echo configure
:4974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4975 bfd_cv_decl_needed_strstr
=no
4977 echo "configure: failed program was:" >&5
4978 cat conftest.
$ac_ext >&5
4980 bfd_cv_decl_needed_strstr
=yes
4985 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4986 if test $bfd_cv_decl_needed_strstr = yes; then
4987 cat >> confdefs.h
<<\EOF
4988 #define NEED_DECLARATION_STRSTR 1
4993 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4994 echo "configure:4995: checking whether malloc must be declared" >&5
4995 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4996 echo $ac_n "(cached) $ac_c" 1>&6
4998 cat > conftest.
$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5003 #ifdef HAVE_STRING_H
5006 #ifdef HAVE_STRINGS_H
5007 #include <strings.h>
5010 #ifdef HAVE_STDLIB_H
5013 #ifdef HAVE_UNISTD_H
5017 char *(*pfn) = (char *(*)) malloc
5020 if { (eval echo configure
:5021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5022 bfd_cv_decl_needed_malloc
=no
5024 echo "configure: failed program was:" >&5
5025 cat conftest.
$ac_ext >&5
5027 bfd_cv_decl_needed_malloc
=yes
5032 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
5033 if test $bfd_cv_decl_needed_malloc = yes; then
5034 cat >> confdefs.h
<<\EOF
5035 #define NEED_DECLARATION_MALLOC 1
5040 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
5041 echo "configure:5042: checking whether realloc must be declared" >&5
5042 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
5043 echo $ac_n "(cached) $ac_c" 1>&6
5045 cat > conftest.
$ac_ext <<EOF
5046 #line 5047 "configure"
5047 #include "confdefs.h"
5050 #ifdef HAVE_STRING_H
5053 #ifdef HAVE_STRINGS_H
5054 #include <strings.h>
5057 #ifdef HAVE_STDLIB_H
5060 #ifdef HAVE_UNISTD_H
5064 char *(*pfn) = (char *(*)) realloc
5067 if { (eval echo configure
:5068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5069 bfd_cv_decl_needed_realloc
=no
5071 echo "configure: failed program was:" >&5
5072 cat conftest.
$ac_ext >&5
5074 bfd_cv_decl_needed_realloc
=yes
5079 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
5080 if test $bfd_cv_decl_needed_realloc = yes; then
5081 cat >> confdefs.h
<<\EOF
5082 #define NEED_DECLARATION_REALLOC 1
5087 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
5088 echo "configure:5089: checking whether free must be declared" >&5
5089 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 cat > conftest.
$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5097 #ifdef HAVE_STRING_H
5100 #ifdef HAVE_STRINGS_H
5101 #include <strings.h>
5104 #ifdef HAVE_STDLIB_H
5107 #ifdef HAVE_UNISTD_H
5111 char *(*pfn) = (char *(*)) free
5114 if { (eval echo configure
:5115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5116 bfd_cv_decl_needed_free
=no
5118 echo "configure: failed program was:" >&5
5119 cat conftest.
$ac_ext >&5
5121 bfd_cv_decl_needed_free
=yes
5126 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5127 if test $bfd_cv_decl_needed_free = yes; then
5128 cat >> confdefs.h
<<\EOF
5129 #define NEED_DECLARATION_FREE 1
5134 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5135 echo "configure:5136: checking whether getenv must be declared" >&5
5136 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 cat > conftest.
$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5144 #ifdef HAVE_STRING_H
5147 #ifdef HAVE_STRINGS_H
5148 #include <strings.h>
5151 #ifdef HAVE_STDLIB_H
5154 #ifdef HAVE_UNISTD_H
5158 char *(*pfn) = (char *(*)) getenv
5161 if { (eval echo configure
:5162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5163 bfd_cv_decl_needed_getenv
=no
5165 echo "configure: failed program was:" >&5
5166 cat conftest.
$ac_ext >&5
5168 bfd_cv_decl_needed_getenv
=yes
5173 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5174 if test $bfd_cv_decl_needed_getenv = yes; then
5175 cat >> confdefs.h
<<\EOF
5176 #define NEED_DECLARATION_GETENV 1
5182 # If we are configured native, pick a core file support file.
5186 if test "${target}" = "${host}"; then
5188 alpha
*-*-freebsd* | alpha
*-*-kfreebsd*-gnu)
5191 alpha
*-*-linux-gnu*)
5192 COREFILE
=trad-core.lo
5193 TRAD_HEADER
='"hosts/alphalinux.h"'
5195 alpha
*-*-netbsd* | alpha
*-*-openbsd*)
5196 COREFILE
=netbsd-core.lo
5198 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5199 arm-
*-freebsd* | arm-
*-kfreebsd*-gnu)
5201 arm-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5202 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5203 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5204 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5205 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5206 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5207 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5209 COREFILE
=trad-core.lo
5210 TRAD_HEADER
='"hosts/i370linux.h"'
5213 i
[3-7]86-sequent-bsd*)
5214 COREFILE
=trad-core.lo
5215 TRAD_HEADER
='"hosts/symmetry.h"'
5217 i
[3-7]86-sequent-sysv4*) ;;
5218 i
[3-7]86-sequent-sysv*)
5219 COREFILE
=trad-core.lo
5220 TRAD_HEADER
='"hosts/symmetry.h"'
5225 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
*)
5226 COREFILE
=trad-core.lo
5227 TRAD_HEADER
='"hosts/i386bsd.h"'
5229 i
[3-7]86-*-freebsd* | i
[3-7]86-*-kfreebsd*-gnu)
5231 TRAD_HEADER
='"hosts/i386bsd.h"'
5233 i
[3-7]86-*-netbsd* | i
[3-7]86-*-openbsd*)
5234 COREFILE
=netbsd-core.lo
5236 i
[3-7]86-esix-sysv3*)
5237 COREFILE
=trad-core.lo
5238 TRAD_HEADER
='"hosts/esix.h"'
5240 i
[3-7]86-*-sco3.2v5
*)
5241 COREFILE
=sco5-core.lo
5243 i
[3-7]86-*-sco* | i
[3-7]86-*-isc*)
5244 COREFILE
=trad-core.lo
5245 TRAD_HEADER
='"hosts/i386sco.h"'
5248 COREFILE
=trad-core.lo
5249 TRAD_HEADER
='"hosts/i386mach3.h"'
5251 i
[3-7]86-*-linux-gnu*)
5252 COREFILE
=trad-core.lo
5253 TRAD_HEADER
='"hosts/i386linux.h"'
5255 i
[3-7]86-*-isc*) COREFILE
=trad-core.lo
;;
5256 i
[3-7]86-*-aix*) COREFILE
=aix386-core.lo
;;
5257 i860-
*-mach3* | i860-
*-osf1*)
5258 COREFILE
=trad-core.lo
5259 TRAD_HEADER
='"hosts/i860mach3.h"'
5262 COREFILE
=trad-core.lo
5263 TRAD_HEADER
='"hosts/mipsbsd.h"'
5266 COREFILE
=trad-core.lo
5267 TRAD_HEADER
='"hosts/mipsmach3.h"'
5269 mips-
*-netbsd* | mips
*-*-openbsd*)
5270 COREFILE
=netbsd-core.lo
5273 COREFILE
=trad-core.lo
5274 TRAD_HEADER
='"hosts/decstation.h"'
5276 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5277 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5278 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5280 COREFILE
=trad-core.lo
5281 TRAD_HEADER
='"hosts/mipsmach3.h"'
5284 mips-
*-sysv* | mips-
*-riscos*)
5285 COREFILE
=trad-core.lo
5286 TRAD_HEADER
='"hosts/riscos.h"'
5289 COREFILE
=trad-core.lo
5290 TRAD_HEADER
='"hosts/news-mips.h"'
5293 COREFILE
=trad-core.lo
5294 TRAD_HEADER
='"hosts/dpx2.h"'
5296 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5298 COREFILE
=trad-core.lo
5299 TRAD_HEADER
='"hosts/hp300bsd.h"'
5302 COREFILE
=trad-core.lo
5303 TRAD_HEADER
='"hosts/m68klinux.h"'
5305 m68
*-motorola-sysv*)
5306 COREFILE
=trad-core.lo
5307 TRAD_HEADER
='"hosts/delta68.h"'
5310 COREFILE
=trad-core.lo
5311 TRAD_HEADER
='"hosts/news.h"'
5313 m68
*-*-netbsd* | m68
*-*-openbsd*)
5314 COREFILE
=netbsd-core.lo
5317 COREFILE
=trad-core.lo
5318 TRAD_HEADER
='"hosts/m68kaux.h"'
5322 m88
*-motorola-sysv*)
5323 COREFILE
=ptrace-core.lo
5326 COREFILE
=trad-core.lo
5327 TRAD_HEADER
='"hosts/m88kmach3.h"'
5330 COREFILE
=trad-core.lo
5331 TRAD_HEADER
='"hosts/pc532mach.h"'
5333 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5334 COREFILE
=netbsd-core.lo
5337 COREFILE
=lynx-core.lo
5339 rs6000-
*-aix5.
* | powerpc-
*-aix5.
*)
5340 COREFILE
=rs6000-core.lo
5341 COREFLAG
="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5343 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5344 COREFILE
=rs6000-core.lo
5345 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5346 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5347 # have c_impl as a member of struct core_dumpx
5348 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5349 echo "configure:5350: checking for c_impl in struct core_dumpx" >&5
5350 cat > conftest.
$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5355 struct core_dumpx c; c.c_impl = 0;
5358 if { (eval echo configure
:5359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5360 cat >> confdefs.h
<<\EOF
5361 #define HAVE_ST_C_IMPL 1
5364 echo "$ac_t""yes" 1>&6
5366 echo "configure: failed program was:" >&5
5367 cat conftest.
$ac_ext >&5
5369 echo "$ac_t""no" 1>&6
5373 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5374 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5375 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5376 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5378 powerpc-
*-freebsd* | powerpc-
*-kfreebsd*-gnu)
5380 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5381 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5382 s390
*-*-*) COREFILE
=trad-core.lo
;;
5383 sh
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5384 sparc-
*-netbsd* | sparc
*-*-openbsd*)
5385 COREFILE
=netbsd-core.lo
5388 COREFILE
=trad-core.lo
5389 TRAD_HEADER
='"hosts/tahoe.h"'
5391 vax-
*-netbsd* | vax-
*-openbsd*)
5392 COREFILE
=netbsd-core.lo
5395 COREFILE
=trad-core.lo
5396 TRAD_HEADER
='"hosts/vaxult2.h"'
5399 COREFILE
=trad-core.lo
5400 TRAD_HEADER
='"hosts/vaxult2.h"'
5403 COREFILE
=trad-core.lo
5404 TRAD_HEADER
='"hosts/vaxbsd.h"'
5406 x86_64-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5410 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5411 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5412 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5413 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5414 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5415 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5416 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5417 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5418 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5419 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5420 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5423 # ELF corefile support has several flavors, but all of
5424 # them use something called <sys/procfs.h>
5425 for ac_hdr
in sys
/procfs.h
5427 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5429 echo "configure:5430: checking for $ac_hdr" >&5
5430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5431 echo $ac_n "(cached) $ac_c" 1>&6
5433 cat > conftest.
$ac_ext <<EOF
5434 #line 5435 "configure"
5435 #include "confdefs.h"
5438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5439 { (eval echo configure
:5440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5440 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5441 if test -z "$ac_err"; then
5443 eval "ac_cv_header_$ac_safe=yes"
5446 echo "configure: failed program was:" >&5
5447 cat conftest.
$ac_ext >&5
5449 eval "ac_cv_header_$ac_safe=no"
5453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5454 echo "$ac_t""yes" 1>&6
5455 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5456 cat >> confdefs.h
<<EOF
5457 #define $ac_tr_hdr 1
5461 echo "$ac_t""no" 1>&6
5465 if test "$ac_cv_header_sys_procfs_h" = yes; then
5466 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5467 echo "configure:5468: checking for prstatus_t in sys/procfs.h" >&5
5468 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 cat > conftest.
$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5476 #include <sys/procfs.h>
5481 if { (eval echo configure
:5482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5483 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5485 echo "configure: failed program was:" >&5
5486 cat conftest.
$ac_ext >&5
5488 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5494 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5495 cat >> confdefs.h
<<\EOF
5496 #define HAVE_PRSTATUS_T 1
5500 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5502 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5503 echo "configure:5504: checking for prstatus32_t in sys/procfs.h" >&5
5504 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5507 cat > conftest.
$ac_ext <<EOF
5508 #line 5509 "configure"
5509 #include "confdefs.h"
5512 #include <sys/procfs.h>
5517 if { (eval echo configure
:5518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5519 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5521 echo "configure: failed program was:" >&5
5522 cat conftest.
$ac_ext >&5
5524 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5530 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5531 cat >> confdefs.h
<<\EOF
5532 #define HAVE_PRSTATUS32_T 1
5536 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5538 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5539 echo "configure:5540: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5540 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5541 echo $ac_n "(cached) $ac_c" 1>&6
5543 cat > conftest.
$ac_ext <<EOF
5544 #line 5545 "configure"
5545 #include "confdefs.h"
5548 #include <sys/procfs.h>
5550 prstatus_t avar; void* aref = (void*) &avar.pr_who
5553 if { (eval echo configure
:5554: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5555 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5557 echo "configure: failed program was:" >&5
5558 cat conftest.
$ac_ext >&5
5560 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5566 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5567 cat >> confdefs.h
<<\EOF
5568 #define HAVE_PRSTATUS_T_PR_WHO 1
5572 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5574 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5575 echo "configure:5576: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5576 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5577 echo $ac_n "(cached) $ac_c" 1>&6
5579 cat > conftest.
$ac_ext <<EOF
5580 #line 5581 "configure"
5581 #include "confdefs.h"
5584 #include <sys/procfs.h>
5586 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5589 if { (eval echo configure
:5590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5591 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5593 echo "configure: failed program was:" >&5
5594 cat conftest.
$ac_ext >&5
5596 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5602 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5603 cat >> confdefs.h
<<\EOF
5604 #define HAVE_PRSTATUS32_T_PR_WHO 1
5608 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5610 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5611 echo "configure:5612: checking for pstatus_t in sys/procfs.h" >&5
5612 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5613 echo $ac_n "(cached) $ac_c" 1>&6
5615 cat > conftest.
$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5620 #include <sys/procfs.h>
5625 if { (eval echo configure
:5626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5627 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5629 echo "configure: failed program was:" >&5
5630 cat conftest.
$ac_ext >&5
5632 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5638 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5639 cat >> confdefs.h
<<\EOF
5640 #define HAVE_PSTATUS_T 1
5644 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5646 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5647 echo "configure:5648: checking for pxstatus_t in sys/procfs.h" >&5
5648 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 cat > conftest.
$ac_ext <<EOF
5652 #line 5653 "configure"
5653 #include "confdefs.h"
5656 #include <sys/procfs.h>
5661 if { (eval echo configure
:5662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5663 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5665 echo "configure: failed program was:" >&5
5666 cat conftest.
$ac_ext >&5
5668 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5674 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5675 cat >> confdefs.h
<<\EOF
5676 #define HAVE_PXSTATUS_T 1
5680 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5682 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5683 echo "configure:5684: checking for pstatus32_t in sys/procfs.h" >&5
5684 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5685 echo $ac_n "(cached) $ac_c" 1>&6
5687 cat > conftest.
$ac_ext <<EOF
5688 #line 5689 "configure"
5689 #include "confdefs.h"
5692 #include <sys/procfs.h>
5697 if { (eval echo configure
:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5699 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5701 echo "configure: failed program was:" >&5
5702 cat conftest.
$ac_ext >&5
5704 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5710 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5711 cat >> confdefs.h
<<\EOF
5712 #define HAVE_PSTATUS32_T 1
5716 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5718 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5719 echo "configure:5720: checking for prpsinfo_t in sys/procfs.h" >&5
5720 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5721 echo $ac_n "(cached) $ac_c" 1>&6
5723 cat > conftest.
$ac_ext <<EOF
5724 #line 5725 "configure"
5725 #include "confdefs.h"
5728 #include <sys/procfs.h>
5733 if { (eval echo configure
:5734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5735 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5737 echo "configure: failed program was:" >&5
5738 cat conftest.
$ac_ext >&5
5740 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5746 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5747 cat >> confdefs.h
<<\EOF
5748 #define HAVE_PRPSINFO_T 1
5752 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5754 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5755 echo "configure:5756: checking for prpsinfo32_t in sys/procfs.h" >&5
5756 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5757 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.
$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5764 #include <sys/procfs.h>
5769 if { (eval echo configure
:5770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5771 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5773 echo "configure: failed program was:" >&5
5774 cat conftest.
$ac_ext >&5
5776 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5782 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5783 cat >> confdefs.h
<<\EOF
5784 #define HAVE_PRPSINFO32_T 1
5788 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5790 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5791 echo "configure:5792: checking for psinfo_t in sys/procfs.h" >&5
5792 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5793 echo $ac_n "(cached) $ac_c" 1>&6
5795 cat > conftest.
$ac_ext <<EOF
5796 #line 5797 "configure"
5797 #include "confdefs.h"
5800 #include <sys/procfs.h>
5805 if { (eval echo configure
:5806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5807 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5809 echo "configure: failed program was:" >&5
5810 cat conftest.
$ac_ext >&5
5812 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5818 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5819 cat >> confdefs.h
<<\EOF
5820 #define HAVE_PSINFO_T 1
5824 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5826 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5827 echo "configure:5828: checking for psinfo32_t in sys/procfs.h" >&5
5828 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5829 echo $ac_n "(cached) $ac_c" 1>&6
5831 cat > conftest.
$ac_ext <<EOF
5832 #line 5833 "configure"
5833 #include "confdefs.h"
5836 #include <sys/procfs.h>
5841 if { (eval echo configure
:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5843 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5845 echo "configure: failed program was:" >&5
5846 cat conftest.
$ac_ext >&5
5848 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5854 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5855 cat >> confdefs.h
<<\EOF
5856 #define HAVE_PSINFO32_T 1
5860 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5862 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5863 echo "configure:5864: checking for lwpstatus_t in sys/procfs.h" >&5
5864 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5865 echo $ac_n "(cached) $ac_c" 1>&6
5867 cat > conftest.
$ac_ext <<EOF
5868 #line 5869 "configure"
5869 #include "confdefs.h"
5872 #include <sys/procfs.h>
5877 if { (eval echo configure
:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5879 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5881 echo "configure: failed program was:" >&5
5882 cat conftest.
$ac_ext >&5
5884 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5890 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5891 cat >> confdefs.h
<<\EOF
5892 #define HAVE_LWPSTATUS_T 1
5896 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5898 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5899 echo "configure:5900: checking for lwpxstatus_t in sys/procfs.h" >&5
5900 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5901 echo $ac_n "(cached) $ac_c" 1>&6
5903 cat > conftest.
$ac_ext <<EOF
5904 #line 5905 "configure"
5905 #include "confdefs.h"
5908 #include <sys/procfs.h>
5913 if { (eval echo configure
:5914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5915 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5917 echo "configure: failed program was:" >&5
5918 cat conftest.
$ac_ext >&5
5920 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5926 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5927 cat >> confdefs.h
<<\EOF
5928 #define HAVE_LWPXSTATUS_T 1
5932 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5934 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5935 echo "configure:5936: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5936 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5937 echo $ac_n "(cached) $ac_c" 1>&6
5939 cat > conftest.
$ac_ext <<EOF
5940 #line 5941 "configure"
5941 #include "confdefs.h"
5944 #include <sys/procfs.h>
5946 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5949 if { (eval echo configure
:5950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5951 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5953 echo "configure: failed program was:" >&5
5954 cat conftest.
$ac_ext >&5
5956 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5962 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5963 cat >> confdefs.h
<<\EOF
5964 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5968 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5970 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5971 echo "configure:5972: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5972 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5973 echo $ac_n "(cached) $ac_c" 1>&6
5975 cat > conftest.
$ac_ext <<EOF
5976 #line 5977 "configure"
5977 #include "confdefs.h"
5980 #include <sys/procfs.h>
5982 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5985 if { (eval echo configure
:5986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5987 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5989 echo "configure: failed program was:" >&5
5990 cat conftest.
$ac_ext >&5
5992 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5998 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5999 cat >> confdefs.h
<<\EOF
6000 #define HAVE_LWPSTATUS_T_PR_REG 1
6004 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
6006 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
6007 echo "configure:6008: checking for win32_pstatus_t in sys/procfs.h" >&5
6008 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
6009 echo $ac_n "(cached) $ac_c" 1>&6
6011 cat > conftest.
$ac_ext <<EOF
6012 #line 6013 "configure"
6013 #include "confdefs.h"
6016 #include <sys/procfs.h>
6018 win32_pstatus_t avar
6021 if { (eval echo configure
:6022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6023 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
6025 echo "configure: failed program was:" >&5
6026 cat conftest.
$ac_ext >&5
6028 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
6034 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
6035 cat >> confdefs.h
<<\EOF
6036 #define HAVE_WIN32_PSTATUS_T 1
6040 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
6046 if test -n "$TRAD_HEADER"; then
6047 cat >> confdefs.h
<<EOF
6048 #define TRAD_HEADER $TRAD_HEADER
6053 # Horrible hacks to build DLLs on Windows.
6058 if test "$enable_shared" = "yes"; then
6059 WIN32LDFLAGS
="-no-undefined"
6060 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
6064 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
6068 # Linux/MIPS uses PIC by default.
6069 if test "$enable_shared" = "yes"; then
6070 WIN32LIBADD
="-L../libiberty -liberty"
6074 x
=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
6075 if test -n "$x"; then
6076 WIN32LIBADD
="-L../libiberty/pic -liberty"
6087 # Canonicalize the secondary target names.
6088 if test -n "$enable_targets" ; then
6089 for targ
in `echo $enable_targets | sed 's/,/ /g'`
6091 result
=`$ac_config_sub $targ 2>/dev/null`
6092 if test -n "$result" ; then
6093 canon_targets
="$canon_targets $result"
6095 # Allow targets that config.sub doesn't recognize, like "all".
6096 canon_targets
="$canon_targets $targ"
6107 for targ
in $target $canon_targets
6109 if test "x$targ" = "xall"; then
6111 assocvecs
="$assocvecs $targ_defvec $targ_selvecs"
6113 .
$srcdir/config.bfd
6114 if test "x$targ" = "x$target"; then
6117 selvecs
="$selvecs $targ_defvec $targ_selvecs"
6118 selarchs
="$selarchs $targ_archs"
6119 TDEFINES
="$TDEFINES $targ_cflags"
6124 # This processing still needs to be done if we're to decide properly whether
6125 # 64-bit support needs to be compiled in. Currently, it will be included if
6126 # the default or any other explicitly requested target requires it; it
6127 # will not be included on a 32-bit host if no 64-bit target is requested, and
6128 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6131 # uniq the default and selected vectors in all the configured targets.
6133 for i
in $selvecs ; do
6142 # uniq the associated vectors in all the configured targets.
6144 for i
in $assocvecs ; do
6153 # uniq the architectures in all the configured targets.
6155 for i
in $selarchs ; do
6163 # Target backend .o files.
6166 elf
="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6172 # This list is alphabetized to make it easy to compare
6173 # with the two vector lists in targets.c. For the same reason,
6174 # use one entry per line, even though this leads to long lines.
6175 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
6176 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
6177 aix5coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6178 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
6179 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6180 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6181 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
6182 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
6183 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
6184 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6185 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6186 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6187 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6188 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6189 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6190 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
6191 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6192 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6193 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6194 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6195 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
6196 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
6197 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6198 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size
=64 ;;
6199 bfd_elf32_am33lin_vec
) tb
="$tb elf32-am33lin.lo elf32.lo $elf" ;;
6200 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
6201 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6202 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6203 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6204 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6205 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6206 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6207 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
6208 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
6209 bfd_elf32_dlx_big_vec
) tb
="$tb elf32-dlx.lo elf32.lo $elf" ;;
6210 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
6211 bfd_elf32_frv_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6212 bfd_elf32_h8300_vec
) tb
="$tb elf32-h8300.lo elf32.lo $elf" ;;
6213 bfd_elf32_hppa_linux_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6214 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6215 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
6216 bfd_elf32_i386_freebsd_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6217 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6218 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6219 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6220 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
6221 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
6222 bfd_elf32_ia64_hpux_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf";;
6223 bfd_elf32_ip2k_vec
) tb
="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6224 bfd_elf32_iq2000_vec
) tb
="$tb elf32-iq2000.lo elf32.lo $elf" ;;
6225 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6226 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6227 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6228 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6229 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6230 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6231 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6232 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
6233 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
6234 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
6235 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6236 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6237 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
6238 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
6239 bfd_elf32_msp430_vec
) tb
="$tb elf32-msp430.lo elf32.lo $elf" ;;
6240 bfd_elf32_nbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6241 bfd_elf32_nlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6242 bfd_elf32_ntradbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6243 bfd_elf32_ntradlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6244 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6245 bfd_elf32_or32_big_vec
) tb
="$tb elf32-or32.lo elf32.lo $elf" ;;
6246 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6247 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6248 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6249 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6250 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
6251 # FIXME: We include cofflink.lo not because it's needed for
6252 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6253 # which needs it but does not list it. Should be fixed in right place.
6254 bfd_elf32_sh64_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6255 bfd_elf32_sh64l_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6256 bfd_elf32_sh64lin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6257 bfd_elf32_sh64blin_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6258 bfd_elf32_sh64lnbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6259 bfd_elf32_sh64nbsd_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6260 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6261 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6262 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6263 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6264 bfd_elf32_shlnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6265 bfd_elf32_shnbsd_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6266 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
6267 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6268 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6269 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6270 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
6271 bfd_elf32_vax_vec
) tb
="$tb elf32-vax.lo elf32.lo $elf" ;;
6272 bfd_elf32_xstormy16_vec
) tb
="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6273 bfd_elf32_xtensa_le_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6274 bfd_elf32_xtensa_be_vec
) tb
="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
6275 bfd_elf64_alpha_freebsd_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6276 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6277 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6278 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6279 bfd_elf64_hppa_linux_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6280 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6281 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6282 bfd_elf64_ia64_hpux_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6283 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6284 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6285 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6286 bfd_elf64_mmix_vec
) tb
="$tb elf64-mmix.lo elf64.lo $elf" target_size
=64 ;;
6287 bfd_elf64_powerpc_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6288 bfd_elf64_powerpcle_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size
=64 ;;
6289 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"; target_size
=64 ;;
6290 bfd_elf64_sh64_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6291 bfd_elf64_sh64l_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6292 bfd_elf64_sh64lin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6293 bfd_elf64_sh64blin_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6294 bfd_elf64_sh64lnbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6295 bfd_elf64_sh64nbsd_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6296 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"; target_size
=64 ;;
6297 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6298 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6299 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"; target_size
=64 ;;
6300 bfd_mmo_vec
) tb
="$tb mmo.lo" target_size
=64 ;;
6301 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6302 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6303 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6304 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6305 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6306 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"; target_size
=64 ;;
6307 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6308 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6309 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6310 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size
=64 ;;
6311 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6312 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6313 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6314 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6315 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6316 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6317 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6318 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6319 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6320 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6321 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6322 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6323 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6324 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6325 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6326 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6327 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6328 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6329 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6330 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6331 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6332 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6333 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6334 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6335 ieee_vec
) tb
="$tb ieee.lo" ;;
6336 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6337 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6338 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6339 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6340 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6341 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6342 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6343 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6344 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6345 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6346 m88kmach3_vec
) tb
="$tb m88kmach3.lo aout32.lo" ;;
6347 mach_o_be_vec
) tb
="$tb mach-o.lo" ;;
6348 mach_o_le_vec
) tb
="$tb mach-o.lo" ;;
6349 mach_o_fat_vec
) tb
="$tb mach-o.lo" ;;
6350 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6351 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6352 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6353 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6354 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6355 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6356 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6357 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size
=64 ;;
6358 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6359 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6360 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6361 or32coff_big_vec
) tb
="$tb coff-or32.lo cofflink.lo" ;;
6362 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6363 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6364 pef_vec
) tb
="$tb pef.lo" ;;
6365 pef_xlib_vec
) tb
="$tb pef.lo" ;;
6366 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6367 pmac_xcoff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6368 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6369 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6370 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6371 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6372 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6373 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6374 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6375 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6376 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6377 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6378 som_vec
) tb
="$tb som.lo" ;;
6379 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6380 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6381 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6382 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6383 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6384 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6385 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6386 sym_vec
) tb
="$tb xsym.lo" ;;
6387 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6388 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6389 tic4x_coff0_vec
) tb
="$tb coff-tic4x.lo" ;;
6390 tic4x_coff0_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6391 tic4x_coff1_vec
) tb
="$tb coff-tic4x.lo" ;;
6392 tic4x_coff1_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6393 tic4x_coff2_vec
) tb
="$tb coff-tic4x.lo" ;;
6394 tic4x_coff2_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6395 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6396 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6397 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6398 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6399 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6400 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6401 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6402 vaxnetbsd_vec
) tb
="$tb vaxnetbsd.lo aout32.lo" ;;
6403 vax1knetbsd_vec
) tb
="$tb vax1knetbsd.lo aout32.lo" ;;
6404 vaxbsd_vec
) tb
="$tb vaxbsd.lo aout32.lo" ;;
6405 versados_vec
) tb
="$tb versados.lo" ;;
6406 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size
=64 ;;
6407 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6408 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6409 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6410 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6412 # These appear out of order in targets.c
6413 srec_vec
) tb
="$tb srec.lo" ;;
6414 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6415 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6416 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6417 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6420 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6423 if test ${target_size} = 64; then
6426 if test x
"${vec}" = x
"${defvec}"; then
6427 bfd_default_target_size
=${target_size}
6431 # Target architecture .o files.
6432 # A couple of CPUs use shorter file names to avoid problems on DOS
6434 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6436 # Weed out duplicate .o files.
6458 if test x
${all_targets} = xtrue
; then
6459 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6460 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6464 test -n "$assocvecs" &&
6465 assocvecs
=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6466 else # all_targets is true
6467 # Only set these if they will be nonempty, for the clever echo.
6470 test -n "$selvecs" &&
6471 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6472 test -n "$selvecs" &&
6473 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6474 test -n "$selarchs" &&
6475 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6476 fi # all_targets is true
6478 case ${host64}-${target64}-${want64} in
6481 bfd_libs
='$(BFD64_LIBS) $(BFD32_LIBS)'
6482 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6483 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6484 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6485 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6487 if test -n "$GCC" ; then
6489 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6490 echo "configure:6491: checking for gcc version with buggy 64-bit support" >&5
6491 # Add more tests for gcc versions with non-working 64-bit support here.
6492 cat > conftest.
$ac_ext <<EOF
6493 #line 6494 "configure"
6494 #include "confdefs.h"
6495 :__GNUC__:__GNUC_MINOR__:__i386__:
6497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6498 egrep ": 2 : 91 : 1 :" >/dev
/null
2>&1; then
6501 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6504 echo "$ac_t""no" 1>&6
6508 if test $bad_64bit_gcc = yes ; then
6509 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6515 bfd_libs
='$(BFD32_LIBS)'
6516 all_backends
='$(BFD32_BACKENDS)'
6528 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6529 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6530 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
6531 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6532 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6535 for ac_hdr
in unistd.h
6537 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6539 echo "configure:6540: checking for $ac_hdr" >&5
6540 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6541 echo $ac_n "(cached) $ac_c" 1>&6
6543 cat > conftest.
$ac_ext <<EOF
6544 #line 6545 "configure"
6545 #include "confdefs.h"
6548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6549 { (eval echo configure
:6550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6551 if test -z "$ac_err"; then
6553 eval "ac_cv_header_$ac_safe=yes"
6556 echo "configure: failed program was:" >&5
6557 cat conftest.
$ac_ext >&5
6559 eval "ac_cv_header_$ac_safe=no"
6563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6564 echo "$ac_t""yes" 1>&6
6565 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6566 cat >> confdefs.h
<<EOF
6567 #define $ac_tr_hdr 1
6571 echo "$ac_t""no" 1>&6
6575 for ac_func
in getpagesize
6577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6578 echo "configure:6579: checking for $ac_func" >&5
6579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 cat > conftest.
$ac_ext <<EOF
6583 #line 6584 "configure"
6584 #include "confdefs.h"
6585 /* System header to define __stub macros and hopefully few prototypes,
6586 which can conflict with char $ac_func(); below. */
6588 /* Override any gcc2 internal prototype to avoid an error. */
6589 /* We use char because int might match the return type of a gcc2
6590 builtin and then its argument prototype would still apply. */
6595 /* The GNU C library defines this for functions which it implements
6596 to always fail with ENOSYS. Some functions are actually named
6597 something starting with __ and the normal name is an alias. */
6598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6606 if { (eval echo configure
:6607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6608 eval "ac_cv_func_$ac_func=yes"
6610 echo "configure: failed program was:" >&5
6611 cat conftest.
$ac_ext >&5
6613 eval "ac_cv_func_$ac_func=no"
6618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6619 echo "$ac_t""yes" 1>&6
6620 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6621 cat >> confdefs.h
<<EOF
6622 #define $ac_tr_func 1
6626 echo "$ac_t""no" 1>&6
6630 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6631 echo "configure:6632: checking for working mmap" >&5
6632 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6633 echo $ac_n "(cached) $ac_c" 1>&6
6635 if test "$cross_compiling" = yes; then
6636 ac_cv_func_mmap_fixed_mapped
=no
6638 cat > conftest.
$ac_ext <<EOF
6639 #line 6640 "configure"
6640 #include "confdefs.h"
6642 /* Thanks to Mike Haertel and Jim Avera for this test.
6643 Here is a matrix of mmap possibilities:
6644 mmap private not fixed
6645 mmap private fixed at somewhere currently unmapped
6646 mmap private fixed at somewhere already mapped
6647 mmap shared not fixed
6648 mmap shared fixed at somewhere currently unmapped
6649 mmap shared fixed at somewhere already mapped
6650 For private mappings, we should verify that changes cannot be read()
6651 back from the file, nor mmap's back from the file at a different
6652 address. (There have been systems where private was not correctly
6653 implemented like the infamous i386 svr4.0, and systems where the
6654 VM page cache was not coherent with the filesystem buffer cache
6655 like early versions of FreeBSD and possibly contemporary NetBSD.)
6656 For shared mappings, we should conversely verify that changes get
6657 propogated back to all the places they're supposed to be.
6659 Grep wants private fixed already mapped.
6660 The main things grep needs to know about mmap are:
6661 * does it exist and is it safe to write into the mmap'd area
6662 * how to use it (BSD variants) */
6663 #include <sys/types.h>
6665 #include <sys/mman.h>
6667 /* This mess was copied from the GNU getpagesize.h. */
6668 #ifndef HAVE_GETPAGESIZE
6669 # ifdef HAVE_UNISTD_H
6670 # include <unistd.h>
6673 /* Assume that all systems that can run configure have sys/param.h. */
6674 # ifndef HAVE_SYS_PARAM_H
6675 # define HAVE_SYS_PARAM_H 1
6678 # ifdef _SC_PAGESIZE
6679 # define getpagesize() sysconf(_SC_PAGESIZE)
6680 # else /* no _SC_PAGESIZE */
6681 # ifdef HAVE_SYS_PARAM_H
6682 # include <sys/param.h>
6683 # ifdef EXEC_PAGESIZE
6684 # define getpagesize() EXEC_PAGESIZE
6685 # else /* no EXEC_PAGESIZE */
6687 # define getpagesize() NBPG * CLSIZE
6690 # endif /* no CLSIZE */
6691 # else /* no NBPG */
6693 # define getpagesize() NBPC
6694 # else /* no NBPC */
6696 # define getpagesize() PAGESIZE
6697 # endif /* PAGESIZE */
6698 # endif /* no NBPC */
6699 # endif /* no NBPG */
6700 # endif /* no EXEC_PAGESIZE */
6701 # else /* no HAVE_SYS_PARAM_H */
6702 # define getpagesize() 8192 /* punt totally */
6703 # endif /* no HAVE_SYS_PARAM_H */
6704 # endif /* no _SC_PAGESIZE */
6706 #endif /* no HAVE_GETPAGESIZE */
6709 extern "C" { void *malloc(unsigned); }
6717 char *data, *data2, *data3;
6721 pagesize = getpagesize();
6724 * First, make a file with some known garbage in it.
6726 data = malloc(pagesize);
6729 for (i = 0; i < pagesize; ++i)
6730 *(data + i) = rand();
6732 fd = creat("conftestmmap", 0600);
6735 if (write(fd, data, pagesize) != pagesize)
6740 * Next, try to mmap the file at a fixed address which
6741 * already has something else allocated at it. If we can,
6742 * also make sure that we see the same garbage.
6744 fd = open("conftestmmap", O_RDWR);
6747 data2 = malloc(2 * pagesize);
6750 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6751 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6752 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6754 for (i = 0; i < pagesize; ++i)
6755 if (*(data + i) != *(data2 + i))
6759 * Finally, make sure that changes to the mapped area
6760 * do not percolate back to the file as seen by read().
6761 * (This is a bug on some variants of i386 svr4.0.)
6763 for (i = 0; i < pagesize; ++i)
6764 *(data2 + i) = *(data2 + i) + 1;
6765 data3 = malloc(pagesize);
6768 if (read(fd, data3, pagesize) != pagesize)
6770 for (i = 0; i < pagesize; ++i)
6771 if (*(data + i) != *(data3 + i))
6774 unlink("conftestmmap");
6779 if { (eval echo configure
:6780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6781 ac_cv_func_mmap_fixed_mapped
=yes
6783 echo "configure: failed program was:" >&5
6784 cat conftest.
$ac_ext >&5
6786 ac_cv_func_mmap_fixed_mapped
=no
6793 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6794 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6795 cat >> confdefs.h
<<\EOF
6801 for ac_func
in madvise mprotect
6803 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6804 echo "configure:6805: checking for $ac_func" >&5
6805 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6808 cat > conftest.
$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 /* System header to define __stub macros and hopefully few prototypes,
6812 which can conflict with char $ac_func(); below. */
6814 /* Override any gcc2 internal prototype to avoid an error. */
6815 /* We use char because int might match the return type of a gcc2
6816 builtin and then its argument prototype would still apply. */
6821 /* The GNU C library defines this for functions which it implements
6822 to always fail with ENOSYS. Some functions are actually named
6823 something starting with __ and the normal name is an alias. */
6824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6832 if { (eval echo configure
:6833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6834 eval "ac_cv_func_$ac_func=yes"
6836 echo "configure: failed program was:" >&5
6837 cat conftest.
$ac_ext >&5
6839 eval "ac_cv_func_$ac_func=no"
6844 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6845 echo "$ac_t""yes" 1>&6
6846 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6847 cat >> confdefs.h
<<EOF
6848 #define $ac_tr_func 1
6852 echo "$ac_t""no" 1>&6
6856 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6857 true
+yes ) cat >> confdefs.h
<<\EOF
6863 rm -f doc
/config.status
6865 cat > confcache
<<\EOF
6866 # This file is a shell script that caches the results of configure
6867 # tests run on this system so they can be shared between configure
6868 # scripts and configure runs. It is not useful on other systems.
6869 # If it contains results you don't want to keep, you may remove or edit it.
6871 # By default, configure uses ./config.cache as the cache file,
6872 # creating it if it does not exist already. You can give configure
6873 # the --cache-file=FILE option to use a different cache file; that is
6874 # what configure does when it calls configure scripts in
6875 # subdirectories, so they share the cache.
6876 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6877 # config.status only pays attention to the cache file if you give it the
6878 # --recheck option to rerun configure.
6881 # The following way of writing the cache mishandles newlines in values,
6882 # but we know of no workaround that is simple, portable, and efficient.
6883 # So, don't put newlines in cache variables' values.
6884 # Ultrix sh set writes to stderr and can't be redirected directly,
6885 # and sets the high bit in the cache file unless we assign to the vars.
6887 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6889 # `set' does not quote correctly, so add quotes (double-quote substitution
6890 # turns \\\\ into \\, and sed turns \\ into \).
6892 -e "s/'/'\\\\''/g" \
6893 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6896 # `set' quotes correctly as required by POSIX, so do not add quotes.
6897 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6900 if cmp -s $cache_file confcache
; then
6903 if test -w $cache_file; then
6904 echo "updating cache $cache_file"
6905 cat confcache
> $cache_file
6907 echo "not updating unwritable cache $cache_file"
6912 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6914 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6915 # Let make expand exec_prefix.
6916 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6918 # Any assignment to VPATH causes Sun make to only execute
6919 # the first set of double-colon rules, so remove it if not needed.
6920 # If there is a colon in the path, we need to keep it.
6921 if test "x$srcdir" = x.
; then
6922 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6925 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6927 DEFS
=-DHAVE_CONFIG_H
6929 # Without the "./", some shells look in PATH for config.status.
6930 : ${CONFIG_STATUS=./config.status}
6932 echo creating
$CONFIG_STATUS
6933 rm -f $CONFIG_STATUS
6934 cat > $CONFIG_STATUS <<EOF
6936 # Generated automatically by configure.
6937 # Run this file to recreate the current configuration.
6938 # This directory was configured as follows,
6939 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6941 # $0 $ac_configure_args
6943 # Compiler output produced by configure, useful for debugging
6944 # configure, is in ./config.log if it exists.
6946 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6949 case "\$ac_option" in
6950 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6951 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6952 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6953 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6954 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6956 -help | --help | --hel | --he | --h)
6957 echo "\$ac_cs_usage"; exit 0 ;;
6958 *) echo "\$ac_cs_usage"; exit 1 ;;
6962 ac_given_srcdir=$srcdir
6963 ac_given_INSTALL="$INSTALL"
6965 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
6967 cat >> $CONFIG_STATUS <<EOF
6969 # Protect against being on the right side of a sed subst in config.status.
6970 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6971 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6975 s%@CFLAGS@%$CFLAGS%g
6976 s%@CPPFLAGS@%$CPPFLAGS%g
6977 s%@CXXFLAGS@%$CXXFLAGS%g
6978 s%@FFLAGS@%$FFLAGS%g
6980 s%@LDFLAGS@%$LDFLAGS%g
6982 s%@exec_prefix@%$exec_prefix%g
6983 s%@prefix@%$prefix%g
6984 s%@program_transform_name@%$program_transform_name%g
6985 s%@bindir@%$bindir%g
6986 s%@sbindir@%$sbindir%g
6987 s%@libexecdir@%$libexecdir%g
6988 s%@datadir@%$datadir%g
6989 s%@sysconfdir@%$sysconfdir%g
6990 s%@sharedstatedir@%$sharedstatedir%g
6991 s%@localstatedir@%$localstatedir%g
6992 s%@libdir@%$libdir%g
6993 s%@includedir@%$includedir%g
6994 s%@oldincludedir@%$oldincludedir%g
6995 s%@infodir@%$infodir%g
6996 s%@mandir@%$mandir%g
6998 s%@host_alias@%$host_alias%g
6999 s%@host_cpu@%$host_cpu%g
7000 s%@host_vendor@%$host_vendor%g
7001 s%@host_os@%$host_os%g
7002 s%@target@%$target%g
7003 s%@target_alias@%$target_alias%g
7004 s%@target_cpu@%$target_cpu%g
7005 s%@target_vendor@%$target_vendor%g
7006 s%@target_os@%$target_os%g
7008 s%@build_alias@%$build_alias%g
7009 s%@build_cpu@%$build_cpu%g
7010 s%@build_vendor@%$build_vendor%g
7011 s%@build_os@%$build_os%g
7012 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7013 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
7014 s%@INSTALL_DATA@%$INSTALL_DATA%g
7015 s%@PACKAGE@%$PACKAGE%g
7016 s%@VERSION@%$VERSION%g
7017 s%@ACLOCAL@%$ACLOCAL%g
7018 s%@AUTOCONF@%$AUTOCONF%g
7019 s%@AUTOMAKE@%$AUTOMAKE%g
7020 s%@AUTOHEADER@%$AUTOHEADER%g
7021 s%@MAKEINFO@%$MAKEINFO%g
7022 s%@SET_MAKE@%$SET_MAKE%g
7023 s%@bfd_version@%$bfd_version%g
7024 s%@bfd_version_string@%$bfd_version_string%g
7026 s%@RANLIB@%$RANLIB%g
7029 s%@OBJEXT@%$OBJEXT%g
7030 s%@EXEEXT@%$EXEEXT%g
7032 s%@LIBTOOL@%$LIBTOOL%g
7033 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
7034 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
7035 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
7037 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
7038 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
7039 s%@bfdlibdir@%$bfdlibdir%g
7040 s%@bfdincludedir@%$bfdincludedir%g
7042 s%@ALLOCA@%$ALLOCA%g
7043 s%@USE_NLS@%$USE_NLS%g
7044 s%@MSGFMT@%$MSGFMT%g
7045 s%@GMSGFMT@%$GMSGFMT%g
7046 s%@XGETTEXT@%$XGETTEXT%g
7047 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
7048 s%@CATALOGS@%$CATALOGS%g
7049 s%@CATOBJEXT@%$CATOBJEXT%g
7050 s%@DATADIRNAME@%$DATADIRNAME%g
7051 s%@GMOFILES@%$GMOFILES%g
7052 s%@INSTOBJEXT@%$INSTOBJEXT%g
7053 s%@INTLDEPS@%$INTLDEPS%g
7054 s%@INTLLIBS@%$INTLLIBS%g
7055 s%@INTLOBJS@%$INTLOBJS%g
7056 s%@POFILES@%$POFILES%g
7058 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
7060 s%@GT_YES@%$GT_YES%g
7061 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
7063 s%@HDEFINES@%$HDEFINES%g
7064 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
7065 s%@BFD_HOST_LONG_LONG@%$BFD_HOST_LONG_LONG%g
7066 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
7067 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
7068 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
7069 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
7070 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
7071 s%@COREFILE@%$COREFILE%g
7072 s%@COREFLAG@%$COREFLAG%g
7073 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
7074 s%@WIN32LIBADD@%$WIN32LIBADD%g
7075 s%@TDEFINES@%$TDEFINES%g
7076 s%@wordsize@%$wordsize%g
7077 s%@bfd_libs@%$bfd_libs%g
7078 s%@all_backends@%$all_backends%g
7079 s%@bfd_backends@%$bfd_backends%g
7080 s%@bfd_machines@%$bfd_machines%g
7081 s%@bfd_default_target_size@%$bfd_default_target_size%g
7082 s%@tdefaults@%$tdefaults%g
7087 cat >> $CONFIG_STATUS <<\EOF
7089 # Split the substitutions into bite-sized pieces for seds with
7090 # small command number limits, like on Digital OSF/1 and HP-UX.
7091 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7092 ac_file
=1 # Number of current file.
7093 ac_beg
=1 # First line for current file.
7094 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7097 while $ac_more_lines; do
7098 if test $ac_beg -gt 1; then
7099 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7101 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7103 if test ! -s conftest.s
$ac_file; then
7105 rm -f conftest.s
$ac_file
7107 if test -z "$ac_sed_cmds"; then
7108 ac_sed_cmds
="sed -f conftest.s$ac_file"
7110 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7112 ac_file
=`expr $ac_file + 1`
7114 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7117 if test -z "$ac_sed_cmds"; then
7122 cat >> $CONFIG_STATUS <<EOF
7124 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
7126 cat >> $CONFIG_STATUS <<\EOF
7127 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7128 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7130 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7131 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7132 *) ac_file_in
="${ac_file}.in" ;;
7135 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7137 # Remove last slash and all that follows it. Not all systems have dirname.
7138 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7139 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7140 # The file is in a subdirectory.
7141 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7142 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7143 # A "../" for each directory in $ac_dir_suffix.
7144 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7146 ac_dir_suffix
= ac_dots
=
7149 case "$ac_given_srcdir" in
7151 if test -z "$ac_dots"; then top_srcdir
=.
7152 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7153 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7155 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7156 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7159 case "$ac_given_INSTALL" in
7160 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7161 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7164 echo creating
"$ac_file"
7166 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7168 *Makefile
*) ac_comsub
="1i\\
7169 # $configure_input" ;;
7173 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7175 s%@configure_input@%$configure_input%g
7176 s%@srcdir@%$srcdir%g
7177 s%@top_srcdir@%$top_srcdir%g
7178 s%@INSTALL@%$INSTALL%g
7179 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7183 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7184 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7186 # ac_d sets the value in "#define NAME VALUE" lines.
7187 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7188 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7191 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7192 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7193 ac_uB
='\([ ]\)%\1#\2define\3'
7196 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7197 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7198 ac_eB
='$%\1#\2define\3'
7202 if test "${CONFIG_HEADERS+set}" != set; then
7204 cat >> $CONFIG_STATUS <<EOF
7205 CONFIG_HEADERS="config.h:config.in"
7207 cat >> $CONFIG_STATUS <<\EOF
7209 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7210 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7212 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7213 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7214 *) ac_file_in
="${ac_file}.in" ;;
7217 echo creating
$ac_file
7219 rm -f conftest.frag conftest.
in conftest.out
7220 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7221 cat $ac_file_inputs > conftest.
in
7225 # Transform confdefs.h into a sed script conftest.vals that substitutes
7226 # the proper values into config.h.in to produce config.h. And first:
7227 # Protect against being on the right side of a sed subst in config.status.
7228 # Protect against being in an unquoted here document in config.status.
7230 cat > conftest.hdr
<<\EOF
7233 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7237 sed -n -f conftest.hdr confdefs.h > conftest.vals
7240 # This sed command replaces #undef with comments. This is necessary, for
7241 # example, in the case of _POSIX_SOURCE, which is predefined and required
7242 # on some systems where configure will not decide to define it.
7243 cat >> conftest.vals <<\EOF
7244 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7247 # Break up conftest.vals because some shells have a limit on
7248 # the size of here documents, and old seds have small limits too.
7253 ac_lines=`grep -c . conftest.vals
`
7254 # grep -c gives empty output for an empty file on some AIX systems.
7255 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7256 # Write a limited-size here document to conftest.frag.
7257 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7258 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7260 sed -f conftest.frag conftest.in > conftest.out
7262 mv conftest.out conftest.in
7264 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7266 mv conftest.tail conftest.vals
7270 cat >> $CONFIG_STATUS <<\EOF
7271 rm -f conftest.frag conftest.h
7272 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7273 cat conftest.in >> conftest.h
7275 if cmp -s $ac_file conftest.h 2>/dev/null; then
7276 echo "$ac_file is unchanged"
7279 # Remove last slash and all that follows it. Not all systems have dirname.
7280 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7281 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7282 # The file is in a subdirectory.
7283 test ! -d "$ac_dir" && mkdir "$ac_dir"
7286 mv conftest.h $ac_file
7291 cat >> $CONFIG_STATUS <<EOF
7295 cat >> $CONFIG_STATUS <<\EOF
7296 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7297 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7300 chmod +x $CONFIG_STATUS
7301 rm -fr confdefs* $ac_clean_files
7302 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1