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 --install-libbfd controls installation of libbfd and related headers"
42 --disable-nls do not use Native Language Support"
44 --with-included-gettext use the GNU gettext library included here"
46 # Initialize some variables set by options.
47 # The variables have the same names as the options, with
48 # dashes changed to underlines.
50 cache_file
=.
/config.cache
59 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --version print the version of autoconf that created configure
177 Directory and file names:
178 --prefix=PREFIX install architecture-independent files in PREFIX
180 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 --bindir=DIR user executables in DIR [EPREFIX/bin]
183 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185 --datadir=DIR read-only architecture-independent data in DIR
187 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192 --includedir=DIR C header files in DIR [PREFIX/include]
193 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194 --infodir=DIR info documentation in DIR [PREFIX/info]
195 --mandir=DIR man documentation in DIR [PREFIX/man]
196 --srcdir=DIR find the sources in DIR [configure dir or ..]
197 --program-prefix=PREFIX prepend PREFIX to installed program names
198 --program-suffix=SUFFIX append SUFFIX to installed program names
199 --program-transform-name=PROGRAM
200 run sed PROGRAM on installed program names
204 --build=BUILD configure for building on BUILD [BUILD=HOST]
205 --host=HOST configure for HOST [guessed]
206 --target=TARGET configure for TARGET [TARGET=HOST]
207 Features and packages:
208 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212 --x-includes=DIR X include files are in DIR
213 --x-libraries=DIR X library files are in DIR
215 if test -n "$ac_help"; then
216 echo "--enable and --with options recognized:$ac_help"
220 -host |
--host |
--hos |
--ho)
222 -host=* |
--host=* |
--hos=* |
--ho=*)
225 -includedir |
--includedir |
--includedi |
--included |
--include \
226 |
--includ |
--inclu |
--incl |
--inc)
227 ac_prev
=includedir
;;
228 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
229 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
230 includedir
="$ac_optarg" ;;
232 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
234 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
235 infodir
="$ac_optarg" ;;
237 -libdir |
--libdir |
--libdi |
--libd)
239 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
240 libdir
="$ac_optarg" ;;
242 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
243 |
--libexe |
--libex |
--libe)
244 ac_prev
=libexecdir
;;
245 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
246 |
--libexe=* |
--libex=* |
--libe=*)
247 libexecdir
="$ac_optarg" ;;
249 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
250 |
--localstate |
--localstat |
--localsta |
--localst \
251 |
--locals |
--local |
--loca |
--loc |
--lo)
252 ac_prev
=localstatedir
;;
253 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
254 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
255 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
256 localstatedir
="$ac_optarg" ;;
258 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
260 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
261 mandir
="$ac_optarg" ;;
264 # Obsolete; use --without-fp.
267 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
271 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
272 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
275 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
276 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
277 |
--oldin |
--oldi |
--old |
--ol |
--o)
278 ac_prev
=oldincludedir
;;
279 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
280 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
281 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
282 oldincludedir
="$ac_optarg" ;;
284 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
286 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
287 prefix
="$ac_optarg" ;;
289 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
290 |
--program-pre |
--program-pr |
--program-p)
291 ac_prev
=program_prefix
;;
292 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
293 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
294 program_prefix
="$ac_optarg" ;;
296 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
297 |
--program-suf |
--program-su |
--program-s)
298 ac_prev
=program_suffix
;;
299 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
300 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
301 program_suffix
="$ac_optarg" ;;
303 -program-transform-name |
--program-transform-name \
304 |
--program-transform-nam |
--program-transform-na \
305 |
--program-transform-n |
--program-transform- \
306 |
--program-transform |
--program-transfor \
307 |
--program-transfo |
--program-transf \
308 |
--program-trans |
--program-tran \
309 |
--progr-tra |
--program-tr |
--program-t)
310 ac_prev
=program_transform_name
;;
311 -program-transform-name=* |
--program-transform-name=* \
312 |
--program-transform-nam=* |
--program-transform-na=* \
313 |
--program-transform-n=* |
--program-transform-=* \
314 |
--program-transform=* |
--program-transfor=* \
315 |
--program-transfo=* |
--program-transf=* \
316 |
--program-trans=* |
--program-tran=* \
317 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
318 program_transform_name
="$ac_optarg" ;;
320 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
321 |
-silent |
--silent |
--silen |
--sile |
--sil)
324 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
326 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
328 sbindir
="$ac_optarg" ;;
330 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
331 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
332 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
334 ac_prev
=sharedstatedir
;;
335 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
336 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
337 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
339 sharedstatedir
="$ac_optarg" ;;
341 -site |
--site |
--sit)
343 -site=* |
--site=* |
--sit=*)
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=libbfd.c
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 for ac_site_file
in $CONFIG_SITE; do
519 if test -r "$ac_site_file"; then
520 echo "loading site script $ac_site_file"
525 if test -r "$cache_file"; then
526 echo "loading cache $cache_file"
529 echo "creating cache $cache_file"
534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535 ac_cpp
='$CPP $CPPFLAGS'
536 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
538 cross_compiling
=$ac_cv_prog_cc_cross
542 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
543 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
544 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
551 ac_n
= ac_c
='\c' ac_t
=
554 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
555 echo "configure:556: checking for Cygwin environment" >&5
556 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
557 echo $ac_n "(cached) $ac_c" 1>&6
559 cat > conftest.
$ac_ext <<EOF
560 #line 561 "configure"
561 #include "confdefs.h"
566 #define __CYGWIN__ __CYGWIN32__
571 if { (eval echo configure
:572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
575 echo "configure: failed program was:" >&5
576 cat conftest.
$ac_ext >&5
584 echo "$ac_t""$ac_cv_cygwin" 1>&6
586 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
587 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
588 echo "configure:589: checking for mingw32 environment" >&5
589 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
590 echo $ac_n "(cached) $ac_c" 1>&6
592 cat > conftest.
$ac_ext <<EOF
593 #line 594 "configure"
594 #include "confdefs.h"
600 if { (eval echo configure
:601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
604 echo "configure: failed program was:" >&5
605 cat conftest.
$ac_ext >&5
613 echo "$ac_t""$ac_cv_mingw32" 1>&6
615 test "$ac_cv_mingw32" = yes && MINGW32
=yes
619 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
620 if test -f $ac_dir/install-sh
; then
622 ac_install_sh
="$ac_aux_dir/install-sh -c"
624 elif test -f $ac_dir/install.sh
; then
626 ac_install_sh
="$ac_aux_dir/install.sh -c"
630 if test -z "$ac_aux_dir"; then
631 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 ac_config_guess
=$ac_aux_dir/config.guess
634 ac_config_sub
=$ac_aux_dir/config.sub
635 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
638 # Do some error checking and defaulting for the host and target type.
640 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
643 # 1. You are not allowed to specify --host, --target, and nonopt at the
645 # 2. Host defaults to nonopt.
646 # 3. If nonopt is not specified, then host defaults to the current host,
647 # as determined by config.guess.
648 # 4. Target and build default to nonopt.
649 # 5. If nonopt is not specified, then target and build default to host.
651 # The aliases save the names the user supplied, while $host etc.
652 # will get canonicalized.
653 case $host---$target---$nonopt in
654 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
655 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
659 # Make sure we can run config.sub.
660 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
661 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
664 echo $ac_n "checking host system type""... $ac_c" 1>&6
665 echo "configure:666: checking host system type" >&5
668 case "$host_alias" in
672 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
675 *) host_alias
=$nonopt ;;
679 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
680 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
681 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
682 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
683 echo "$ac_t""$host" 1>&6
685 echo $ac_n "checking target system type""... $ac_c" 1>&6
686 echo "configure:687: checking target system type" >&5
689 case "$target_alias" in
692 NONE
) target_alias
=$host_alias ;;
693 *) target_alias
=$nonopt ;;
697 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
698 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
699 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
700 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
701 echo "$ac_t""$target" 1>&6
703 echo $ac_n "checking build system type""... $ac_c" 1>&6
704 echo "configure:705: checking build system type" >&5
707 case "$build_alias" in
710 NONE
) build_alias
=$host_alias ;;
711 *) build_alias
=$nonopt ;;
715 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
716 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
719 echo "$ac_t""$build" 1>&6
721 test "$host_alias" != "$target_alias" &&
722 test "$program_prefix$program_suffix$program_transform_name" = \
724 program_prefix
=${target_alias}-
726 # Extract the first word of "gcc", so it can be a program name with args.
727 set dummy gcc
; ac_word
=$2
728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
729 echo "configure:730: checking for $ac_word" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
733 if test -n "$CC"; then
734 ac_cv_prog_CC
="$CC" # Let the user override the test.
736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
738 for ac_dir
in $ac_dummy; do
739 test -z "$ac_dir" && ac_dir
=.
740 if test -f $ac_dir/$ac_word; then
749 if test -n "$CC"; then
750 echo "$ac_t""$CC" 1>&6
752 echo "$ac_t""no" 1>&6
755 if test -z "$CC"; then
756 # Extract the first word of "cc", so it can be a program name with args.
757 set dummy cc
; ac_word
=$2
758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
759 echo "configure:760: checking for $ac_word" >&5
760 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
763 if test -n "$CC"; then
764 ac_cv_prog_CC
="$CC" # Let the user override the test.
766 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
769 for ac_dir
in $ac_dummy; do
770 test -z "$ac_dir" && ac_dir
=.
771 if test -f $ac_dir/$ac_word; then
772 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
781 if test $ac_prog_rejected = yes; then
782 # We found a bogon in the path, so make sure we never use it.
783 set dummy
$ac_cv_prog_CC
785 if test $# -gt 0; then
786 # We chose a different compiler from the bogus one.
787 # However, it has the same basename, so the bogon will be chosen
788 # first if we set CC to just the basename; use the full file name.
790 set dummy
"$ac_dir/$ac_word" "$@"
798 if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
801 echo "$ac_t""no" 1>&6
804 if test -z "$CC"; then
807 # Extract the first word of "cl", so it can be a program name with args.
808 set dummy cl
; ac_word
=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC
="$CC" # Let the user override the test.
817 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
819 for ac_dir
in $ac_dummy; do
820 test -z "$ac_dir" && ac_dir
=.
821 if test -f $ac_dir/$ac_word; then
830 if test -n "$CC"; then
831 echo "$ac_t""$CC" 1>&6
833 echo "$ac_t""no" 1>&6
838 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
841 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
842 echo "configure:843: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
845 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
846 ac_cpp
='$CPP $CPPFLAGS'
847 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
848 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
849 cross_compiling
=$ac_cv_prog_cc_cross
851 cat > conftest.
$ac_ext << EOF
853 #line 854 "configure"
854 #include "confdefs.h"
858 if { (eval echo configure
:859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
859 ac_cv_prog_cc_works
=yes
860 # If we can't run a trivial program, we are probably using a cross compiler.
861 if (.
/conftest
; exit) 2>/dev
/null
; then
862 ac_cv_prog_cc_cross
=no
864 ac_cv_prog_cc_cross
=yes
867 echo "configure: failed program was:" >&5
868 cat conftest.
$ac_ext >&5
869 ac_cv_prog_cc_works
=no
873 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
874 ac_cpp
='$CPP $CPPFLAGS'
875 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
876 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
877 cross_compiling
=$ac_cv_prog_cc_cross
879 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
880 if test $ac_cv_prog_cc_works = no
; then
881 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
883 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
884 echo "configure:885: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
885 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
886 cross_compiling
=$ac_cv_prog_cc_cross
888 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
889 echo "configure:890: checking whether we are using GNU C" >&5
890 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
891 echo $ac_n "(cached) $ac_c" 1>&6
893 cat > conftest.c
<<EOF
898 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
905 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
907 if test $ac_cv_prog_gcc = yes; then
913 ac_test_CFLAGS
="${CFLAGS+set}"
914 ac_save_CFLAGS
="$CFLAGS"
916 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
917 echo "configure:918: checking whether ${CC-cc} accepts -g" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 echo 'void f(){}' > conftest.c
922 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
931 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
932 if test "$ac_test_CFLAGS" = set; then
933 CFLAGS
="$ac_save_CFLAGS"
934 elif test $ac_cv_prog_cc_g = yes; then
935 if test "$GCC" = yes; then
941 if test "$GCC" = yes; then
948 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
949 echo "configure:950: checking for POSIXized ISC" >&5
950 if test -d /etc
/conf
/kconfig.d
&&
951 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
953 echo "$ac_t""yes" 1>&6
954 ISC
=yes # If later tests want to check for ISC.
955 cat >> confdefs.h
<<\EOF
956 #define _POSIX_SOURCE 1
959 if test "$GCC" = yes; then
965 echo "$ac_t""no" 1>&6
970 # Find a good install program. We prefer a C program (faster),
971 # so one script is as good as another. But avoid the broken or
972 # incompatible versions:
973 # SysV /etc/install, /usr/sbin/install
974 # SunOS /usr/etc/install
977 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
978 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
979 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
980 # ./install, which can be erroneously created by make from ./install.sh.
981 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
982 echo "configure:983: checking for a BSD compatible install" >&5
983 if test -z "$INSTALL"; then
984 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
988 for ac_dir
in $PATH; do
989 # Account for people who put trailing slashes in PATH elements.
991 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
993 # OSF1 and SCO ODT 3.0 have their own names for install.
994 # Don't use installbsd from OSF since it installs stuff as root
996 for ac_prog
in ginstall scoinst
install; do
997 if test -f $ac_dir/$ac_prog; then
998 if test $ac_prog = install &&
999 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1000 # AIX install. It has an incompatible calling convention.
1003 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1014 if test "${ac_cv_path_install+set}" = set; then
1015 INSTALL
="$ac_cv_path_install"
1017 # As a last resort, use the slow shell script. We don't cache a
1018 # path for INSTALL within a source directory, because that will
1019 # break other packages using the cache if that directory is
1020 # removed, or if the path is relative.
1021 INSTALL
="$ac_install_sh"
1024 echo "$ac_t""$INSTALL" 1>&6
1026 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1027 # It thinks the first close brace ends the variable substitution.
1028 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1030 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1032 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1034 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1035 echo "configure:1036: checking whether build environment is sane" >&5
1038 echo timestamp
> conftestfile
1039 # Do `set' in a subshell so we don't clobber the current shell's
1040 # arguments. Must try -L first in case configure is actually a
1041 # symlink; some systems play weird games with the mod time of symlinks
1042 # (eg FreeBSD returns the mod time of the symlink's containing
1045 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1046 if test "$*" = "X"; then
1048 set X
`ls -t $srcdir/configure conftestfile`
1050 if test "$*" != "X $srcdir/configure conftestfile" \
1051 && test "$*" != "X conftestfile $srcdir/configure"; then
1053 # If neither matched, then we have a broken ls. This can happen
1054 # if, for instance, CONFIG_SHELL is bash and it inherits a
1055 # broken ls alias from the environment. This has actually
1056 # happened. Such a system could not be considered "sane".
1057 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1058 alias in your environment" 1>&2; exit 1; }
1061 test "$2" = conftestfile
1067 { echo "configure: error: newly created file is older than distributed files!
1068 Check your system clock" 1>&2; exit 1; }
1071 echo "$ac_t""yes" 1>&6
1072 if test "$program_transform_name" = s
,x
,x
,; then
1073 program_transform_name
=
1075 # Double any \ or $. echo might interpret backslashes.
1076 cat <<\EOF_SED
> conftestsed
1077 s
,\\,\\\\,g
; s
,\$
,$$
,g
1079 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1082 test "$program_prefix" != NONE
&&
1083 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1084 # Use a double $ so make ignores it.
1085 test "$program_suffix" != NONE
&&
1086 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1088 # sed with no file args requires a program.
1089 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1091 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether ${MAKE-make} sets \${MAKE}" >&5
1093 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1094 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 cat > conftestmake
<<\EOF
1099 @
echo 'ac_maketemp="${MAKE}"'
1101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1102 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1103 if test -n "$ac_maketemp"; then
1104 eval ac_cv_prog_make_
${ac_make}_set
=yes
1106 eval ac_cv_prog_make_
${ac_make}_set
=no
1110 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1111 echo "$ac_t""yes" 1>&6
1114 echo "$ac_t""no" 1>&6
1115 SET_MAKE
="MAKE=${MAKE-make}"
1123 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1124 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1126 cat >> confdefs.h
<<EOF
1127 #define PACKAGE "$PACKAGE"
1130 cat >> confdefs.h
<<EOF
1131 #define VERSION "$VERSION"
1136 missing_dir
=`cd $ac_aux_dir && pwd`
1137 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1138 echo "configure:1139: checking for working aclocal" >&5
1139 # Run test in a subshell; some versions of sh will print an error if
1140 # an executable is not found, even if stderr is redirected.
1141 # Redirect stdin to placate older versions of autoconf. Sigh.
1142 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1144 echo "$ac_t""found" 1>&6
1146 ACLOCAL
="$missing_dir/missing aclocal"
1147 echo "$ac_t""missing" 1>&6
1150 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1151 echo "configure:1152: checking for working autoconf" >&5
1152 # Run test in a subshell; some versions of sh will print an error if
1153 # an executable is not found, even if stderr is redirected.
1154 # Redirect stdin to placate older versions of autoconf. Sigh.
1155 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1157 echo "$ac_t""found" 1>&6
1159 AUTOCONF
="$missing_dir/missing autoconf"
1160 echo "$ac_t""missing" 1>&6
1163 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1164 echo "configure:1165: checking for working automake" >&5
1165 # Run test in a subshell; some versions of sh will print an error if
1166 # an executable is not found, even if stderr is redirected.
1167 # Redirect stdin to placate older versions of autoconf. Sigh.
1168 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1170 echo "$ac_t""found" 1>&6
1172 AUTOMAKE
="$missing_dir/missing automake"
1173 echo "$ac_t""missing" 1>&6
1176 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1177 echo "configure:1178: checking for working autoheader" >&5
1178 # Run test in a subshell; some versions of sh will print an error if
1179 # an executable is not found, even if stderr is redirected.
1180 # Redirect stdin to placate older versions of autoconf. Sigh.
1181 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1182 AUTOHEADER
=autoheader
1183 echo "$ac_t""found" 1>&6
1185 AUTOHEADER
="$missing_dir/missing autoheader"
1186 echo "$ac_t""missing" 1>&6
1189 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1190 echo "configure:1191: checking for working makeinfo" >&5
1191 # Run test in a subshell; some versions of sh will print an error if
1192 # an executable is not found, even if stderr is redirected.
1193 # Redirect stdin to placate older versions of autoconf. Sigh.
1194 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1196 echo "$ac_t""found" 1>&6
1198 MAKEINFO
="$missing_dir/missing makeinfo"
1199 echo "$ac_t""missing" 1>&6
1203 # Uncomment the next line to remove the date from the reported bfd version
1206 bfd_version
=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
1208 bfd_version_string
="\"${VERSION}\""
1209 if test x
${is_release} = x
; then
1210 bfd_version_date
=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
1211 bfd_version_string
="\"${VERSION} ${bfd_version_date}\""
1216 if test $host != $build; then
1217 ac_tool_prefix
=${host_alias}-
1222 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1223 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1225 echo "configure:1226: checking for $ac_word" >&5
1226 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1227 echo $ac_n "(cached) $ac_c" 1>&6
1229 if test -n "$AR"; then
1230 ac_cv_prog_AR
="$AR" # Let the user override the test.
1232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1234 for ac_dir
in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir
=.
1236 if test -f $ac_dir/$ac_word; then
1237 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1242 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1246 if test -n "$AR"; then
1247 echo "$ac_t""$AR" 1>&6
1249 echo "$ac_t""no" 1>&6
1254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1255 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1257 echo "configure:1258: checking for $ac_word" >&5
1258 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 if test -n "$RANLIB"; then
1262 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1264 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1266 for ac_dir
in $ac_dummy; do
1267 test -z "$ac_dir" && ac_dir
=.
1268 if test -f $ac_dir/$ac_word; then
1269 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1276 RANLIB
="$ac_cv_prog_RANLIB"
1277 if test -n "$RANLIB"; then
1278 echo "$ac_t""$RANLIB" 1>&6
1280 echo "$ac_t""no" 1>&6
1284 if test -z "$ac_cv_prog_RANLIB"; then
1285 if test -n "$ac_tool_prefix"; then
1286 # Extract the first word of "ranlib", so it can be a program name with args.
1287 set dummy ranlib
; ac_word
=$2
1288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1289 echo "configure:1290: checking for $ac_word" >&5
1290 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1291 echo $ac_n "(cached) $ac_c" 1>&6
1293 if test -n "$RANLIB"; then
1294 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1296 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1298 for ac_dir
in $ac_dummy; do
1299 test -z "$ac_dir" && ac_dir
=.
1300 if test -f $ac_dir/$ac_word; then
1301 ac_cv_prog_RANLIB
="ranlib"
1306 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1309 RANLIB
="$ac_cv_prog_RANLIB"
1310 if test -n "$RANLIB"; then
1311 echo "$ac_t""$RANLIB" 1>&6
1313 echo "$ac_t""no" 1>&6
1322 # Check whether --enable-shared or --disable-shared was given.
1323 if test "${enable_shared+set}" = set; then
1324 enableval
="$enable_shared"
1325 p
=${PACKAGE-default}
1327 yes) enable_shared
=yes ;;
1328 no
) enable_shared
=no
;;
1331 # Look at the argument we got. We use all the common list separators.
1332 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1333 for pkg
in $enableval; do
1334 if test "X$pkg" = "X$p"; then
1346 # Check whether --enable-static or --disable-static was given.
1347 if test "${enable_static+set}" = set; then
1348 enableval
="$enable_static"
1349 p
=${PACKAGE-default}
1351 yes) enable_static
=yes ;;
1352 no
) enable_static
=no
;;
1355 # Look at the argument we got. We use all the common list separators.
1356 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1357 for pkg
in $enableval; do
1358 if test "X$pkg" = "X$p"; then
1369 # Check whether --enable-fast-install or --disable-fast-install was given.
1370 if test "${enable_fast_install+set}" = set; then
1371 enableval
="$enable_fast_install"
1372 p
=${PACKAGE-default}
1374 yes) enable_fast_install
=yes ;;
1375 no
) enable_fast_install
=no
;;
1377 enable_fast_install
=no
1378 # Look at the argument we got. We use all the common list separators.
1379 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1380 for pkg
in $enableval; do
1381 if test "X$pkg" = "X$p"; then
1382 enable_fast_install
=yes
1389 enable_fast_install
=yes
1392 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1393 if test "${with_gnu_ld+set}" = set; then
1394 withval
="$with_gnu_ld"
1395 test "$withval" = no || with_gnu_ld
=yes
1401 if test "$GCC" = yes; then
1402 # Check if gcc -print-prog-name=ld gives a path.
1403 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1404 echo "configure:1405: checking for ld used by GCC" >&5
1407 # gcc leaves a trailing carriage return which upsets mingw
1408 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1410 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1413 # Accept absolute paths.
1414 [\\/]* |
[A-Za-z
]:[\\/]*)
1415 re_direlt
='/[^/][^/]*/\.\./'
1416 # Canonicalize the path of ld
1417 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1418 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1419 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1421 test -z "$LD" && LD
="$ac_prog"
1424 # If it fails, then pretend we aren't using GCC.
1428 # If it is relative, then search for the first ld in PATH.
1432 elif test "$with_gnu_ld" = yes; then
1433 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1434 echo "configure:1435: checking for GNU ld" >&5
1436 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1437 echo "configure:1438: checking for non-GNU ld" >&5
1439 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1442 if test -z "$LD"; then
1443 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1444 for ac_dir
in $PATH; do
1445 test -z "$ac_dir" && ac_dir
=.
1446 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1447 lt_cv_path_LD
="$ac_dir/$ac_prog"
1448 # Check to see if the program is GNU ld. I'd rather use --version,
1449 # but apparently some GNU ld's only accept -v.
1450 # Break only if it was the GNU/non-GNU ld that we prefer.
1451 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1452 test "$with_gnu_ld" != no
&& break
1454 test "$with_gnu_ld" != yes && break
1460 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1465 if test -n "$LD"; then
1466 echo "$ac_t""$LD" 1>&6
1468 echo "$ac_t""no" 1>&6
1470 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1471 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1472 echo "configure:1473: checking if the linker ($LD) is GNU ld" >&5
1473 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1474 echo $ac_n "(cached) $ac_c" 1>&6
1476 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1477 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1478 lt_cv_prog_gnu_ld
=yes
1480 lt_cv_prog_gnu_ld
=no
1484 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1485 with_gnu_ld
=$lt_cv_prog_gnu_ld
1488 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $LD option to reload object files" >&5
1490 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 lt_cv_ld_reload_flag
='-r'
1496 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1497 reload_flag
=$lt_cv_ld_reload_flag
1498 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1500 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1501 echo "configure:1502: checking for BSD-compatible nm" >&5
1502 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1505 if test -n "$NM"; then
1506 # Let the user override the test.
1509 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1510 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1511 test -z "$ac_dir" && ac_dir
=.
1512 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1513 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1514 # Check to see if the nm accepts a BSD-compat flag.
1515 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1516 # nm: unknown option "B" ignored
1517 # Tru64's nm complains that /dev/null is an invalid object file
1518 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1519 lt_cv_path_NM
="$tmp_nm -B"
1521 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1522 lt_cv_path_NM
="$tmp_nm -p"
1525 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1526 continue # so that we can try to find one that supports BSD flags
1531 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1536 echo "$ac_t""$NM" 1>&6
1538 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1539 echo "configure:1540: checking whether ln -s works" >&5
1540 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1544 if ln -s X conftestdata
2>/dev
/null
1547 ac_cv_prog_LN_S
="ln -s"
1552 LN_S
="$ac_cv_prog_LN_S"
1553 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1554 echo "$ac_t""yes" 1>&6
1556 echo "$ac_t""no" 1>&6
1559 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1560 echo "configure:1561: checking how to recognise dependant libraries" >&5
1561 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1565 lt_cv_file_magic_test_file
=
1566 lt_cv_deplibs_check_method
='unknown'
1567 # Need to set the preceding variable on all platforms that support
1568 # interlibrary dependencies.
1569 # 'none' -- dependencies not supported.
1570 # `unknown' -- same as none, but documents that we really don't know.
1571 # 'pass_all' -- all dependencies passed with no checks.
1572 # 'test_compile' -- check by making test program.
1573 # 'file_magic [regex]' -- check by looking for files in library path
1574 # which responds to the $file_magic_cmd with a given egrep regex.
1575 # If you have `file' or equivalent on your system and you're not sure
1576 # whether `pass_all' will *always* work, you probably want this one.
1580 lt_cv_deplibs_check_method
=pass_all
1584 lt_cv_deplibs_check_method
=pass_all
1588 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1589 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1590 lt_cv_file_magic_test_file
=/shlib
/libc.so
1593 cygwin
* | mingw
* |pw32
*)
1594 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1595 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1598 darwin
* | rhapsody
*)
1599 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1600 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1602 rhapsody
* | darwin1.012
)
1603 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1606 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1612 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1615 # Not sure whether the presence of OpenBSD here was a mistake.
1616 # Let's accept both of them until this is cleared up.
1617 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1618 lt_cv_file_magic_cmd
=/usr
/bin
/file
1619 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1623 lt_cv_deplibs_check_method
=pass_all
1628 lt_cv_deplibs_check_method
=pass_all
1634 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1635 lt_cv_file_magic_cmd
=/usr
/bin
/file
1636 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1639 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1640 lt_cv_file_magic_cmd
=/usr
/bin
/file
1641 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1649 # this will be overridden with pass_all, but let us keep it just in case
1650 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1654 *-32|
*"-32 ") libmagic
=32-bit;;
1655 *-n32|
*"-n32 ") libmagic
=N32
;;
1656 *-64|
*"-64 ") libmagic
=64-bit;;
1657 *) libmagic
=never-match
;;
1659 # this will be overridden with pass_all, but let us keep it just in case
1660 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1663 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1664 lt_cv_deplibs_check_method
=pass_all
1667 # This must be Linux ELF.
1670 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1671 lt_cv_deplibs_check_method
=pass_all
;;
1673 # glibc up to 2.1.1 does not perform some relocations on ARM
1674 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1676 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1680 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1681 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1683 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1688 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1689 lt_cv_file_magic_cmd
=/usr
/bin
/file
1690 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1693 osf3
* | osf4
* | osf5
*)
1694 # this will be overridden with pass_all, but let us keep it just in case
1695 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1696 lt_cv_file_magic_test_file
=/shlib
/libc.so
1697 lt_cv_deplibs_check_method
=pass_all
1701 lt_cv_deplibs_check_method
=pass_all
1705 lt_cv_deplibs_check_method
=pass_all
1706 lt_cv_file_magic_test_file
=/lib
/libc.so
1709 sysv5uw
[78]* | sysv4
*uw2
*)
1710 lt_cv_deplibs_check_method
=pass_all
1713 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1714 case $host_vendor in
1716 lt_cv_deplibs_check_method
=pass_all
1719 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]'
1720 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1728 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1729 file_magic_cmd
=$lt_cv_file_magic_cmd
1730 deplibs_check_method
=$lt_cv_deplibs_check_method
1732 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1733 echo "configure:1734: checking for object suffix" >&5
1734 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
1738 echo 'int i = 1;' > conftest.
$ac_ext
1739 if { (eval echo configure
:1740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740 for ac_file
in conftest.
*; do
1743 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1747 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1752 echo "$ac_t""$ac_cv_objext" 1>&6
1753 OBJEXT
=$ac_cv_objext
1754 ac_objext
=$ac_cv_objext
1758 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1759 echo "configure:1760: checking for executable suffix" >&5
1760 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1763 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1767 echo 'int main () { return 0; }' > conftest.
$ac_ext
1769 if { (eval echo configure
:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1770 for file in conftest.
*; do
1772 *.c |
*.o |
*.obj
) ;;
1773 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1777 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1780 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1785 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1786 echo "$ac_t""${ac_cv_exeext}" 1>&6
1789 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1791 # Only perform the check for file, if the check method requires it
1792 case $deplibs_check_method in
1794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1795 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1796 echo "configure:1797: checking for ${ac_tool_prefix}file" >&5
1797 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1798 echo $ac_n "(cached) $ac_c" 1>&6
1802 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1805 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1808 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1809 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1810 ac_dummy
="/usr/bin:$PATH"
1811 for ac_dir
in $ac_dummy; do
1812 test -z "$ac_dir" && ac_dir
=.
1813 if test -f $ac_dir/${ac_tool_prefix}file; then
1814 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1815 if test -n "$file_magic_test_file"; then
1816 case $deplibs_check_method in
1818 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1819 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1820 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1821 egrep "$file_magic_regex" > /dev
/null
; then
1826 *** Warning: the command libtool uses to detect shared libraries,
1827 *** $file_magic_cmd, produces output that libtool cannot recognize.
1828 *** The result is that libtool may fail to recognize shared libraries
1829 *** as such. This will affect the creation of libtool libraries that
1830 *** depend on shared libraries, but programs linked with such libtool
1831 *** libraries will work regardless of this problem. Nevertheless, you
1832 *** may want to report the problem to your system manager and/or to
1833 *** bug-libtool@gnu.org
1843 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1848 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1849 if test -n "$MAGIC_CMD"; then
1850 echo "$ac_t""$MAGIC_CMD" 1>&6
1852 echo "$ac_t""no" 1>&6
1855 if test -z "$lt_cv_path_MAGIC_CMD"; then
1856 if test -n "$ac_tool_prefix"; then
1857 echo $ac_n "checking for file""... $ac_c" 1>&6
1858 echo "configure:1859: checking for file" >&5
1859 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
1864 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1867 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1870 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1871 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1872 ac_dummy
="/usr/bin:$PATH"
1873 for ac_dir
in $ac_dummy; do
1874 test -z "$ac_dir" && ac_dir
=.
1875 if test -f $ac_dir/file; then
1876 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1877 if test -n "$file_magic_test_file"; then
1878 case $deplibs_check_method in
1880 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1881 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1882 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1883 egrep "$file_magic_regex" > /dev
/null
; then
1888 *** Warning: the command libtool uses to detect shared libraries,
1889 *** $file_magic_cmd, produces output that libtool cannot recognize.
1890 *** The result is that libtool may fail to recognize shared libraries
1891 *** as such. This will affect the creation of libtool libraries that
1892 *** depend on shared libraries, but programs linked with such libtool
1893 *** libraries will work regardless of this problem. Nevertheless, you
1894 *** may want to report the problem to your system manager and/or to
1895 *** bug-libtool@gnu.org
1905 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1910 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1911 if test -n "$MAGIC_CMD"; then
1912 echo "$ac_t""$MAGIC_CMD" 1>&6
1914 echo "$ac_t""no" 1>&6
1926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1927 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1929 echo "configure:1930: checking for $ac_word" >&5
1930 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 if test -n "$RANLIB"; then
1934 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1938 for ac_dir
in $ac_dummy; do
1939 test -z "$ac_dir" && ac_dir
=.
1940 if test -f $ac_dir/$ac_word; then
1941 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1948 RANLIB
="$ac_cv_prog_RANLIB"
1949 if test -n "$RANLIB"; then
1950 echo "$ac_t""$RANLIB" 1>&6
1952 echo "$ac_t""no" 1>&6
1956 if test -z "$ac_cv_prog_RANLIB"; then
1957 if test -n "$ac_tool_prefix"; then
1958 # Extract the first word of "ranlib", so it can be a program name with args.
1959 set dummy ranlib
; ac_word
=$2
1960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1961 echo "configure:1962: checking for $ac_word" >&5
1962 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1963 echo $ac_n "(cached) $ac_c" 1>&6
1965 if test -n "$RANLIB"; then
1966 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1968 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1970 for ac_dir
in $ac_dummy; do
1971 test -z "$ac_dir" && ac_dir
=.
1972 if test -f $ac_dir/$ac_word; then
1973 ac_cv_prog_RANLIB
="ranlib"
1978 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_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
1993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1994 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1996 echo "configure:1997: checking for $ac_word" >&5
1997 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1998 echo $ac_n "(cached) $ac_c" 1>&6
2000 if test -n "$STRIP"; then
2001 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2003 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2005 for ac_dir
in $ac_dummy; do
2006 test -z "$ac_dir" && ac_dir
=.
2007 if test -f $ac_dir/$ac_word; then
2008 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2015 STRIP
="$ac_cv_prog_STRIP"
2016 if test -n "$STRIP"; then
2017 echo "$ac_t""$STRIP" 1>&6
2019 echo "$ac_t""no" 1>&6
2023 if test -z "$ac_cv_prog_STRIP"; then
2024 if test -n "$ac_tool_prefix"; then
2025 # Extract the first word of "strip", so it can be a program name with args.
2026 set dummy strip
; ac_word
=$2
2027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2028 echo "configure:2029: checking for $ac_word" >&5
2029 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 if test -n "$STRIP"; then
2033 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2037 for ac_dir
in $ac_dummy; do
2038 test -z "$ac_dir" && ac_dir
=.
2039 if test -f $ac_dir/$ac_word; then
2040 ac_cv_prog_STRIP
="strip"
2045 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_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
2061 # Check for any special flags to pass to ltconfig.
2062 libtool_flags
="--cache-file=$cache_file"
2063 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2064 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2065 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2066 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2067 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2070 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2071 if test "${enable_libtool_lock+set}" = set; then
2072 enableval
="$enable_libtool_lock"
2076 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2077 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2079 # Check whether --with-pic or --without-pic was given.
2080 if test "${with_pic+set}" = set; then
2087 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2088 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2090 # Some flags need to be propagated to the compiler or linker for good
2094 # Find out which ABI we are using.
2095 echo '#line 2096 "configure"' > conftest.
$ac_ext
2096 if { (eval echo configure
:2097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2097 case `/usr/bin/file conftest.$ac_objext` in
2113 # Find out which ABI we are using.
2114 echo 'int i;' > conftest.
$ac_ext
2115 if { (eval echo configure
:2116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2116 case "`/usr/bin/file conftest.o`" in
2129 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2130 SAVE_CFLAGS
="$CFLAGS"
2131 CFLAGS
="$CFLAGS -belf"
2132 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2133 echo "configure:2134: checking whether the C compiler needs -belf" >&5
2134 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2139 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2140 ac_cpp
='$CPP $CPPFLAGS'
2141 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2142 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2143 cross_compiling
=$ac_cv_prog_cc_cross
2145 cat > conftest.
$ac_ext <<EOF
2146 #line 2147 "configure"
2147 #include "confdefs.h"
2153 if { (eval echo configure
:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2155 lt_cv_cc_needs_belf
=yes
2157 echo "configure: failed program was:" >&5
2158 cat conftest.
$ac_ext >&5
2160 lt_cv_cc_needs_belf
=no
2164 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2165 ac_cpp
='$CPP $CPPFLAGS'
2166 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2167 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2168 cross_compiling
=$ac_cv_prog_cc_cross
2172 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2173 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2174 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2175 CFLAGS
="$SAVE_CFLAGS"
2183 # Save cache, so that ltconfig can load it
2184 cat > confcache
<<\EOF
2185 # This file is a shell script that caches the results of configure
2186 # tests run on this system so they can be shared between configure
2187 # scripts and configure runs. It is not useful on other systems.
2188 # If it contains results you don't want to keep, you may remove or edit it.
2190 # By default, configure uses ./config.cache as the cache file,
2191 # creating it if it does not exist already. You can give configure
2192 # the --cache-file=FILE option to use a different cache file; that is
2193 # what configure does when it calls configure scripts in
2194 # subdirectories, so they share the cache.
2195 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2196 # config.status only pays attention to the cache file if you give it the
2197 # --recheck option to rerun configure.
2200 # The following way of writing the cache mishandles newlines in values,
2201 # but we know of no workaround that is simple, portable, and efficient.
2202 # So, don't put newlines in cache variables' values.
2203 # Ultrix sh set writes to stderr and can't be redirected directly,
2204 # and sets the high bit in the cache file unless we assign to the vars.
2206 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2208 # `set' does not quote correctly, so add quotes (double-quote substitution
2209 # turns \\\\ into \\, and sed turns \\ into \).
2211 -e "s/'/'\\\\''/g" \
2212 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2215 # `set' quotes correctly as required by POSIX, so do not add quotes.
2216 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2219 if cmp -s $cache_file confcache
; then
2222 if test -w $cache_file; then
2223 echo "updating cache $cache_file"
2224 cat confcache
> $cache_file
2226 echo "not updating unwritable cache $cache_file"
2232 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2233 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2234 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2235 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2236 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2237 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2238 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2239 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2240 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2241 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2243 # Reload cache, that may have been modified by ltconfig
2244 if test -r "$cache_file"; then
2245 echo "loading cache $cache_file"
2248 echo "creating cache $cache_file"
2253 # This can be used to rebuild libtool when needed
2254 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2256 # Always use our own libtool.
2257 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2259 # Redirect the config.log output again, so that the ltconfig log is not
2260 # clobbered by the next message.
2261 exec 5>>.
/config.log
2269 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2270 if test "${enable_64_bit_bfd+set}" = set; then
2271 enableval
="$enable_64_bit_bfd"
2272 case "${enableval}" in
2275 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2280 # Check whether --enable-targets or --disable-targets was given.
2281 if test "${enable_targets+set}" = set; then
2282 enableval
="$enable_targets"
2283 case "${enableval}" in
2284 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2286 no
) enable_targets
= ;;
2287 *) enable_targets
=$enableval ;;
2290 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2291 if test "${enable_commonbfdlib+set}" = set; then
2292 enableval
="$enable_commonbfdlib"
2293 case "${enableval}" in
2294 yes) commonbfdlib
=true
;;
2295 no
) commonbfdlib
=false
;;
2296 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2299 # Check whether --with-mmap or --without-mmap was given.
2300 if test "${with_mmap+set}" = set; then
2301 withval
="$with_mmap"
2302 case "${withval}" in
2303 yes) want_mmap
=true
;;
2304 no
) want_mmap
=false
;;
2305 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2311 build_warnings
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2312 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2313 if test "${enable_build_warnings+set}" = set; then
2314 enableval
="$enable_build_warnings"
2315 case "${enableval}" in
2317 no
) build_warnings
="-w";;
2318 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2319 build_warnings
="${build_warnings} ${t}";;
2320 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2321 build_warnings
="${t} ${build_warnings}";;
2322 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2324 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2325 echo "Setting warning flags = $build_warnings" 6>&1
2329 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2330 WARN_CFLAGS
="${build_warnings}"
2338 if test -z "$target" ; then
2339 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2342 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2343 echo "configure:2344: checking whether to enable maintainer-specific portions of Makefiles" >&5
2344 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2345 if test "${enable_maintainer_mode+set}" = set; then
2346 enableval
="$enable_maintainer_mode"
2347 USE_MAINTAINER_MODE
=$enableval
2349 USE_MAINTAINER_MODE
=no
2352 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2355 if test $USE_MAINTAINER_MODE = yes; then
2356 MAINTAINER_MODE_TRUE
=
2357 MAINTAINER_MODE_FALSE
='#'
2359 MAINTAINER_MODE_TRUE
='#'
2360 MAINTAINER_MODE_FALSE
=
2362 MAINT
=$MAINTAINER_MODE_TRUE
2365 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2366 echo "configure:2367: checking whether to install libbfd" >&5
2367 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2368 if test "${enable_install_libbfd+set}" = set; then
2369 enableval
="$enable_install_libbfd"
2370 install_libbfd_p
=$enableval
2372 if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then
2373 install_libbfd_p
=yes
2379 echo "$ac_t""$install_libbfd_p" 1>&6
2382 if test $install_libbfd_p = yes; then
2383 INSTALL_LIBBFD_TRUE
=
2384 INSTALL_LIBBFD_FALSE
='#'
2386 INSTALL_LIBBFD_TRUE
='#'
2387 INSTALL_LIBBFD_FALSE
=
2389 # libbfd.a is a host library containing target dependent code
2390 bfdlibdir
='$(libdir)'
2391 bfdincludedir
='$(includedir)'
2392 if test "${host}" != "${target}"; then
2393 bfdlibdir
='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2394 bfdincludedir
='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2402 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2403 echo "configure:2404: checking for executable suffix" >&5
2404 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2411 echo 'int main () { return 0; }' > conftest.
$ac_ext
2413 if { (eval echo configure
:2414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2414 for file in conftest.
*; do
2416 *.c |
*.o |
*.obj
) ;;
2417 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2421 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2424 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2429 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2430 echo "$ac_t""${ac_cv_exeext}" 1>&6
2436 bfd_default_target_size
=32
2440 # Extract the first word of "gcc", so it can be a program name with args.
2441 set dummy gcc
; ac_word
=$2
2442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2443 echo "configure:2444: checking for $ac_word" >&5
2444 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 if test -n "$CC"; then
2448 ac_cv_prog_CC
="$CC" # Let the user override the test.
2450 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2452 for ac_dir
in $ac_dummy; do
2453 test -z "$ac_dir" && ac_dir
=.
2454 if test -f $ac_dir/$ac_word; then
2463 if test -n "$CC"; then
2464 echo "$ac_t""$CC" 1>&6
2466 echo "$ac_t""no" 1>&6
2469 if test -z "$CC"; then
2470 # Extract the first word of "cc", so it can be a program name with args.
2471 set dummy cc
; ac_word
=$2
2472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_word" >&5
2474 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC
="$CC" # Let the user override the test.
2480 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2483 for ac_dir
in $ac_dummy; do
2484 test -z "$ac_dir" && ac_dir
=.
2485 if test -f $ac_dir/$ac_word; then
2486 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2487 ac_prog_rejected
=yes
2495 if test $ac_prog_rejected = yes; then
2496 # We found a bogon in the path, so make sure we never use it.
2497 set dummy
$ac_cv_prog_CC
2499 if test $# -gt 0; then
2500 # We chose a different compiler from the bogus one.
2501 # However, it has the same basename, so the bogon will be chosen
2502 # first if we set CC to just the basename; use the full file name.
2504 set dummy
"$ac_dir/$ac_word" "$@"
2512 if test -n "$CC"; then
2513 echo "$ac_t""$CC" 1>&6
2515 echo "$ac_t""no" 1>&6
2518 if test -z "$CC"; then
2519 case "`uname -s`" in
2521 # Extract the first word of "cl", so it can be a program name with args.
2522 set dummy cl
; ac_word
=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC
="$CC" # Let the user override the test.
2531 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2533 for ac_dir
in $ac_dummy; do
2534 test -z "$ac_dir" && ac_dir
=.
2535 if test -f $ac_dir/$ac_word; then
2544 if test -n "$CC"; then
2545 echo "$ac_t""$CC" 1>&6
2547 echo "$ac_t""no" 1>&6
2552 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2555 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2556 echo "configure:2557: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2559 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2560 ac_cpp
='$CPP $CPPFLAGS'
2561 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2562 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2563 cross_compiling
=$ac_cv_prog_cc_cross
2565 cat > conftest.
$ac_ext << EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2572 if { (eval echo configure
:2573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2573 ac_cv_prog_cc_works
=yes
2574 # If we can't run a trivial program, we are probably using a cross compiler.
2575 if (.
/conftest
; exit) 2>/dev
/null
; then
2576 ac_cv_prog_cc_cross
=no
2578 ac_cv_prog_cc_cross
=yes
2581 echo "configure: failed program was:" >&5
2582 cat conftest.
$ac_ext >&5
2583 ac_cv_prog_cc_works
=no
2587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2588 ac_cpp
='$CPP $CPPFLAGS'
2589 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2590 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2591 cross_compiling
=$ac_cv_prog_cc_cross
2593 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2594 if test $ac_cv_prog_cc_works = no
; then
2595 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2597 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2598 echo "configure:2599: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2599 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2600 cross_compiling
=$ac_cv_prog_cc_cross
2602 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2603 echo "configure:2604: checking whether we are using GNU C" >&5
2604 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2605 echo $ac_n "(cached) $ac_c" 1>&6
2607 cat > conftest.c
<<EOF
2612 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2619 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2621 if test $ac_cv_prog_gcc = yes; then
2627 ac_test_CFLAGS
="${CFLAGS+set}"
2628 ac_save_CFLAGS
="$CFLAGS"
2630 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2631 echo "configure:2632: checking whether ${CC-cc} accepts -g" >&5
2632 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 echo 'void f(){}' > conftest.c
2636 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2645 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2646 if test "$ac_test_CFLAGS" = set; then
2647 CFLAGS
="$ac_save_CFLAGS"
2648 elif test $ac_cv_prog_cc_g = yes; then
2649 if test "$GCC" = yes; then
2655 if test "$GCC" = yes; then
2663 ALL_LINGUAS
="fr tr ja es sv da"
2664 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2665 echo "configure:2666: checking how to run the C preprocessor" >&5
2666 # On Suns, sometimes $CPP names a directory.
2667 if test -n "$CPP" && test -d "$CPP"; then
2670 if test -z "$CPP"; then
2671 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 # This must be in double quotes, not single quotes, because CPP may get
2675 # substituted into the Makefile and "${CC-cc}" will confuse make.
2677 # On the NeXT, cc -E runs the code through the compiler's parser,
2678 # not just through cpp.
2679 cat > conftest.
$ac_ext <<EOF
2680 #line 2681 "configure"
2681 #include "confdefs.h"
2685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure
:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688 if test -z "$ac_err"; then
2692 echo "configure: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2695 CPP
="${CC-cc} -E -traditional-cpp"
2696 cat > conftest.
$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2702 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2703 { (eval echo configure
:2704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2704 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2705 if test -z "$ac_err"; then
2709 echo "configure: failed program was:" >&5
2710 cat conftest.
$ac_ext >&5
2712 CPP
="${CC-cc} -nologo -E"
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2719 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2720 { (eval echo configure
:2721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2721 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2722 if test -z "$ac_err"; then
2726 echo "configure: failed program was:" >&5
2727 cat conftest.
$ac_ext >&5
2736 ac_cv_prog_CPP
="$CPP"
2738 CPP
="$ac_cv_prog_CPP"
2740 ac_cv_prog_CPP
="$CPP"
2742 echo "$ac_t""$CPP" 1>&6
2744 # Extract the first word of "ranlib", so it can be a program name with args.
2745 set dummy ranlib
; ac_word
=$2
2746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2747 echo "configure:2748: checking for $ac_word" >&5
2748 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 if test -n "$RANLIB"; then
2752 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2754 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2756 for ac_dir
in $ac_dummy; do
2757 test -z "$ac_dir" && ac_dir
=.
2758 if test -f $ac_dir/$ac_word; then
2759 ac_cv_prog_RANLIB
="ranlib"
2764 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2767 RANLIB
="$ac_cv_prog_RANLIB"
2768 if test -n "$RANLIB"; then
2769 echo "$ac_t""$RANLIB" 1>&6
2771 echo "$ac_t""no" 1>&6
2774 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2775 echo "configure:2776: checking for ANSI C header files" >&5
2776 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 cat > conftest.
$ac_ext <<EOF
2780 #line 2781 "configure"
2781 #include "confdefs.h"
2787 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2788 { (eval echo configure
:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2789 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2790 if test -z "$ac_err"; then
2792 ac_cv_header_stdc
=yes
2795 echo "configure: failed program was:" >&5
2796 cat conftest.
$ac_ext >&5
2798 ac_cv_header_stdc
=no
2802 if test $ac_cv_header_stdc = yes; then
2803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810 egrep "memchr" >/dev
/null
2>&1; then
2814 ac_cv_header_stdc
=no
2820 if test $ac_cv_header_stdc = yes; then
2821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2822 cat > conftest.
$ac_ext <<EOF
2823 #line 2824 "configure"
2824 #include "confdefs.h"
2827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2828 egrep "free" >/dev
/null
2>&1; then
2832 ac_cv_header_stdc
=no
2838 if test $ac_cv_header_stdc = yes; then
2839 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2840 if test "$cross_compiling" = yes; then
2843 cat > conftest.
$ac_ext <<EOF
2844 #line 2845 "configure"
2845 #include "confdefs.h"
2847 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2848 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2850 int main () { int i; for (i = 0; i < 256; i++)
2851 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2855 if { (eval echo configure
:2856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2859 echo "configure: failed program was:" >&5
2860 cat conftest.
$ac_ext >&5
2862 ac_cv_header_stdc
=no
2870 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2871 if test $ac_cv_header_stdc = yes; then
2872 cat >> confdefs.h
<<\EOF
2873 #define STDC_HEADERS 1
2878 echo $ac_n "checking for working const""... $ac_c" 1>&6
2879 echo "configure:2880: checking for working const" >&5
2880 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 cat > conftest.
$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2889 /* Ultrix mips cc rejects this. */
2890 typedef int charset[2]; const charset x;
2891 /* SunOS 4.1.1 cc rejects this. */
2892 char const *const *ccp;
2894 /* NEC SVR4.0.2 mips cc rejects this. */
2895 struct point {int x, y;};
2896 static struct point const zero = {0,0};
2897 /* AIX XL C 1.02.0.0 rejects this.
2898 It does not let you subtract one const X* pointer from another in an arm
2899 of an if-expression whose if-part is not a constant expression */
2900 const char *g = "string";
2901 ccp = &g + (g ? g-g : 0);
2902 /* HPUX 7.0 cc rejects these. */
2905 ccp = (char const *const *) p;
2906 { /* SCO 3.2v4 cc rejects this. */
2908 char const *s = 0 ? (char *) 0 : (char const *) 0;
2912 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2914 const int *foo = &x[0];
2917 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2918 typedef const int *iptr;
2922 { /* AIX XL C 1.02.0.0 rejects this saying
2923 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2924 struct s { int j; const int *ap[3]; };
2925 struct s *b; b->j = 5;
2927 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2933 if { (eval echo configure
:2934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2937 echo "configure: failed program was:" >&5
2938 cat conftest.
$ac_ext >&5
2945 echo "$ac_t""$ac_cv_c_const" 1>&6
2946 if test $ac_cv_c_const = no
; then
2947 cat >> confdefs.h
<<\EOF
2953 echo $ac_n "checking for inline""... $ac_c" 1>&6
2954 echo "configure:2955: checking for inline" >&5
2955 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2959 for ac_kw
in inline __inline__ __inline
; do
2960 cat > conftest.
$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2968 if { (eval echo configure
:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2970 ac_cv_c_inline
=$ac_kw; break
2972 echo "configure: failed program was:" >&5
2973 cat conftest.
$ac_ext >&5
2980 echo "$ac_t""$ac_cv_c_inline" 1>&6
2981 case "$ac_cv_c_inline" in
2983 no
) cat >> confdefs.h
<<\EOF
2987 *) cat >> confdefs.h
<<EOF
2988 #define inline $ac_cv_c_inline
2993 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2994 echo "configure:2995: checking for off_t" >&5
2995 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <sys/types.h>
3007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3008 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3010 ac_cv_type_off_t
=yes
3018 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3019 if test $ac_cv_type_off_t = no
; then
3020 cat >> confdefs.h
<<\EOF
3026 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3027 echo "configure:3028: checking for size_t" >&5
3028 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3034 #include <sys/types.h>
3040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3041 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3043 ac_cv_type_size_t
=yes
3046 ac_cv_type_size_t
=no
3051 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3052 if test $ac_cv_type_size_t = no
; then
3053 cat >> confdefs.h
<<\EOF
3054 #define size_t unsigned
3059 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3060 # for constant arguments. Useless!
3061 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3062 echo "configure:3063: checking for working alloca.h" >&5
3063 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 cat > conftest.
$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3071 char *p = alloca(2 * sizeof(int));
3074 if { (eval echo configure
:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3076 ac_cv_header_alloca_h
=yes
3078 echo "configure: failed program was:" >&5
3079 cat conftest.
$ac_ext >&5
3081 ac_cv_header_alloca_h
=no
3086 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3087 if test $ac_cv_header_alloca_h = yes; then
3088 cat >> confdefs.h
<<\EOF
3089 #define HAVE_ALLOCA_H 1
3094 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3095 echo "configure:3096: checking for alloca" >&5
3096 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3099 cat > conftest.
$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3104 # define alloca __builtin_alloca
3107 # include <malloc.h>
3108 # define alloca _alloca
3111 # include <alloca.h>
3116 # ifndef alloca /* predefined by HP cc +Olibcalls */
3125 char *p = (char *) alloca(1);
3128 if { (eval echo configure
:3129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3130 ac_cv_func_alloca_works
=yes
3132 echo "configure: failed program was:" >&5
3133 cat conftest.
$ac_ext >&5
3135 ac_cv_func_alloca_works
=no
3140 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3141 if test $ac_cv_func_alloca_works = yes; then
3142 cat >> confdefs.h
<<\EOF
3143 #define HAVE_ALLOCA 1
3148 if test $ac_cv_func_alloca_works = no
; then
3149 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3150 # that cause trouble. Some versions do not even contain alloca or
3151 # contain a buggy version. If you still want to use their alloca,
3152 # use ar to extract alloca.o from them instead of compiling alloca.c.
3153 ALLOCA
=alloca.
${ac_objext}
3154 cat >> confdefs.h
<<\EOF
3159 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3160 echo "configure:3161: checking whether alloca needs Cray hooks" >&5
3161 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3162 echo $ac_n "(cached) $ac_c" 1>&6
3164 cat > conftest.
$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3167 #if defined(CRAY) && ! defined(CRAY2)
3174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3175 egrep "webecray" >/dev
/null
2>&1; then
3186 echo "$ac_t""$ac_cv_os_cray" 1>&6
3187 if test $ac_cv_os_cray = yes; then
3188 for ac_func
in _getb67 GETB67 getb67
; do
3189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_func" >&5
3191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 /* System header to define __stub macros and hopefully few prototypes,
3198 which can conflict with char $ac_func(); below. */
3200 /* Override any gcc2 internal prototype to avoid an error. */
3201 /* We use char because int might match the return type of a gcc2
3202 builtin and then its argument prototype would still apply. */
3207 /* The GNU C library defines this for functions which it implements
3208 to always fail with ENOSYS. Some functions are actually named
3209 something starting with __ and the normal name is an alias. */
3210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3218 if { (eval echo configure
:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3220 eval "ac_cv_func_$ac_func=yes"
3222 echo "configure: failed program was:" >&5
3223 cat conftest.
$ac_ext >&5
3225 eval "ac_cv_func_$ac_func=no"
3230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 cat >> confdefs.h
<<EOF
3233 #define CRAY_STACKSEG_END $ac_func
3238 echo "$ac_t""no" 1>&6
3244 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3245 echo "configure:3246: checking stack direction for C alloca" >&5
3246 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3249 if test "$cross_compiling" = yes; then
3250 ac_cv_c_stack_direction
=0
3252 cat > conftest.
$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3255 find_stack_direction ()
3257 static char *addr = 0;
3262 return find_stack_direction ();
3265 return (&dummy > addr) ? 1 : -1;
3269 exit (find_stack_direction() < 0);
3272 if { (eval echo configure
:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3274 ac_cv_c_stack_direction
=1
3276 echo "configure: failed program was:" >&5
3277 cat conftest.
$ac_ext >&5
3279 ac_cv_c_stack_direction
=-1
3286 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3287 cat >> confdefs.h
<<EOF
3288 #define STACK_DIRECTION $ac_cv_c_stack_direction
3293 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
3295 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_hdr" >&5
3298 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 cat > conftest.
$ac_ext <<EOF
3302 #line 3303 "configure"
3303 #include "confdefs.h"
3306 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3307 { (eval echo configure
:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3308 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3309 if test -z "$ac_err"; then
3311 eval "ac_cv_header_$ac_safe=yes"
3314 echo "configure: failed program was:" >&5
3315 cat conftest.
$ac_ext >&5
3317 eval "ac_cv_header_$ac_safe=no"
3321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3322 echo "$ac_t""yes" 1>&6
3323 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3324 cat >> confdefs.h
<<EOF
3325 #define $ac_tr_hdr 1
3329 echo "$ac_t""no" 1>&6
3333 for ac_func
in getpagesize
3335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3336 echo "configure:3337: checking for $ac_func" >&5
3337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 cat > conftest.
$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char $ac_func(); below. */
3346 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3364 if { (eval echo configure
:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3366 eval "ac_cv_func_$ac_func=yes"
3368 echo "configure: failed program was:" >&5
3369 cat conftest.
$ac_ext >&5
3371 eval "ac_cv_func_$ac_func=no"
3376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3378 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3379 cat >> confdefs.h
<<EOF
3380 #define $ac_tr_func 1
3384 echo "$ac_t""no" 1>&6
3388 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3389 echo "configure:3390: checking for working mmap" >&5
3390 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3391 echo $ac_n "(cached) $ac_c" 1>&6
3393 if test "$cross_compiling" = yes; then
3394 ac_cv_func_mmap_fixed_mapped
=no
3396 cat > conftest.
$ac_ext <<EOF
3397 #line 3398 "configure"
3398 #include "confdefs.h"
3400 /* Thanks to Mike Haertel and Jim Avera for this test.
3401 Here is a matrix of mmap possibilities:
3402 mmap private not fixed
3403 mmap private fixed at somewhere currently unmapped
3404 mmap private fixed at somewhere already mapped
3405 mmap shared not fixed
3406 mmap shared fixed at somewhere currently unmapped
3407 mmap shared fixed at somewhere already mapped
3408 For private mappings, we should verify that changes cannot be read()
3409 back from the file, nor mmap's back from the file at a different
3410 address. (There have been systems where private was not correctly
3411 implemented like the infamous i386 svr4.0, and systems where the
3412 VM page cache was not coherent with the filesystem buffer cache
3413 like early versions of FreeBSD and possibly contemporary NetBSD.)
3414 For shared mappings, we should conversely verify that changes get
3415 propogated back to all the places they're supposed to be.
3417 Grep wants private fixed already mapped.
3418 The main things grep needs to know about mmap are:
3419 * does it exist and is it safe to write into the mmap'd area
3420 * how to use it (BSD variants) */
3421 #include <sys/types.h>
3423 #include <sys/mman.h>
3425 #if HAVE_SYS_TYPES_H
3426 # include <sys/types.h>
3430 # include <stdlib.h>
3434 # include <sys/stat.h>
3438 # include <unistd.h>
3441 /* This mess was copied from the GNU getpagesize.h. */
3442 #ifndef HAVE_GETPAGESIZE
3444 /* Assume that all systems that can run configure have sys/param.h. */
3445 # ifndef HAVE_SYS_PARAM_H
3446 # define HAVE_SYS_PARAM_H 1
3449 # ifdef _SC_PAGESIZE
3450 # define getpagesize() sysconf(_SC_PAGESIZE)
3451 # else /* no _SC_PAGESIZE */
3452 # ifdef HAVE_SYS_PARAM_H
3453 # include <sys/param.h>
3454 # ifdef EXEC_PAGESIZE
3455 # define getpagesize() EXEC_PAGESIZE
3456 # else /* no EXEC_PAGESIZE */
3458 # define getpagesize() NBPG * CLSIZE
3461 # endif /* no CLSIZE */
3462 # else /* no NBPG */
3464 # define getpagesize() NBPC
3465 # else /* no NBPC */
3467 # define getpagesize() PAGESIZE
3468 # endif /* PAGESIZE */
3469 # endif /* no NBPC */
3470 # endif /* no NBPG */
3471 # endif /* no EXEC_PAGESIZE */
3472 # else /* no HAVE_SYS_PARAM_H */
3473 # define getpagesize() 8192 /* punt totally */
3474 # endif /* no HAVE_SYS_PARAM_H */
3475 # endif /* no _SC_PAGESIZE */
3477 #endif /* no HAVE_GETPAGESIZE */
3480 extern "C" { void *malloc(unsigned); }
3488 char *data, *data2, *data3;
3492 pagesize = getpagesize();
3495 * First, make a file with some known garbage in it.
3497 data = malloc(pagesize);
3500 for (i = 0; i < pagesize; ++i)
3501 *(data + i) = rand();
3503 fd = creat("conftestmmap", 0600);
3506 if (write(fd, data, pagesize) != pagesize)
3511 * Next, try to mmap the file at a fixed address which
3512 * already has something else allocated at it. If we can,
3513 * also make sure that we see the same garbage.
3515 fd = open("conftestmmap", O_RDWR);
3518 data2 = malloc(2 * pagesize);
3521 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3522 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3525 for (i = 0; i < pagesize; ++i)
3526 if (*(data + i) != *(data2 + i))
3530 * Finally, make sure that changes to the mapped area
3531 * do not percolate back to the file as seen by read().
3532 * (This is a bug on some variants of i386 svr4.0.)
3534 for (i = 0; i < pagesize; ++i)
3535 *(data2 + i) = *(data2 + i) + 1;
3536 data3 = malloc(pagesize);
3539 if (read(fd, data3, pagesize) != pagesize)
3541 for (i = 0; i < pagesize; ++i)
3542 if (*(data + i) != *(data3 + i))
3545 unlink("conftestmmap");
3550 if { (eval echo configure
:3551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3552 ac_cv_func_mmap_fixed_mapped
=yes
3554 echo "configure: failed program was:" >&5
3555 cat conftest.
$ac_ext >&5
3557 ac_cv_func_mmap_fixed_mapped
=no
3564 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3566 cat >> confdefs.h
<<\EOF
3573 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3574 unistd.h values.h sys
/param.h
3576 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3578 echo "configure:3579: checking for $ac_hdr" >&5
3579 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.
$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3587 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3588 { (eval echo configure
:3589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3589 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3590 if test -z "$ac_err"; then
3592 eval "ac_cv_header_$ac_safe=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 eval "ac_cv_header_$ac_safe=no"
3602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3604 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3605 cat >> confdefs.h
<<EOF
3606 #define $ac_tr_hdr 1
3610 echo "$ac_t""no" 1>&6
3614 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3615 __argz_count __argz_stringify __argz_next
3617 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3618 echo "configure:3619: checking for $ac_func" >&5
3619 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3620 echo $ac_n "(cached) $ac_c" 1>&6
3622 cat > conftest.
$ac_ext <<EOF
3623 #line 3624 "configure"
3624 #include "confdefs.h"
3625 /* System header to define __stub macros and hopefully few prototypes,
3626 which can conflict with char $ac_func(); below. */
3628 /* Override any gcc2 internal prototype to avoid an error. */
3629 /* We use char because int might match the return type of a gcc2
3630 builtin and then its argument prototype would still apply. */
3635 /* The GNU C library defines this for functions which it implements
3636 to always fail with ENOSYS. Some functions are actually named
3637 something starting with __ and the normal name is an alias. */
3638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3646 if { (eval echo configure
:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3648 eval "ac_cv_func_$ac_func=yes"
3650 echo "configure: failed program was:" >&5
3651 cat conftest.
$ac_ext >&5
3653 eval "ac_cv_func_$ac_func=no"
3658 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3661 cat >> confdefs.h
<<EOF
3662 #define $ac_tr_func 1
3666 echo "$ac_t""no" 1>&6
3671 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3672 for ac_func
in stpcpy
3674 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3675 echo "configure:3676: checking for $ac_func" >&5
3676 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3679 cat > conftest.
$ac_ext <<EOF
3680 #line 3681 "configure"
3681 #include "confdefs.h"
3682 /* System header to define __stub macros and hopefully few prototypes,
3683 which can conflict with char $ac_func(); below. */
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3692 /* The GNU C library defines this for functions which it implements
3693 to always fail with ENOSYS. Some functions are actually named
3694 something starting with __ and the normal name is an alias. */
3695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3703 if { (eval echo configure
:3704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3705 eval "ac_cv_func_$ac_func=yes"
3707 echo "configure: failed program was:" >&5
3708 cat conftest.
$ac_ext >&5
3710 eval "ac_cv_func_$ac_func=no"
3715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3716 echo "$ac_t""yes" 1>&6
3717 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3718 cat >> confdefs.h
<<EOF
3719 #define $ac_tr_func 1
3723 echo "$ac_t""no" 1>&6
3728 if test "${ac_cv_func_stpcpy}" = "yes"; then
3729 cat >> confdefs.h
<<\EOF
3730 #define HAVE_STPCPY 1
3735 if test $ac_cv_header_locale_h = yes; then
3736 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3737 echo "configure:3738: checking for LC_MESSAGES" >&5
3738 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3741 cat > conftest.
$ac_ext <<EOF
3742 #line 3743 "configure"
3743 #include "confdefs.h"
3749 if { (eval echo configure
:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3751 am_cv_val_LC_MESSAGES
=yes
3753 echo "configure: failed program was:" >&5
3754 cat conftest.
$ac_ext >&5
3756 am_cv_val_LC_MESSAGES
=no
3761 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3762 if test $am_cv_val_LC_MESSAGES = yes; then
3763 cat >> confdefs.h
<<\EOF
3764 #define HAVE_LC_MESSAGES 1
3769 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3770 echo "configure:3771: checking whether NLS is requested" >&5
3771 # Check whether --enable-nls or --disable-nls was given.
3772 if test "${enable_nls+set}" = set; then
3773 enableval
="$enable_nls"
3779 echo "$ac_t""$USE_NLS" 1>&6
3782 USE_INCLUDED_LIBINTL
=no
3784 if test "$USE_NLS" = "yes"; then
3785 cat >> confdefs.h
<<\EOF
3786 #define ENABLE_NLS 1
3789 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3790 echo "configure:3791: checking whether included gettext is requested" >&5
3791 # Check whether --with-included-gettext or --without-included-gettext was given.
3792 if test "${with_included_gettext+set}" = set; then
3793 withval
="$with_included_gettext"
3794 nls_cv_force_use_gnu_gettext
=$withval
3796 nls_cv_force_use_gnu_gettext
=no
3799 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3801 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3802 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3804 nls_cv_header_libgt
=
3807 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3808 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3809 echo "configure:3810: checking for libintl.h" >&5
3810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.
$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <libintl.h>
3818 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3819 { (eval echo configure
:3820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3820 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3821 if test -z "$ac_err"; then
3823 eval "ac_cv_header_$ac_safe=yes"
3826 echo "configure: failed program was:" >&5
3827 cat conftest.
$ac_ext >&5
3829 eval "ac_cv_header_$ac_safe=no"
3833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3834 echo "$ac_t""yes" 1>&6
3835 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3836 echo "configure:3837: checking for gettext in libc" >&5
3837 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 cat > conftest.
$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 #include <libintl.h>
3845 return (int) gettext ("")
3848 if { (eval echo configure
:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3850 gt_cv_func_gettext_libc
=yes
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 gt_cv_func_gettext_libc
=no
3860 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3862 if test "$gt_cv_func_gettext_libc" != "yes"; then
3863 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3864 echo "configure:3865: checking for bindtextdomain in -lintl" >&5
3865 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 ac_save_LIBS
="$LIBS"
3871 cat > conftest.
$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 /* Override any gcc2 internal prototype to avoid an error. */
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char bindtextdomain();
3883 if { (eval echo configure
:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3885 eval "ac_cv_lib_$ac_lib_var=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.
$ac_ext >&5
3890 eval "ac_cv_lib_$ac_lib_var=no"
3893 LIBS
="$ac_save_LIBS"
3896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3897 echo "$ac_t""yes" 1>&6
3898 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3899 echo "configure:3900: checking for gettext in libintl" >&5
3900 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3901 echo $ac_n "(cached) $ac_c" 1>&6
3903 cat > conftest.
$ac_ext <<EOF
3904 #line 3905 "configure"
3905 #include "confdefs.h"
3908 return (int) gettext ("")
3911 if { (eval echo configure
:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3913 gt_cv_func_gettext_libintl
=yes
3915 echo "configure: failed program was:" >&5
3916 cat conftest.
$ac_ext >&5
3918 gt_cv_func_gettext_libintl
=no
3923 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3925 echo "$ac_t""no" 1>&6
3930 if test "$gt_cv_func_gettext_libc" = "yes" \
3931 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3932 cat >> confdefs.h
<<\EOF
3933 #define HAVE_GETTEXT 1
3936 # Extract the first word of "msgfmt", so it can be a program name with args.
3937 set dummy msgfmt
; ac_word
=$2
3938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3939 echo "configure:3940: checking for $ac_word" >&5
3940 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3945 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3948 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3949 for ac_dir
in $PATH; do
3950 test -z "$ac_dir" && ac_dir
=.
3951 if test -f $ac_dir/$ac_word; then
3952 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3953 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3959 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3963 MSGFMT
="$ac_cv_path_MSGFMT"
3964 if test -n "$MSGFMT"; then
3965 echo "$ac_t""$MSGFMT" 1>&6
3967 echo "$ac_t""no" 1>&6
3969 if test "$MSGFMT" != "no"; then
3970 for ac_func
in dcgettext
3972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3973 echo "configure:3974: checking for $ac_func" >&5
3974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3977 cat > conftest.
$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 /* System header to define __stub macros and hopefully few prototypes,
3981 which can conflict with char $ac_func(); below. */
3983 /* Override any gcc2 internal prototype to avoid an error. */
3984 /* We use char because int might match the return type of a gcc2
3985 builtin and then its argument prototype would still apply. */
3990 /* The GNU C library defines this for functions which it implements
3991 to always fail with ENOSYS. Some functions are actually named
3992 something starting with __ and the normal name is an alias. */
3993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4001 if { (eval echo configure
:4002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4003 eval "ac_cv_func_$ac_func=yes"
4005 echo "configure: failed program was:" >&5
4006 cat conftest.
$ac_ext >&5
4008 eval "ac_cv_func_$ac_func=no"
4013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4016 cat >> confdefs.h
<<EOF
4017 #define $ac_tr_func 1
4021 echo "$ac_t""no" 1>&6
4025 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4026 set dummy gmsgfmt
; ac_word
=$2
4027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4028 echo "configure:4029: checking for $ac_word" >&5
4029 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4030 echo $ac_n "(cached) $ac_c" 1>&6
4034 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4037 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4040 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4042 for ac_dir
in $ac_dummy; do
4043 test -z "$ac_dir" && ac_dir
=.
4044 if test -f $ac_dir/$ac_word; then
4045 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4050 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4054 GMSGFMT
="$ac_cv_path_GMSGFMT"
4055 if test -n "$GMSGFMT"; then
4056 echo "$ac_t""$GMSGFMT" 1>&6
4058 echo "$ac_t""no" 1>&6
4061 # Extract the first word of "xgettext", so it can be a program name with args.
4062 set dummy xgettext
; ac_word
=$2
4063 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_word" >&5
4065 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4070 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4073 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4074 for ac_dir
in $PATH; do
4075 test -z "$ac_dir" && ac_dir
=.
4076 if test -f $ac_dir/$ac_word; then
4077 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4078 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4084 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4088 XGETTEXT
="$ac_cv_path_XGETTEXT"
4089 if test -n "$XGETTEXT"; then
4090 echo "$ac_t""$XGETTEXT" 1>&6
4092 echo "$ac_t""no" 1>&6
4095 cat > conftest.
$ac_ext <<EOF
4096 #line 4097 "configure"
4097 #include "confdefs.h"
4100 extern int _nl_msg_cat_cntr;
4101 return _nl_msg_cat_cntr
4104 if { (eval echo configure
:4105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4109 echo "configure: failed program was:" >&5
4110 cat conftest.
$ac_ext >&5
4121 echo "$ac_t""no" 1>&6
4126 if test "$CATOBJEXT" = "NONE"; then
4127 nls_cv_use_gnu_gettext
=yes
4131 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4132 INTLOBJS
="\$(GETTOBJS)"
4133 # Extract the first word of "msgfmt", so it can be a program name with args.
4134 set dummy msgfmt
; ac_word
=$2
4135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4136 echo "configure:4137: checking for $ac_word" >&5
4137 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4142 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4145 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4146 for ac_dir
in $PATH; do
4147 test -z "$ac_dir" && ac_dir
=.
4148 if test -f $ac_dir/$ac_word; then
4149 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4150 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4160 MSGFMT
="$ac_cv_path_MSGFMT"
4161 if test -n "$MSGFMT"; then
4162 echo "$ac_t""$MSGFMT" 1>&6
4164 echo "$ac_t""no" 1>&6
4167 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4168 set dummy gmsgfmt
; 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_GMSGFMT'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4176 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4179 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4184 for ac_dir
in $ac_dummy; do
4185 test -z "$ac_dir" && ac_dir
=.
4186 if test -f $ac_dir/$ac_word; then
4187 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4192 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4196 GMSGFMT
="$ac_cv_path_GMSGFMT"
4197 if test -n "$GMSGFMT"; then
4198 echo "$ac_t""$GMSGFMT" 1>&6
4200 echo "$ac_t""no" 1>&6
4203 # Extract the first word of "xgettext", so it can be a program name with args.
4204 set dummy xgettext
; ac_word
=$2
4205 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4206 echo "configure:4207: checking for $ac_word" >&5
4207 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4208 echo $ac_n "(cached) $ac_c" 1>&6
4212 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4216 for ac_dir
in $PATH; do
4217 test -z "$ac_dir" && ac_dir
=.
4218 if test -f $ac_dir/$ac_word; then
4219 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4220 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4226 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4230 XGETTEXT
="$ac_cv_path_XGETTEXT"
4231 if test -n "$XGETTEXT"; then
4232 echo "$ac_t""$XGETTEXT" 1>&6
4234 echo "$ac_t""no" 1>&6
4238 USE_INCLUDED_LIBINTL
=yes
4242 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4244 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4245 nls_cv_header_intl
=libintl.h
4246 nls_cv_header_libgt
=libgettext.h
4249 if test "$XGETTEXT" != ":"; then
4250 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4253 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4258 # We need to process the po/ directory.
4262 nls_cv_header_intl
=libintl.h
4263 nls_cv_header_libgt
=libgettext.h
4266 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4267 # because some of the sources are only built for this goal.
4268 if test "$PACKAGE" = gettext; then
4270 USE_INCLUDED_LIBINTL
=yes
4273 for lang
in $ALL_LINGUAS; do
4274 GMOFILES
="$GMOFILES $lang.gmo"
4275 POFILES
="$POFILES $lang.po"
4291 if test "x$CATOBJEXT" != "x"; then
4292 if test "x$ALL_LINGUAS" = "x"; then
4295 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4296 echo "configure:4297: checking for catalogs to be installed" >&5
4298 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4299 case "$ALL_LINGUAS" in
4300 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4303 LINGUAS
=$NEW_LINGUAS
4304 echo "$ac_t""$LINGUAS" 1>&6
4307 if test -n "$LINGUAS"; then
4308 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4312 if test $ac_cv_header_locale_h = yes; then
4313 INCLUDE_LOCALE_H
="#include <locale.h>"
4316 /* The system does not provide the header <locale.h>. Take care yourself. */"
4320 if test -f $srcdir/po2tbl.
sed.
in; then
4321 if test "$CATOBJEXT" = ".cat"; then
4322 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4323 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4324 echo "configure:4325: checking for linux/version.h" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.
$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 #include <linux/version.h>
4333 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4334 { (eval echo configure
:4335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4335 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4336 if test -z "$ac_err"; then
4338 eval "ac_cv_header_$ac_safe=yes"
4341 echo "configure: failed program was:" >&5
4342 cat conftest.
$ac_ext >&5
4344 eval "ac_cv_header_$ac_safe=no"
4348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4349 echo "$ac_t""yes" 1>&6
4352 echo "$ac_t""no" 1>&6
4357 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4359 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4360 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4363 if test "$PACKAGE" = "gettext"; then
4373 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4379 if test -f $srcdir/po
/POTFILES.
in; then
4380 test -d po || mkdir po
4381 if test "x$srcdir" != "x."; then
4382 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4383 posrcprefix
="$srcdir/"
4385 posrcprefix
="../$srcdir/"
4391 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4392 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4396 # Permit host specific settings.
4397 .
${srcdir}/configure.
host
4400 # Find a good install program. We prefer a C program (faster),
4401 # so one script is as good as another. But avoid the broken or
4402 # incompatible versions:
4403 # SysV /etc/install, /usr/sbin/install
4404 # SunOS /usr/etc/install
4405 # IRIX /sbin/install
4407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4410 # ./install, which can be erroneously created by make from ./install.sh.
4411 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4412 echo "configure:4413: checking for a BSD compatible install" >&5
4413 if test -z "$INSTALL"; then
4414 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4418 for ac_dir
in $PATH; do
4419 # Account for people who put trailing slashes in PATH elements.
4421 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4423 # OSF1 and SCO ODT 3.0 have their own names for install.
4424 # Don't use installbsd from OSF since it installs stuff as root
4426 for ac_prog
in ginstall scoinst
install; do
4427 if test -f $ac_dir/$ac_prog; then
4428 if test $ac_prog = install &&
4429 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4430 # AIX install. It has an incompatible calling convention.
4433 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4444 if test "${ac_cv_path_install+set}" = set; then
4445 INSTALL
="$ac_cv_path_install"
4447 # As a last resort, use the slow shell script. We don't cache a
4448 # path for INSTALL within a source directory, because that will
4449 # break other packages using the cache if that directory is
4450 # removed, or if the path is relative.
4451 INSTALL
="$ac_install_sh"
4454 echo "$ac_t""$INSTALL" 1>&6
4456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4457 # It thinks the first close brace ends the variable substitution.
4458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4462 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4465 BFD_HOST_64BIT_LONG
=0
4466 BFD_HOST_64_BIT_DEFINED
=0
4469 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4470 BFD_HOST_64BIT_LONG
=1
4471 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4472 BFD_HOST_64_BIT_DEFINED
=1
4473 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4474 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4481 # Put a plausible default for CC_FOR_BUILD in Makefile.
4482 if test -z "$CC_FOR_BUILD"; then
4483 if test "x$cross_compiling" = "xno"; then
4484 CC_FOR_BUILD
='$(CC)'
4490 # Also set EXEEXT_FOR_BUILD.
4491 if test "x$cross_compiling" = "xno"; then
4492 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4494 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4495 echo "configure:4496: checking for build system executable suffix" >&5
4496 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4497 echo $ac_n "(cached) $ac_c" 1>&6
4500 echo 'int main () { return 0; }' > conftest.c
4501 bfd_cv_build_exeext
=
4502 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4503 for file in conftest.
*; do
4505 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4506 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4510 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4513 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4515 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4519 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4521 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4523 echo "configure:4524: checking for $ac_hdr" >&5
4524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4527 cat > conftest.
$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4532 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4533 { (eval echo configure
:4534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4534 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4535 if test -z "$ac_err"; then
4537 eval "ac_cv_header_$ac_safe=yes"
4540 echo "configure: failed program was:" >&5
4541 cat conftest.
$ac_ext >&5
4543 eval "ac_cv_header_$ac_safe=no"
4547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4548 echo "$ac_t""yes" 1>&6
4549 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4550 cat >> confdefs.h
<<EOF
4551 #define $ac_tr_hdr 1
4555 echo "$ac_t""no" 1>&6
4559 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4561 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_hdr" >&5
4564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 cat > conftest.
$ac_ext <<EOF
4568 #line 4569 "configure"
4569 #include "confdefs.h"
4572 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4573 { (eval echo configure
:4574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4574 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4575 if test -z "$ac_err"; then
4577 eval "ac_cv_header_$ac_safe=yes"
4580 echo "configure: failed program was:" >&5
4581 cat conftest.
$ac_ext >&5
4583 eval "ac_cv_header_$ac_safe=no"
4587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4588 echo "$ac_t""yes" 1>&6
4589 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4590 cat >> confdefs.h
<<EOF
4591 #define $ac_tr_hdr 1
4595 echo "$ac_t""no" 1>&6
4599 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4600 echo "configure:4601: checking whether time.h and sys/time.h may both be included" >&5
4601 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 cat > conftest.
$ac_ext <<EOF
4605 #line 4606 "configure"
4606 #include "confdefs.h"
4607 #include <sys/types.h>
4608 #include <sys/time.h>
4614 if { (eval echo configure
:4615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4616 ac_cv_header_time
=yes
4618 echo "configure: failed program was:" >&5
4619 cat conftest.
$ac_ext >&5
4621 ac_cv_header_time
=no
4626 echo "$ac_t""$ac_cv_header_time" 1>&6
4627 if test $ac_cv_header_time = yes; then
4628 cat >> confdefs.h
<<\EOF
4629 #define TIME_WITH_SYS_TIME 1
4635 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4637 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4638 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4639 echo "configure:4640: checking for $ac_hdr that defines DIR" >&5
4640 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4641 echo $ac_n "(cached) $ac_c" 1>&6
4643 cat > conftest.
$ac_ext <<EOF
4644 #line 4645 "configure"
4645 #include "confdefs.h"
4646 #include <sys/types.h>
4652 if { (eval echo configure
:4653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4654 eval "ac_cv_header_dirent_$ac_safe=yes"
4656 echo "configure: failed program was:" >&5
4657 cat conftest.
$ac_ext >&5
4659 eval "ac_cv_header_dirent_$ac_safe=no"
4663 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4664 echo "$ac_t""yes" 1>&6
4665 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4666 cat >> confdefs.h
<<EOF
4667 #define $ac_tr_hdr 1
4669 ac_header_dirent
=$ac_hdr; break
4671 echo "$ac_t""no" 1>&6
4674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4675 if test $ac_header_dirent = dirent.h
; then
4676 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4677 echo "configure:4678: checking for opendir in -ldir" >&5
4678 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 ac_save_LIBS
="$LIBS"
4684 cat > conftest.
$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4687 /* Override any gcc2 internal prototype to avoid an error. */
4688 /* We use char because int might match the return type of a gcc2
4689 builtin and then its argument prototype would still apply. */
4696 if { (eval echo configure
:4697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4698 eval "ac_cv_lib_$ac_lib_var=yes"
4700 echo "configure: failed program was:" >&5
4701 cat conftest.
$ac_ext >&5
4703 eval "ac_cv_lib_$ac_lib_var=no"
4706 LIBS
="$ac_save_LIBS"
4709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4710 echo "$ac_t""yes" 1>&6
4713 echo "$ac_t""no" 1>&6
4717 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4718 echo "configure:4719: checking for opendir in -lx" >&5
4719 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 ac_save_LIBS
="$LIBS"
4725 cat > conftest.
$ac_ext <<EOF
4726 #line 4727 "configure"
4727 #include "confdefs.h"
4728 /* Override any gcc2 internal prototype to avoid an error. */
4729 /* We use char because int might match the return type of a gcc2
4730 builtin and then its argument prototype would still apply. */
4737 if { (eval echo configure
:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4739 eval "ac_cv_lib_$ac_lib_var=yes"
4741 echo "configure: failed program was:" >&5
4742 cat conftest.
$ac_ext >&5
4744 eval "ac_cv_lib_$ac_lib_var=no"
4747 LIBS
="$ac_save_LIBS"
4750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4751 echo "$ac_t""yes" 1>&6
4754 echo "$ac_t""no" 1>&6
4759 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4761 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4762 echo "configure:4763: checking for $ac_func" >&5
4763 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4764 echo $ac_n "(cached) $ac_c" 1>&6
4766 cat > conftest.
$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 /* System header to define __stub macros and hopefully few prototypes,
4770 which can conflict with char $ac_func(); below. */
4772 /* Override any gcc2 internal prototype to avoid an error. */
4773 /* We use char because int might match the return type of a gcc2
4774 builtin and then its argument prototype would still apply. */
4779 /* The GNU C library defines this for functions which it implements
4780 to always fail with ENOSYS. Some functions are actually named
4781 something starting with __ and the normal name is an alias. */
4782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4790 if { (eval echo configure
:4791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4792 eval "ac_cv_func_$ac_func=yes"
4794 echo "configure: failed program was:" >&5
4795 cat conftest.
$ac_ext >&5
4797 eval "ac_cv_func_$ac_func=no"
4802 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4803 echo "$ac_t""yes" 1>&6
4804 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4805 cat >> confdefs.h
<<EOF
4806 #define $ac_tr_func 1
4810 echo "$ac_t""no" 1>&6
4817 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4818 cat >> confdefs.h
<<\EOF
4819 #define USE_BINARY_FOPEN 1
4824 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4825 echo "configure:4826: checking whether strstr must be declared" >&5
4826 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4829 cat > conftest.
$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4834 #ifdef HAVE_STRING_H
4837 #ifdef HAVE_STRINGS_H
4838 #include <strings.h>
4841 #ifdef HAVE_STDLIB_H
4844 #ifdef HAVE_UNISTD_H
4848 char *(*pfn) = (char *(*)) strstr
4851 if { (eval echo configure
:4852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4853 bfd_cv_decl_needed_strstr
=no
4855 echo "configure: failed program was:" >&5
4856 cat conftest.
$ac_ext >&5
4858 bfd_cv_decl_needed_strstr
=yes
4863 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4864 if test $bfd_cv_decl_needed_strstr = yes; then
4865 cat >> confdefs.h
<<\EOF
4866 #define NEED_DECLARATION_STRSTR 1
4871 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4872 echo "configure:4873: checking whether malloc must be declared" >&5
4873 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4874 echo $ac_n "(cached) $ac_c" 1>&6
4876 cat > conftest.
$ac_ext <<EOF
4877 #line 4878 "configure"
4878 #include "confdefs.h"
4881 #ifdef HAVE_STRING_H
4884 #ifdef HAVE_STRINGS_H
4885 #include <strings.h>
4888 #ifdef HAVE_STDLIB_H
4891 #ifdef HAVE_UNISTD_H
4895 char *(*pfn) = (char *(*)) malloc
4898 if { (eval echo configure
:4899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4900 bfd_cv_decl_needed_malloc
=no
4902 echo "configure: failed program was:" >&5
4903 cat conftest.
$ac_ext >&5
4905 bfd_cv_decl_needed_malloc
=yes
4910 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4911 if test $bfd_cv_decl_needed_malloc = yes; then
4912 cat >> confdefs.h
<<\EOF
4913 #define NEED_DECLARATION_MALLOC 1
4918 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4919 echo "configure:4920: checking whether realloc must be declared" >&5
4920 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4923 cat > conftest.
$ac_ext <<EOF
4924 #line 4925 "configure"
4925 #include "confdefs.h"
4928 #ifdef HAVE_STRING_H
4931 #ifdef HAVE_STRINGS_H
4932 #include <strings.h>
4935 #ifdef HAVE_STDLIB_H
4938 #ifdef HAVE_UNISTD_H
4942 char *(*pfn) = (char *(*)) realloc
4945 if { (eval echo configure
:4946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4947 bfd_cv_decl_needed_realloc
=no
4949 echo "configure: failed program was:" >&5
4950 cat conftest.
$ac_ext >&5
4952 bfd_cv_decl_needed_realloc
=yes
4957 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4958 if test $bfd_cv_decl_needed_realloc = yes; then
4959 cat >> confdefs.h
<<\EOF
4960 #define NEED_DECLARATION_REALLOC 1
4965 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4966 echo "configure:4967: checking whether free must be declared" >&5
4967 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4968 echo $ac_n "(cached) $ac_c" 1>&6
4970 cat > conftest.
$ac_ext <<EOF
4971 #line 4972 "configure"
4972 #include "confdefs.h"
4975 #ifdef HAVE_STRING_H
4978 #ifdef HAVE_STRINGS_H
4979 #include <strings.h>
4982 #ifdef HAVE_STDLIB_H
4985 #ifdef HAVE_UNISTD_H
4989 char *(*pfn) = (char *(*)) free
4992 if { (eval echo configure
:4993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4994 bfd_cv_decl_needed_free
=no
4996 echo "configure: failed program was:" >&5
4997 cat conftest.
$ac_ext >&5
4999 bfd_cv_decl_needed_free
=yes
5004 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
5005 if test $bfd_cv_decl_needed_free = yes; then
5006 cat >> confdefs.h
<<\EOF
5007 #define NEED_DECLARATION_FREE 1
5012 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5013 echo "configure:5014: checking whether getenv must be declared" >&5
5014 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.
$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5022 #ifdef HAVE_STRING_H
5025 #ifdef HAVE_STRINGS_H
5026 #include <strings.h>
5029 #ifdef HAVE_STDLIB_H
5032 #ifdef HAVE_UNISTD_H
5036 char *(*pfn) = (char *(*)) getenv
5039 if { (eval echo configure
:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5041 bfd_cv_decl_needed_getenv
=no
5043 echo "configure: failed program was:" >&5
5044 cat conftest.
$ac_ext >&5
5046 bfd_cv_decl_needed_getenv
=yes
5051 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5052 if test $bfd_cv_decl_needed_getenv = yes; then
5053 cat >> confdefs.h
<<\EOF
5054 #define NEED_DECLARATION_GETENV 1
5060 # If we are configured native, pick a core file support file.
5064 if test "${target}" = "${host}"; then
5069 alpha
*-*-linux-gnu*)
5070 COREFILE
=trad-core.lo
5071 TRAD_HEADER
='"hosts/alphalinux.h"'
5073 alpha
*-*-netbsd* | alpha
*-*-openbsd*)
5074 COREFILE
=netbsd-core.lo
5076 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5077 arm-
*-freebsd*) COREFILE
='' ;;
5078 arm-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5079 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5080 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5081 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5082 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5083 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5084 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5086 COREFILE
=trad-core.lo
5087 TRAD_HEADER
='"hosts/i370linux.h"'
5090 i
[3456]86-sequent-bsd*)
5091 COREFILE
=trad-core.lo
5092 TRAD_HEADER
='"hosts/symmetry.h"'
5094 i
[3456]86-sequent-sysv4*) ;;
5095 i
[3456]86-sequent-sysv*)
5096 COREFILE
=trad-core.lo
5097 TRAD_HEADER
='"hosts/symmetry.h"'
5102 i
[3456]86-*-bsd* | i
[34567]86-*-freebsd[123] | i
[34567]86-*-freebsd[123]\.
* | i
[34567]86-*-freebsd4\.
[01234]* | i
[34567]86-*-freebsd*aout
*)
5103 COREFILE
=trad-core.lo
5104 TRAD_HEADER
='"hosts/i386bsd.h"'
5106 i
[3456]86-*-freebsd*)
5108 TRAD_HEADER
='"hosts/i386bsd.h"'
5110 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
5111 COREFILE
=netbsd-core.lo
5113 i
[3456]86-esix-sysv3*)
5114 COREFILE
=trad-core.lo
5115 TRAD_HEADER
='"hosts/esix.h"'
5117 i
[3456]86-*-sco3.2v5
*)
5118 COREFILE
=sco5-core.lo
5120 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
5121 COREFILE
=trad-core.lo
5122 TRAD_HEADER
='"hosts/i386sco.h"'
5125 COREFILE
=trad-core.lo
5126 TRAD_HEADER
='"hosts/i386mach3.h"'
5128 i
[3456]86-*-linux-gnu*)
5129 COREFILE
=trad-core.lo
5130 TRAD_HEADER
='"hosts/i386linux.h"'
5132 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
5133 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
5134 i860-
*-mach3* | i860-
*-osf1*)
5135 COREFILE
=trad-core.lo
5136 TRAD_HEADER
='"hosts/i860mach3.h"'
5139 COREFILE
=trad-core.lo
5140 TRAD_HEADER
='"hosts/mipsbsd.h"'
5143 COREFILE
=trad-core.lo
5144 TRAD_HEADER
='"hosts/mipsmach3.h"'
5146 mips-
*-netbsd* | mips
*-*-openbsd*)
5147 COREFILE
=netbsd-core.lo
5150 COREFILE
=trad-core.lo
5151 TRAD_HEADER
='"hosts/decstation.h"'
5153 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5154 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5155 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5157 COREFILE
=trad-core.lo
5158 TRAD_HEADER
='"hosts/mipsmach3.h"'
5161 mips-
*-sysv* | mips-
*-riscos*)
5162 COREFILE
=trad-core.lo
5163 TRAD_HEADER
='"hosts/riscos.h"'
5166 COREFILE
=trad-core.lo
5167 TRAD_HEADER
='"hosts/news-mips.h"'
5170 COREFILE
=trad-core.lo
5171 TRAD_HEADER
='"hosts/dpx2.h"'
5173 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5175 COREFILE
=trad-core.lo
5176 TRAD_HEADER
='"hosts/hp300bsd.h"'
5179 COREFILE
=trad-core.lo
5180 TRAD_HEADER
='"hosts/m68klinux.h"'
5182 m68
*-motorola-sysv*)
5183 COREFILE
=trad-core.lo
5184 TRAD_HEADER
='"hosts/delta68.h"'
5187 COREFILE
=trad-core.lo
5188 TRAD_HEADER
='"hosts/news.h"'
5190 m68
*-*-netbsd* | m68
*-*-openbsd*)
5191 COREFILE
=netbsd-core.lo
5194 COREFILE
=trad-core.lo
5195 TRAD_HEADER
='"hosts/m68kaux.h"'
5199 m88
*-motorola-sysv*)
5200 COREFILE
=ptrace-core.lo
5203 COREFILE
=trad-core.lo
5204 TRAD_HEADER
='"hosts/m88kmach3.h"'
5207 COREFILE
=trad-core.lo
5208 TRAD_HEADER
='"hosts/pc532mach.h"'
5210 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5211 COREFILE
=netbsd-core.lo
5214 COREFILE
=lynx-core.lo
5216 rs6000-
*-aix5.
* | powerpc-
*-aix5.
*)
5217 COREFILE
=rs6000-core.lo
5218 COREFLAG
="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5220 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5221 COREFILE
=rs6000-core.lo
5222 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5223 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5224 # have c_impl as a member of struct core_dumpx
5225 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5226 echo "configure:5227: checking for c_impl in struct core_dumpx" >&5
5227 cat > conftest.
$ac_ext <<EOF
5228 #line 5229 "configure"
5229 #include "confdefs.h"
5232 struct core_dumpx c; c.c_impl = 0;
5235 if { (eval echo configure
:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5237 cat >> confdefs.h
<<\EOF
5238 #define HAVE_ST_C_IMPL 1
5241 echo "$ac_t""yes" 1>&6
5243 echo "configure: failed program was:" >&5
5244 cat conftest.
$ac_ext >&5
5246 echo "$ac_t""no" 1>&6
5250 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5251 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5252 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5253 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5255 powerpc-
*-freebsd*) COREFILE
='' ;;
5256 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5257 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5258 s390
*-*-*) COREFILE
=trad-core.lo
;;
5259 sh
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5260 sparc-
*-netbsd* | sparc
*-*-openbsd*)
5261 COREFILE
=netbsd-core.lo
5264 COREFILE
=trad-core.lo
5265 TRAD_HEADER
='"hosts/tahoe.h"'
5267 vax-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5269 COREFILE
=trad-core.lo
5270 TRAD_HEADER
='"hosts/vaxult2.h"'
5273 COREFILE
=trad-core.lo
5274 TRAD_HEADER
='"hosts/vaxult2.h"'
5277 COREFILE
=trad-core.lo
5278 TRAD_HEADER
='"hosts/vaxbsd.h"'
5280 x86_64-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5284 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5285 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5286 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5287 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5288 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5289 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5290 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5291 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5292 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5293 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5294 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5297 # ELF corefile support has several flavors, but all of
5298 # them use something called <sys/procfs.h>
5299 for ac_hdr
in sys
/procfs.h
5301 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5303 echo "configure:5304: checking for $ac_hdr" >&5
5304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5305 echo $ac_n "(cached) $ac_c" 1>&6
5307 cat > conftest.
$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5312 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5313 { (eval echo configure
:5314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5314 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5315 if test -z "$ac_err"; then
5317 eval "ac_cv_header_$ac_safe=yes"
5320 echo "configure: failed program was:" >&5
5321 cat conftest.
$ac_ext >&5
5323 eval "ac_cv_header_$ac_safe=no"
5327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6
5329 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5330 cat >> confdefs.h
<<EOF
5331 #define $ac_tr_hdr 1
5335 echo "$ac_t""no" 1>&6
5339 if test "$ac_cv_header_sys_procfs_h" = yes; then
5340 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5341 echo "configure:5342: checking for prstatus_t in sys/procfs.h" >&5
5342 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.
$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5350 #include <sys/procfs.h>
5355 if { (eval echo configure
:5356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5359 echo "configure: failed program was:" >&5
5360 cat conftest.
$ac_ext >&5
5362 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5368 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5369 cat >> confdefs.h
<<\EOF
5370 #define HAVE_PRSTATUS_T 1
5374 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5376 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5377 echo "configure:5378: checking for prstatus32_t in sys/procfs.h" >&5
5378 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5386 #include <sys/procfs.h>
5391 if { (eval echo configure
:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5393 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5395 echo "configure: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5398 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5404 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5405 cat >> confdefs.h
<<\EOF
5406 #define HAVE_PRSTATUS32_T 1
5410 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5412 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5413 echo "configure:5414: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5414 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.
$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5422 #include <sys/procfs.h>
5424 prstatus_t avar; void* aref = (void*) &avar.pr_who
5427 if { (eval echo configure
:5428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5429 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5434 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5440 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5441 cat >> confdefs.h
<<\EOF
5442 #define HAVE_PRSTATUS_T_PR_WHO 1
5446 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5448 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5449 echo "configure:5450: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5450 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 cat > conftest.
$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 #include <sys/procfs.h>
5460 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5463 if { (eval echo configure
:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5465 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5467 echo "configure: failed program was:" >&5
5468 cat conftest.
$ac_ext >&5
5470 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5476 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5477 cat >> confdefs.h
<<\EOF
5478 #define HAVE_PRSTATUS32_T_PR_WHO 1
5482 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5484 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5485 echo "configure:5486: checking for pstatus_t in sys/procfs.h" >&5
5486 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 cat > conftest.
$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5494 #include <sys/procfs.h>
5499 if { (eval echo configure
:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5501 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5503 echo "configure: failed program was:" >&5
5504 cat conftest.
$ac_ext >&5
5506 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5512 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5513 cat >> confdefs.h
<<\EOF
5514 #define HAVE_PSTATUS_T 1
5518 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5520 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5521 echo "configure:5522: checking for pxstatus_t in sys/procfs.h" >&5
5522 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.
$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5530 #include <sys/procfs.h>
5535 if { (eval echo configure
:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5539 echo "configure: failed program was:" >&5
5540 cat conftest.
$ac_ext >&5
5542 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5548 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5549 cat >> confdefs.h
<<\EOF
5550 #define HAVE_PXSTATUS_T 1
5554 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5556 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5557 echo "configure:5558: checking for pstatus32_t in sys/procfs.h" >&5
5558 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.
$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5566 #include <sys/procfs.h>
5571 if { (eval echo configure
:5572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5573 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5575 echo "configure: failed program was:" >&5
5576 cat conftest.
$ac_ext >&5
5578 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5584 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5585 cat >> confdefs.h
<<\EOF
5586 #define HAVE_PSTATUS32_T 1
5590 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5592 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5593 echo "configure:5594: checking for prpsinfo_t in sys/procfs.h" >&5
5594 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.
$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5602 #include <sys/procfs.h>
5607 if { (eval echo configure
:5608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5609 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5611 echo "configure: failed program was:" >&5
5612 cat conftest.
$ac_ext >&5
5614 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5620 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5621 cat >> confdefs.h
<<\EOF
5622 #define HAVE_PRPSINFO_T 1
5626 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5628 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5629 echo "configure:5630: checking for prpsinfo32_t in sys/procfs.h" >&5
5630 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 cat > conftest.
$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5638 #include <sys/procfs.h>
5643 if { (eval echo configure
:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5647 echo "configure: failed program was:" >&5
5648 cat conftest.
$ac_ext >&5
5650 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5656 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5657 cat >> confdefs.h
<<\EOF
5658 #define HAVE_PRPSINFO32_T 1
5662 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5664 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5665 echo "configure:5666: checking for psinfo_t in sys/procfs.h" >&5
5666 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.
$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5674 #include <sys/procfs.h>
5679 if { (eval echo configure
:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5681 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5683 echo "configure: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5686 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5692 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5693 cat >> confdefs.h
<<\EOF
5694 #define HAVE_PSINFO_T 1
5698 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5700 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5701 echo "configure:5702: checking for psinfo32_t in sys/procfs.h" >&5
5702 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.
$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5710 #include <sys/procfs.h>
5715 if { (eval echo configure
:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5717 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5728 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5729 cat >> confdefs.h
<<\EOF
5730 #define HAVE_PSINFO32_T 1
5734 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5736 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5737 echo "configure:5738: checking for lwpstatus_t in sys/procfs.h" >&5
5738 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 cat > conftest.
$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5746 #include <sys/procfs.h>
5751 if { (eval echo configure
:5752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5753 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5755 echo "configure: failed program was:" >&5
5756 cat conftest.
$ac_ext >&5
5758 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5764 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5765 cat >> confdefs.h
<<\EOF
5766 #define HAVE_LWPSTATUS_T 1
5770 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5772 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5773 echo "configure:5774: checking for lwpxstatus_t in sys/procfs.h" >&5
5774 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.
$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5782 #include <sys/procfs.h>
5787 if { (eval echo configure
:5788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5789 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5791 echo "configure: failed program was:" >&5
5792 cat conftest.
$ac_ext >&5
5794 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5800 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5801 cat >> confdefs.h
<<\EOF
5802 #define HAVE_LWPXSTATUS_T 1
5806 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5808 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5809 echo "configure:5810: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5810 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5811 echo $ac_n "(cached) $ac_c" 1>&6
5813 cat > conftest.
$ac_ext <<EOF
5814 #line 5815 "configure"
5815 #include "confdefs.h"
5818 #include <sys/procfs.h>
5820 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5823 if { (eval echo configure
:5824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5825 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5827 echo "configure: failed program was:" >&5
5828 cat conftest.
$ac_ext >&5
5830 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5836 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5837 cat >> confdefs.h
<<\EOF
5838 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5842 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5844 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5845 echo "configure:5846: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5846 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6
5849 cat > conftest.
$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5854 #include <sys/procfs.h>
5856 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5859 if { (eval echo configure
:5860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5861 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5863 echo "configure: failed program was:" >&5
5864 cat conftest.
$ac_ext >&5
5866 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5872 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5873 cat >> confdefs.h
<<\EOF
5874 #define HAVE_LWPSTATUS_T_PR_REG 1
5878 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5880 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5881 echo "configure:5882: checking for win32_pstatus_t in sys/procfs.h" >&5
5882 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5883 echo $ac_n "(cached) $ac_c" 1>&6
5885 cat > conftest.
$ac_ext <<EOF
5886 #line 5887 "configure"
5887 #include "confdefs.h"
5890 #include <sys/procfs.h>
5892 win32_pstatus_t avar
5895 if { (eval echo configure
:5896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5897 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5899 echo "configure: failed program was:" >&5
5900 cat conftest.
$ac_ext >&5
5902 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5908 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5909 cat >> confdefs.h
<<\EOF
5910 #define HAVE_WIN32_PSTATUS_T 1
5914 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5920 if test -n "$TRAD_HEADER"; then
5921 cat >> confdefs.h
<<EOF
5922 #define TRAD_HEADER $TRAD_HEADER
5927 # Horrible hacks to build DLLs on Windows.
5932 if test "$enable_shared" = "yes"; then
5933 WIN32LDFLAGS
="-no-undefined"
5934 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5938 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
5942 # Linux/MIPS uses PIC by default.
5943 if test "$enable_shared" = "yes"; then
5944 WIN32LIBADD
="-L../libiberty -liberty"
5948 x
=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | tail -1`
5949 if test -n "$x"; then
5950 WIN32LIBADD
="-L../libiberty/pic -liberty"
5961 # Canonicalize the secondary target names.
5962 if test -n "$enable_targets" ; then
5963 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5965 result
=`$ac_config_sub $targ 2>/dev/null`
5966 if test -n "$result" ; then
5967 canon_targets
="$canon_targets $result"
5969 # Allow targets that config.sub doesn't recognize, like "all".
5970 canon_targets
="$canon_targets $targ"
5980 for targ
in $target $canon_targets
5982 if test "x$targ" = "xall"; then
5985 .
$srcdir/config.bfd
5986 if test "x$targ" = "x$target"; then
5989 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5990 selarchs
="$selarchs $targ_archs"
5991 TDEFINES
="$TDEFINES $targ_cflags"
5996 # This processing still needs to be done if we're to decide properly whether
5997 # 64-bit support needs to be compiled in. Currently, it will be included if
5998 # the default or any other explicitly requested target requires it; it
5999 # will not be included on a 32-bit host if no 64-bit target is requested, and
6000 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
6003 # uniq the default and selected vectors in all the configured targets.
6005 for i
in $selvecs ; do
6014 # uniq the architectures in all the configured targets.
6016 for i
in $selarchs ; do
6024 # Target backend .o files.
6027 elf
="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6033 # This list is alphabetized to make it easy to compare
6034 # with the two vector lists in targets.c. For the same reason,
6035 # use one entry per line, even though this leads to long lines.
6036 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
6037 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
6038 aix5coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6039 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
6040 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6041 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
6042 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
6043 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
6044 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
6045 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6046 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6047 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6048 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6049 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6050 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
6051 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
6052 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6053 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6054 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6055 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6056 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
6057 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
6058 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6059 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size
=64 ;;
6060 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
6061 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6062 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6063 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6064 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6065 bfd_elf32_bigarmqnx_vec
) tb
="$tb elfarmqnx-nabi.lo elfarm-nabi.lo elf32.lo $elf" ;;
6066 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6067 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6068 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
6069 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
6070 bfd_elf32_dlx_big_vec
) tb
="$tb elf32-dlx.lo elf32.lo $elf" ;;
6071 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
6072 bfd_elf32_frv_vec
) tb
="$tb elf32-frv.lo elf32.lo $elf" ;;
6073 bfd_elf32_h8300_vec
) tb
="$tb elf32-h8300.lo elf32.lo $elf" ;;
6074 bfd_elf32_hppa_linux_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6075 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
6076 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
6077 bfd_elf32_i386_freebsd_vec
) tb
="$tb elf32-i386-fbsd.lo elf32.lo $elf" ;;
6078 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
6079 bfd_elf32_i386qnx_vec
) tb
="$tb elf32-i386qnx.lo elf32.lo $elf" ;;
6080 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6081 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
6082 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
6083 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
6084 bfd_elf32_ia64_hpux_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf";;
6085 bfd_elf32_ip2k_vec
) tb
="$tb elf32-ip2k.lo elf32.lo $elf" ;;
6086 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
6087 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
6088 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6089 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6090 bfd_elf32_littlearmqnx_vec
) tb
="$tb elfarmqnx-nabi.lo elfarm-nabi.lo elf32.lo $elf" ;;
6091 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6092 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
6093 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
6094 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
6095 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
6096 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
6097 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6098 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
6099 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
6100 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
6101 bfd_elf32_nbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6102 bfd_elf32_nlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6103 bfd_elf32_ntradbigmips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6104 bfd_elf32_ntradlittlemips_vec
) tb
="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6105 bfd_elf32_openrisc_vec
) tb
="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6106 bfd_elf32_or32_big_vec
) tb
="$tb elf32-or32.lo elf32.lo $elf" ;;
6107 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6108 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
6109 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6110 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
6111 bfd_elf32_powerpcleqnx_vec
) tb
="$tb elf32-ppcqnx.lo elf32-ppc.lo elf32.lo $elf" ;;
6112 bfd_elf32_powerpcqnx_vec
) tb
="$tb elf32-ppcqnx.lo elf32-ppc.lo elf32.lo $elf" ;;
6113 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
6114 # FIXME: We include cofflink.lo not because it's needed for
6115 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6116 # which needs it but does not list it. Should be fixed in right place.
6117 bfd_elf32_sh64_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6118 bfd_elf32_sh64l_vec
) tb
="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6119 bfd_elf32_sh64lin_vec
) tb
="$tb elf32-sh64-lin.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6120 bfd_elf32_sh64blin_vec
) tb
="$tb elf32-sh64-lin.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size
=64 ;;
6121 bfd_elf32_sh64lnbsd_vec
) tb
="$tb elf32-sh64-nbsd.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6122 bfd_elf32_sh64nbsd_vec
) tb
="$tb elf32-sh64-nbsd.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6123 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6124 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6125 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6126 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6127 bfd_elf32_shlnbsd_vec
) tb
="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6128 bfd_elf32_shlqnx_vec
) tb
="$tb elf32-shqnx.lo elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6129 bfd_elf32_shnbsd_vec
) tb
="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6130 bfd_elf32_shqnx_vec
) tb
="$tb elf32-shqnx.lo elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6131 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
6132 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6133 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6134 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
6135 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
6136 bfd_elf32_vax_vec
) tb
="$tb elf32-vax.lo elf32.lo $elf" ;;
6137 bfd_elf32_xstormy16_vec
) tb
="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6138 bfd_elf64_alpha_freebsd_vec
) tb
="$tb elf64-alpha-fbsd.lo elf64.lo $elf"; target_size
=64 ;;
6139 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"; target_size
=64 ;;
6140 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6141 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6142 bfd_elf64_hppa_linux_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6143 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"; target_size
=64 ;;
6144 bfd_elf64_ia64_aix_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6145 bfd_elf64_ia64_aix_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6146 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6147 bfd_elf64_ia64_hpux_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6148 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"; target_size
=64 ;;
6149 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6150 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6151 bfd_elf64_mmix_vec
) tb
="$tb elf64-mmix.lo elf64.lo $elf" target_size
=64 ;;
6152 bfd_elf64_powerpc_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size
=64 ;;
6153 bfd_elf64_powerpcle_vec
) tb
="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size
=64 ;;
6154 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"; target_size
=64 ;;
6155 bfd_elf64_sh64_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6156 bfd_elf64_sh64l_vec
) tb
="$tb elf64-sh64.lo elf64.lo $elf" target_size
=64 ;;
6157 bfd_elf64_sh64lin_vec
) tb
="$tb elf64-sh64-lin.lo elf64.lo $elf" target_size
=64 ;;
6158 bfd_elf64_sh64blin_vec
) tb
="$tb elf64-sh64-lin.lo elf64.lo $elf" target_size
=64 ;;
6159 bfd_elf64_sh64lnbsd_vec
) tb
="$tb elf64-sh64-nbsd.lo elf64.lo $elf" target_size
=64 ;;
6160 bfd_elf64_sh64nbsd_vec
) tb
="$tb elf64-sh64-nbsd.lo elf64.lo $elf" target_size
=64 ;;
6161 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"; target_size
=64 ;;
6162 bfd_elf64_tradbigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6163 bfd_elf64_tradlittlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size
=64 ;;
6164 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"; target_size
=64 ;;
6165 bfd_mmo_vec
) tb
="$tb mmo.lo" target_size
=64 ;;
6166 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6167 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6168 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6169 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6170 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6171 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"; target_size
=64 ;;
6172 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6173 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6174 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6175 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size
=64 ;;
6176 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6177 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6178 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6179 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6180 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6181 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6182 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6183 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6184 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6185 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6186 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6187 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6188 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6189 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6190 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6191 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6192 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6193 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6194 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6195 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6196 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6197 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6198 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6199 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6200 ieee_vec
) tb
="$tb ieee.lo" ;;
6201 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6202 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6203 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6204 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6205 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6206 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6207 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6208 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6209 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6210 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6211 m88kmach3_vec
) tb
="$tb m88kmach3.lo aout32.lo" ;;
6212 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6213 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6214 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6215 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6216 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6217 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6218 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6219 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size
=64 ;;
6220 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6221 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6222 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6223 or32coff_big_vec
) tb
="$tb coff-or32.lo cofflink.lo" ;;
6224 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6225 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6226 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6227 pmac_xcoff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6228 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6229 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6230 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size
=64 ;;
6231 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6232 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6233 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6234 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6235 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6236 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6237 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6238 som_vec
) tb
="$tb som.lo" ;;
6239 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6240 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6241 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6242 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6243 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6244 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6245 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6246 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6247 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6248 tic4x_coff0_vec
) tb
="$tb coff-tic4x.lo" ;;
6249 tic4x_coff0_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6250 tic4x_coff1_vec
) tb
="$tb coff-tic4x.lo" ;;
6251 tic4x_coff1_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6252 tic4x_coff2_vec
) tb
="$tb coff-tic4x.lo" ;;
6253 tic4x_coff2_beh_vec
) tb
="$tb coff-tic4x.lo" ;;
6254 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6255 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6256 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6257 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6258 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6259 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6260 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6261 vaxnetbsd_vec
) tb
="$tb vaxnetbsd.lo aout32.lo" ;;
6262 vax1knetbsd_vec
) tb
="$tb vax1knetbsd.lo aout32.lo" ;;
6263 vaxbsd_vec
) tb
="$tb vaxbsd.lo aout32.lo" ;;
6264 versados_vec
) tb
="$tb versados.lo" ;;
6265 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size
=64 ;;
6266 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6267 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6268 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6269 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6271 # These appear out of order in targets.c
6272 srec_vec
) tb
="$tb srec.lo" ;;
6273 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6274 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6275 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6276 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6279 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6282 if test ${target_size} = 64; then
6285 if test x
"${vec}" = x
"${defvec}"; then
6286 bfd_default_target_size
=${target_size}
6290 # Target architecture .o files.
6291 # A couple of CPUs use shorter file names to avoid problems on DOS
6293 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6295 # Weed out duplicate .o files.
6317 if test x
${all_targets} = xtrue
; then
6318 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6319 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6323 else # all_targets is true
6324 # Only set these if they will be nonempty, for the clever echo.
6326 test -n "$selvecs" &&
6327 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6328 test -n "$selvecs" &&
6329 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6330 test -n "$selarchs" &&
6331 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6332 fi # all_targets is true
6334 case ${host64}-${target64}-${want64} in
6337 bfd_libs
='$(BFD64_LIBS) $(BFD32_LIBS)'
6338 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6339 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6340 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6341 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6343 if test -n "$GCC" ; then
6345 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6346 echo "configure:6347: checking for gcc version with buggy 64-bit support" >&5
6347 # Add more tests for gcc versions with non-working 64-bit support here.
6348 cat > conftest.
$ac_ext <<EOF
6349 #line 6350 "configure"
6350 #include "confdefs.h"
6351 :__GNUC__:__GNUC_MINOR__:__i386__:
6353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354 egrep ": 2 : 91 : 1 :" >/dev
/null
2>&1; then
6357 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6360 echo "$ac_t""no" 1>&6
6364 if test $bad_64bit_gcc = yes ; then
6365 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6371 bfd_libs
='$(BFD32_LIBS)'
6372 all_backends
='$(BFD32_BACKENDS)'
6384 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6385 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6386 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6387 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6390 for ac_hdr
in stdlib.h unistd.h sys
/stat.h sys
/types.h
6392 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6394 echo "configure:6395: checking for $ac_hdr" >&5
6395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6398 cat > conftest.
$ac_ext <<EOF
6399 #line 6400 "configure"
6400 #include "confdefs.h"
6403 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6404 { (eval echo configure
:6405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6405 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6406 if test -z "$ac_err"; then
6408 eval "ac_cv_header_$ac_safe=yes"
6411 echo "configure: failed program was:" >&5
6412 cat conftest.
$ac_ext >&5
6414 eval "ac_cv_header_$ac_safe=no"
6418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6419 echo "$ac_t""yes" 1>&6
6420 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6421 cat >> confdefs.h
<<EOF
6422 #define $ac_tr_hdr 1
6426 echo "$ac_t""no" 1>&6
6430 for ac_func
in getpagesize
6432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6433 echo "configure:6434: checking for $ac_func" >&5
6434 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6435 echo $ac_n "(cached) $ac_c" 1>&6
6437 cat > conftest.
$ac_ext <<EOF
6438 #line 6439 "configure"
6439 #include "confdefs.h"
6440 /* System header to define __stub macros and hopefully few prototypes,
6441 which can conflict with char $ac_func(); below. */
6443 /* Override any gcc2 internal prototype to avoid an error. */
6444 /* We use char because int might match the return type of a gcc2
6445 builtin and then its argument prototype would still apply. */
6450 /* The GNU C library defines this for functions which it implements
6451 to always fail with ENOSYS. Some functions are actually named
6452 something starting with __ and the normal name is an alias. */
6453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6461 if { (eval echo configure
:6462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6463 eval "ac_cv_func_$ac_func=yes"
6465 echo "configure: failed program was:" >&5
6466 cat conftest.
$ac_ext >&5
6468 eval "ac_cv_func_$ac_func=no"
6473 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6474 echo "$ac_t""yes" 1>&6
6475 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6476 cat >> confdefs.h
<<EOF
6477 #define $ac_tr_func 1
6481 echo "$ac_t""no" 1>&6
6485 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6486 echo "configure:6487: checking for working mmap" >&5
6487 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6488 echo $ac_n "(cached) $ac_c" 1>&6
6490 if test "$cross_compiling" = yes; then
6491 ac_cv_func_mmap_fixed_mapped
=no
6493 cat > conftest.
$ac_ext <<EOF
6494 #line 6495 "configure"
6495 #include "confdefs.h"
6497 /* Thanks to Mike Haertel and Jim Avera for this test.
6498 Here is a matrix of mmap possibilities:
6499 mmap private not fixed
6500 mmap private fixed at somewhere currently unmapped
6501 mmap private fixed at somewhere already mapped
6502 mmap shared not fixed
6503 mmap shared fixed at somewhere currently unmapped
6504 mmap shared fixed at somewhere already mapped
6505 For private mappings, we should verify that changes cannot be read()
6506 back from the file, nor mmap's back from the file at a different
6507 address. (There have been systems where private was not correctly
6508 implemented like the infamous i386 svr4.0, and systems where the
6509 VM page cache was not coherent with the filesystem buffer cache
6510 like early versions of FreeBSD and possibly contemporary NetBSD.)
6511 For shared mappings, we should conversely verify that changes get
6512 propogated back to all the places they're supposed to be.
6514 Grep wants private fixed already mapped.
6515 The main things grep needs to know about mmap are:
6516 * does it exist and is it safe to write into the mmap'd area
6517 * how to use it (BSD variants) */
6518 #include <sys/types.h>
6520 #include <sys/mman.h>
6522 #if HAVE_SYS_TYPES_H
6523 # include <sys/types.h>
6527 # include <stdlib.h>
6531 # include <sys/stat.h>
6535 # include <unistd.h>
6538 /* This mess was copied from the GNU getpagesize.h. */
6539 #ifndef HAVE_GETPAGESIZE
6541 /* Assume that all systems that can run configure have sys/param.h. */
6542 # ifndef HAVE_SYS_PARAM_H
6543 # define HAVE_SYS_PARAM_H 1
6546 # ifdef _SC_PAGESIZE
6547 # define getpagesize() sysconf(_SC_PAGESIZE)
6548 # else /* no _SC_PAGESIZE */
6549 # ifdef HAVE_SYS_PARAM_H
6550 # include <sys/param.h>
6551 # ifdef EXEC_PAGESIZE
6552 # define getpagesize() EXEC_PAGESIZE
6553 # else /* no EXEC_PAGESIZE */
6555 # define getpagesize() NBPG * CLSIZE
6558 # endif /* no CLSIZE */
6559 # else /* no NBPG */
6561 # define getpagesize() NBPC
6562 # else /* no NBPC */
6564 # define getpagesize() PAGESIZE
6565 # endif /* PAGESIZE */
6566 # endif /* no NBPC */
6567 # endif /* no NBPG */
6568 # endif /* no EXEC_PAGESIZE */
6569 # else /* no HAVE_SYS_PARAM_H */
6570 # define getpagesize() 8192 /* punt totally */
6571 # endif /* no HAVE_SYS_PARAM_H */
6572 # endif /* no _SC_PAGESIZE */
6574 #endif /* no HAVE_GETPAGESIZE */
6577 extern "C" { void *malloc(unsigned); }
6585 char *data, *data2, *data3;
6589 pagesize = getpagesize();
6592 * First, make a file with some known garbage in it.
6594 data = malloc(pagesize);
6597 for (i = 0; i < pagesize; ++i)
6598 *(data + i) = rand();
6600 fd = creat("conftestmmap", 0600);
6603 if (write(fd, data, pagesize) != pagesize)
6608 * Next, try to mmap the file at a fixed address which
6609 * already has something else allocated at it. If we can,
6610 * also make sure that we see the same garbage.
6612 fd = open("conftestmmap", O_RDWR);
6615 data2 = malloc(2 * pagesize);
6618 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6619 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6620 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6622 for (i = 0; i < pagesize; ++i)
6623 if (*(data + i) != *(data2 + i))
6627 * Finally, make sure that changes to the mapped area
6628 * do not percolate back to the file as seen by read().
6629 * (This is a bug on some variants of i386 svr4.0.)
6631 for (i = 0; i < pagesize; ++i)
6632 *(data2 + i) = *(data2 + i) + 1;
6633 data3 = malloc(pagesize);
6636 if (read(fd, data3, pagesize) != pagesize)
6638 for (i = 0; i < pagesize; ++i)
6639 if (*(data + i) != *(data3 + i))
6642 unlink("conftestmmap");
6647 if { (eval echo configure
:6648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6649 ac_cv_func_mmap_fixed_mapped
=yes
6651 echo "configure: failed program was:" >&5
6652 cat conftest.
$ac_ext >&5
6654 ac_cv_func_mmap_fixed_mapped
=no
6661 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6663 cat >> confdefs.h
<<\EOF
6669 for ac_func
in madvise mprotect
6671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6672 echo "configure:6673: checking for $ac_func" >&5
6673 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6674 echo $ac_n "(cached) $ac_c" 1>&6
6676 cat > conftest.
$ac_ext <<EOF
6677 #line 6678 "configure"
6678 #include "confdefs.h"
6679 /* System header to define __stub macros and hopefully few prototypes,
6680 which can conflict with char $ac_func(); below. */
6682 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6689 /* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6700 if { (eval echo configure
:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6702 eval "ac_cv_func_$ac_func=yes"
6704 echo "configure: failed program was:" >&5
6705 cat conftest.
$ac_ext >&5
6707 eval "ac_cv_func_$ac_func=no"
6712 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6713 echo "$ac_t""yes" 1>&6
6714 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6715 cat >> confdefs.h
<<EOF
6716 #define $ac_tr_func 1
6720 echo "$ac_t""no" 1>&6
6724 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6725 true
+yes ) cat >> confdefs.h
<<\EOF
6731 rm -f doc
/config.status
6733 cat > confcache
<<\EOF
6734 # This file is a shell script that caches the results of configure
6735 # tests run on this system so they can be shared between configure
6736 # scripts and configure runs. It is not useful on other systems.
6737 # If it contains results you don't want to keep, you may remove or edit it.
6739 # By default, configure uses ./config.cache as the cache file,
6740 # creating it if it does not exist already. You can give configure
6741 # the --cache-file=FILE option to use a different cache file; that is
6742 # what configure does when it calls configure scripts in
6743 # subdirectories, so they share the cache.
6744 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6745 # config.status only pays attention to the cache file if you give it the
6746 # --recheck option to rerun configure.
6749 # The following way of writing the cache mishandles newlines in values,
6750 # but we know of no workaround that is simple, portable, and efficient.
6751 # So, don't put newlines in cache variables' values.
6752 # Ultrix sh set writes to stderr and can't be redirected directly,
6753 # and sets the high bit in the cache file unless we assign to the vars.
6755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6757 # `set' does not quote correctly, so add quotes (double-quote substitution
6758 # turns \\\\ into \\, and sed turns \\ into \).
6760 -e "s/'/'\\\\''/g" \
6761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6764 # `set' quotes correctly as required by POSIX, so do not add quotes.
6765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6768 if cmp -s $cache_file confcache
; then
6771 if test -w $cache_file; then
6772 echo "updating cache $cache_file"
6773 cat confcache
> $cache_file
6775 echo "not updating unwritable cache $cache_file"
6780 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6782 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6783 # Let make expand exec_prefix.
6784 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6786 # Any assignment to VPATH causes Sun make to only execute
6787 # the first set of double-colon rules, so remove it if not needed.
6788 # If there is a colon in the path, we need to keep it.
6789 if test "x$srcdir" = x.
; then
6790 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6793 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6795 DEFS
=-DHAVE_CONFIG_H
6797 # Without the "./", some shells look in PATH for config.status.
6798 : ${CONFIG_STATUS=./config.status}
6800 echo creating
$CONFIG_STATUS
6801 rm -f $CONFIG_STATUS
6802 cat > $CONFIG_STATUS <<EOF
6804 # Generated automatically by configure.
6805 # Run this file to recreate the current configuration.
6806 # This directory was configured as follows,
6807 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6809 # $0 $ac_configure_args
6811 # Compiler output produced by configure, useful for debugging
6812 # configure, is in ./config.log if it exists.
6814 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6817 case "\$ac_option" in
6818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6819 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6820 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6821 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6822 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6824 -help | --help | --hel | --he | --h)
6825 echo "\$ac_cs_usage"; exit 0 ;;
6826 *) echo "\$ac_cs_usage"; exit 1 ;;
6830 ac_given_srcdir=$srcdir
6831 ac_given_INSTALL="$INSTALL"
6833 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
6835 cat >> $CONFIG_STATUS <<EOF
6837 # Protect against being on the right side of a sed subst in config.status.
6838 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6839 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6843 s%@CFLAGS@%$CFLAGS%g
6844 s%@CPPFLAGS@%$CPPFLAGS%g
6845 s%@CXXFLAGS@%$CXXFLAGS%g
6846 s%@FFLAGS@%$FFLAGS%g
6848 s%@LDFLAGS@%$LDFLAGS%g
6850 s%@exec_prefix@%$exec_prefix%g
6851 s%@prefix@%$prefix%g
6852 s%@program_transform_name@%$program_transform_name%g
6853 s%@bindir@%$bindir%g
6854 s%@sbindir@%$sbindir%g
6855 s%@libexecdir@%$libexecdir%g
6856 s%@datadir@%$datadir%g
6857 s%@sysconfdir@%$sysconfdir%g
6858 s%@sharedstatedir@%$sharedstatedir%g
6859 s%@localstatedir@%$localstatedir%g
6860 s%@libdir@%$libdir%g
6861 s%@includedir@%$includedir%g
6862 s%@oldincludedir@%$oldincludedir%g
6863 s%@infodir@%$infodir%g
6864 s%@mandir@%$mandir%g
6866 s%@host_alias@%$host_alias%g
6867 s%@host_cpu@%$host_cpu%g
6868 s%@host_vendor@%$host_vendor%g
6869 s%@host_os@%$host_os%g
6870 s%@target@%$target%g
6871 s%@target_alias@%$target_alias%g
6872 s%@target_cpu@%$target_cpu%g
6873 s%@target_vendor@%$target_vendor%g
6874 s%@target_os@%$target_os%g
6876 s%@build_alias@%$build_alias%g
6877 s%@build_cpu@%$build_cpu%g
6878 s%@build_vendor@%$build_vendor%g
6879 s%@build_os@%$build_os%g
6881 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6882 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6883 s%@INSTALL_DATA@%$INSTALL_DATA%g
6884 s%@PACKAGE@%$PACKAGE%g
6885 s%@VERSION@%$VERSION%g
6886 s%@ACLOCAL@%$ACLOCAL%g
6887 s%@AUTOCONF@%$AUTOCONF%g
6888 s%@AUTOMAKE@%$AUTOMAKE%g
6889 s%@AUTOHEADER@%$AUTOHEADER%g
6890 s%@MAKEINFO@%$MAKEINFO%g
6891 s%@SET_MAKE@%$SET_MAKE%g
6892 s%@bfd_version@%$bfd_version%g
6893 s%@bfd_version_string@%$bfd_version_string%g
6895 s%@RANLIB@%$RANLIB%g
6897 s%@OBJEXT@%$OBJEXT%g
6898 s%@EXEEXT@%$EXEEXT%g
6900 s%@LIBTOOL@%$LIBTOOL%g
6901 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6902 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6903 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6905 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
6906 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
6907 s%@bfdlibdir@%$bfdlibdir%g
6908 s%@bfdincludedir@%$bfdincludedir%g
6910 s%@ALLOCA@%$ALLOCA%g
6911 s%@USE_NLS@%$USE_NLS%g
6912 s%@MSGFMT@%$MSGFMT%g
6913 s%@GMSGFMT@%$GMSGFMT%g
6914 s%@XGETTEXT@%$XGETTEXT%g
6915 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6916 s%@CATALOGS@%$CATALOGS%g
6917 s%@CATOBJEXT@%$CATOBJEXT%g
6918 s%@DATADIRNAME@%$DATADIRNAME%g
6919 s%@GMOFILES@%$GMOFILES%g
6920 s%@INSTOBJEXT@%$INSTOBJEXT%g
6921 s%@INTLDEPS@%$INTLDEPS%g
6922 s%@INTLLIBS@%$INTLLIBS%g
6923 s%@INTLOBJS@%$INTLOBJS%g
6924 s%@POFILES@%$POFILES%g
6926 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6928 s%@GT_YES@%$GT_YES%g
6929 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6931 s%@HDEFINES@%$HDEFINES%g
6932 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6933 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6934 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6935 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6936 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6937 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6938 s%@COREFILE@%$COREFILE%g
6939 s%@COREFLAG@%$COREFLAG%g
6940 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6941 s%@WIN32LIBADD@%$WIN32LIBADD%g
6942 s%@TDEFINES@%$TDEFINES%g
6943 s%@wordsize@%$wordsize%g
6944 s%@bfd_libs@%$bfd_libs%g
6945 s%@all_backends@%$all_backends%g
6946 s%@bfd_backends@%$bfd_backends%g
6947 s%@bfd_machines@%$bfd_machines%g
6948 s%@bfd_default_target_size@%$bfd_default_target_size%g
6949 s%@tdefaults@%$tdefaults%g
6954 cat >> $CONFIG_STATUS <<\EOF
6956 # Split the substitutions into bite-sized pieces for seds with
6957 # small command number limits, like on Digital OSF/1 and HP-UX.
6958 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6959 ac_file
=1 # Number of current file.
6960 ac_beg
=1 # First line for current file.
6961 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6964 while $ac_more_lines; do
6965 if test $ac_beg -gt 1; then
6966 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6968 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6970 if test ! -s conftest.s
$ac_file; then
6972 rm -f conftest.s
$ac_file
6974 if test -z "$ac_sed_cmds"; then
6975 ac_sed_cmds
="sed -f conftest.s$ac_file"
6977 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6979 ac_file
=`expr $ac_file + 1`
6981 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6984 if test -z "$ac_sed_cmds"; then
6989 cat >> $CONFIG_STATUS <<EOF
6991 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in"}
6993 cat >> $CONFIG_STATUS <<\EOF
6994 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6997 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6998 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6999 *) ac_file_in
="${ac_file}.in" ;;
7002 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7004 # Remove last slash and all that follows it. Not all systems have dirname.
7005 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7006 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7007 # The file is in a subdirectory.
7008 test ! -d "$ac_dir" && mkdir
"$ac_dir"
7009 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7010 # A "../" for each directory in $ac_dir_suffix.
7011 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7013 ac_dir_suffix
= ac_dots
=
7016 case "$ac_given_srcdir" in
7018 if test -z "$ac_dots"; then top_srcdir
=.
7019 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7020 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7022 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7023 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7026 case "$ac_given_INSTALL" in
7027 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7028 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7031 echo creating
"$ac_file"
7033 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7035 *Makefile
*) ac_comsub
="1i\\
7036 # $configure_input" ;;
7040 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7042 s%@configure_input@%$configure_input%g
7043 s%@srcdir@%$srcdir%g
7044 s%@top_srcdir@%$top_srcdir%g
7045 s%@INSTALL@%$INSTALL%g
7046 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
7050 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7051 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7053 # ac_d sets the value in "#define NAME VALUE" lines.
7054 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7055 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7058 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7059 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7060 ac_uB
='\([ ]\)%\1#\2define\3'
7063 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7064 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7065 ac_eB
='$%\1#\2define\3'
7069 if test "${CONFIG_HEADERS+set}" != set; then
7071 cat >> $CONFIG_STATUS <<EOF
7072 CONFIG_HEADERS="config.h:config.in"
7074 cat >> $CONFIG_STATUS <<\EOF
7076 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7079 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7080 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7081 *) ac_file_in
="${ac_file}.in" ;;
7084 echo creating
$ac_file
7086 rm -f conftest.frag conftest.
in conftest.out
7087 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7088 cat $ac_file_inputs > conftest.
in
7092 # Transform confdefs.h into a sed script conftest.vals that substitutes
7093 # the proper values into config.h.in to produce config.h. And first:
7094 # Protect against being on the right side of a sed subst in config.status.
7095 # Protect against being in an unquoted here document in config.status.
7097 cat > conftest.hdr
<<\EOF
7100 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7104 sed -n -f conftest.hdr confdefs.h > conftest.vals
7107 # This sed command replaces #undef with comments. This is necessary, for
7108 # example, in the case of _POSIX_SOURCE, which is predefined and required
7109 # on some systems where configure will not decide to define it.
7110 cat >> conftest.vals <<\EOF
7111 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7114 # Break up conftest.vals because some shells have a limit on
7115 # the size of here documents, and old seds have small limits too.
7120 ac_lines=`grep -c . conftest.vals
`
7121 # grep -c gives empty output for an empty file on some AIX systems.
7122 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7123 # Write a limited-size here document to conftest.frag.
7124 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7125 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7127 sed -f conftest.frag conftest.in > conftest.out
7129 mv conftest.out conftest.in
7131 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7133 mv conftest.tail conftest.vals
7137 cat >> $CONFIG_STATUS <<\EOF
7138 rm -f conftest.frag conftest.h
7139 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7140 cat conftest.in >> conftest.h
7142 if cmp -s $ac_file conftest.h 2>/dev/null; then
7143 echo "$ac_file is unchanged"
7146 # Remove last slash and all that follows it. Not all systems have dirname.
7147 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
7148 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7149 # The file is in a subdirectory.
7150 test ! -d "$ac_dir" && mkdir "$ac_dir"
7153 mv conftest.h $ac_file
7158 cat >> $CONFIG_STATUS <<EOF
7162 cat >> $CONFIG_STATUS <<\EOF
7163 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7164 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7167 chmod +x $CONFIG_STATUS
7168 rm -fr confdefs* $ac_clean_files
7169 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1