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 bfd_version_date=`sed -e 's/.*DATE //' < ${srcdir}/version.h`
1210 if test x${is_release} = x; then
1211 bfd_version_string="\"${VERSION} ${bfd_version_date}\""
1217 if test $host != $build; then
1218 ac_tool_prefix=${host_alias}-
1223 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1224 set dummy ${ac_tool_prefix}ar; ac_word=$2
1225 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1226 echo "configure:1227: checking for $ac_word" >&5
1227 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1228 echo $ac_n "(cached) $ac_c" 1>&6
1230 if test -n "$AR"; then
1231 ac_cv_prog_AR="$AR" # Let the user override the test.
1233 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1235 for ac_dir in $ac_dummy; do
1236 test -z "$ac_dir" && ac_dir=.
1237 if test -f $ac_dir/$ac_word; then
1238 ac_cv_prog_AR="${ac_tool_prefix}ar"
1243 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1247 if test -n "$AR"; then
1248 echo "$ac_t""$AR" 1>&6
1250 echo "$ac_t""no" 1>&6
1255 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1258 echo "configure:1259: checking for $ac_word" >&5
1259 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 if test -n "$RANLIB"; then
1263 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1267 for ac_dir in $ac_dummy; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1277 RANLIB="$ac_cv_prog_RANLIB"
1278 if test -n "$RANLIB"; then
1279 echo "$ac_t""$RANLIB" 1>&6
1281 echo "$ac_t""no" 1>&6
1285 if test -z "$ac_cv_prog_RANLIB"; then
1286 if test -n "$ac_tool_prefix"; then
1287 # Extract the first word of "ranlib", so it can be a program name with args.
1288 set dummy ranlib; ac_word=$2
1289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1290 echo "configure:1291: checking for $ac_word" >&5
1291 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1292 echo $ac_n "(cached) $ac_c" 1>&6
1294 if test -n "$RANLIB"; then
1295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1299 for ac_dir in $ac_dummy; do
1300 test -z "$ac_dir" && ac_dir=.
1301 if test -f $ac_dir/$ac_word; then
1302 ac_cv_prog_RANLIB="ranlib"
1307 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1310 RANLIB="$ac_cv_prog_RANLIB"
1311 if test -n "$RANLIB"; then
1312 echo "$ac_t""$RANLIB" 1>&6
1314 echo "$ac_t""no" 1>&6
1323 # Check whether --enable-shared or --disable-shared was given.
1324 if test "${enable_shared+set}" = set; then
1325 enableval="$enable_shared"
1326 p=${PACKAGE-default}
1328 yes) enable_shared=yes ;;
1329 no) enable_shared=no ;;
1332 # Look at the argument we got. We use all the common list separators.
1333 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1334 for pkg in $enableval; do
1335 if test "X$pkg" = "X$p"; then
1347 # Check whether --enable-static or --disable-static was given.
1348 if test "${enable_static+set}" = set; then
1349 enableval="$enable_static"
1350 p=${PACKAGE-default}
1352 yes) enable_static=yes ;;
1353 no) enable_static=no ;;
1356 # Look at the argument we got. We use all the common list separators.
1357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1358 for pkg in $enableval; do
1359 if test "X$pkg" = "X$p"; then
1370 # Check whether --enable-fast-install or --disable-fast-install was given.
1371 if test "${enable_fast_install+set}" = set; then
1372 enableval="$enable_fast_install"
1373 p=${PACKAGE-default}
1375 yes) enable_fast_install=yes ;;
1376 no) enable_fast_install=no ;;
1378 enable_fast_install=no
1379 # Look at the argument we got. We use all the common list separators.
1380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1381 for pkg in $enableval; do
1382 if test "X$pkg" = "X$p"; then
1383 enable_fast_install=yes
1390 enable_fast_install=yes
1393 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1394 if test "${with_gnu_ld+set}" = set; then
1395 withval="$with_gnu_ld"
1396 test "$withval" = no || with_gnu_ld=yes
1402 if test "$GCC" = yes; then
1403 # Check if gcc -print-prog-name=ld gives a path.
1404 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1405 echo "configure:1406: checking for ld used by GCC" >&5
1408 # gcc leaves a trailing carriage return which upsets mingw
1409 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1411 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1414 # Accept absolute paths.
1415 [\\/]* | [A-Za-z]:[\\/]*)
1416 re_direlt='/[^/][^/]*/\.\./'
1417 # Canonicalize the path of ld
1418 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1419 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1420 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1422 test -z "$LD" && LD="$ac_prog"
1425 # If it fails, then pretend we aren't using GCC.
1429 # If it is relative, then search for the first ld in PATH.
1433 elif test "$with_gnu_ld" = yes; then
1434 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1435 echo "configure:1436: checking for GNU ld" >&5
1437 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1438 echo "configure:1439: checking for non-GNU ld" >&5
1440 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1441 echo $ac_n "(cached) $ac_c" 1>&6
1443 if test -z "$LD"; then
1444 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1445 for ac_dir in $PATH; do
1446 test -z "$ac_dir" && ac_dir=.
1447 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1448 lt_cv_path_LD="$ac_dir/$ac_prog"
1449 # Check to see if the program is GNU ld. I'd rather use --version,
1450 # but apparently some GNU ld's only accept -v.
1451 # Break only if it was the GNU/non-GNU ld that we prefer.
1452 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1453 test "$with_gnu_ld" != no && break
1455 test "$with_gnu_ld" != yes && break
1461 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1466 if test -n "$LD"; then
1467 echo "$ac_t""$LD" 1>&6
1469 echo "$ac_t""no" 1>&6
1471 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1472 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1473 echo "configure:1474: checking if the linker ($LD) is GNU ld" >&5
1474 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1478 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1479 lt_cv_prog_gnu_ld=yes
1481 lt_cv_prog_gnu_ld=no
1485 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1486 with_gnu_ld=$lt_cv_prog_gnu_ld
1489 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1490 echo "configure:1491: checking for $LD option to reload object files" >&5
1491 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1492 echo $ac_n "(cached) $ac_c" 1>&6
1494 lt_cv_ld_reload_flag='-r'
1497 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1498 reload_flag=$lt_cv_ld_reload_flag
1499 test -n "$reload_flag" && reload_flag=" $reload_flag"
1501 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1502 echo "configure:1503: checking for BSD-compatible nm" >&5
1503 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 if test -n "$NM"; then
1507 # Let the user override the test.
1510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1511 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1512 test -z "$ac_dir" && ac_dir=.
1513 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1514 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1515 # Check to see if the nm accepts a BSD-compat flag.
1516 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1517 # nm: unknown option "B" ignored
1518 # Tru64's nm complains that /dev/null is an invalid object file
1519 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1520 lt_cv_path_NM="$tmp_nm -B"
1522 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1523 lt_cv_path_NM="$tmp_nm -p"
1526 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1527 continue # so that we can try to find one that supports BSD flags
1532 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1537 echo "$ac_t""$NM" 1>&6
1539 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1540 echo "configure:1541: checking whether ln -s works" >&5
1541 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1542 echo $ac_n "(cached) $ac_c" 1>&6
1545 if ln -s X conftestdata 2>/dev/null
1548 ac_cv_prog_LN_S="ln -s"
1553 LN_S="$ac_cv_prog_LN_S"
1554 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1555 echo "$ac_t""yes" 1>&6
1557 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1561 echo "configure:1562: checking how to recognise dependant libraries" >&5
1562 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1565 lt_cv_file_magic_cmd='$MAGIC_CMD'
1566 lt_cv_file_magic_test_file=
1567 lt_cv_deplibs_check_method='unknown'
1568 # Need to set the preceding variable on all platforms that support
1569 # interlibrary dependencies.
1570 # 'none' -- dependencies not supported.
1571 # `unknown' -- same as none, but documents that we really don't know.
1572 # 'pass_all' -- all dependencies passed with no checks.
1573 # 'test_compile' -- check by making test program.
1574 # 'file_magic [regex]' -- check by looking for files in library path
1575 # which responds to the $file_magic_cmd with a given egrep regex.
1576 # If you have `file' or equivalent on your system and you're not sure
1577 # whether `pass_all' will *always* work, you probably want this one.
1581 lt_cv_deplibs_check_method=pass_all
1585 lt_cv_deplibs_check_method=pass_all
1589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1590 lt_cv_file_magic_cmd='/usr/bin/file -L'
1591 lt_cv_file_magic_test_file=/shlib/libc.so
1594 cygwin* | mingw* |pw32*)
1595 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1596 lt_cv_file_magic_cmd='$OBJDUMP -f'
1599 darwin* | rhapsody*)
1600 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1601 lt_cv_file_magic_cmd='/usr/bin/file -L'
1603 rhapsody* | darwin1.012)
1604 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1607 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1613 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1616 # Not sure whether the presence of OpenBSD here was a mistake.
1617 # Let's accept both of them until this is cleared up.
1618 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1619 lt_cv_file_magic_cmd=/usr/bin/file
1620 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1624 lt_cv_deplibs_check_method=pass_all
1629 lt_cv_deplibs_check_method=pass_all
1635 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1636 lt_cv_file_magic_cmd=/usr/bin/file
1637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1641 lt_cv_file_magic_cmd=/usr/bin/file
1642 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1650 # this will be overridden with pass_all, but let us keep it just in case
1651 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1655 *-32|*"-32 ") libmagic=32-bit;;
1656 *-n32|*"-n32 ") libmagic=N32;;
1657 *-64|*"-64 ") libmagic=64-bit;;
1658 *) libmagic=never-match;;
1660 # this will be overridden with pass_all, but let us keep it just in case
1661 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1664 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1665 lt_cv_deplibs_check_method=pass_all
1668 # This must be Linux ELF.
1671 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1672 lt_cv_deplibs_check_method=pass_all ;;
1674 # glibc up to 2.1.1 does not perform some relocations on ARM
1675 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1677 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1681 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1682 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1684 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1690 lt_cv_file_magic_cmd=/usr/bin/file
1691 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1694 osf3* | osf4* | osf5*)
1695 # this will be overridden with pass_all, but let us keep it just in case
1696 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1697 lt_cv_file_magic_test_file=/shlib/libc.so
1698 lt_cv_deplibs_check_method=pass_all
1702 lt_cv_deplibs_check_method=pass_all
1706 lt_cv_deplibs_check_method=pass_all
1707 lt_cv_file_magic_test_file=/lib/libc.so
1710 sysv5uw[78]* | sysv4*uw2*)
1711 lt_cv_deplibs_check_method=pass_all
1714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1715 case $host_vendor in
1717 lt_cv_deplibs_check_method=pass_all
1720 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]'
1721 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1729 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1730 file_magic_cmd=$lt_cv_file_magic_cmd
1731 deplibs_check_method=$lt_cv_deplibs_check_method
1733 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1734 echo "configure:1735: checking for object suffix" >&5
1735 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1739 echo 'int i = 1;' > conftest.$ac_ext
1740 if { (eval echo configure:1741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1741 for ac_file in conftest.*; do
1744 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1748 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1753 echo "$ac_t""$ac_cv_objext" 1>&6
1754 OBJEXT=$ac_cv_objext
1755 ac_objext=$ac_cv_objext
1759 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1760 echo "configure:1761: checking for executable suffix" >&5
1761 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1768 echo 'int main () { return 0; }' > conftest.$ac_ext
1770 if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1771 for file in conftest.*; do
1773 *.c | *.o | *.obj) ;;
1774 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1778 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1781 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1786 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1787 echo "$ac_t""${ac_cv_exeext}" 1>&6
1790 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1792 # Only perform the check for file, if the check method requires it
1793 case $deplibs_check_method in
1795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1796 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1797 echo "configure:1798: checking for ${ac_tool_prefix}file" >&5
1798 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1803 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1806 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1809 ac_save_MAGIC_CMD="$MAGIC_CMD"
1810 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1811 ac_dummy="/usr/bin:$PATH"
1812 for ac_dir in $ac_dummy; do
1813 test -z "$ac_dir" && ac_dir=.
1814 if test -f $ac_dir/${ac_tool_prefix}file; then
1815 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1816 if test -n "$file_magic_test_file"; then
1817 case $deplibs_check_method in
1819 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1820 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1821 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1822 egrep "$file_magic_regex" > /dev/null; then
1827 *** Warning: the command libtool uses to detect shared libraries,
1828 *** $file_magic_cmd, produces output that libtool cannot recognize.
1829 *** The result is that libtool may fail to recognize shared libraries
1830 *** as such. This will affect the creation of libtool libraries that
1831 *** depend on shared libraries, but programs linked with such libtool
1832 *** libraries will work regardless of this problem. Nevertheless, you
1833 *** may want to report the problem to your system manager and/or to
1834 *** bug-libtool@gnu.org
1844 MAGIC_CMD="$ac_save_MAGIC_CMD"
1849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1850 if test -n "$MAGIC_CMD"; then
1851 echo "$ac_t""$MAGIC_CMD" 1>&6
1853 echo "$ac_t""no" 1>&6
1856 if test -z "$lt_cv_path_MAGIC_CMD"; then
1857 if test -n "$ac_tool_prefix"; then
1858 echo $ac_n "checking for file""... $ac_c" 1>&6
1859 echo "configure:1860: checking for file" >&5
1860 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1865 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1868 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1871 ac_save_MAGIC_CMD="$MAGIC_CMD"
1872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1873 ac_dummy="/usr/bin:$PATH"
1874 for ac_dir in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir=.
1876 if test -f $ac_dir/file; then
1877 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1878 if test -n "$file_magic_test_file"; then
1879 case $deplibs_check_method in
1881 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1883 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1884 egrep "$file_magic_regex" > /dev/null; then
1889 *** Warning: the command libtool uses to detect shared libraries,
1890 *** $file_magic_cmd, produces output that libtool cannot recognize.
1891 *** The result is that libtool may fail to recognize shared libraries
1892 *** as such. This will affect the creation of libtool libraries that
1893 *** depend on shared libraries, but programs linked with such libtool
1894 *** libraries will work regardless of this problem. Nevertheless, you
1895 *** may want to report the problem to your system manager and/or to
1896 *** bug-libtool@gnu.org
1906 MAGIC_CMD="$ac_save_MAGIC_CMD"
1911 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1912 if test -n "$MAGIC_CMD"; then
1913 echo "$ac_t""$MAGIC_CMD" 1>&6
1915 echo "$ac_t""no" 1>&6
1927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$RANLIB"; then
1935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1939 for ac_dir in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir=.
1941 if test -f $ac_dir/$ac_word; then
1942 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1949 RANLIB="$ac_cv_prog_RANLIB"
1950 if test -n "$RANLIB"; then
1951 echo "$ac_t""$RANLIB" 1>&6
1953 echo "$ac_t""no" 1>&6
1957 if test -z "$ac_cv_prog_RANLIB"; then
1958 if test -n "$ac_tool_prefix"; then
1959 # Extract the first word of "ranlib", so it can be a program name with args.
1960 set dummy ranlib; ac_word=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$RANLIB"; then
1967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1971 for ac_dir in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir=.
1973 if test -f $ac_dir/$ac_word; then
1974 ac_cv_prog_RANLIB="ranlib"
1979 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1982 RANLIB="$ac_cv_prog_RANLIB"
1983 if test -n "$RANLIB"; then
1984 echo "$ac_t""$RANLIB" 1>&6
1986 echo "$ac_t""no" 1>&6
1994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}strip; ac_word=$2
1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_word" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 if test -n "$STRIP"; then
2002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2004 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2006 for ac_dir in $ac_dummy; do
2007 test -z "$ac_dir" && ac_dir=.
2008 if test -f $ac_dir/$ac_word; then
2009 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2016 STRIP="$ac_cv_prog_STRIP"
2017 if test -n "$STRIP"; then
2018 echo "$ac_t""$STRIP" 1>&6
2020 echo "$ac_t""no" 1>&6
2024 if test -z "$ac_cv_prog_STRIP"; then
2025 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "strip", so it can be a program name with args.
2027 set dummy strip; ac_word=$2
2028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_word" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 if test -n "$STRIP"; then
2034 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2036 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2038 for ac_dir in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir=.
2040 if test -f $ac_dir/$ac_word; then
2041 ac_cv_prog_STRIP="strip"
2046 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2049 STRIP="$ac_cv_prog_STRIP"
2050 if test -n "$STRIP"; then
2051 echo "$ac_t""$STRIP" 1>&6
2053 echo "$ac_t""no" 1>&6
2062 # Check for any special flags to pass to ltconfig.
2063 libtool_flags="--cache-file=$cache_file"
2064 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2065 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2066 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2067 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2068 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2071 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2072 if test "${enable_libtool_lock+set}" = set; then
2073 enableval="$enable_libtool_lock"
2077 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2078 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2080 # Check whether --with-pic or --without-pic was given.
2081 if test "${with_pic+set}" = set; then
2088 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2089 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2091 # Some flags need to be propagated to the compiler or linker for good
2095 # Find out which ABI we are using.
2096 echo '#line 2097 "configure"' > conftest.$ac_ext
2097 if { (eval echo configure:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2098 case `/usr/bin/file conftest.$ac_objext` in
2114 # Find out which ABI we are using.
2115 echo 'int i;' > conftest.$ac_ext
2116 if { (eval echo configure:2117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2117 case "`/usr/bin/file conftest.o`" in
2130 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2131 SAVE_CFLAGS="$CFLAGS"
2132 CFLAGS="$CFLAGS -belf"
2133 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2134 echo "configure:2135: checking whether the C compiler needs -belf" >&5
2135 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2136 echo $ac_n "(cached) $ac_c" 1>&6
2140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2144 cross_compiling=$ac_cv_prog_cc_cross
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2154 if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2156 lt_cv_cc_needs_belf=yes
2158 echo "configure: failed program was:" >&5
2159 cat conftest.$ac_ext >&5
2161 lt_cv_cc_needs_belf=no
2165 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2166 ac_cpp='$CPP $CPPFLAGS'
2167 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2168 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2169 cross_compiling=$ac_cv_prog_cc_cross
2173 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2174 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2175 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2176 CFLAGS="$SAVE_CFLAGS"
2184 # Save cache, so that ltconfig can load it
2185 cat > confcache <<\EOF
2186 # This file is a shell script that caches the results of configure
2187 # tests run on this system so they can be shared between configure
2188 # scripts and configure runs. It is not useful on other systems.
2189 # If it contains results you don't want to keep, you may remove or edit it.
2191 # By default, configure uses ./config.cache as the cache file,
2192 # creating it if it does not exist already. You can give configure
2193 # the --cache-file=FILE option to use a different cache file; that is
2194 # what configure does when it calls configure scripts in
2195 # subdirectories, so they share the cache.
2196 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2197 # config.status only pays attention to the cache file if you give it the
2198 # --recheck option to rerun configure.
2201 # The following way of writing the cache mishandles newlines in values,
2202 # but we know of no workaround that is simple, portable, and efficient.
2203 # So, don't put newlines in cache variables' values.
2204 # Ultrix sh set writes to stderr and can't be redirected directly,
2205 # and sets the high bit in the cache file unless we assign to the vars.
2207 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2209 # `set' does not quote correctly, so add quotes (double-quote substitution
2210 # turns \\\\ into \\, and sed turns \\ into \).
2212 -e "s/'/'\\\\''/g" \
2213 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2216 # `set' quotes correctly as required by POSIX, so do not add quotes.
2217 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2220 if cmp -s $cache_file confcache; then
2223 if test -w $cache_file; then
2224 echo "updating cache $cache_file"
2225 cat confcache > $cache_file
2227 echo "not updating unwritable cache $cache_file"
2233 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2234 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2235 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2236 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2237 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2238 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2239 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2240 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2241 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2242 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2244 # Reload cache, that may have been modified by ltconfig
2245 if test -r "$cache_file"; then
2246 echo "loading cache $cache_file"
2249 echo "creating cache $cache_file"
2254 # This can be used to rebuild libtool when needed
2255 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2257 # Always use our own libtool.
2258 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2260 # Redirect the config.log output again, so that the ltconfig log is not
2261 # clobbered by the next message.
2262 exec 5>>./config.log
2270 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2271 if test "${enable_64_bit_bfd+set}" = set; then
2272 enableval="$enable_64_bit_bfd"
2273 case "${enableval}" in
2276 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2281 # Check whether --enable-targets or --disable-targets was given.
2282 if test "${enable_targets+set}" = set; then
2283 enableval="$enable_targets"
2284 case "${enableval}" in
2285 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2287 no) enable_targets= ;;
2288 *) enable_targets=$enableval ;;
2291 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2292 if test "${enable_commonbfdlib+set}" = set; then
2293 enableval="$enable_commonbfdlib"
2294 case "${enableval}" in
2295 yes) commonbfdlib=true ;;
2296 no) commonbfdlib=false ;;
2297 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2300 # Check whether --with-mmap or --without-mmap was given.
2301 if test "${with_mmap+set}" = set; then
2302 withval="$with_mmap"
2303 case "${withval}" in
2304 yes) want_mmap=true ;;
2305 no) want_mmap=false ;;
2306 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2312 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
2313 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2314 if test "${enable_build_warnings+set}" = set; then
2315 enableval="$enable_build_warnings"
2316 case "${enableval}" in
2318 no) build_warnings="-w";;
2319 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2320 build_warnings="${build_warnings} ${t}";;
2321 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2322 build_warnings="${t} ${build_warnings}";;
2323 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2325 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2326 echo "Setting warning flags = $build_warnings" 6>&1
2330 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2331 WARN_CFLAGS="${build_warnings}"
2339 if test -z "$target" ; then
2340 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2343 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2344 echo "configure:2345: checking whether to enable maintainer-specific portions of Makefiles" >&5
2345 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2346 if test "${enable_maintainer_mode+set}" = set; then
2347 enableval="$enable_maintainer_mode"
2348 USE_MAINTAINER_MODE=$enableval
2350 USE_MAINTAINER_MODE=no
2353 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2356 if test $USE_MAINTAINER_MODE = yes; then
2357 MAINTAINER_MODE_TRUE=
2358 MAINTAINER_MODE_FALSE='#'
2360 MAINTAINER_MODE_TRUE='#'
2361 MAINTAINER_MODE_FALSE=
2363 MAINT=$MAINTAINER_MODE_TRUE
2366 echo $ac_n "checking whether to install libbfd""... $ac_c" 1>&6
2367 echo "configure:2368: checking whether to install libbfd" >&5
2368 # Check whether --enable-install-libbfd or --disable-install-libbfd was given.
2369 if test "${enable_install_libbfd+set}" = set; then
2370 enableval="$enable_install_libbfd"
2371 install_libbfd_p=$enableval
2373 if test "${host}" = "${target}" -o "$enable_shared" = "yes"; then
2374 install_libbfd_p=yes
2380 echo "$ac_t""$install_libbfd_p" 1>&6
2383 if test $install_libbfd_p = yes; then
2384 INSTALL_LIBBFD_TRUE=
2385 INSTALL_LIBBFD_FALSE='#'
2387 INSTALL_LIBBFD_TRUE='#'
2388 INSTALL_LIBBFD_FALSE=
2390 # libbfd.a is a host library containing target dependent code
2391 bfdlibdir='$(libdir)'
2392 bfdincludedir='$(includedir)'
2393 if test "${host}" != "${target}"; then
2394 bfdlibdir='$(exec_prefix)/$(host_alias)/$(target_alias)/lib'
2395 bfdincludedir='$(exec_prefix)/$(host_alias)/$(target_alias)/include'
2403 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2404 echo "configure:2405: checking for executable suffix" >&5
2405 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2412 echo 'int main () { return 0; }' > conftest.$ac_ext
2414 if { (eval echo configure:2415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2415 for file in conftest.*; do
2417 *.c | *.o | *.obj) ;;
2418 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2422 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2425 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2430 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2431 echo "$ac_t""${ac_cv_exeext}" 1>&6
2437 bfd_default_target_size=32
2441 # Extract the first word of "gcc", so it can be a program name with args.
2442 set dummy gcc; ac_word=$2
2443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2444 echo "configure:2445: checking for $ac_word" >&5
2445 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 if test -n "$CC"; then
2449 ac_cv_prog_CC="$CC" # Let the user override the test.
2451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2453 for ac_dir in $ac_dummy; do
2454 test -z "$ac_dir" && ac_dir=.
2455 if test -f $ac_dir/$ac_word; then
2464 if test -n "$CC"; then
2465 echo "$ac_t""$CC" 1>&6
2467 echo "$ac_t""no" 1>&6
2470 if test -z "$CC"; then
2471 # Extract the first word of "cc", so it can be a program name with args.
2472 set dummy cc; ac_word=$2
2473 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2474 echo "configure:2475: checking for $ac_word" >&5
2475 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2476 echo $ac_n "(cached) $ac_c" 1>&6
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2484 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if test -f $ac_dir/$ac_word; then
2487 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2488 ac_prog_rejected=yes
2496 if test $ac_prog_rejected = yes; then
2497 # We found a bogon in the path, so make sure we never use it.
2498 set dummy $ac_cv_prog_CC
2500 if test $# -gt 0; then
2501 # We chose a different compiler from the bogus one.
2502 # However, it has the same basename, so the bogon will be chosen
2503 # first if we set CC to just the basename; use the full file name.
2505 set dummy "$ac_dir/$ac_word" "$@"
2513 if test -n "$CC"; then
2514 echo "$ac_t""$CC" 1>&6
2516 echo "$ac_t""no" 1>&6
2519 if test -z "$CC"; then
2520 case "`uname -s`" in
2522 # Extract the first word of "cl", so it can be a program name with args.
2523 set dummy cl; ac_word=$2
2524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_word" >&5
2526 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 if test -n "$CC"; then
2530 ac_cv_prog_CC="$CC" # Let the user override the test.
2532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2534 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 if test -f $ac_dir/$ac_word; then
2545 if test -n "$CC"; then
2546 echo "$ac_t""$CC" 1>&6
2548 echo "$ac_t""no" 1>&6
2553 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2556 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2557 echo "configure:2558: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2561 ac_cpp='$CPP $CPPFLAGS'
2562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2564 cross_compiling=$ac_cv_prog_cc_cross
2566 cat > conftest.$ac_ext << EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2573 if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2574 ac_cv_prog_cc_works=yes
2575 # If we can't run a trivial program, we are probably using a cross compiler.
2576 if (./conftest; exit) 2>/dev/null; then
2577 ac_cv_prog_cc_cross=no
2579 ac_cv_prog_cc_cross=yes
2582 echo "configure: failed program was:" >&5
2583 cat conftest.$ac_ext >&5
2584 ac_cv_prog_cc_works=no
2588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2591 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2592 cross_compiling=$ac_cv_prog_cc_cross
2594 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2595 if test $ac_cv_prog_cc_works = no; then
2596 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2598 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2599 echo "configure:2600: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2600 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2601 cross_compiling=$ac_cv_prog_cc_cross
2603 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2604 echo "configure:2605: checking whether we are using GNU C" >&5
2605 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 cat > conftest.c <<EOF
2613 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2620 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2622 if test $ac_cv_prog_gcc = yes; then
2628 ac_test_CFLAGS="${CFLAGS+set}"
2629 ac_save_CFLAGS="$CFLAGS"
2631 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2632 echo "configure:2633: checking whether ${CC-cc} accepts -g" >&5
2633 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2634 echo $ac_n "(cached) $ac_c" 1>&6
2636 echo 'void f(){}' > conftest.c
2637 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2646 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2647 if test "$ac_test_CFLAGS" = set; then
2648 CFLAGS="$ac_save_CFLAGS"
2649 elif test $ac_cv_prog_cc_g = yes; then
2650 if test "$GCC" = yes; then
2656 if test "$GCC" = yes; then
2664 ALL_LINGUAS="fr tr ja es sv"
2665 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2666 echo "configure:2667: checking how to run the C preprocessor" >&5
2667 # On Suns, sometimes $CPP names a directory.
2668 if test -n "$CPP" && test -d "$CPP"; then
2671 if test -z "$CPP"; then
2672 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 # This must be in double quotes, not single quotes, because CPP may get
2676 # substituted into the Makefile and "${CC-cc}" will confuse make.
2678 # On the NeXT, cc -E runs the code through the compiler's parser,
2679 # not just through cpp.
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2686 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2687 { (eval echo configure:2688: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2688 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2689 if test -z "$ac_err"; then
2693 echo "configure: failed program was:" >&5
2694 cat conftest.$ac_ext >&5
2696 CPP="${CC-cc} -E -traditional-cpp"
2697 cat > conftest.$ac_ext <<EOF
2698 #line 2699 "configure"
2699 #include "confdefs.h"
2703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2706 if test -z "$ac_err"; then
2710 echo "configure: failed program was:" >&5
2711 cat conftest.$ac_ext >&5
2713 CPP="${CC-cc} -nologo -E"
2714 cat > conftest.$ac_ext <<EOF
2715 #line 2716 "configure"
2716 #include "confdefs.h"
2720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2721 { (eval echo configure:2722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2723 if test -z "$ac_err"; then
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2737 ac_cv_prog_CPP="$CPP"
2739 CPP="$ac_cv_prog_CPP"
2741 ac_cv_prog_CPP="$CPP"
2743 echo "$ac_t""$CPP" 1>&6
2745 # Extract the first word of "ranlib", so it can be a program name with args.
2746 set dummy ranlib; ac_word=$2
2747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2748 echo "configure:2749: checking for $ac_word" >&5
2749 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2750 echo $ac_n "(cached) $ac_c" 1>&6
2752 if test -n "$RANLIB"; then
2753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2757 for ac_dir in $ac_dummy; do
2758 test -z "$ac_dir" && ac_dir=.
2759 if test -f $ac_dir/$ac_word; then
2760 ac_cv_prog_RANLIB="ranlib"
2765 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2768 RANLIB="$ac_cv_prog_RANLIB"
2769 if test -n "$RANLIB"; then
2770 echo "$ac_t""$RANLIB" 1>&6
2772 echo "$ac_t""no" 1>&6
2775 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2776 echo "configure:2777: checking for ANSI C header files" >&5
2777 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2788 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2789 { (eval echo configure:2790: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2790 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2791 if test -z "$ac_err"; then
2793 ac_cv_header_stdc=yes
2796 echo "configure: failed program was:" >&5
2797 cat conftest.$ac_ext >&5
2799 ac_cv_header_stdc=no
2803 if test $ac_cv_header_stdc = yes; then
2804 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2805 cat > conftest.$ac_ext <<EOF
2806 #line 2807 "configure"
2807 #include "confdefs.h"
2810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2811 egrep "memchr" >/dev/null 2>&1; then
2815 ac_cv_header_stdc=no
2821 if test $ac_cv_header_stdc = yes; then
2822 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2829 egrep "free" >/dev/null 2>&1; then
2833 ac_cv_header_stdc=no
2839 if test $ac_cv_header_stdc = yes; then
2840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2841 if test "$cross_compiling" = yes; then
2844 cat > conftest.$ac_ext <<EOF
2845 #line 2846 "configure"
2846 #include "confdefs.h"
2848 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2849 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2851 int main () { int i; for (i = 0; i < 256; i++)
2852 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2856 if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2860 echo "configure: failed program was:" >&5
2861 cat conftest.$ac_ext >&5
2863 ac_cv_header_stdc=no
2871 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2872 if test $ac_cv_header_stdc = yes; then
2873 cat >> confdefs.h <<\EOF
2874 #define STDC_HEADERS 1
2879 echo $ac_n "checking for working const""... $ac_c" 1>&6
2880 echo "configure:2881: checking for working const" >&5
2881 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 cat > conftest.$ac_ext <<EOF
2885 #line 2886 "configure"
2886 #include "confdefs.h"
2890 /* Ultrix mips cc rejects this. */
2891 typedef int charset[2]; const charset x;
2892 /* SunOS 4.1.1 cc rejects this. */
2893 char const *const *ccp;
2895 /* NEC SVR4.0.2 mips cc rejects this. */
2896 struct point {int x, y;};
2897 static struct point const zero = {0,0};
2898 /* AIX XL C 1.02.0.0 rejects this.
2899 It does not let you subtract one const X* pointer from another in an arm
2900 of an if-expression whose if-part is not a constant expression */
2901 const char *g = "string";
2902 ccp = &g + (g ? g-g : 0);
2903 /* HPUX 7.0 cc rejects these. */
2906 ccp = (char const *const *) p;
2907 { /* SCO 3.2v4 cc rejects this. */
2909 char const *s = 0 ? (char *) 0 : (char const *) 0;
2913 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2915 const int *foo = &x[0];
2918 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2919 typedef const int *iptr;
2923 { /* AIX XL C 1.02.0.0 rejects this saying
2924 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2925 struct s { int j; const int *ap[3]; };
2926 struct s *b; b->j = 5;
2928 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2934 if { (eval echo configure:2935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2946 echo "$ac_t""$ac_cv_c_const" 1>&6
2947 if test $ac_cv_c_const = no; then
2948 cat >> confdefs.h <<\EOF
2954 echo $ac_n "checking for inline""... $ac_c" 1>&6
2955 echo "configure:2956: checking for inline" >&5
2956 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2960 for ac_kw in inline __inline__ __inline; do
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2969 if { (eval echo configure:2970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2971 ac_cv_c_inline=$ac_kw; break
2973 echo "configure: failed program was:" >&5
2974 cat conftest.$ac_ext >&5
2981 echo "$ac_t""$ac_cv_c_inline" 1>&6
2982 case "$ac_cv_c_inline" in
2984 no) cat >> confdefs.h <<\EOF
2988 *) cat >> confdefs.h <<EOF
2989 #define inline $ac_cv_c_inline
2994 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2995 echo "configure:2996: checking for off_t" >&5
2996 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 cat > conftest.$ac_ext <<EOF
3000 #line 3001 "configure"
3001 #include "confdefs.h"
3002 #include <sys/types.h>
3008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3009 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3011 ac_cv_type_off_t=yes
3019 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3020 if test $ac_cv_type_off_t = no; then
3021 cat >> confdefs.h <<\EOF
3027 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3028 echo "configure:3029: checking for size_t" >&5
3029 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 #include <sys/types.h>
3041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3042 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3044 ac_cv_type_size_t=yes
3047 ac_cv_type_size_t=no
3052 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3053 if test $ac_cv_type_size_t = no; then
3054 cat >> confdefs.h <<\EOF
3055 #define size_t unsigned
3060 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3061 # for constant arguments. Useless!
3062 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3063 echo "configure:3064: checking for working alloca.h" >&5
3064 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3072 char *p = alloca(2 * sizeof(int));
3075 if { (eval echo configure:3076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3077 ac_cv_header_alloca_h=yes
3079 echo "configure: failed program was:" >&5
3080 cat conftest.$ac_ext >&5
3082 ac_cv_header_alloca_h=no
3087 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3088 if test $ac_cv_header_alloca_h = yes; then
3089 cat >> confdefs.h <<\EOF
3090 #define HAVE_ALLOCA_H 1
3095 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3096 echo "configure:3097: checking for alloca" >&5
3097 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3098 echo $ac_n "(cached) $ac_c" 1>&6
3100 cat > conftest.$ac_ext <<EOF
3101 #line 3102 "configure"
3102 #include "confdefs.h"
3105 # define alloca __builtin_alloca
3108 # include <malloc.h>
3109 # define alloca _alloca
3112 # include <alloca.h>
3117 # ifndef alloca /* predefined by HP cc +Olibcalls */
3126 char *p = (char *) alloca(1);
3129 if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3131 ac_cv_func_alloca_works=yes
3133 echo "configure: failed program was:" >&5
3134 cat conftest.$ac_ext >&5
3136 ac_cv_func_alloca_works=no
3141 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3142 if test $ac_cv_func_alloca_works = yes; then
3143 cat >> confdefs.h <<\EOF
3144 #define HAVE_ALLOCA 1
3149 if test $ac_cv_func_alloca_works = no; then
3150 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3151 # that cause trouble. Some versions do not even contain alloca or
3152 # contain a buggy version. If you still want to use their alloca,
3153 # use ar to extract alloca.o from them instead of compiling alloca.c.
3154 ALLOCA=alloca.${ac_objext}
3155 cat >> confdefs.h <<\EOF
3160 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3161 echo "configure:3162: checking whether alloca needs Cray hooks" >&5
3162 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #if defined(CRAY) && ! defined(CRAY2)
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176 egrep "webecray" >/dev/null 2>&1; then
3187 echo "$ac_t""$ac_cv_os_cray" 1>&6
3188 if test $ac_cv_os_cray = yes; then
3189 for ac_func in _getb67 GETB67 getb67; do
3190 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3191 echo "configure:3192: checking for $ac_func" >&5
3192 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3193 echo $ac_n "(cached) $ac_c" 1>&6
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* System header to define __stub macros and hopefully few prototypes,
3199 which can conflict with char $ac_func(); below. */
3201 /* Override any gcc2 internal prototype to avoid an error. */
3202 /* We use char because int might match the return type of a gcc2
3203 builtin and then its argument prototype would still apply. */
3208 /* The GNU C library defines this for functions which it implements
3209 to always fail with ENOSYS. Some functions are actually named
3210 something starting with __ and the normal name is an alias. */
3211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3219 if { (eval echo configure:3220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221 eval "ac_cv_func_$ac_func=yes"
3223 echo "configure: failed program was:" >&5
3224 cat conftest.$ac_ext >&5
3226 eval "ac_cv_func_$ac_func=no"
3231 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3232 echo "$ac_t""yes" 1>&6
3233 cat >> confdefs.h <<EOF
3234 #define CRAY_STACKSEG_END $ac_func
3239 echo "$ac_t""no" 1>&6
3245 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3246 echo "configure:3247: checking stack direction for C alloca" >&5
3247 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 if test "$cross_compiling" = yes; then
3251 ac_cv_c_stack_direction=0
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 find_stack_direction ()
3258 static char *addr = 0;
3263 return find_stack_direction ();
3266 return (&dummy > addr) ? 1 : -1;
3270 exit (find_stack_direction() < 0);
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3275 ac_cv_c_stack_direction=1
3277 echo "configure: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3280 ac_cv_c_stack_direction=-1
3287 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3288 cat >> confdefs.h <<EOF
3289 #define STACK_DIRECTION $ac_cv_c_stack_direction
3294 for ac_hdr in unistd.h
3296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_hdr" >&5
3299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3308 { (eval echo configure:3309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3310 if test -z "$ac_err"; then
3312 eval "ac_cv_header_$ac_safe=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.$ac_ext >&5
3318 eval "ac_cv_header_$ac_safe=no"
3322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3323 echo "$ac_t""yes" 1>&6
3324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3325 cat >> confdefs.h <<EOF
3326 #define $ac_tr_hdr 1
3330 echo "$ac_t""no" 1>&6
3334 for ac_func in getpagesize
3336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_func" >&5
3338 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 cat > conftest.$ac_ext <<EOF
3342 #line 3343 "configure"
3343 #include "confdefs.h"
3344 /* System header to define __stub macros and hopefully few prototypes,
3345 which can conflict with char $ac_func(); below. */
3347 /* Override any gcc2 internal prototype to avoid an error. */
3348 /* We use char because int might match the return type of a gcc2
3349 builtin and then its argument prototype would still apply. */
3354 /* The GNU C library defines this for functions which it implements
3355 to always fail with ENOSYS. Some functions are actually named
3356 something starting with __ and the normal name is an alias. */
3357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3365 if { (eval echo configure:3366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3367 eval "ac_cv_func_$ac_func=yes"
3369 echo "configure: failed program was:" >&5
3370 cat conftest.$ac_ext >&5
3372 eval "ac_cv_func_$ac_func=no"
3377 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3378 echo "$ac_t""yes" 1>&6
3379 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3380 cat >> confdefs.h <<EOF
3381 #define $ac_tr_func 1
3385 echo "$ac_t""no" 1>&6
3389 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3390 echo "configure:3391: checking for working mmap" >&5
3391 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 if test "$cross_compiling" = yes; then
3395 ac_cv_func_mmap_fixed_mapped=no
3397 cat > conftest.$ac_ext <<EOF
3398 #line 3399 "configure"
3399 #include "confdefs.h"
3401 /* Thanks to Mike Haertel and Jim Avera for this test.
3402 Here is a matrix of mmap possibilities:
3403 mmap private not fixed
3404 mmap private fixed at somewhere currently unmapped
3405 mmap private fixed at somewhere already mapped
3406 mmap shared not fixed
3407 mmap shared fixed at somewhere currently unmapped
3408 mmap shared fixed at somewhere already mapped
3409 For private mappings, we should verify that changes cannot be read()
3410 back from the file, nor mmap's back from the file at a different
3411 address. (There have been systems where private was not correctly
3412 implemented like the infamous i386 svr4.0, and systems where the
3413 VM page cache was not coherent with the filesystem buffer cache
3414 like early versions of FreeBSD and possibly contemporary NetBSD.)
3415 For shared mappings, we should conversely verify that changes get
3416 propogated back to all the places they're supposed to be.
3418 Grep wants private fixed already mapped.
3419 The main things grep needs to know about mmap are:
3420 * does it exist and is it safe to write into the mmap'd area
3421 * how to use it (BSD variants) */
3422 #include <sys/types.h>
3424 #include <sys/mman.h>
3426 /* This mess was copied from the GNU getpagesize.h. */
3427 #ifndef HAVE_GETPAGESIZE
3428 # ifdef HAVE_UNISTD_H
3429 # include <unistd.h>
3432 /* Assume that all systems that can run configure have sys/param.h. */
3433 # ifndef HAVE_SYS_PARAM_H
3434 # define HAVE_SYS_PARAM_H 1
3437 # ifdef _SC_PAGESIZE
3438 # define getpagesize() sysconf(_SC_PAGESIZE)
3439 # else /* no _SC_PAGESIZE */
3440 # ifdef HAVE_SYS_PARAM_H
3441 # include <sys/param.h>
3442 # ifdef EXEC_PAGESIZE
3443 # define getpagesize() EXEC_PAGESIZE
3444 # else /* no EXEC_PAGESIZE */
3446 # define getpagesize() NBPG * CLSIZE
3449 # endif /* no CLSIZE */
3450 # else /* no NBPG */
3452 # define getpagesize() NBPC
3453 # else /* no NBPC */
3455 # define getpagesize() PAGESIZE
3456 # endif /* PAGESIZE */
3457 # endif /* no NBPC */
3458 # endif /* no NBPG */
3459 # endif /* no EXEC_PAGESIZE */
3460 # else /* no HAVE_SYS_PARAM_H */
3461 # define getpagesize() 8192 /* punt totally */
3462 # endif /* no HAVE_SYS_PARAM_H */
3463 # endif /* no _SC_PAGESIZE */
3465 #endif /* no HAVE_GETPAGESIZE */
3468 extern "C" { void *malloc(unsigned); }
3476 char *data, *data2, *data3;
3480 pagesize = getpagesize();
3483 * First, make a file with some known garbage in it.
3485 data = malloc(pagesize);
3488 for (i = 0; i < pagesize; ++i)
3489 *(data + i) = rand();
3491 fd = creat("conftestmmap", 0600);
3494 if (write(fd, data, pagesize) != pagesize)
3499 * Next, try to mmap the file at a fixed address which
3500 * already has something else allocated at it. If we can,
3501 * also make sure that we see the same garbage.
3503 fd = open("conftestmmap", O_RDWR);
3506 data2 = malloc(2 * pagesize);
3509 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3510 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3511 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3513 for (i = 0; i < pagesize; ++i)
3514 if (*(data + i) != *(data2 + i))
3518 * Finally, make sure that changes to the mapped area
3519 * do not percolate back to the file as seen by read().
3520 * (This is a bug on some variants of i386 svr4.0.)
3522 for (i = 0; i < pagesize; ++i)
3523 *(data2 + i) = *(data2 + i) + 1;
3524 data3 = malloc(pagesize);
3527 if (read(fd, data3, pagesize) != pagesize)
3529 for (i = 0; i < pagesize; ++i)
3530 if (*(data + i) != *(data3 + i))
3533 unlink("conftestmmap");
3538 if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3540 ac_cv_func_mmap_fixed_mapped=yes
3542 echo "configure: failed program was:" >&5
3543 cat conftest.$ac_ext >&5
3545 ac_cv_func_mmap_fixed_mapped=no
3552 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3553 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3554 cat >> confdefs.h <<\EOF
3561 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3562 unistd.h values.h sys/param.h
3564 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_hdr" >&5
3567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3576 { (eval echo configure:3577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3578 if test -z "$ac_err"; then
3580 eval "ac_cv_header_$ac_safe=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 eval "ac_cv_header_$ac_safe=no"
3590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3591 echo "$ac_t""yes" 1>&6
3592 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3593 cat >> confdefs.h <<EOF
3594 #define $ac_tr_hdr 1
3598 echo "$ac_t""no" 1>&6
3602 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3603 __argz_count __argz_stringify __argz_next
3605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3606 echo "configure:3607: checking for $ac_func" >&5
3607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3608 echo $ac_n "(cached) $ac_c" 1>&6
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3613 /* System header to define __stub macros and hopefully few prototypes,
3614 which can conflict with char $ac_func(); below. */
3616 /* Override any gcc2 internal prototype to avoid an error. */
3617 /* We use char because int might match the return type of a gcc2
3618 builtin and then its argument prototype would still apply. */
3623 /* The GNU C library defines this for functions which it implements
3624 to always fail with ENOSYS. Some functions are actually named
3625 something starting with __ and the normal name is an alias. */
3626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3634 if { (eval echo configure:3635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3636 eval "ac_cv_func_$ac_func=yes"
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3641 eval "ac_cv_func_$ac_func=no"
3646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3647 echo "$ac_t""yes" 1>&6
3648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3649 cat >> confdefs.h <<EOF
3650 #define $ac_tr_func 1
3654 echo "$ac_t""no" 1>&6
3659 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3660 for ac_func in stpcpy
3662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3663 echo "configure:3664: checking for $ac_func" >&5
3664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 /* System header to define __stub macros and hopefully few prototypes,
3671 which can conflict with char $ac_func(); below. */
3673 /* Override any gcc2 internal prototype to avoid an error. */
3674 /* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3680 /* The GNU C library defines this for functions which it implements
3681 to always fail with ENOSYS. Some functions are actually named
3682 something starting with __ and the normal name is an alias. */
3683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3691 if { (eval echo configure:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3693 eval "ac_cv_func_$ac_func=yes"
3695 echo "configure: failed program was:" >&5
3696 cat conftest.$ac_ext >&5
3698 eval "ac_cv_func_$ac_func=no"
3703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3706 cat >> confdefs.h <<EOF
3707 #define $ac_tr_func 1
3711 echo "$ac_t""no" 1>&6
3716 if test "${ac_cv_func_stpcpy}" = "yes"; then
3717 cat >> confdefs.h <<\EOF
3718 #define HAVE_STPCPY 1
3723 if test $ac_cv_header_locale_h = yes; then
3724 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3725 echo "configure:3726: checking for LC_MESSAGES" >&5
3726 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3727 echo $ac_n "(cached) $ac_c" 1>&6
3729 cat > conftest.$ac_ext <<EOF
3730 #line 3731 "configure"
3731 #include "confdefs.h"
3737 if { (eval echo configure:3738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3739 am_cv_val_LC_MESSAGES=yes
3741 echo "configure: failed program was:" >&5
3742 cat conftest.$ac_ext >&5
3744 am_cv_val_LC_MESSAGES=no
3749 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3750 if test $am_cv_val_LC_MESSAGES = yes; then
3751 cat >> confdefs.h <<\EOF
3752 #define HAVE_LC_MESSAGES 1
3757 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3758 echo "configure:3759: checking whether NLS is requested" >&5
3759 # Check whether --enable-nls or --disable-nls was given.
3760 if test "${enable_nls+set}" = set; then
3761 enableval="$enable_nls"
3767 echo "$ac_t""$USE_NLS" 1>&6
3770 USE_INCLUDED_LIBINTL=no
3772 if test "$USE_NLS" = "yes"; then
3773 cat >> confdefs.h <<\EOF
3774 #define ENABLE_NLS 1
3777 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3778 echo "configure:3779: checking whether included gettext is requested" >&5
3779 # Check whether --with-included-gettext or --without-included-gettext was given.
3780 if test "${with_included_gettext+set}" = set; then
3781 withval="$with_included_gettext"
3782 nls_cv_force_use_gnu_gettext=$withval
3784 nls_cv_force_use_gnu_gettext=no
3787 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3789 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3790 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3792 nls_cv_header_libgt=
3795 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3796 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3797 echo "configure:3798: checking for libintl.h" >&5
3798 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <libintl.h>
3806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3807 { (eval echo configure:3808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3809 if test -z "$ac_err"; then
3811 eval "ac_cv_header_$ac_safe=yes"
3814 echo "configure: failed program was:" >&5
3815 cat conftest.$ac_ext >&5
3817 eval "ac_cv_header_$ac_safe=no"
3821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3824 echo "configure:3825: checking for gettext in libc" >&5
3825 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3828 cat > conftest.$ac_ext <<EOF
3829 #line 3830 "configure"
3830 #include "confdefs.h"
3831 #include <libintl.h>
3833 return (int) gettext ("")
3836 if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3838 gt_cv_func_gettext_libc=yes
3840 echo "configure: failed program was:" >&5
3841 cat conftest.$ac_ext >&5
3843 gt_cv_func_gettext_libc=no
3848 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3850 if test "$gt_cv_func_gettext_libc" != "yes"; then
3851 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3852 echo "configure:3853: checking for bindtextdomain in -lintl" >&5
3853 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3854 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 ac_save_LIBS="$LIBS"
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* Override any gcc2 internal prototype to avoid an error. */
3863 /* We use char because int might match the return type of a gcc2
3864 builtin and then its argument prototype would still apply. */
3865 char bindtextdomain();
3871 if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3873 eval "ac_cv_lib_$ac_lib_var=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_lib_$ac_lib_var=no"
3881 LIBS="$ac_save_LIBS"
3884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3885 echo "$ac_t""yes" 1>&6
3886 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3887 echo "configure:3888: checking for gettext in libintl" >&5
3888 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3891 cat > conftest.$ac_ext <<EOF
3892 #line 3893 "configure"
3893 #include "confdefs.h"
3896 return (int) gettext ("")
3899 if { (eval echo configure:3900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901 gt_cv_func_gettext_libintl=yes
3903 echo "configure: failed program was:" >&5
3904 cat conftest.$ac_ext >&5
3906 gt_cv_func_gettext_libintl=no
3911 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3913 echo "$ac_t""no" 1>&6
3918 if test "$gt_cv_func_gettext_libc" = "yes" \
3919 || test "$gt_cv_func_gettext_libintl" = "yes"; then
3920 cat >> confdefs.h <<\EOF
3921 #define HAVE_GETTEXT 1
3924 # Extract the first word of "msgfmt", so it can be a program name with args.
3925 set dummy msgfmt; ac_word=$2
3926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3927 echo "configure:3928: checking for $ac_word" >&5
3928 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3933 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3937 for ac_dir in $PATH; do
3938 test -z "$ac_dir" && ac_dir=.
3939 if test -f $ac_dir/$ac_word; then
3940 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3941 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3947 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
3951 MSGFMT="$ac_cv_path_MSGFMT"
3952 if test -n "$MSGFMT"; then
3953 echo "$ac_t""$MSGFMT" 1>&6
3955 echo "$ac_t""no" 1>&6
3957 if test "$MSGFMT" != "no"; then
3958 for ac_func in dcgettext
3960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3961 echo "configure:3962: checking for $ac_func" >&5
3962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3963 echo $ac_n "(cached) $ac_c" 1>&6
3965 cat > conftest.$ac_ext <<EOF
3966 #line 3967 "configure"
3967 #include "confdefs.h"
3968 /* System header to define __stub macros and hopefully few prototypes,
3969 which can conflict with char $ac_func(); below. */
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3978 /* The GNU C library defines this for functions which it implements
3979 to always fail with ENOSYS. Some functions are actually named
3980 something starting with __ and the normal name is an alias. */
3981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3989 if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3991 eval "ac_cv_func_$ac_func=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3996 eval "ac_cv_func_$ac_func=no"
4001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4002 echo "$ac_t""yes" 1>&6
4003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4004 cat >> confdefs.h <<EOF
4005 #define $ac_tr_func 1
4009 echo "$ac_t""no" 1>&6
4013 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4014 set dummy gmsgfmt; ac_word=$2
4015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4016 echo "configure:4017: checking for $ac_word" >&5
4017 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4018 echo $ac_n "(cached) $ac_c" 1>&6
4022 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4025 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4030 for ac_dir in $ac_dummy; do
4031 test -z "$ac_dir" && ac_dir=.
4032 if test -f $ac_dir/$ac_word; then
4033 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4038 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4042 GMSGFMT="$ac_cv_path_GMSGFMT"
4043 if test -n "$GMSGFMT"; then
4044 echo "$ac_t""$GMSGFMT" 1>&6
4046 echo "$ac_t""no" 1>&6
4049 # Extract the first word of "xgettext", so it can be a program name with args.
4050 set dummy xgettext; ac_word=$2
4051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4052 echo "configure:4053: checking for $ac_word" >&5
4053 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4058 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4062 for ac_dir in $PATH; do
4063 test -z "$ac_dir" && ac_dir=.
4064 if test -f $ac_dir/$ac_word; then
4065 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4066 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4072 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4076 XGETTEXT="$ac_cv_path_XGETTEXT"
4077 if test -n "$XGETTEXT"; then
4078 echo "$ac_t""$XGETTEXT" 1>&6
4080 echo "$ac_t""no" 1>&6
4083 cat > conftest.$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4088 extern int _nl_msg_cat_cntr;
4089 return _nl_msg_cat_cntr
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4097 echo "configure: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4109 echo "$ac_t""no" 1>&6
4114 if test "$CATOBJEXT" = "NONE"; then
4115 nls_cv_use_gnu_gettext=yes
4119 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4120 INTLOBJS="\$(GETTOBJS)"
4121 # Extract the first word of "msgfmt", so it can be a program name with args.
4122 set dummy msgfmt; ac_word=$2
4123 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4124 echo "configure:4125: checking for $ac_word" >&5
4125 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4130 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4134 for ac_dir in $PATH; do
4135 test -z "$ac_dir" && ac_dir=.
4136 if test -f $ac_dir/$ac_word; then
4137 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4138 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4144 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4148 MSGFMT="$ac_cv_path_MSGFMT"
4149 if test -n "$MSGFMT"; then
4150 echo "$ac_t""$MSGFMT" 1>&6
4152 echo "$ac_t""no" 1>&6
4155 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4156 set dummy gmsgfmt; ac_word=$2
4157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_word" >&5
4159 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4167 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4172 for ac_dir in $ac_dummy; do
4173 test -z "$ac_dir" && ac_dir=.
4174 if test -f $ac_dir/$ac_word; then
4175 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4180 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4184 GMSGFMT="$ac_cv_path_GMSGFMT"
4185 if test -n "$GMSGFMT"; then
4186 echo "$ac_t""$GMSGFMT" 1>&6
4188 echo "$ac_t""no" 1>&6
4191 # Extract the first word of "xgettext", so it can be a program name with args.
4192 set dummy xgettext; ac_word=$2
4193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_word" >&5
4195 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4204 for ac_dir in $PATH; do
4205 test -z "$ac_dir" && ac_dir=.
4206 if test -f $ac_dir/$ac_word; then
4207 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4208 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4214 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4218 XGETTEXT="$ac_cv_path_XGETTEXT"
4219 if test -n "$XGETTEXT"; then
4220 echo "$ac_t""$XGETTEXT" 1>&6
4222 echo "$ac_t""no" 1>&6
4226 USE_INCLUDED_LIBINTL=yes
4230 INTLDEPS='$(top_builddir)/../intl/libintl.a'
4232 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4233 nls_cv_header_intl=libintl.h
4234 nls_cv_header_libgt=libgettext.h
4237 if test "$XGETTEXT" != ":"; then
4238 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4241 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4246 # We need to process the po/ directory.
4250 nls_cv_header_intl=libintl.h
4251 nls_cv_header_libgt=libgettext.h
4254 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4255 # because some of the sources are only built for this goal.
4256 if test "$PACKAGE" = gettext; then
4258 USE_INCLUDED_LIBINTL=yes
4261 for lang in $ALL_LINGUAS; do
4262 GMOFILES="$GMOFILES $lang.gmo"
4263 POFILES="$POFILES $lang.po"
4279 if test "x$CATOBJEXT" != "x"; then
4280 if test "x$ALL_LINGUAS" = "x"; then
4283 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4284 echo "configure:4285: checking for catalogs to be installed" >&5
4286 for lang in ${LINGUAS=$ALL_LINGUAS}; do
4287 case "$ALL_LINGUAS" in
4288 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4291 LINGUAS=$NEW_LINGUAS
4292 echo "$ac_t""$LINGUAS" 1>&6
4295 if test -n "$LINGUAS"; then
4296 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4300 if test $ac_cv_header_locale_h = yes; then
4301 INCLUDE_LOCALE_H="#include <locale.h>"
4304 /* The system does not provide the header <locale.h>. Take care yourself. */"
4308 if test -f $srcdir/po2tbl.sed.in; then
4309 if test "$CATOBJEXT" = ".cat"; then
4310 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4311 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4312 echo "configure:4313: checking for linux/version.h" >&5
4313 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4316 cat > conftest.$ac_ext <<EOF
4317 #line 4318 "configure"
4318 #include "confdefs.h"
4319 #include <linux/version.h>
4321 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4322 { (eval echo configure:4323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4323 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4324 if test -z "$ac_err"; then
4326 eval "ac_cv_header_$ac_safe=yes"
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 eval "ac_cv_header_$ac_safe=no"
4336 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4337 echo "$ac_t""yes" 1>&6
4340 echo "$ac_t""no" 1>&6
4345 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
4347 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4348 $srcdir/po2tbl.sed.in > po2tbl.sed
4351 if test "$PACKAGE" = "gettext"; then
4361 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
4367 if test -f $srcdir/po/POTFILES.in; then
4368 test -d po || mkdir po
4369 if test "x$srcdir" != "x."; then
4370 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4371 posrcprefix="$srcdir/"
4373 posrcprefix="../$srcdir/"
4379 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4380 < $srcdir/po/POTFILES.in > po/POTFILES
4384 # Permit host specific settings.
4385 . ${srcdir}/configure.host
4388 # Find a good install program. We prefer a C program (faster),
4389 # so one script is as good as another. But avoid the broken or
4390 # incompatible versions:
4391 # SysV /etc/install, /usr/sbin/install
4392 # SunOS /usr/etc/install
4393 # IRIX /sbin/install
4395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4398 # ./install, which can be erroneously created by make from ./install.sh.
4399 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4400 echo "configure:4401: checking for a BSD compatible install" >&5
4401 if test -z "$INSTALL"; then
4402 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4403 echo $ac_n "(cached) $ac_c" 1>&6
4405 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
4406 for ac_dir in $PATH; do
4407 # Account for people who put trailing slashes in PATH elements.
4409 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4411 # OSF1 and SCO ODT 3.0 have their own names for install.
4412 # Don't use installbsd from OSF since it installs stuff as root
4414 for ac_prog in ginstall scoinst install; do
4415 if test -f $ac_dir/$ac_prog; then
4416 if test $ac_prog = install &&
4417 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4418 # AIX install. It has an incompatible calling convention.
4421 ac_cv_path_install="$ac_dir/$ac_prog -c"
4432 if test "${ac_cv_path_install+set}" = set; then
4433 INSTALL="$ac_cv_path_install"
4435 # As a last resort, use the slow shell script. We don't cache a
4436 # path for INSTALL within a source directory, because that will
4437 # break other packages using the cache if that directory is
4438 # removed, or if the path is relative.
4439 INSTALL="$ac_install_sh"
4442 echo "$ac_t""$INSTALL" 1>&6
4444 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4445 # It thinks the first close brace ends the variable substitution.
4446 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4448 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4450 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4453 BFD_HOST_64BIT_LONG=0
4454 BFD_HOST_64_BIT_DEFINED=0
4457 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4458 BFD_HOST_64BIT_LONG=1
4459 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4460 BFD_HOST_64_BIT_DEFINED=1
4461 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
4462 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
4469 # Put a plausible default for CC_FOR_BUILD in Makefile.
4470 if test -z "$CC_FOR_BUILD"; then
4471 if test "x$cross_compiling" = "xno"; then
4472 CC_FOR_BUILD='$(CC)'
4478 # Also set EXEEXT_FOR_BUILD.
4479 if test "x$cross_compiling" = "xno"; then
4480 EXEEXT_FOR_BUILD='$(EXEEXT)'
4482 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4483 echo "configure:4484: checking for build system executable suffix" >&5
4484 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4488 echo 'int main () { return 0; }' > conftest.c
4489 bfd_cv_build_exeext=
4490 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
4491 for file in conftest.*; do
4493 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
4494 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4498 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
4501 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4503 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
4507 for ac_hdr in stddef.h string.h strings.h stdlib.h time.h unistd.h
4509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4511 echo "configure:4512: checking for $ac_hdr" >&5
4512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4513 echo $ac_n "(cached) $ac_c" 1>&6
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4521 { (eval echo configure:4522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4523 if test -z "$ac_err"; then
4525 eval "ac_cv_header_$ac_safe=yes"
4528 echo "configure: failed program was:" >&5
4529 cat conftest.$ac_ext >&5
4531 eval "ac_cv_header_$ac_safe=no"
4535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4536 echo "$ac_t""yes" 1>&6
4537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4538 cat >> confdefs.h <<EOF
4539 #define $ac_tr_hdr 1
4543 echo "$ac_t""no" 1>&6
4547 for ac_hdr in fcntl.h sys/file.h sys/time.h
4549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4551 echo "configure:4552: checking for $ac_hdr" >&5
4552 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4553 echo $ac_n "(cached) $ac_c" 1>&6
4555 cat > conftest.$ac_ext <<EOF
4556 #line 4557 "configure"
4557 #include "confdefs.h"
4560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4561 { (eval echo configure:4562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4563 if test -z "$ac_err"; then
4565 eval "ac_cv_header_$ac_safe=yes"
4568 echo "configure: failed program was:" >&5
4569 cat conftest.$ac_ext >&5
4571 eval "ac_cv_header_$ac_safe=no"
4575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4576 echo "$ac_t""yes" 1>&6
4577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4578 cat >> confdefs.h <<EOF
4579 #define $ac_tr_hdr 1
4583 echo "$ac_t""no" 1>&6
4587 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4588 echo "configure:4589: checking whether time.h and sys/time.h may both be included" >&5
4589 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4590 echo $ac_n "(cached) $ac_c" 1>&6
4592 cat > conftest.$ac_ext <<EOF
4593 #line 4594 "configure"
4594 #include "confdefs.h"
4595 #include <sys/types.h>
4596 #include <sys/time.h>
4602 if { (eval echo configure:4603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4604 ac_cv_header_time=yes
4606 echo "configure: failed program was:" >&5
4607 cat conftest.$ac_ext >&5
4609 ac_cv_header_time=no
4614 echo "$ac_t""$ac_cv_header_time" 1>&6
4615 if test $ac_cv_header_time = yes; then
4616 cat >> confdefs.h <<\EOF
4617 #define TIME_WITH_SYS_TIME 1
4623 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4625 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4626 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_hdr that defines DIR" >&5
4628 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 cat > conftest.$ac_ext <<EOF
4632 #line 4633 "configure"
4633 #include "confdefs.h"
4634 #include <sys/types.h>
4640 if { (eval echo configure:4641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4642 eval "ac_cv_header_dirent_$ac_safe=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_header_dirent_$ac_safe=no"
4651 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4652 echo "$ac_t""yes" 1>&6
4653 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4654 cat >> confdefs.h <<EOF
4655 #define $ac_tr_hdr 1
4657 ac_header_dirent=$ac_hdr; break
4659 echo "$ac_t""no" 1>&6
4662 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4663 if test $ac_header_dirent = dirent.h; then
4664 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4665 echo "configure:4666: checking for opendir in -ldir" >&5
4666 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 ac_save_LIBS="$LIBS"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 eval "ac_cv_lib_$ac_lib_var=no"
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4701 echo "$ac_t""no" 1>&6
4705 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4706 echo "configure:4707: checking for opendir in -lx" >&5
4707 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 ac_save_LIBS="$LIBS"
4713 cat > conftest.$ac_ext <<EOF
4714 #line 4715 "configure"
4715 #include "confdefs.h"
4716 /* Override any gcc2 internal prototype to avoid an error. */
4717 /* We use char because int might match the return type of a gcc2
4718 builtin and then its argument prototype would still apply. */
4725 if { (eval echo configure:4726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4727 eval "ac_cv_lib_$ac_lib_var=yes"
4729 echo "configure: failed program was:" >&5
4730 cat conftest.$ac_ext >&5
4732 eval "ac_cv_lib_$ac_lib_var=no"
4735 LIBS="$ac_save_LIBS"
4738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4742 echo "$ac_t""no" 1>&6
4747 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_func" >&5
4751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 cat > conftest.$ac_ext <<EOF
4755 #line 4756 "configure"
4756 #include "confdefs.h"
4757 /* System header to define __stub macros and hopefully few prototypes,
4758 which can conflict with char $ac_func(); below. */
4760 /* Override any gcc2 internal prototype to avoid an error. */
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4767 /* The GNU C library defines this for functions which it implements
4768 to always fail with ENOSYS. Some functions are actually named
4769 something starting with __ and the normal name is an alias. */
4770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 eval "ac_cv_func_$ac_func=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_func_$ac_func=no"
4790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4791 echo "$ac_t""yes" 1>&6
4792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4793 cat >> confdefs.h <<EOF
4794 #define $ac_tr_func 1
4798 echo "$ac_t""no" 1>&6
4805 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
4806 cat >> confdefs.h <<\EOF
4807 #define USE_BINARY_FOPEN 1
4812 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4813 echo "configure:4814: checking whether strstr must be declared" >&5
4814 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 cat > conftest.$ac_ext <<EOF
4818 #line 4819 "configure"
4819 #include "confdefs.h"
4822 #ifdef HAVE_STRING_H
4825 #ifdef HAVE_STRINGS_H
4826 #include <strings.h>
4829 #ifdef HAVE_STDLIB_H
4832 #ifdef HAVE_UNISTD_H
4836 char *(*pfn) = (char *(*)) strstr
4839 if { (eval echo configure:4840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4841 bfd_cv_decl_needed_strstr=no
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 bfd_cv_decl_needed_strstr=yes
4851 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4852 if test $bfd_cv_decl_needed_strstr = yes; then
4853 cat >> confdefs.h <<\EOF
4854 #define NEED_DECLARATION_STRSTR 1
4859 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4860 echo "configure:4861: checking whether malloc must be declared" >&5
4861 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4869 #ifdef HAVE_STRING_H
4872 #ifdef HAVE_STRINGS_H
4873 #include <strings.h>
4876 #ifdef HAVE_STDLIB_H
4879 #ifdef HAVE_UNISTD_H
4883 char *(*pfn) = (char *(*)) malloc
4886 if { (eval echo configure:4887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4888 bfd_cv_decl_needed_malloc=no
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4893 bfd_cv_decl_needed_malloc=yes
4898 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4899 if test $bfd_cv_decl_needed_malloc = yes; then
4900 cat >> confdefs.h <<\EOF
4901 #define NEED_DECLARATION_MALLOC 1
4906 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4907 echo "configure:4908: checking whether realloc must be declared" >&5
4908 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 cat > conftest.$ac_ext <<EOF
4912 #line 4913 "configure"
4913 #include "confdefs.h"
4916 #ifdef HAVE_STRING_H
4919 #ifdef HAVE_STRINGS_H
4920 #include <strings.h>
4923 #ifdef HAVE_STDLIB_H
4926 #ifdef HAVE_UNISTD_H
4930 char *(*pfn) = (char *(*)) realloc
4933 if { (eval echo configure:4934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4935 bfd_cv_decl_needed_realloc=no
4937 echo "configure: failed program was:" >&5
4938 cat conftest.$ac_ext >&5
4940 bfd_cv_decl_needed_realloc=yes
4945 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4946 if test $bfd_cv_decl_needed_realloc = yes; then
4947 cat >> confdefs.h <<\EOF
4948 #define NEED_DECLARATION_REALLOC 1
4953 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4954 echo "configure:4955: checking whether free must be declared" >&5
4955 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4963 #ifdef HAVE_STRING_H
4966 #ifdef HAVE_STRINGS_H
4967 #include <strings.h>
4970 #ifdef HAVE_STDLIB_H
4973 #ifdef HAVE_UNISTD_H
4977 char *(*pfn) = (char *(*)) free
4980 if { (eval echo configure:4981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4982 bfd_cv_decl_needed_free=no
4984 echo "configure: failed program was:" >&5
4985 cat conftest.$ac_ext >&5
4987 bfd_cv_decl_needed_free=yes
4992 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4993 if test $bfd_cv_decl_needed_free = yes; then
4994 cat >> confdefs.h <<\EOF
4995 #define NEED_DECLARATION_FREE 1
5000 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5001 echo "configure:5002: checking whether getenv must be declared" >&5
5002 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5003 echo $ac_n "(cached) $ac_c" 1>&6
5005 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure"
5007 #include "confdefs.h"
5010 #ifdef HAVE_STRING_H
5013 #ifdef HAVE_STRINGS_H
5014 #include <strings.h>
5017 #ifdef HAVE_STDLIB_H
5020 #ifdef HAVE_UNISTD_H
5024 char *(*pfn) = (char *(*)) getenv
5027 if { (eval echo configure:5028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5029 bfd_cv_decl_needed_getenv=no
5031 echo "configure: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 bfd_cv_decl_needed_getenv=yes
5039 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5040 if test $bfd_cv_decl_needed_getenv = yes; then
5041 cat >> confdefs.h <<\EOF
5042 #define NEED_DECLARATION_GETENV 1
5048 # If we are configured native, pick a core file support file.
5052 if test "${target}" = "${host}"; then
5057 alpha*-*-linux-gnu*)
5058 COREFILE=trad-core.lo
5059 TRAD_HEADER='"hosts/alphalinux.h"'
5061 alpha*-*-netbsd* | alpha*-*-openbsd*)
5062 COREFILE=netbsd-core.lo
5064 alpha*-*-*) COREFILE=osf-core.lo ;;
5065 arm-*-freebsd*) COREFILE='' ;;
5066 arm-*-netbsd*) COREFILE=netbsd-core.lo ;;
5067 arm-*-riscix) COREFILE=trad-core.lo ;;
5068 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
5069 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
5070 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
5071 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
5072 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
5074 COREFILE=trad-core.lo
5075 TRAD_HEADER='"hosts/i370linux.h"'
5078 i[3456]86-sequent-bsd*)
5079 COREFILE=trad-core.lo
5080 TRAD_HEADER='"hosts/symmetry.h"'
5082 i[3456]86-sequent-sysv4*) ;;
5083 i[3456]86-sequent-sysv*)
5084 COREFILE=trad-core.lo
5085 TRAD_HEADER='"hosts/symmetry.h"'
5090 i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
5091 COREFILE=trad-core.lo
5092 TRAD_HEADER='"hosts/i386bsd.h"'
5094 i[3456]86-*-freebsd*)
5096 TRAD_HEADER='"hosts/i386bsd.h"'
5098 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
5099 COREFILE=netbsd-core.lo
5101 i[3456]86-esix-sysv3*)
5102 COREFILE=trad-core.lo
5103 TRAD_HEADER='"hosts/esix.h"'
5105 i[3456]86-*-sco3.2v5*)
5106 COREFILE=sco5-core.lo
5108 i[3456]86-*-sco* | i[3456]86-*-isc*)
5109 COREFILE=trad-core.lo
5110 TRAD_HEADER='"hosts/i386sco.h"'
5113 COREFILE=trad-core.lo
5114 TRAD_HEADER='"hosts/i386mach3.h"'
5116 i[3456]86-*-linux-gnu*)
5117 COREFILE=trad-core.lo
5118 TRAD_HEADER='"hosts/i386linux.h"'
5120 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
5121 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
5122 i860-*-mach3* | i860-*-osf1*)
5123 COREFILE=trad-core.lo
5124 TRAD_HEADER='"hosts/i860mach3.h"'
5127 COREFILE=trad-core.lo
5128 TRAD_HEADER='"hosts/mipsbsd.h"'
5131 COREFILE=trad-core.lo
5132 TRAD_HEADER='"hosts/mipsmach3.h"'
5134 mips-*-netbsd* | mips*-*-openbsd*)
5135 COREFILE=netbsd-core.lo
5138 COREFILE=trad-core.lo
5139 TRAD_HEADER='"hosts/decstation.h"'
5141 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
5142 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
5143 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
5145 COREFILE=trad-core.lo
5146 TRAD_HEADER='"hosts/mipsmach3.h"'
5149 mips-*-sysv* | mips-*-riscos*)
5150 COREFILE=trad-core.lo
5151 TRAD_HEADER='"hosts/riscos.h"'
5154 COREFILE=trad-core.lo
5155 TRAD_HEADER='"hosts/news-mips.h"'
5158 COREFILE=trad-core.lo
5159 TRAD_HEADER='"hosts/dpx2.h"'
5161 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
5163 COREFILE=trad-core.lo
5164 TRAD_HEADER='"hosts/hp300bsd.h"'
5167 COREFILE=trad-core.lo
5168 TRAD_HEADER='"hosts/m68klinux.h"'
5170 m68*-motorola-sysv*)
5171 COREFILE=trad-core.lo
5172 TRAD_HEADER='"hosts/delta68.h"'
5175 COREFILE=trad-core.lo
5176 TRAD_HEADER='"hosts/news.h"'
5178 m68*-*-netbsd* | m68*-*-openbsd*)
5179 COREFILE=netbsd-core.lo
5182 COREFILE=trad-core.lo
5183 TRAD_HEADER='"hosts/m68kaux.h"'
5187 m88*-motorola-sysv*)
5188 COREFILE=ptrace-core.lo
5191 COREFILE=trad-core.lo
5192 TRAD_HEADER='"hosts/m88kmach3.h"'
5195 COREFILE=trad-core.lo
5196 TRAD_HEADER='"hosts/pc532mach.h"'
5198 ns32k-*-netbsd* | ns32k-*-openbsd*)
5199 COREFILE=netbsd-core.lo
5202 COREFILE=lynx-core.lo
5204 rs6000-*-aix5.* | powerpc-*-aix5.*)
5205 COREFILE=rs6000-core.lo
5206 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
5208 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
5209 COREFILE=rs6000-core.lo
5210 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5211 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
5212 # have c_impl as a member of struct core_dumpx
5213 echo $ac_n "checking for c_impl in struct core_dumpx""... $ac_c" 1>&6
5214 echo "configure:5215: checking for c_impl in struct core_dumpx" >&5
5215 cat > conftest.$ac_ext <<EOF
5216 #line 5217 "configure"
5217 #include "confdefs.h"
5220 struct core_dumpx c; c.c_impl = 0;
5223 if { (eval echo configure:5224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5225 cat >> confdefs.h <<\EOF
5226 #define HAVE_ST_C_IMPL 1
5229 echo "$ac_t""yes" 1>&6
5231 echo "configure: failed program was:" >&5
5232 cat conftest.$ac_ext >&5
5234 echo "$ac_t""no" 1>&6
5238 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
5239 rs6000-*-*) COREFILE=rs6000-core.lo ;;
5240 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
5241 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
5243 powerpc-*-freebsd*) COREFILE='' ;;
5244 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
5245 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
5246 s390*-*-*) COREFILE=trad-core.lo ;;
5247 sh*-*-netbsd*) COREFILE=netbsd-core.lo ;;
5248 sparc-*-netbsd* | sparc*-*-openbsd*)
5249 COREFILE=netbsd-core.lo
5252 COREFILE=trad-core.lo
5253 TRAD_HEADER='"hosts/tahoe.h"'
5256 COREFILE=trad-core.lo
5257 TRAD_HEADER='"hosts/vaxult2.h"'
5260 COREFILE=trad-core.lo
5261 TRAD_HEADER='"hosts/vaxult2.h"'
5264 COREFILE=trad-core.lo
5265 TRAD_HEADER='"hosts/vaxbsd.h"'
5267 x86_64-*-netbsd*) COREFILE=netbsd-core.lo ;;
5271 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
5272 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
5273 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
5274 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
5275 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
5276 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
5277 osf-core.lo) COREFLAG=-DOSF_CORE ;;
5278 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
5279 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
5280 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
5281 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
5284 # ELF corefile support has several flavors, but all of
5285 # them use something called <sys/procfs.h>
5286 for ac_hdr in sys/procfs.h
5288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5290 echo "configure:5291: checking for $ac_hdr" >&5
5291 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5292 echo $ac_n "(cached) $ac_c" 1>&6
5294 cat > conftest.$ac_ext <<EOF
5295 #line 5296 "configure"
5296 #include "confdefs.h"
5299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5300 { (eval echo configure:5301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5302 if test -z "$ac_err"; then
5304 eval "ac_cv_header_$ac_safe=yes"
5307 echo "configure: failed program was:" >&5
5308 cat conftest.$ac_ext >&5
5310 eval "ac_cv_header_$ac_safe=no"
5314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5315 echo "$ac_t""yes" 1>&6
5316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5317 cat >> confdefs.h <<EOF
5318 #define $ac_tr_hdr 1
5322 echo "$ac_t""no" 1>&6
5326 if test "$ac_cv_header_sys_procfs_h" = yes; then
5327 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5328 echo "configure:5329: checking for prstatus_t in sys/procfs.h" >&5
5329 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5332 cat > conftest.$ac_ext <<EOF
5333 #line 5334 "configure"
5334 #include "confdefs.h"
5337 #include <sys/procfs.h>
5342 if { (eval echo configure:5343: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5344 bfd_cv_have_sys_procfs_type_prstatus_t=yes
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 bfd_cv_have_sys_procfs_type_prstatus_t=no
5355 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5356 cat >> confdefs.h <<\EOF
5357 #define HAVE_PRSTATUS_T 1
5361 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5363 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5364 echo "configure:5365: checking for prstatus32_t in sys/procfs.h" >&5
5365 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5373 #include <sys/procfs.h>
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5380 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
5382 echo "configure: failed program was:" >&5
5383 cat conftest.$ac_ext >&5
5385 bfd_cv_have_sys_procfs_type_prstatus32_t=no
5391 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5392 cat >> confdefs.h <<\EOF
5393 #define HAVE_PRSTATUS32_T 1
5397 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5399 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5400 echo "configure:5401: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5401 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5409 #include <sys/procfs.h>
5411 prstatus_t avar; void* aref = (void*) &avar.pr_who
5414 if { (eval echo configure:5415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5416 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
5418 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5
5421 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
5427 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5428 cat >> confdefs.h <<\EOF
5429 #define HAVE_PRSTATUS_T_PR_WHO 1
5433 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5435 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5436 echo "configure:5437: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5437 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5445 #include <sys/procfs.h>
5447 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5450 if { (eval echo configure:5451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5452 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
5454 echo "configure: failed program was:" >&5
5455 cat conftest.$ac_ext >&5
5457 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
5463 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5464 cat >> confdefs.h <<\EOF
5465 #define HAVE_PRSTATUS32_T_PR_WHO 1
5469 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5471 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5472 echo "configure:5473: checking for pstatus_t in sys/procfs.h" >&5
5473 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5474 echo $ac_n "(cached) $ac_c" 1>&6
5476 cat > conftest.$ac_ext <<EOF
5477 #line 5478 "configure"
5478 #include "confdefs.h"
5481 #include <sys/procfs.h>
5486 if { (eval echo configure:5487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5488 bfd_cv_have_sys_procfs_type_pstatus_t=yes
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 bfd_cv_have_sys_procfs_type_pstatus_t=no
5499 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5500 cat >> confdefs.h <<\EOF
5501 #define HAVE_PSTATUS_T 1
5505 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5507 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5508 echo "configure:5509: checking for pxstatus_t in sys/procfs.h" >&5
5509 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 cat > conftest.$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5517 #include <sys/procfs.h>
5522 if { (eval echo configure:5523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5524 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5529 bfd_cv_have_sys_procfs_type_pxstatus_t=no
5535 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5536 cat >> confdefs.h <<\EOF
5537 #define HAVE_PXSTATUS_T 1
5541 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5543 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5544 echo "configure:5545: checking for pstatus32_t in sys/procfs.h" >&5
5545 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5546 echo $ac_n "(cached) $ac_c" 1>&6
5548 cat > conftest.$ac_ext <<EOF
5549 #line 5550 "configure"
5550 #include "confdefs.h"
5553 #include <sys/procfs.h>
5558 if { (eval echo configure:5559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5560 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5565 bfd_cv_have_sys_procfs_type_pstatus32_t=no
5571 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5572 cat >> confdefs.h <<\EOF
5573 #define HAVE_PSTATUS32_T 1
5577 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5579 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5580 echo "configure:5581: checking for prpsinfo_t in sys/procfs.h" >&5
5581 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5589 #include <sys/procfs.h>
5594 if { (eval echo configure:5595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5596 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
5598 echo "configure: failed program was:" >&5
5599 cat conftest.$ac_ext >&5
5601 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
5607 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5608 cat >> confdefs.h <<\EOF
5609 #define HAVE_PRPSINFO_T 1
5613 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5615 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5616 echo "configure:5617: checking for prpsinfo32_t in sys/procfs.h" >&5
5617 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5618 echo $ac_n "(cached) $ac_c" 1>&6
5620 cat > conftest.$ac_ext <<EOF
5621 #line 5622 "configure"
5622 #include "confdefs.h"
5625 #include <sys/procfs.h>
5630 if { (eval echo configure:5631: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5632 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
5634 echo "configure: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
5643 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5644 cat >> confdefs.h <<\EOF
5645 #define HAVE_PRPSINFO32_T 1
5649 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5651 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5652 echo "configure:5653: checking for psinfo_t in sys/procfs.h" >&5
5653 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5661 #include <sys/procfs.h>
5666 if { (eval echo configure:5667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5668 bfd_cv_have_sys_procfs_type_psinfo_t=yes
5670 echo "configure: failed program was:" >&5
5671 cat conftest.$ac_ext >&5
5673 bfd_cv_have_sys_procfs_type_psinfo_t=no
5679 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5680 cat >> confdefs.h <<\EOF
5681 #define HAVE_PSINFO_T 1
5685 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5687 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5688 echo "configure:5689: checking for psinfo32_t in sys/procfs.h" >&5
5689 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5690 echo $ac_n "(cached) $ac_c" 1>&6
5692 cat > conftest.$ac_ext <<EOF
5693 #line 5694 "configure"
5694 #include "confdefs.h"
5697 #include <sys/procfs.h>
5702 if { (eval echo configure:5703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5704 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
5706 echo "configure: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5709 bfd_cv_have_sys_procfs_type_psinfo32_t=no
5715 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5716 cat >> confdefs.h <<\EOF
5717 #define HAVE_PSINFO32_T 1
5721 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5723 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5724 echo "configure:5725: checking for lwpstatus_t in sys/procfs.h" >&5
5725 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5726 echo $ac_n "(cached) $ac_c" 1>&6
5728 cat > conftest.$ac_ext <<EOF
5729 #line 5730 "configure"
5730 #include "confdefs.h"
5733 #include <sys/procfs.h>
5738 if { (eval echo configure:5739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5740 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
5742 echo "configure: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5745 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
5751 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5752 cat >> confdefs.h <<\EOF
5753 #define HAVE_LWPSTATUS_T 1
5757 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5759 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5760 echo "configure:5761: checking for lwpxstatus_t in sys/procfs.h" >&5
5761 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5762 echo $ac_n "(cached) $ac_c" 1>&6
5764 cat > conftest.$ac_ext <<EOF
5765 #line 5766 "configure"
5766 #include "confdefs.h"
5769 #include <sys/procfs.h>
5774 if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5776 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
5778 echo "configure: failed program was:" >&5
5779 cat conftest.$ac_ext >&5
5781 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
5787 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5788 cat >> confdefs.h <<\EOF
5789 #define HAVE_LWPXSTATUS_T 1
5793 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5795 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5796 echo "configure:5797: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5797 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5800 cat > conftest.$ac_ext <<EOF
5801 #line 5802 "configure"
5802 #include "confdefs.h"
5805 #include <sys/procfs.h>
5807 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5810 if { (eval echo configure:5811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5812 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
5823 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5824 cat >> confdefs.h <<\EOF
5825 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5829 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5831 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5832 echo "configure:5833: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5833 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5834 echo $ac_n "(cached) $ac_c" 1>&6
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5841 #include <sys/procfs.h>
5843 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5846 if { (eval echo configure:5847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5848 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
5850 echo "configure: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
5859 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5860 cat >> confdefs.h <<\EOF
5861 #define HAVE_LWPSTATUS_T_PR_REG 1
5865 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5867 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5868 echo "configure:5869: checking for win32_pstatus_t in sys/procfs.h" >&5
5869 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5870 echo $ac_n "(cached) $ac_c" 1>&6
5872 cat > conftest.$ac_ext <<EOF
5873 #line 5874 "configure"
5874 #include "confdefs.h"
5877 #include <sys/procfs.h>
5879 win32_pstatus_t avar
5882 if { (eval echo configure:5883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5884 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
5886 echo "configure: failed program was:" >&5
5887 cat conftest.$ac_ext >&5
5889 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
5895 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5896 cat >> confdefs.h <<\EOF
5897 #define HAVE_WIN32_PSTATUS_T 1
5901 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5907 if test -n "$TRAD_HEADER"; then
5908 cat >> confdefs.h <<EOF
5909 #define TRAD_HEADER $TRAD_HEADER
5914 # Horrible hacks to build DLLs on Windows.
5919 if test "$enable_shared" = "yes"; then
5920 WIN32LDFLAGS="-no-undefined"
5921 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5925 # We borrow WIN32LIBADD so that the shared libbfd won't depend on
5929 # Linux/MIPS uses PIC by default.
5930 if test "$enable_shared" = "yes"; then
5931 WIN32LIBADD="-L../libiberty -liberty"
5935 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | tail -1`
5936 if test -n "$x"; then
5937 WIN32LIBADD="-L../libiberty/pic -liberty"
5948 # Canonicalize the secondary target names.
5949 if test -n "$enable_targets" ; then
5950 for targ in `echo $enable_targets | sed 's/,/ /g'`
5952 result=`$ac_config_sub $targ 2>/dev/null`
5953 if test -n "$result" ; then
5954 canon_targets="$canon_targets $result"
5956 # Allow targets that config.sub doesn't recognize, like "all".
5957 canon_targets="$canon_targets $targ"
5967 for targ in $target $canon_targets
5969 if test "x$targ" = "xall"; then
5972 . $srcdir/config.bfd
5973 if test "x$targ" = "x$target"; then
5976 selvecs="$selvecs $targ_defvec $targ_selvecs"
5977 selarchs="$selarchs $targ_archs"
5978 TDEFINES="$TDEFINES $targ_cflags"
5983 # This processing still needs to be done if we're to decide properly whether
5984 # 64-bit support needs to be compiled in. Currently, it will be included if
5985 # the default or any other explicitly requested target requires it; it
5986 # will not be included on a 32-bit host if no 64-bit target is requested, and
5987 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5990 # uniq the default and selected vectors in all the configured targets.
5992 for i in $selvecs ; do
6001 # uniq the architectures in all the configured targets.
6003 for i in $selarchs ; do
6011 # Target backend .o files.
6014 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
6020 # This list is alphabetized to make it easy to compare
6021 # with the two vector lists in targets.c. For the same reason,
6022 # use one entry per line, even though this leads to long lines.
6023 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
6024 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
6025 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
6026 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6027 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
6028 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6029 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
6030 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
6031 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6032 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
6033 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6034 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
6035 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6036 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
6037 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
6038 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6039 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
6040 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6041 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
6042 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
6043 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
6044 bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
6045 bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
6046 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
6047 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6048 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6049 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6050 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6051 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6052 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6053 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
6054 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
6055 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
6056 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
6057 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
6058 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6059 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6060 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
6061 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
6062 bfd_elf32_i386qnx_vec) tb="$tb elf32-i386qnx.lo elf32.lo $elf" ;;
6063 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6064 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
6065 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
6066 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
6067 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
6068 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
6069 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
6070 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
6071 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
6072 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6073 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
6074 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
6075 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
6076 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
6077 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
6078 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6079 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
6080 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
6081 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
6082 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
6083 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
6084 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6085 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
6086 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6087 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
6088 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
6089 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6090 bfd_elf32_shblin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6091 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6092 bfd_elf32_shlin_vec) tb="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6093 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6094 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh-nbsd.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6095 # FIXME: We include cofflink.lo not because it's needed for
6096 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
6097 # which needs it but does not list it. Should be fixed in right place.
6098 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6099 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
6100 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6101 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
6102 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64-nbsd.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6103 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64-nbsd.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
6104 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64-nbsd.lo elf64.lo $elf" target_size=64 ;;
6105 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64-nbsd.lo elf64.lo $elf" target_size=64 ;;
6106 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
6107 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6108 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
6109 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6110 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6111 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
6112 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6113 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
6114 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6115 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6116 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6117 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
6118 bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6119 bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6120 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6121 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6122 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
6123 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6124 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6125 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
6126 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
6127 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
6128 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6129 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
6130 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6131 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6132 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
6133 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
6134 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6135 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6136 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6137 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6138 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
6139 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
6140 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6141 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
6142 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6143 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6144 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6145 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
6146 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
6147 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
6148 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
6149 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
6150 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
6151 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
6152 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
6153 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
6154 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
6155 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
6156 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
6157 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
6158 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
6159 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6160 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6161 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
6162 i386msdos_vec) tb="$tb i386msdos.lo" ;;
6163 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
6164 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
6165 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6166 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6167 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
6168 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6169 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
6170 ieee_vec) tb="$tb ieee.lo" ;;
6171 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
6172 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6173 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
6174 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6175 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
6176 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6177 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6178 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
6179 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
6180 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6181 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6182 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6183 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6184 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6185 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6186 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6187 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
6188 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
6189 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6190 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6191 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6192 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
6193 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
6194 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6195 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
6196 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6197 ppcboot_vec) tb="$tb ppcboot.lo" ;;
6198 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
6199 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6200 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
6201 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
6202 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6203 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6204 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6205 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
6206 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6207 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6208 som_vec) tb="$tb som.lo" ;;
6209 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
6210 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
6211 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
6212 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6213 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
6214 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
6215 srec_vec) tb="$tb srec.lo" ;;
6216 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
6217 symbolsrec_vec) tb="$tb srec.lo" ;;
6218 tekhex_vec) tb="$tb tekhex.lo" ;;
6219 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
6220 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
6221 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
6222 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
6223 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
6224 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
6225 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
6226 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
6227 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
6228 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
6229 versados_vec) tb="$tb versados.lo" ;;
6230 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
6231 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6232 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
6233 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
6234 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
6237 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6240 if test ${target_size} = 64; then
6243 if test x"${vec}" = x"${defvec}"; then
6244 bfd_default_target_size=${target_size}
6248 # Target architecture .o files.
6249 # A couple of CPUs use shorter file names to avoid problems on DOS
6251 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6253 # Weed out duplicate .o files.
6275 if test x${all_targets} = xtrue ; then
6276 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
6277 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
6281 else # all_targets is true
6282 # Only set these if they will be nonempty, for the clever echo.
6284 test -n "$selvecs" &&
6285 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6286 test -n "$selvecs" &&
6287 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6288 test -n "$selarchs" &&
6289 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6290 fi # all_targets is true
6292 case ${host64}-${target64}-${want64} in
6295 bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
6296 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6297 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6298 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6299 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6301 if test -n "$GCC" ; then
6303 echo $ac_n "checking for gcc version with buggy 64-bit support""... $ac_c" 1>&6
6304 echo "configure:6305: checking for gcc version with buggy 64-bit support" >&5
6305 # Add more tests for gcc versions with non-working 64-bit support here.
6306 cat > conftest.$ac_ext <<EOF
6307 #line 6308 "configure"
6308 #include "confdefs.h"
6309 :__GNUC__:__GNUC_MINOR__:__i386__:
6311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6312 egrep ": 2 : 91 : 1 :" >/dev/null 2>&1; then
6315 echo "$ac_t""yes: egcs-1.1.2 on ix86 spotted" 1>&6
6318 echo "$ac_t""no" 1>&6
6322 if test $bad_64bit_gcc = yes ; then
6323 { echo "configure: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" 1>&2; exit 1; }
6329 bfd_libs='$(BFD32_LIBS)'
6330 all_backends='$(BFD32_BACKENDS)'
6342 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6343 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6344 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6345 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6348 for ac_hdr in unistd.h
6350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6352 echo "configure:6353: checking for $ac_hdr" >&5
6353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6354 echo $ac_n "(cached) $ac_c" 1>&6
6356 cat > conftest.$ac_ext <<EOF
6357 #line 6358 "configure"
6358 #include "confdefs.h"
6361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6362 { (eval echo configure:6363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6364 if test -z "$ac_err"; then
6366 eval "ac_cv_header_$ac_safe=yes"
6369 echo "configure: failed program was:" >&5
6370 cat conftest.$ac_ext >&5
6372 eval "ac_cv_header_$ac_safe=no"
6376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6377 echo "$ac_t""yes" 1>&6
6378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6379 cat >> confdefs.h <<EOF
6380 #define $ac_tr_hdr 1
6384 echo "$ac_t""no" 1>&6
6388 for ac_func in getpagesize
6390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6391 echo "configure:6392: checking for $ac_func" >&5
6392 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6398 /* System header to define __stub macros and hopefully few prototypes,
6399 which can conflict with char $ac_func(); below. */
6401 /* Override any gcc2 internal prototype to avoid an error. */
6402 /* We use char because int might match the return type of a gcc2
6403 builtin and then its argument prototype would still apply. */
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6419 if { (eval echo configure:6420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6421 eval "ac_cv_func_$ac_func=yes"
6423 echo "configure: failed program was:" >&5
6424 cat conftest.$ac_ext >&5
6426 eval "ac_cv_func_$ac_func=no"
6431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6432 echo "$ac_t""yes" 1>&6
6433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6434 cat >> confdefs.h <<EOF
6435 #define $ac_tr_func 1
6439 echo "$ac_t""no" 1>&6
6443 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6444 echo "configure:6445: checking for working mmap" >&5
6445 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6446 echo $ac_n "(cached) $ac_c" 1>&6
6448 if test "$cross_compiling" = yes; then
6449 ac_cv_func_mmap_fixed_mapped=no
6451 cat > conftest.$ac_ext <<EOF
6452 #line 6453 "configure"
6453 #include "confdefs.h"
6455 /* Thanks to Mike Haertel and Jim Avera for this test.
6456 Here is a matrix of mmap possibilities:
6457 mmap private not fixed
6458 mmap private fixed at somewhere currently unmapped
6459 mmap private fixed at somewhere already mapped
6460 mmap shared not fixed
6461 mmap shared fixed at somewhere currently unmapped
6462 mmap shared fixed at somewhere already mapped
6463 For private mappings, we should verify that changes cannot be read()
6464 back from the file, nor mmap's back from the file at a different
6465 address. (There have been systems where private was not correctly
6466 implemented like the infamous i386 svr4.0, and systems where the
6467 VM page cache was not coherent with the filesystem buffer cache
6468 like early versions of FreeBSD and possibly contemporary NetBSD.)
6469 For shared mappings, we should conversely verify that changes get
6470 propogated back to all the places they're supposed to be.
6472 Grep wants private fixed already mapped.
6473 The main things grep needs to know about mmap are:
6474 * does it exist and is it safe to write into the mmap'd area
6475 * how to use it (BSD variants) */
6476 #include <sys/types.h>
6478 #include <sys/mman.h>
6480 /* This mess was copied from the GNU getpagesize.h. */
6481 #ifndef HAVE_GETPAGESIZE
6482 # ifdef HAVE_UNISTD_H
6483 # include <unistd.h>
6486 /* Assume that all systems that can run configure have sys/param.h. */
6487 # ifndef HAVE_SYS_PARAM_H
6488 # define HAVE_SYS_PARAM_H 1
6491 # ifdef _SC_PAGESIZE
6492 # define getpagesize() sysconf(_SC_PAGESIZE)
6493 # else /* no _SC_PAGESIZE */
6494 # ifdef HAVE_SYS_PARAM_H
6495 # include <sys/param.h>
6496 # ifdef EXEC_PAGESIZE
6497 # define getpagesize() EXEC_PAGESIZE
6498 # else /* no EXEC_PAGESIZE */
6500 # define getpagesize() NBPG * CLSIZE
6503 # endif /* no CLSIZE */
6504 # else /* no NBPG */
6506 # define getpagesize() NBPC
6507 # else /* no NBPC */
6509 # define getpagesize() PAGESIZE
6510 # endif /* PAGESIZE */
6511 # endif /* no NBPC */
6512 # endif /* no NBPG */
6513 # endif /* no EXEC_PAGESIZE */
6514 # else /* no HAVE_SYS_PARAM_H */
6515 # define getpagesize() 8192 /* punt totally */
6516 # endif /* no HAVE_SYS_PARAM_H */
6517 # endif /* no _SC_PAGESIZE */
6519 #endif /* no HAVE_GETPAGESIZE */
6522 extern "C" { void *malloc(unsigned); }
6530 char *data, *data2, *data3;
6534 pagesize = getpagesize();
6537 * First, make a file with some known garbage in it.
6539 data = malloc(pagesize);
6542 for (i = 0; i < pagesize; ++i)
6543 *(data + i) = rand();
6545 fd = creat("conftestmmap", 0600);
6548 if (write(fd, data, pagesize) != pagesize)
6553 * Next, try to mmap the file at a fixed address which
6554 * already has something else allocated at it. If we can,
6555 * also make sure that we see the same garbage.
6557 fd = open("conftestmmap", O_RDWR);
6560 data2 = malloc(2 * pagesize);
6563 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6564 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6567 for (i = 0; i < pagesize; ++i)
6568 if (*(data + i) != *(data2 + i))
6572 * Finally, make sure that changes to the mapped area
6573 * do not percolate back to the file as seen by read().
6574 * (This is a bug on some variants of i386 svr4.0.)
6576 for (i = 0; i < pagesize; ++i)
6577 *(data2 + i) = *(data2 + i) + 1;
6578 data3 = malloc(pagesize);
6581 if (read(fd, data3, pagesize) != pagesize)
6583 for (i = 0; i < pagesize; ++i)
6584 if (*(data + i) != *(data3 + i))
6587 unlink("conftestmmap");
6592 if { (eval echo configure:6593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6594 ac_cv_func_mmap_fixed_mapped=yes
6596 echo "configure: failed program was:" >&5
6597 cat conftest.$ac_ext >&5
6599 ac_cv_func_mmap_fixed_mapped=no
6606 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6607 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6608 cat >> confdefs.h <<\EOF
6614 for ac_func in madvise mprotect
6616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6617 echo "configure:6618: checking for $ac_func" >&5
6618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func(); below. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6634 /* The GNU C library defines this for functions which it implements
6635 to always fail with ENOSYS. Some functions are actually named
6636 something starting with __ and the normal name is an alias. */
6637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6645 if { (eval echo configure:6646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6647 eval "ac_cv_func_$ac_func=yes"
6649 echo "configure: failed program was:" >&5
6650 cat conftest.$ac_ext >&5
6652 eval "ac_cv_func_$ac_func=no"
6657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6658 echo "$ac_t""yes" 1>&6
6659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6660 cat >> confdefs.h <<EOF
6661 #define $ac_tr_func 1
6665 echo "$ac_t""no" 1>&6
6669 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6670 true+yes ) cat >> confdefs.h <<\EOF
6676 rm -f doc/config.status
6678 cat > confcache <<\EOF
6679 # This file is a shell script that caches the results of configure
6680 # tests run on this system so they can be shared between configure
6681 # scripts and configure runs. It is not useful on other systems.
6682 # If it contains results you don't want to keep, you may remove or edit it.
6684 # By default, configure uses ./config.cache as the cache file,
6685 # creating it if it does not exist already. You can give configure
6686 # the --cache-file=FILE option to use a different cache file; that is
6687 # what configure does when it calls configure scripts in
6688 # subdirectories, so they share the cache.
6689 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6690 # config.status only pays attention to the cache file if you give it the
6691 # --recheck option to rerun configure.
6694 # The following way of writing the cache mishandles newlines in values,
6695 # but we know of no workaround that is simple, portable, and efficient.
6696 # So, don't put newlines in cache variables' values.
6697 # Ultrix sh set writes to stderr and can't be redirected directly,
6698 # and sets the high bit in the cache file unless we assign to the vars.
6700 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6702 # `set' does not quote correctly, so add quotes (double-quote substitution
6703 # turns \\\\ into \\, and sed turns \\ into \).
6705 -e "s/'/'\\\\''/g" \
6706 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6709 # `set' quotes correctly as required by POSIX, so do not add quotes.
6710 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6713 if cmp -s $cache_file confcache; then
6716 if test -w $cache_file; then
6717 echo "updating cache $cache_file"
6718 cat confcache > $cache_file
6720 echo "not updating unwritable cache $cache_file"
6725 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6727 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6728 # Let make expand exec_prefix.
6729 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6731 # Any assignment to VPATH causes Sun make to only execute
6732 # the first set of double-colon rules, so remove it if not needed.
6733 # If there is a colon in the path, we need to keep it.
6734 if test "x$srcdir" = x.; then
6735 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6738 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6740 DEFS=-DHAVE_CONFIG_H
6742 # Without the "./", some shells look in PATH for config.status.
6743 : ${CONFIG_STATUS=./config.status}
6745 echo creating $CONFIG_STATUS
6746 rm -f $CONFIG_STATUS
6747 cat > $CONFIG_STATUS <<EOF
6749 # Generated automatically by configure.
6750 # Run this file to recreate the current configuration.
6751 # This directory was configured as follows,
6752 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6754 # $0 $ac_configure_args
6756 # Compiler output produced by configure, useful for debugging
6757 # configure, is in ./config.log if it exists.
6759 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6762 case "\$ac_option" in
6763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6764 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6765 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6766 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6767 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6769 -help | --help | --hel | --he | --h)
6770 echo "\$ac_cs_usage"; exit 0 ;;
6771 *) echo "\$ac_cs_usage"; exit 1 ;;
6775 ac_given_srcdir=$srcdir
6776 ac_given_INSTALL="$INSTALL"
6778 trap 'rm -fr `echo "Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6780 cat >> $CONFIG_STATUS <<EOF
6782 # Protect against being on the right side of a sed subst in config.status.
6783 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6784 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6788 s%@CFLAGS@%$CFLAGS%g
6789 s%@CPPFLAGS@%$CPPFLAGS%g
6790 s%@CXXFLAGS@%$CXXFLAGS%g
6791 s%@FFLAGS@%$FFLAGS%g
6793 s%@LDFLAGS@%$LDFLAGS%g
6795 s%@exec_prefix@%$exec_prefix%g
6796 s%@prefix@%$prefix%g
6797 s%@program_transform_name@%$program_transform_name%g
6798 s%@bindir@%$bindir%g
6799 s%@sbindir@%$sbindir%g
6800 s%@libexecdir@%$libexecdir%g
6801 s%@datadir@%$datadir%g
6802 s%@sysconfdir@%$sysconfdir%g
6803 s%@sharedstatedir@%$sharedstatedir%g
6804 s%@localstatedir@%$localstatedir%g
6805 s%@libdir@%$libdir%g
6806 s%@includedir@%$includedir%g
6807 s%@oldincludedir@%$oldincludedir%g
6808 s%@infodir@%$infodir%g
6809 s%@mandir@%$mandir%g
6811 s%@host_alias@%$host_alias%g
6812 s%@host_cpu@%$host_cpu%g
6813 s%@host_vendor@%$host_vendor%g
6814 s%@host_os@%$host_os%g
6815 s%@target@%$target%g
6816 s%@target_alias@%$target_alias%g
6817 s%@target_cpu@%$target_cpu%g
6818 s%@target_vendor@%$target_vendor%g
6819 s%@target_os@%$target_os%g
6821 s%@build_alias@%$build_alias%g
6822 s%@build_cpu@%$build_cpu%g
6823 s%@build_vendor@%$build_vendor%g
6824 s%@build_os@%$build_os%g
6826 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6827 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6828 s%@INSTALL_DATA@%$INSTALL_DATA%g
6829 s%@PACKAGE@%$PACKAGE%g
6830 s%@VERSION@%$VERSION%g
6831 s%@ACLOCAL@%$ACLOCAL%g
6832 s%@AUTOCONF@%$AUTOCONF%g
6833 s%@AUTOMAKE@%$AUTOMAKE%g
6834 s%@AUTOHEADER@%$AUTOHEADER%g
6835 s%@MAKEINFO@%$MAKEINFO%g
6836 s%@SET_MAKE@%$SET_MAKE%g
6837 s%@bfd_version@%$bfd_version%g
6838 s%@bfd_version_date@%$bfd_version_date%g
6839 s%@bfd_version_string@%$bfd_version_string%g
6841 s%@RANLIB@%$RANLIB%g
6843 s%@OBJEXT@%$OBJEXT%g
6844 s%@EXEEXT@%$EXEEXT%g
6846 s%@LIBTOOL@%$LIBTOOL%g
6847 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6848 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6849 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6851 s%@INSTALL_LIBBFD_TRUE@%$INSTALL_LIBBFD_TRUE%g
6852 s%@INSTALL_LIBBFD_FALSE@%$INSTALL_LIBBFD_FALSE%g
6853 s%@bfdlibdir@%$bfdlibdir%g
6854 s%@bfdincludedir@%$bfdincludedir%g
6856 s%@ALLOCA@%$ALLOCA%g
6857 s%@USE_NLS@%$USE_NLS%g
6858 s%@MSGFMT@%$MSGFMT%g
6859 s%@GMSGFMT@%$GMSGFMT%g
6860 s%@XGETTEXT@%$XGETTEXT%g
6861 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6862 s%@CATALOGS@%$CATALOGS%g
6863 s%@CATOBJEXT@%$CATOBJEXT%g
6864 s%@DATADIRNAME@%$DATADIRNAME%g
6865 s%@GMOFILES@%$GMOFILES%g
6866 s%@INSTOBJEXT@%$INSTOBJEXT%g
6867 s%@INTLDEPS@%$INTLDEPS%g
6868 s%@INTLLIBS@%$INTLLIBS%g
6869 s%@INTLOBJS@%$INTLOBJS%g
6870 s%@POFILES@%$POFILES%g
6872 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6874 s%@GT_YES@%$GT_YES%g
6875 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6877 s%@HDEFINES@%$HDEFINES%g
6878 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6879 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6880 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6881 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6882 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6883 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6884 s%@COREFILE@%$COREFILE%g
6885 s%@COREFLAG@%$COREFLAG%g
6886 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6887 s%@WIN32LIBADD@%$WIN32LIBADD%g
6888 s%@TDEFINES@%$TDEFINES%g
6889 s%@wordsize@%$wordsize%g
6890 s%@bfd_libs@%$bfd_libs%g
6891 s%@all_backends@%$all_backends%g
6892 s%@bfd_backends@%$bfd_backends%g
6893 s%@bfd_machines@%$bfd_machines%g
6894 s%@bfd_default_target_size@%$bfd_default_target_size%g
6895 s%@tdefaults@%$tdefaults%g
6900 cat >> $CONFIG_STATUS <<\EOF
6902 # Split the substitutions into bite-sized pieces for seds with
6903 # small command number limits, like on Digital OSF/1 and HP-UX.
6904 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6905 ac_file=1 # Number of current file.
6906 ac_beg=1 # First line for current file.
6907 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6910 while $ac_more_lines; do
6911 if test $ac_beg -gt 1; then
6912 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6914 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6916 if test ! -s conftest.s$ac_file; then
6918 rm -f conftest.s$ac_file
6920 if test -z "$ac_sed_cmds"; then
6921 ac_sed_cmds="sed -f conftest.s$ac_file"
6923 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6925 ac_file=`expr $ac_file + 1`
6927 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6930 if test -z "$ac_sed_cmds"; then
6935 cat >> $CONFIG_STATUS <<EOF
6937 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6939 cat >> $CONFIG_STATUS <<\EOF
6940 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6943 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6944 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6945 *) ac_file_in="${ac_file}.in" ;;
6948 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6950 # Remove last slash and all that follows it. Not all systems have dirname.
6951 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6952 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6953 # The file is in a subdirectory.
6954 test ! -d "$ac_dir" && mkdir "$ac_dir"
6955 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6956 # A "../" for each directory in $ac_dir_suffix.
6957 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6959 ac_dir_suffix= ac_dots=
6962 case "$ac_given_srcdir" in
6964 if test -z "$ac_dots"; then top_srcdir=.
6965 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6966 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6968 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6969 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6972 case "$ac_given_INSTALL" in
6973 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6974 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6977 echo creating "$ac_file"
6979 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6981 *Makefile*) ac_comsub="1i\\
6982 # $configure_input" ;;
6986 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6988 s%@configure_input@%$configure_input%g
6989 s%@srcdir@%$srcdir%g
6990 s%@top_srcdir@%$top_srcdir%g
6991 s%@INSTALL@%$INSTALL%g
6992 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6996 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6997 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6999 # ac_d sets the value in "#define NAME VALUE" lines.
7000 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7001 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
7004 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7005 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7006 ac_uB='\([ ]\)%\1#\2define\3'
7009 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7010 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7011 ac_eB='$%\1#\2define\3'
7015 if test "${CONFIG_HEADERS+set}" != set; then
7017 cat >> $CONFIG_STATUS <<EOF
7018 CONFIG_HEADERS="config.h:config.in"
7020 cat >> $CONFIG_STATUS <<\EOF
7022 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
7023 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7025 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
7026 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
7027 *) ac_file_in="${ac_file}.in" ;;
7030 echo creating $ac_file
7032 rm -f conftest.frag conftest.in conftest.out
7033 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7034 cat $ac_file_inputs > conftest.in
7038 # Transform confdefs.h into a sed script conftest.vals that substitutes
7039 # the proper values into config.h.in to produce config.h. And first:
7040 # Protect against being on the right side of a sed subst in config.status.
7041 # Protect against being in an unquoted here document in config.status.
7043 cat > conftest.hdr <<\EOF
7046 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7050 sed -n -f conftest.hdr confdefs.h > conftest.vals
7053 # This sed command replaces #undef with comments. This is necessary, for
7054 # example, in the case of _POSIX_SOURCE, which is predefined and required
7055 # on some systems where configure will not decide to define it.
7056 cat >> conftest.vals <<\EOF
7057 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7060 # Break up conftest.vals because some shells have a limit on
7061 # the size of here documents, and old seds have small limits too.
7066 ac_lines=`grep -c . conftest.vals`
7067 # grep -c gives empty output for an empty file on some AIX systems.
7068 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7069 # Write a limited-size here document to conftest.frag.
7070 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7071 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7073 sed -f conftest.frag conftest.in > conftest.out
7075 mv conftest.out conftest.in
7077 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7079 mv conftest.tail conftest.vals
7083 cat >> $CONFIG_STATUS <<\EOF
7084 rm -f conftest.frag conftest.h
7085 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7086 cat conftest.in >> conftest.h
7088 if cmp -s $ac_file conftest.h 2>/dev/null; then
7089 echo "$ac_file is unchanged"
7092 # Remove last slash and all that follows it. Not all systems have dirname.
7093 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7094 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7095 # The file is in a subdirectory.
7096 test ! -d "$ac_dir" && mkdir "$ac_dir"
7099 mv conftest.h $ac_file
7104 cat >> $CONFIG_STATUS <<EOF
7108 cat >> $CONFIG_STATUS <<\EOF
7109 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7110 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
7113 chmod +x $CONFIG_STATUS
7114 rm -fr confdefs* $ac_clean_files
7115 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1