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 --disable-nls do not use Native Language Support"
42 --with-included-gettext use the GNU gettext library included here"
44 # Initialize some variables set by options.
45 # The variables have the same names as the options, with
46 # dashes changed to underlines.
48 cache_file
=.
/config.cache
57 program_transform_name
=s
,x
,x
,
66 bindir
='${exec_prefix}/bin'
67 sbindir
='${exec_prefix}/sbin'
68 libexecdir
='${exec_prefix}/libexec'
69 datadir
='${prefix}/share'
70 sysconfdir
='${prefix}/etc'
71 sharedstatedir
='${prefix}/com'
72 localstatedir
='${prefix}/var'
73 libdir
='${exec_prefix}/lib'
74 includedir
='${prefix}/include'
75 oldincludedir
='/usr/include'
76 infodir
='${prefix}/info'
77 mandir
='${prefix}/man'
79 # Initialize some other variables.
82 SHELL
=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
98 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
102 # Accept the important Cygnus configure options, so we can diagnose typos.
106 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
108 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
109 bindir
="$ac_optarg" ;;
111 -build |
--build |
--buil |
--bui |
--bu)
113 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
114 build
="$ac_optarg" ;;
116 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
117 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
118 ac_prev
=cache_file
;;
119 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
120 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
121 cache_file
="$ac_optarg" ;;
123 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
125 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
127 datadir
="$ac_optarg" ;;
129 -disable-* |
--disable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* |
--enable-*)
139 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
152 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
153 |
--exec |
--exe |
--ex)
154 ac_prev
=exec_prefix
;;
155 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
156 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
157 |
--exec=* |
--exe=* |
--ex=*)
158 exec_prefix
="$ac_optarg" ;;
160 -gas |
--gas |
--ga |
--g)
161 # Obsolete; use --with-gas.
164 -help |
--help |
--hel |
--he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --site-file=FILE use FILE as the site file
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 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
348 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
349 sitefile
="$ac_optarg" ;;
351 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
353 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
354 srcdir
="$ac_optarg" ;;
356 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
357 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
358 ac_prev
=sysconfdir
;;
359 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
360 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
361 sysconfdir
="$ac_optarg" ;;
363 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
365 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
366 target
="$ac_optarg" ;;
368 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
371 -version |
--version |
--versio |
--versi |
--vers)
372 echo "configure generated by autoconf version 2.13"
376 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}='$ac_optarg'" ;;
388 -without-* |
--without-*)
389 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package
=`echo $ac_package| sed 's/-/_/g'`
395 eval "with_${ac_package}=no" ;;
398 # Obsolete; use --with-x.
401 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
402 |
--x-incl |
--x-inc |
--x-in |
--x-i)
403 ac_prev
=x_includes
;;
404 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
405 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
406 x_includes
="$ac_optarg" ;;
408 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
409 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
410 ac_prev
=x_libraries
;;
411 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
412 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
413 x_libraries
="$ac_optarg" ;;
415 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
419 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420 echo "configure: warning: $ac_option: invalid host type" 1>&2
422 if test "x$nonopt" != xNONE
; then
423 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
431 if test -n "$ac_prev"; then
432 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
435 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437 # File descriptor usage:
440 # 2 errors and warnings
441 # 3 some systems may open it to /dev/tty
442 # 4 used on the Kubota Titan
443 # 6 checking for... messages and results
444 # 5 compiler messages saved in config.log
445 if test "$silent" = yes; then
453 This file contains any messages produced by compilers while
454 running configure, to aid debugging if configure makes a mistake.
457 # Strip out --no-create and --no-recursion so they do not pile up.
458 # Also quote any args containing shell metacharacters.
463 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
464 |
--no-cr |
--no-c) ;;
465 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
466 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
467 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
469 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
474 # Only set these to C if already set. These must not be set unconditionally
475 # because not all systems understand e.g. LANG=C (notably SCO).
476 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477 # Non-C LC_CTYPE values break the ctype check.
478 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
479 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
480 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
481 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
483 # confdefs.h avoids OS command line length limits that DEFS can exceed.
484 rm -rf conftest
* confdefs.h
485 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
488 # A filename unique to this package, relative to the directory that
489 # configure is in, which we can look for to find out if srcdir is correct.
490 ac_unique_file
=libbfd.c
492 # Find the source files, if location was not specified.
493 if test -z "$srcdir"; then
494 ac_srcdir_defaulted
=yes
495 # Try the directory containing this script, then its parent.
497 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
500 if test ! -r $srcdir/$ac_unique_file; then
504 ac_srcdir_defaulted
=no
506 if test ! -r $srcdir/$ac_unique_file; then
507 if test "$ac_srcdir_defaulted" = yes; then
508 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
513 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515 # Prefer explicitly selected file to automatically selected ones.
516 if test -z "$sitefile"; then
517 if test -z "$CONFIG_SITE"; then
518 if test "x$prefix" != xNONE
; then
519 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
521 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 CONFIG_SITE
="$sitefile"
527 for ac_site_file
in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
538 echo "creating cache $cache_file"
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp
='$CPP $CPPFLAGS'
545 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling
=$ac_cv_prog_cc_cross
551 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
560 ac_n
= ac_c
='\c' ac_t
=
563 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
564 echo "configure:565: checking for Cygwin environment" >&5
565 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 cat > conftest.
$ac_ext <<EOF
569 #line 570 "configure"
570 #include "confdefs.h"
575 #define __CYGWIN__ __CYGWIN32__
580 if { (eval echo configure
:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
584 echo "configure: failed program was:" >&5
585 cat conftest.
$ac_ext >&5
593 echo "$ac_t""$ac_cv_cygwin" 1>&6
595 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
596 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
597 echo "configure:598: checking for mingw32 environment" >&5
598 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 cat > conftest.
$ac_ext <<EOF
602 #line 603 "configure"
603 #include "confdefs.h"
609 if { (eval echo configure
:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
613 echo "configure: failed program was:" >&5
614 cat conftest.
$ac_ext >&5
622 echo "$ac_t""$ac_cv_mingw32" 1>&6
624 test "$ac_cv_mingw32" = yes && MINGW32
=yes
628 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
629 if test -f $ac_dir/install-sh
; then
631 ac_install_sh
="$ac_aux_dir/install-sh -c"
633 elif test -f $ac_dir/install.sh
; then
635 ac_install_sh
="$ac_aux_dir/install.sh -c"
639 if test -z "$ac_aux_dir"; then
640 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
642 ac_config_guess
=$ac_aux_dir/config.guess
643 ac_config_sub
=$ac_aux_dir/config.sub
644 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
647 # Do some error checking and defaulting for the host and target type.
649 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
652 # 1. You are not allowed to specify --host, --target, and nonopt at the
654 # 2. Host defaults to nonopt.
655 # 3. If nonopt is not specified, then host defaults to the current host,
656 # as determined by config.guess.
657 # 4. Target and build default to nonopt.
658 # 5. If nonopt is not specified, then target and build default to host.
660 # The aliases save the names the user supplied, while $host etc.
661 # will get canonicalized.
662 case $host---$target---$nonopt in
663 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
664 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
668 # Make sure we can run config.sub.
669 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
670 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
677 case "$host_alias" in
681 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
682 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
684 *) host_alias
=$nonopt ;;
688 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
689 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
690 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
691 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
692 echo "$ac_t""$host" 1>&6
694 echo $ac_n "checking target system type""... $ac_c" 1>&6
695 echo "configure:696: checking target system type" >&5
698 case "$target_alias" in
701 NONE
) target_alias
=$host_alias ;;
702 *) target_alias
=$nonopt ;;
706 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
707 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
708 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
709 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo "$ac_t""$target" 1>&6
712 echo $ac_n "checking build system type""... $ac_c" 1>&6
713 echo "configure:714: checking build system type" >&5
716 case "$build_alias" in
719 NONE
) build_alias
=$host_alias ;;
720 *) build_alias
=$nonopt ;;
724 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
725 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
726 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
727 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
728 echo "$ac_t""$build" 1>&6
730 test "$host_alias" != "$target_alias" &&
731 test "$program_prefix$program_suffix$program_transform_name" = \
733 program_prefix
=${target_alias}-
735 # Extract the first word of "gcc", so it can be a program name with args.
736 set dummy gcc
; ac_word
=$2
737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
738 echo "configure:739: checking for $ac_word" >&5
739 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
742 if test -n "$CC"; then
743 ac_cv_prog_CC
="$CC" # Let the user override the test.
745 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
747 for ac_dir
in $ac_dummy; do
748 test -z "$ac_dir" && ac_dir
=.
749 if test -f $ac_dir/$ac_word; then
758 if test -n "$CC"; then
759 echo "$ac_t""$CC" 1>&6
761 echo "$ac_t""no" 1>&6
764 if test -z "$CC"; then
765 # Extract the first word of "cc", so it can be a program name with args.
766 set dummy cc
; ac_word
=$2
767 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
768 echo "configure:769: checking for $ac_word" >&5
769 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
770 echo $ac_n "(cached) $ac_c" 1>&6
772 if test -n "$CC"; then
773 ac_cv_prog_CC
="$CC" # Let the user override the test.
775 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
778 for ac_dir
in $ac_dummy; do
779 test -z "$ac_dir" && ac_dir
=.
780 if test -f $ac_dir/$ac_word; then
781 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
790 if test $ac_prog_rejected = yes; then
791 # We found a bogon in the path, so make sure we never use it.
792 set dummy
$ac_cv_prog_CC
794 if test $# -gt 0; then
795 # We chose a different compiler from the bogus one.
796 # However, it has the same basename, so the bogon will be chosen
797 # first if we set CC to just the basename; use the full file name.
799 set dummy
"$ac_dir/$ac_word" "$@"
807 if test -n "$CC"; then
808 echo "$ac_t""$CC" 1>&6
810 echo "$ac_t""no" 1>&6
813 if test -z "$CC"; then
816 # Extract the first word of "cl", so it can be a program name with args.
817 set dummy cl
; ac_word
=$2
818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
819 echo "configure:820: checking for $ac_word" >&5
820 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
821 echo $ac_n "(cached) $ac_c" 1>&6
823 if test -n "$CC"; then
824 ac_cv_prog_CC
="$CC" # Let the user override the test.
826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
828 for ac_dir
in $ac_dummy; do
829 test -z "$ac_dir" && ac_dir
=.
830 if test -f $ac_dir/$ac_word; then
839 if test -n "$CC"; then
840 echo "$ac_t""$CC" 1>&6
842 echo "$ac_t""no" 1>&6
847 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
850 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
851 echo "configure:852: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
855 ac_cpp
='$CPP $CPPFLAGS'
856 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
857 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
858 cross_compiling
=$ac_cv_prog_cc_cross
860 cat > conftest.
$ac_ext << EOF
862 #line 863 "configure"
863 #include "confdefs.h"
867 if { (eval echo configure
:868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
868 ac_cv_prog_cc_works
=yes
869 # If we can't run a trivial program, we are probably using a cross compiler.
870 if (.
/conftest
; exit) 2>/dev
/null
; then
871 ac_cv_prog_cc_cross
=no
873 ac_cv_prog_cc_cross
=yes
876 echo "configure: failed program was:" >&5
877 cat conftest.
$ac_ext >&5
878 ac_cv_prog_cc_works
=no
882 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
883 ac_cpp
='$CPP $CPPFLAGS'
884 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
885 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
886 cross_compiling
=$ac_cv_prog_cc_cross
888 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
889 if test $ac_cv_prog_cc_works = no
; then
890 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
892 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
893 echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
894 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
895 cross_compiling
=$ac_cv_prog_cc_cross
897 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
898 echo "configure:899: checking whether we are using GNU C" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 cat > conftest.c
<<EOF
907 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
914 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
916 if test $ac_cv_prog_gcc = yes; then
922 ac_test_CFLAGS
="${CFLAGS+set}"
923 ac_save_CFLAGS
="$CFLAGS"
925 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
926 echo "configure:927: checking whether ${CC-cc} accepts -g" >&5
927 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 echo 'void f(){}' > conftest.c
931 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
940 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
941 if test "$ac_test_CFLAGS" = set; then
942 CFLAGS
="$ac_save_CFLAGS"
943 elif test $ac_cv_prog_cc_g = yes; then
944 if test "$GCC" = yes; then
950 if test "$GCC" = yes; then
957 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
958 echo "configure:959: checking for POSIXized ISC" >&5
959 if test -d /etc
/conf
/kconfig.d
&&
960 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
962 echo "$ac_t""yes" 1>&6
963 ISC
=yes # If later tests want to check for ISC.
964 cat >> confdefs.h
<<\EOF
965 #define _POSIX_SOURCE 1
968 if test "$GCC" = yes; then
974 echo "$ac_t""no" 1>&6
979 # Find a good install program. We prefer a C program (faster),
980 # so one script is as good as another. But avoid the broken or
981 # incompatible versions:
982 # SysV /etc/install, /usr/sbin/install
983 # SunOS /usr/etc/install
986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
989 # ./install, which can be erroneously created by make from ./install.sh.
990 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
991 echo "configure:992: checking for a BSD compatible install" >&5
992 if test -z "$INSTALL"; then
993 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
997 for ac_dir
in $PATH; do
998 # Account for people who put trailing slashes in PATH elements.
1000 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1002 # OSF1 and SCO ODT 3.0 have their own names for install.
1003 # Don't use installbsd from OSF since it installs stuff as root
1005 for ac_prog
in ginstall scoinst
install; do
1006 if test -f $ac_dir/$ac_prog; then
1007 if test $ac_prog = install &&
1008 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1009 # AIX install. It has an incompatible calling convention.
1012 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1023 if test "${ac_cv_path_install+set}" = set; then
1024 INSTALL
="$ac_cv_path_install"
1026 # As a last resort, use the slow shell script. We don't cache a
1027 # path for INSTALL within a source directory, because that will
1028 # break other packages using the cache if that directory is
1029 # removed, or if the path is relative.
1030 INSTALL
="$ac_install_sh"
1033 echo "$ac_t""$INSTALL" 1>&6
1035 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1036 # It thinks the first close brace ends the variable substitution.
1037 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1039 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1041 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1043 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether build environment is sane" >&5
1047 echo timestamp
> conftestfile
1048 # Do `set' in a subshell so we don't clobber the current shell's
1049 # arguments. Must try -L first in case configure is actually a
1050 # symlink; some systems play weird games with the mod time of symlinks
1051 # (eg FreeBSD returns the mod time of the symlink's containing
1054 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1055 if test "$*" = "X"; then
1057 set X
`ls -t $srcdir/configure conftestfile`
1059 if test "$*" != "X $srcdir/configure conftestfile" \
1060 && test "$*" != "X conftestfile $srcdir/configure"; then
1062 # If neither matched, then we have a broken ls. This can happen
1063 # if, for instance, CONFIG_SHELL is bash and it inherits a
1064 # broken ls alias from the environment. This has actually
1065 # happened. Such a system could not be considered "sane".
1066 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1067 alias in your environment" 1>&2; exit 1; }
1070 test "$2" = conftestfile
1076 { echo "configure: error: newly created file is older than distributed files!
1077 Check your system clock" 1>&2; exit 1; }
1080 echo "$ac_t""yes" 1>&6
1081 if test "$program_transform_name" = s
,x
,x
,; then
1082 program_transform_name
=
1084 # Double any \ or $. echo might interpret backslashes.
1085 cat <<\EOF_SED
> conftestsed
1086 s
,\\,\\\\,g
; s
,\$
,$$
,g
1088 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1091 test "$program_prefix" != NONE
&&
1092 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1093 # Use a double $ so make ignores it.
1094 test "$program_suffix" != NONE
&&
1095 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1097 # sed with no file args requires a program.
1098 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1100 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether ${MAKE-make} sets \${MAKE}" >&5
1102 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1103 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1106 cat > conftestmake
<<\EOF
1108 @
echo 'ac_maketemp="${MAKE}"'
1110 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1111 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1112 if test -n "$ac_maketemp"; then
1113 eval ac_cv_prog_make_
${ac_make}_set
=yes
1115 eval ac_cv_prog_make_
${ac_make}_set
=no
1119 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1123 echo "$ac_t""no" 1>&6
1124 SET_MAKE
="MAKE=${MAKE-make}"
1132 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
1133 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
1135 cat >> confdefs.h
<<EOF
1136 #define PACKAGE "$PACKAGE"
1139 cat >> confdefs.h
<<EOF
1140 #define VERSION "$VERSION"
1145 missing_dir
=`cd $ac_aux_dir && pwd`
1146 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1147 echo "configure:1148: checking for working aclocal" >&5
1148 # Run test in a subshell; some versions of sh will print an error if
1149 # an executable is not found, even if stderr is redirected.
1150 # Redirect stdin to placate older versions of autoconf. Sigh.
1151 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
1153 echo "$ac_t""found" 1>&6
1155 ACLOCAL
="$missing_dir/missing aclocal"
1156 echo "$ac_t""missing" 1>&6
1159 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1160 echo "configure:1161: checking for working autoconf" >&5
1161 # Run test in a subshell; some versions of sh will print an error if
1162 # an executable is not found, even if stderr is redirected.
1163 # Redirect stdin to placate older versions of autoconf. Sigh.
1164 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1166 echo "$ac_t""found" 1>&6
1168 AUTOCONF
="$missing_dir/missing autoconf"
1169 echo "$ac_t""missing" 1>&6
1172 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1173 echo "configure:1174: checking for working automake" >&5
1174 # Run test in a subshell; some versions of sh will print an error if
1175 # an executable is not found, even if stderr is redirected.
1176 # Redirect stdin to placate older versions of autoconf. Sigh.
1177 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1179 echo "$ac_t""found" 1>&6
1181 AUTOMAKE
="$missing_dir/missing automake"
1182 echo "$ac_t""missing" 1>&6
1185 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1186 echo "configure:1187: checking for working autoheader" >&5
1187 # Run test in a subshell; some versions of sh will print an error if
1188 # an executable is not found, even if stderr is redirected.
1189 # Redirect stdin to placate older versions of autoconf. Sigh.
1190 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1191 AUTOHEADER
=autoheader
1192 echo "$ac_t""found" 1>&6
1194 AUTOHEADER
="$missing_dir/missing autoheader"
1195 echo "$ac_t""missing" 1>&6
1198 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1199 echo "configure:1200: checking for working makeinfo" >&5
1200 # Run test in a subshell; some versions of sh will print an error if
1201 # an executable is not found, even if stderr is redirected.
1202 # Redirect stdin to placate older versions of autoconf. Sigh.
1203 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1205 echo "$ac_t""found" 1>&6
1207 MAKEINFO
="$missing_dir/missing makeinfo"
1208 echo "$ac_t""missing" 1>&6
1213 if test $host != $build; then
1214 ac_tool_prefix
=${host_alias}-
1219 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1220 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222 echo "configure:1223: checking for $ac_word" >&5
1223 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 if test -n "$AR"; then
1227 ac_cv_prog_AR
="$AR" # Let the user override the test.
1229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1231 for ac_dir
in $ac_dummy; do
1232 test -z "$ac_dir" && ac_dir
=.
1233 if test -f $ac_dir/$ac_word; then
1234 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1239 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1243 if test -n "$AR"; then
1244 echo "$ac_t""$AR" 1>&6
1246 echo "$ac_t""no" 1>&6
1251 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1252 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_word" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test -n "$RANLIB"; then
1259 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1263 for ac_dir
in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir
=.
1265 if test -f $ac_dir/$ac_word; then
1266 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1273 RANLIB
="$ac_cv_prog_RANLIB"
1274 if test -n "$RANLIB"; then
1275 echo "$ac_t""$RANLIB" 1>&6
1277 echo "$ac_t""no" 1>&6
1281 if test -z "$ac_cv_prog_RANLIB"; then
1282 if test -n "$ac_tool_prefix"; then
1283 # Extract the first word of "ranlib", so it can be a program name with args.
1284 set dummy ranlib
; ac_word
=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test -n "$RANLIB"; then
1291 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1293 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1295 for ac_dir
in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_RANLIB
="ranlib"
1303 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1306 RANLIB
="$ac_cv_prog_RANLIB"
1307 if test -n "$RANLIB"; then
1308 echo "$ac_t""$RANLIB" 1>&6
1310 echo "$ac_t""no" 1>&6
1319 # Check whether --enable-shared or --disable-shared was given.
1320 if test "${enable_shared+set}" = set; then
1321 enableval
="$enable_shared"
1322 p
=${PACKAGE-default}
1323 case "$enableval" in
1324 yes) enable_shared
=yes ;;
1325 no
) enable_shared
=no
;;
1328 # Look at the argument we got. We use all the common list separators.
1329 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1330 for pkg
in $enableval; do
1331 if test "X$pkg" = "X$p"; then
1343 # Check whether --enable-static or --disable-static was given.
1344 if test "${enable_static+set}" = set; then
1345 enableval
="$enable_static"
1346 p
=${PACKAGE-default}
1347 case "$enableval" in
1348 yes) enable_static
=yes ;;
1349 no
) enable_static
=no
;;
1352 # Look at the argument we got. We use all the common list separators.
1353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1354 for pkg
in $enableval; do
1355 if test "X$pkg" = "X$p"; then
1366 # Check whether --enable-fast-install or --disable-fast-install was given.
1367 if test "${enable_fast_install+set}" = set; then
1368 enableval
="$enable_fast_install"
1369 p
=${PACKAGE-default}
1370 case "$enableval" in
1371 yes) enable_fast_install
=yes ;;
1372 no
) enable_fast_install
=no
;;
1374 enable_fast_install
=no
1375 # Look at the argument we got. We use all the common list separators.
1376 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1377 for pkg
in $enableval; do
1378 if test "X$pkg" = "X$p"; then
1379 enable_fast_install
=yes
1386 enable_fast_install
=yes
1389 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1390 if test "${with_gnu_ld+set}" = set; then
1391 withval
="$with_gnu_ld"
1392 test "$withval" = no || with_gnu_ld
=yes
1398 if test "$ac_cv_prog_gcc" = yes; then
1399 # Check if gcc -print-prog-name=ld gives a path.
1400 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1401 echo "configure:1402: checking for ld used by GCC" >&5
1404 # gcc leaves a trailing carriage return which upsets mingw
1405 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1407 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1410 # Accept absolute paths.
1411 [\\/]* |
[A-Za-z
]:[\\/]*)
1412 re_direlt
='/[^/][^/]*/\.\./'
1413 # Canonicalize the path of ld
1414 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1415 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1416 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1418 test -z "$LD" && LD
="$ac_prog"
1421 # If it fails, then pretend we aren't using GCC.
1425 # If it is relative, then search for the first ld in PATH.
1429 elif test "$with_gnu_ld" = yes; then
1430 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1431 echo "configure:1432: checking for GNU ld" >&5
1433 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1434 echo "configure:1435: checking for non-GNU ld" >&5
1436 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1437 echo $ac_n "(cached) $ac_c" 1>&6
1439 if test -z "$LD"; then
1440 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1441 for ac_dir
in $PATH; do
1442 test -z "$ac_dir" && ac_dir
=.
1443 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1444 ac_cv_path_LD
="$ac_dir/$ac_prog"
1445 # Check to see if the program is GNU ld. I'd rather use --version,
1446 # but apparently some GNU ld's only accept -v.
1447 # Break only if it was the GNU/non-GNU ld that we prefer.
1448 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1449 test "$with_gnu_ld" != no
&& break
1451 test "$with_gnu_ld" != yes && break
1457 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1462 if test -n "$LD"; then
1463 echo "$ac_t""$LD" 1>&6
1465 echo "$ac_t""no" 1>&6
1467 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1468 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1469 echo "configure:1470: checking if the linker ($LD) is GNU ld" >&5
1470 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1474 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1475 ac_cv_prog_gnu_ld
=yes
1477 ac_cv_prog_gnu_ld
=no
1481 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1482 with_gnu_ld
=$ac_cv_prog_gnu_ld
1485 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1486 echo "configure:1487: checking for $LD option to reload object files" >&5
1487 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1488 echo $ac_n "(cached) $ac_c" 1>&6
1490 lt_cv_ld_reload_flag
='-r'
1493 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1494 reload_flag
=$lt_cv_ld_reload_flag
1495 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1497 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1498 echo "configure:1499: checking for BSD-compatible nm" >&5
1499 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1500 echo $ac_n "(cached) $ac_c" 1>&6
1502 if test -n "$NM"; then
1503 # Let the user override the test.
1506 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1507 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1508 test -z "$ac_dir" && ac_dir
=.
1509 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1510 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1511 # Check to see if the nm accepts a BSD-compat flag.
1512 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1513 # nm: unknown option "B" ignored
1514 # Tru64's nm complains that /dev/null is an invalid object file
1515 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1516 ac_cv_path_NM
="$tmp_nm -B"
1518 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1519 ac_cv_path_NM
="$tmp_nm -p"
1522 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1523 continue # so that we can try to find one that supports BSD flags
1528 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1533 echo "$ac_t""$NM" 1>&6
1535 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1536 echo "configure:1537: checking whether ln -s works" >&5
1537 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1541 if ln -s X conftestdata
2>/dev
/null
1544 ac_cv_prog_LN_S
="ln -s"
1549 LN_S
="$ac_cv_prog_LN_S"
1550 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1551 echo "$ac_t""yes" 1>&6
1553 echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1557 echo "configure:1558: checking how to recognise dependant libraries" >&5
1558 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1559 echo $ac_n "(cached) $ac_c" 1>&6
1561 lt_cv_file_magic_cmd
='${MAGIC}'
1562 lt_cv_file_magic_test_file
=
1563 lt_cv_deplibs_check_method
='unknown'
1564 # Need to set the preceding variable on all platforms that support
1565 # interlibrary dependencies.
1566 # 'none' -- dependencies not supported.
1567 # `unknown' -- same as none, but documents that we really don't know.
1568 # 'pass_all' -- all dependencies passed with no checks.
1569 # 'test_compile' -- check by making test program.
1570 # 'file_magic [regex]' -- check by looking for files in library path
1571 # which responds to the $file_magic_cmd with a given egrep regex.
1572 # If you have `file' or equivalent on your system and you're not sure
1573 # whether `pass_all' will *always* work, you probably want this one.
1577 lt_cv_deplibs_check_method
=pass_all
1581 lt_cv_deplibs_check_method
=pass_all
1585 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1586 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1587 lt_cv_file_magic_test_file
=/shlib
/libc.so
1591 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1592 lt_cv_file_magic_cmd
='${OBJDUMP} -f'
1596 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1599 # Not sure whether the presence of OpenBSD here was a mistake.
1600 # Let's accept both of them until this is cleared up.
1601 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1602 lt_cv_file_magic_cmd
=/usr
/bin
/file
1603 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1607 lt_cv_deplibs_check_method
=pass_all
1612 lt_cv_deplibs_check_method
=pass_all
1616 # TODO: Does this work for hpux-11 too?
1617 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1618 lt_cv_file_magic_cmd
=/usr
/bin
/file
1619 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1625 # this will be overridden with pass_all, but let us keep it just in case
1626 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1630 *-32|
*"-32 ") libmagic
=32-bit;;
1631 *-n32|
*"-n32 ") libmagic
=N32
;;
1632 *-64|
*"-64 ") libmagic
=64-bit;;
1633 *) libmagic
=never-match
;;
1635 # this will be overridden with pass_all, but let us keep it just in case
1636 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1639 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1640 lt_cv_deplibs_check_method
=pass_all
1643 # This must be Linux ELF.
1646 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1647 lt_cv_deplibs_check_method
=pass_all
;;
1649 # glibc up to 2.1.1 does not perform some relocations on ARM
1650 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1652 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1656 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1658 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1659 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1660 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1664 osf3
* | osf4
* | osf5
*)
1665 # this will be overridden with pass_all, but let us keep it just in case
1666 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1667 lt_cv_file_magic_test_file
=/shlib
/libc.so
1668 lt_cv_deplibs_check_method
=pass_all
1672 lt_cv_deplibs_check_method
=pass_all
1676 lt_cv_deplibs_check_method
=pass_all
1677 lt_cv_file_magic_test_file
=/lib
/libc.so
1680 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1681 case "$host_vendor" in
1683 lt_cv_deplibs_check_method
=pass_all
1686 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]'
1687 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1695 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1696 file_magic_cmd
=$lt_cv_file_magic_cmd
1697 deplibs_check_method
=$lt_cv_deplibs_check_method
1699 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1700 echo "configure:1701: checking for object suffix" >&5
1701 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1702 echo $ac_n "(cached) $ac_c" 1>&6
1705 echo 'int i = 1;' > conftest.
$ac_ext
1706 if { (eval echo configure
:1707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1707 for ac_file
in conftest.
*; do
1710 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1714 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1719 echo "$ac_t""$ac_cv_objext" 1>&6
1720 OBJEXT
=$ac_cv_objext
1721 ac_objext
=$ac_cv_objext
1725 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1726 echo "configure:1727: checking for executable suffix" >&5
1727 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1734 echo 'int main () { return 0; }' > conftest.
$ac_ext
1736 if { (eval echo configure
:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1737 for file in conftest.
*; do
1739 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1740 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1744 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1747 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1752 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1753 echo "$ac_t""${ac_cv_exeext}" 1>&6
1756 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1758 # Only perform the check for file, if the check method requires it
1759 case "$deplibs_check_method" in
1761 if test "$file_magic_cmd" = '${MAGIC}'; then
1762 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1763 echo "configure:1764: checking for ${ac_tool_prefix}file" >&5
1764 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1769 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1772 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1775 ac_save_MAGIC
="$MAGIC"
1776 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1777 ac_dummy
="/usr/bin:$PATH"
1778 for ac_dir
in $ac_dummy; do
1779 test -z "$ac_dir" && ac_dir
=.
1780 if test -f $ac_dir/${ac_tool_prefix}file; then
1781 lt_cv_path_MAGIC
="$ac_dir/${ac_tool_prefix}file"
1782 if test -n "$file_magic_test_file"; then
1783 case "$deplibs_check_method" in
1785 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1786 MAGIC
="$lt_cv_path_MAGIC"
1787 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1788 egrep "$file_magic_regex" > /dev
/null
; then
1793 *** Warning: the command libtool uses to detect shared libraries,
1794 *** $file_magic_cmd, produces output that libtool cannot recognize.
1795 *** The result is that libtool may fail to recognize shared libraries
1796 *** as such. This will affect the creation of libtool libraries that
1797 *** depend on shared libraries, but programs linked with such libtool
1798 *** libraries will work regardless of this problem. Nevertheless, you
1799 *** may want to report the problem to your system manager and/or to
1800 *** bug-libtool@gnu.org
1810 MAGIC
="$ac_save_MAGIC"
1815 MAGIC
="$lt_cv_path_MAGIC"
1816 if test -n "$MAGIC"; then
1817 echo "$ac_t""$MAGIC" 1>&6
1819 echo "$ac_t""no" 1>&6
1822 if test -z "$lt_cv_path_MAGIC"; then
1823 if test -n "$ac_tool_prefix"; then
1824 echo $ac_n "checking for file""... $ac_c" 1>&6
1825 echo "configure:1826: checking for file" >&5
1826 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1831 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1834 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1837 ac_save_MAGIC
="$MAGIC"
1838 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1839 ac_dummy
="/usr/bin:$PATH"
1840 for ac_dir
in $ac_dummy; do
1841 test -z "$ac_dir" && ac_dir
=.
1842 if test -f $ac_dir/file; then
1843 lt_cv_path_MAGIC
="$ac_dir/file"
1844 if test -n "$file_magic_test_file"; then
1845 case "$deplibs_check_method" in
1847 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1848 MAGIC
="$lt_cv_path_MAGIC"
1849 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1850 egrep "$file_magic_regex" > /dev
/null
; then
1855 *** Warning: the command libtool uses to detect shared libraries,
1856 *** $file_magic_cmd, produces output that libtool cannot recognize.
1857 *** The result is that libtool may fail to recognize shared libraries
1858 *** as such. This will affect the creation of libtool libraries that
1859 *** depend on shared libraries, but programs linked with such libtool
1860 *** libraries will work regardless of this problem. Nevertheless, you
1861 *** may want to report the problem to your system manager and/or to
1862 *** bug-libtool@gnu.org
1872 MAGIC
="$ac_save_MAGIC"
1877 MAGIC
="$lt_cv_path_MAGIC"
1878 if test -n "$MAGIC"; then
1879 echo "$ac_t""$MAGIC" 1>&6
1881 echo "$ac_t""no" 1>&6
1893 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1894 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1896 echo "configure:1897: checking for $ac_word" >&5
1897 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 if test -n "$RANLIB"; then
1901 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1903 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1905 for ac_dir
in $ac_dummy; do
1906 test -z "$ac_dir" && ac_dir
=.
1907 if test -f $ac_dir/$ac_word; then
1908 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1915 RANLIB
="$ac_cv_prog_RANLIB"
1916 if test -n "$RANLIB"; then
1917 echo "$ac_t""$RANLIB" 1>&6
1919 echo "$ac_t""no" 1>&6
1923 if test -z "$ac_cv_prog_RANLIB"; then
1924 if test -n "$ac_tool_prefix"; then
1925 # Extract the first word of "ranlib", so it can be a program name with args.
1926 set dummy ranlib
; ac_word
=$2
1927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928 echo "configure:1929: checking for $ac_word" >&5
1929 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1932 if test -n "$RANLIB"; then
1933 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1937 for ac_dir
in $ac_dummy; do
1938 test -z "$ac_dir" && ac_dir
=.
1939 if test -f $ac_dir/$ac_word; then
1940 ac_cv_prog_RANLIB
="ranlib"
1945 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1948 RANLIB
="$ac_cv_prog_RANLIB"
1949 if test -n "$RANLIB"; then
1950 echo "$ac_t""$RANLIB" 1>&6
1952 echo "$ac_t""no" 1>&6
1960 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1961 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1963 echo "configure:1964: checking for $ac_word" >&5
1964 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1965 echo $ac_n "(cached) $ac_c" 1>&6
1967 if test -n "$STRIP"; then
1968 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1972 for ac_dir
in $ac_dummy; do
1973 test -z "$ac_dir" && ac_dir
=.
1974 if test -f $ac_dir/$ac_word; then
1975 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1982 STRIP
="$ac_cv_prog_STRIP"
1983 if test -n "$STRIP"; then
1984 echo "$ac_t""$STRIP" 1>&6
1986 echo "$ac_t""no" 1>&6
1990 if test -z "$ac_cv_prog_STRIP"; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "strip", so it can be a program name with args.
1993 set dummy strip
; ac_word
=$2
1994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1995 echo "configure:1996: checking for $ac_word" >&5
1996 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1999 if test -n "$STRIP"; then
2000 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2002 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2004 for ac_dir
in $ac_dummy; do
2005 test -z "$ac_dir" && ac_dir
=.
2006 if test -f $ac_dir/$ac_word; then
2007 ac_cv_prog_STRIP
="strip"
2012 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2015 STRIP
="$ac_cv_prog_STRIP"
2016 if test -n "$STRIP"; then
2017 echo "$ac_t""$STRIP" 1>&6
2019 echo "$ac_t""no" 1>&6
2028 # Check for any special flags to pass to ltconfig.
2029 libtool_flags
="--cache-file=$cache_file"
2030 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2031 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2032 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2033 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2034 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2037 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2038 if test "${enable_libtool_lock+set}" = set; then
2039 enableval
="$enable_libtool_lock"
2043 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2044 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2046 # Check whether --with-pic or --without-pic was given.
2047 if test "${with_pic+set}" = set; then
2054 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2055 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2057 # Some flags need to be propagated to the compiler or linker for good
2061 # Find out which ABI we are using.
2062 echo '#line 2063 "configure"' > conftest.
$ac_ext
2063 if { (eval echo configure
:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2064 case "`/usr/bin/file conftest.o`" in
2080 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2081 SAVE_CFLAGS
="$CFLAGS"
2082 CFLAGS
="$CFLAGS -belf"
2083 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2084 echo "configure:2085: checking whether the C compiler needs -belf" >&5
2085 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2091 ac_cpp
='$CPP $CPPFLAGS'
2092 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2093 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2094 cross_compiling
=$ac_cv_prog_cc_cross
2096 cat > conftest.
$ac_ext <<EOF
2097 #line 2098 "configure"
2098 #include "confdefs.h"
2104 if { (eval echo configure
:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2106 lt_cv_cc_needs_belf
=yes
2108 echo "configure: failed program was:" >&5
2109 cat conftest.
$ac_ext >&5
2111 lt_cv_cc_needs_belf
=no
2115 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2116 ac_cpp
='$CPP $CPPFLAGS'
2117 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2118 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2119 cross_compiling
=$ac_cv_prog_cc_cross
2123 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2124 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2126 CFLAGS
="$SAVE_CFLAGS"
2134 # Save cache, so that ltconfig can load it
2135 cat > confcache
<<\EOF
2136 # This file is a shell script that caches the results of configure
2137 # tests run on this system so they can be shared between configure
2138 # scripts and configure runs. It is not useful on other systems.
2139 # If it contains results you don't want to keep, you may remove or edit it.
2141 # By default, configure uses ./config.cache as the cache file,
2142 # creating it if it does not exist already. You can give configure
2143 # the --cache-file=FILE option to use a different cache file; that is
2144 # what configure does when it calls configure scripts in
2145 # subdirectories, so they share the cache.
2146 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2147 # config.status only pays attention to the cache file if you give it the
2148 # --recheck option to rerun configure.
2151 # The following way of writing the cache mishandles newlines in values,
2152 # but we know of no workaround that is simple, portable, and efficient.
2153 # So, don't put newlines in cache variables' values.
2154 # Ultrix sh set writes to stderr and can't be redirected directly,
2155 # and sets the high bit in the cache file unless we assign to the vars.
2157 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2159 # `set' does not quote correctly, so add quotes (double-quote substitution
2160 # turns \\\\ into \\, and sed turns \\ into \).
2162 -e "s/'/'\\\\''/g" \
2163 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2166 # `set' quotes correctly as required by POSIX, so do not add quotes.
2167 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2170 if cmp -s $cache_file confcache
; then
2173 if test -w $cache_file; then
2174 echo "updating cache $cache_file"
2175 cat confcache
> $cache_file
2177 echo "not updating unwritable cache $cache_file"
2183 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2184 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2185 MAGIC
="$MAGIC" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2186 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2187 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2188 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2189 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2190 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2191 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2192 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2194 # Reload cache, that may have been modified by ltconfig
2195 if test -r "$cache_file"; then
2196 echo "loading cache $cache_file"
2199 echo "creating cache $cache_file"
2204 # This can be used to rebuild libtool when needed
2205 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2207 # Always use our own libtool.
2208 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2210 # Redirect the config.log output again, so that the ltconfig log is not
2211 # clobbered by the next message.
2212 exec 5>>.
/config.log
2220 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2221 if test "${enable_64_bit_bfd+set}" = set; then
2222 enableval
="$enable_64_bit_bfd"
2223 case "${enableval}" in
2226 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2231 # Check whether --enable-targets or --disable-targets was given.
2232 if test "${enable_targets+set}" = set; then
2233 enableval
="$enable_targets"
2234 case "${enableval}" in
2235 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2237 no
) enable_targets
= ;;
2238 *) enable_targets
=$enableval ;;
2241 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2242 if test "${enable_commonbfdlib+set}" = set; then
2243 enableval
="$enable_commonbfdlib"
2244 case "${enableval}" in
2245 yes) commonbfdlib
=true
;;
2246 no
) commonbfdlib
=false
;;
2247 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2250 # Check whether --with-mmap or --without-mmap was given.
2251 if test "${with_mmap+set}" = set; then
2252 withval
="$with_mmap"
2253 case "${withval}" in
2254 yes) want_mmap
=true
;;
2255 no
) want_mmap
=false
;;
2256 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2262 build_warnings
="-W -Wall"
2263 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2264 if test "${enable_build_warnings+set}" = set; then
2265 enableval
="$enable_build_warnings"
2266 case "${enableval}" in
2268 no
) build_warnings
="-w";;
2269 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2270 build_warnings
="${build_warnings} ${t}";;
2271 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2272 build_warnings
="${t} ${build_warnings}";;
2273 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2275 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2276 echo "Setting warning flags = $build_warnings" 6>&1
2280 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2281 WARN_CFLAGS
="${build_warnings}"
2289 if test -z "$target" ; then
2290 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2292 if test "$program_transform_name" = s
,x
,x
,; then
2293 program_transform_name
=
2295 # Double any \ or $. echo might interpret backslashes.
2296 cat <<\EOF_SED
> conftestsed
2297 s
,\\,\\\\,g
; s
,\$
,$$
,g
2299 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2302 test "$program_prefix" != NONE
&&
2303 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2304 # Use a double $ so make ignores it.
2305 test "$program_suffix" != NONE
&&
2306 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2308 # sed with no file args requires a program.
2309 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2312 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2313 echo "configure:2314: checking whether to enable maintainer-specific portions of Makefiles" >&5
2314 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2315 if test "${enable_maintainer_mode+set}" = set; then
2316 enableval
="$enable_maintainer_mode"
2317 USE_MAINTAINER_MODE
=$enableval
2319 USE_MAINTAINER_MODE
=no
2322 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2325 if test $USE_MAINTAINER_MODE = yes; then
2326 MAINTAINER_MODE_TRUE
=
2327 MAINTAINER_MODE_FALSE
='#'
2329 MAINTAINER_MODE_TRUE
='#'
2330 MAINTAINER_MODE_FALSE
=
2332 MAINT
=$MAINTAINER_MODE_TRUE
2337 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2338 echo "configure:2339: checking for executable suffix" >&5
2339 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2346 echo 'int main () { return 0; }' > conftest.
$ac_ext
2348 if { (eval echo configure
:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2349 for file in conftest.
*; do
2351 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2352 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2356 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2359 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2364 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2365 echo "$ac_t""${ac_cv_exeext}" 1>&6
2374 # Extract the first word of "gcc", so it can be a program name with args.
2375 set dummy gcc
; ac_word
=$2
2376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2377 echo "configure:2378: checking for $ac_word" >&5
2378 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC
="$CC" # Let the user override the test.
2384 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2386 for ac_dir
in $ac_dummy; do
2387 test -z "$ac_dir" && ac_dir
=.
2388 if test -f $ac_dir/$ac_word; then
2397 if test -n "$CC"; then
2398 echo "$ac_t""$CC" 1>&6
2400 echo "$ac_t""no" 1>&6
2403 if test -z "$CC"; then
2404 # Extract the first word of "cc", so it can be a program name with args.
2405 set dummy cc
; ac_word
=$2
2406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_word" >&5
2408 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC
="$CC" # Let the user override the test.
2414 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2417 for ac_dir
in $ac_dummy; do
2418 test -z "$ac_dir" && ac_dir
=.
2419 if test -f $ac_dir/$ac_word; then
2420 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2421 ac_prog_rejected
=yes
2429 if test $ac_prog_rejected = yes; then
2430 # We found a bogon in the path, so make sure we never use it.
2431 set dummy
$ac_cv_prog_CC
2433 if test $# -gt 0; then
2434 # We chose a different compiler from the bogus one.
2435 # However, it has the same basename, so the bogon will be chosen
2436 # first if we set CC to just the basename; use the full file name.
2438 set dummy
"$ac_dir/$ac_word" "$@"
2446 if test -n "$CC"; then
2447 echo "$ac_t""$CC" 1>&6
2449 echo "$ac_t""no" 1>&6
2452 if test -z "$CC"; then
2453 case "`uname -s`" in
2455 # Extract the first word of "cl", so it can be a program name with args.
2456 set dummy cl
; ac_word
=$2
2457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2458 echo "configure:2459: checking for $ac_word" >&5
2459 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2460 echo $ac_n "(cached) $ac_c" 1>&6
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC
="$CC" # Let the user override the test.
2465 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2467 for ac_dir
in $ac_dummy; do
2468 test -z "$ac_dir" && ac_dir
=.
2469 if test -f $ac_dir/$ac_word; then
2478 if test -n "$CC"; then
2479 echo "$ac_t""$CC" 1>&6
2481 echo "$ac_t""no" 1>&6
2486 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2489 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2490 echo "configure:2491: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2493 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2494 ac_cpp
='$CPP $CPPFLAGS'
2495 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2496 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2497 cross_compiling
=$ac_cv_prog_cc_cross
2499 cat > conftest.
$ac_ext << EOF
2501 #line 2502 "configure"
2502 #include "confdefs.h"
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2507 ac_cv_prog_cc_works
=yes
2508 # If we can't run a trivial program, we are probably using a cross compiler.
2509 if (.
/conftest
; exit) 2>/dev
/null
; then
2510 ac_cv_prog_cc_cross
=no
2512 ac_cv_prog_cc_cross
=yes
2515 echo "configure: failed program was:" >&5
2516 cat conftest.
$ac_ext >&5
2517 ac_cv_prog_cc_works
=no
2521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2522 ac_cpp
='$CPP $CPPFLAGS'
2523 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2524 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2525 cross_compiling
=$ac_cv_prog_cc_cross
2527 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2528 if test $ac_cv_prog_cc_works = no
; then
2529 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2531 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2532 echo "configure:2533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2533 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2534 cross_compiling
=$ac_cv_prog_cc_cross
2536 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2537 echo "configure:2538: checking whether we are using GNU C" >&5
2538 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.c
<<EOF
2546 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2553 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2555 if test $ac_cv_prog_gcc = yes; then
2561 ac_test_CFLAGS
="${CFLAGS+set}"
2562 ac_save_CFLAGS
="$CFLAGS"
2564 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2565 echo "configure:2566: checking whether ${CC-cc} accepts -g" >&5
2566 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2567 echo $ac_n "(cached) $ac_c" 1>&6
2569 echo 'void f(){}' > conftest.c
2570 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2579 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2580 if test "$ac_test_CFLAGS" = set; then
2581 CFLAGS
="$ac_save_CFLAGS"
2582 elif test $ac_cv_prog_cc_g = yes; then
2583 if test "$GCC" = yes; then
2589 if test "$GCC" = yes; then
2598 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2599 echo "configure:2600: checking how to run the C preprocessor" >&5
2600 # On Suns, sometimes $CPP names a directory.
2601 if test -n "$CPP" && test -d "$CPP"; then
2604 if test -z "$CPP"; then
2605 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 # This must be in double quotes, not single quotes, because CPP may get
2609 # substituted into the Makefile and "${CC-cc}" will confuse make.
2611 # On the NeXT, cc -E runs the code through the compiler's parser,
2612 # not just through cpp.
2613 cat > conftest.
$ac_ext <<EOF
2614 #line 2615 "configure"
2615 #include "confdefs.h"
2619 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure
:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2622 if test -z "$ac_err"; then
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 CPP
="${CC-cc} -E -traditional-cpp"
2630 cat > conftest.
$ac_ext <<EOF
2631 #line 2632 "configure"
2632 #include "confdefs.h"
2636 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2637 { (eval echo configure
:2638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2638 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2639 if test -z "$ac_err"; then
2643 echo "configure: failed program was:" >&5
2644 cat conftest.
$ac_ext >&5
2646 CPP
="${CC-cc} -nologo -E"
2647 cat > conftest.
$ac_ext <<EOF
2648 #line 2649 "configure"
2649 #include "confdefs.h"
2653 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2654 { (eval echo configure
:2655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2655 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2656 if test -z "$ac_err"; then
2660 echo "configure: failed program was:" >&5
2661 cat conftest.
$ac_ext >&5
2670 ac_cv_prog_CPP
="$CPP"
2672 CPP
="$ac_cv_prog_CPP"
2674 ac_cv_prog_CPP
="$CPP"
2676 echo "$ac_t""$CPP" 1>&6
2678 # Extract the first word of "ranlib", so it can be a program name with args.
2679 set dummy ranlib
; ac_word
=$2
2680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2681 echo "configure:2682: checking for $ac_word" >&5
2682 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 if test -n "$RANLIB"; then
2686 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2688 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2690 for ac_dir
in $ac_dummy; do
2691 test -z "$ac_dir" && ac_dir
=.
2692 if test -f $ac_dir/$ac_word; then
2693 ac_cv_prog_RANLIB
="ranlib"
2698 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2701 RANLIB
="$ac_cv_prog_RANLIB"
2702 if test -n "$RANLIB"; then
2703 echo "$ac_t""$RANLIB" 1>&6
2705 echo "$ac_t""no" 1>&6
2708 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2709 echo "configure:2710: checking for ANSI C header files" >&5
2710 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.
$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure
:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2726 ac_cv_header_stdc
=yes
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2732 ac_cv_header_stdc
=no
2736 if test $ac_cv_header_stdc = yes; then
2737 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 egrep "memchr" >/dev
/null
2>&1; then
2748 ac_cv_header_stdc
=no
2754 if test $ac_cv_header_stdc = yes; then
2755 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2762 egrep "free" >/dev
/null
2>&1; then
2766 ac_cv_header_stdc
=no
2772 if test $ac_cv_header_stdc = yes; then
2773 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2774 if test "$cross_compiling" = yes; then
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2781 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2782 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2784 int main () { int i; for (i = 0; i < 256; i++)
2785 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2789 if { (eval echo configure
:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2793 echo "configure: failed program was:" >&5
2794 cat conftest.
$ac_ext >&5
2796 ac_cv_header_stdc
=no
2804 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2805 if test $ac_cv_header_stdc = yes; then
2806 cat >> confdefs.h
<<\EOF
2807 #define STDC_HEADERS 1
2812 echo $ac_n "checking for working const""... $ac_c" 1>&6
2813 echo "configure:2814: checking for working const" >&5
2814 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2819 "configure"
2819 #include "confdefs.h"
2823 /* Ultrix mips cc rejects this. */
2824 typedef int charset[2]; const charset x;
2825 /* SunOS 4.1.1 cc rejects this. */
2826 char const *const *ccp;
2828 /* NEC SVR4.0.2 mips cc rejects this. */
2829 struct point {int x, y;};
2830 static struct point const zero = {0,0};
2831 /* AIX XL C 1.02.0.0 rejects this.
2832 It does not let you subtract one const X* pointer from another in an arm
2833 of an if-expression whose if-part is not a constant expression */
2834 const char *g = "string";
2835 ccp = &g + (g ? g-g : 0);
2836 /* HPUX 7.0 cc rejects these. */
2839 ccp = (char const *const *) p;
2840 { /* SCO 3.2v4 cc rejects this. */
2842 char const *s = 0 ? (char *) 0 : (char const *) 0;
2846 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2848 const int *foo = &x[0];
2851 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2852 typedef const int *iptr;
2856 { /* AIX XL C 1.02.0.0 rejects this saying
2857 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2858 struct s { int j; const int *ap[3]; };
2859 struct s *b; b->j = 5;
2861 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2867 if { (eval echo configure
:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2871 echo "configure: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2879 echo "$ac_t""$ac_cv_c_const" 1>&6
2880 if test $ac_cv_c_const = no
; then
2881 cat >> confdefs.h
<<\EOF
2887 echo $ac_n "checking for inline""... $ac_c" 1>&6
2888 echo "configure:2889: checking for inline" >&5
2889 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2893 for ac_kw
in inline __inline__ __inline
; do
2894 cat > conftest.
$ac_ext <<EOF
2895 #line 2896 "configure"
2896 #include "confdefs.h"
2902 if { (eval echo configure
:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2904 ac_cv_c_inline
=$ac_kw; break
2906 echo "configure: failed program was:" >&5
2907 cat conftest.
$ac_ext >&5
2914 echo "$ac_t""$ac_cv_c_inline" 1>&6
2915 case "$ac_cv_c_inline" in
2917 no
) cat >> confdefs.h
<<\EOF
2921 *) cat >> confdefs.h
<<EOF
2922 #define inline $ac_cv_c_inline
2927 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2928 echo "configure:2929: checking for off_t" >&5
2929 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 cat > conftest.
$ac_ext <<EOF
2933 #line 2934 "configure"
2934 #include "confdefs.h"
2935 #include <sys/types.h>
2941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2942 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2944 ac_cv_type_off_t
=yes
2952 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2953 if test $ac_cv_type_off_t = no
; then
2954 cat >> confdefs.h
<<\EOF
2960 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2961 echo "configure:2962: checking for size_t" >&5
2962 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 #include <sys/types.h>
2974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2977 ac_cv_type_size_t
=yes
2980 ac_cv_type_size_t
=no
2985 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2986 if test $ac_cv_type_size_t = no
; then
2987 cat >> confdefs.h
<<\EOF
2988 #define size_t unsigned
2993 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2994 # for constant arguments. Useless!
2995 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2996 echo "configure:2997: checking for working alloca.h" >&5
2997 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 cat > conftest.
$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3005 char *p = alloca(2 * sizeof(int));
3008 if { (eval echo configure
:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3010 ac_cv_header_alloca_h
=yes
3012 echo "configure: failed program was:" >&5
3013 cat conftest.
$ac_ext >&5
3015 ac_cv_header_alloca_h
=no
3020 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3021 if test $ac_cv_header_alloca_h = yes; then
3022 cat >> confdefs.h
<<\EOF
3023 #define HAVE_ALLOCA_H 1
3028 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3029 echo "configure:3030: checking for alloca" >&5
3030 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.
$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3038 # define alloca __builtin_alloca
3041 # include <malloc.h>
3042 # define alloca _alloca
3045 # include <alloca.h>
3050 # ifndef alloca /* predefined by HP cc +Olibcalls */
3059 char *p = (char *) alloca(1);
3062 if { (eval echo configure
:3063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3064 ac_cv_func_alloca_works
=yes
3066 echo "configure: failed program was:" >&5
3067 cat conftest.
$ac_ext >&5
3069 ac_cv_func_alloca_works
=no
3074 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3075 if test $ac_cv_func_alloca_works = yes; then
3076 cat >> confdefs.h
<<\EOF
3077 #define HAVE_ALLOCA 1
3082 if test $ac_cv_func_alloca_works = no
; then
3083 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3084 # that cause trouble. Some versions do not even contain alloca or
3085 # contain a buggy version. If you still want to use their alloca,
3086 # use ar to extract alloca.o from them instead of compiling alloca.c.
3087 ALLOCA
=alloca.
${ac_objext}
3088 cat >> confdefs.h
<<\EOF
3093 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3094 echo "configure:3095: checking whether alloca needs Cray hooks" >&5
3095 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 cat > conftest.
$ac_ext <<EOF
3099 #line 3100 "configure"
3100 #include "confdefs.h"
3101 #if defined(CRAY) && ! defined(CRAY2)
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 egrep "webecray" >/dev
/null
2>&1; then
3120 echo "$ac_t""$ac_cv_os_cray" 1>&6
3121 if test $ac_cv_os_cray = yes; then
3122 for ac_func
in _getb67 GETB67 getb67
; do
3123 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3124 echo "configure:3125: checking for $ac_func" >&5
3125 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* System header to define __stub macros and hopefully few prototypes,
3132 which can conflict with char $ac_func(); below. */
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3141 /* The GNU C library defines this for functions which it implements
3142 to always fail with ENOSYS. Some functions are actually named
3143 something starting with __ and the normal name is an alias. */
3144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3152 if { (eval echo configure
:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3154 eval "ac_cv_func_$ac_func=yes"
3156 echo "configure: failed program was:" >&5
3157 cat conftest.
$ac_ext >&5
3159 eval "ac_cv_func_$ac_func=no"
3164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 cat >> confdefs.h
<<EOF
3167 #define CRAY_STACKSEG_END $ac_func
3172 echo "$ac_t""no" 1>&6
3178 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3179 echo "configure:3180: checking stack direction for C alloca" >&5
3180 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3181 echo $ac_n "(cached) $ac_c" 1>&6
3183 if test "$cross_compiling" = yes; then
3184 ac_cv_c_stack_direction
=0
3186 cat > conftest.
$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3189 find_stack_direction ()
3191 static char *addr = 0;
3196 return find_stack_direction ();
3199 return (&dummy > addr) ? 1 : -1;
3203 exit (find_stack_direction() < 0);
3206 if { (eval echo configure
:3207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3208 ac_cv_c_stack_direction
=1
3210 echo "configure: failed program was:" >&5
3211 cat conftest.
$ac_ext >&5
3213 ac_cv_c_stack_direction
=-1
3220 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3221 cat >> confdefs.h
<<EOF
3222 #define STACK_DIRECTION $ac_cv_c_stack_direction
3227 for ac_hdr
in unistd.h
3229 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3230 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_hdr" >&5
3232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.
$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3240 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure
:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then
3245 eval "ac_cv_header_$ac_safe=yes"
3248 echo "configure: failed program was:" >&5
3249 cat conftest.
$ac_ext >&5
3251 eval "ac_cv_header_$ac_safe=no"
3255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3256 echo "$ac_t""yes" 1>&6
3257 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3258 cat >> confdefs.h
<<EOF
3259 #define $ac_tr_hdr 1
3263 echo "$ac_t""no" 1>&6
3267 for ac_func
in getpagesize
3269 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3270 echo "configure:3271: checking for $ac_func" >&5
3271 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3272 echo $ac_n "(cached) $ac_c" 1>&6
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 /* System header to define __stub macros and hopefully few prototypes,
3278 which can conflict with char $ac_func(); below. */
3280 /* Override any gcc2 internal prototype to avoid an error. */
3281 /* We use char because int might match the return type of a gcc2
3282 builtin and then its argument prototype would still apply. */
3287 /* The GNU C library defines this for functions which it implements
3288 to always fail with ENOSYS. Some functions are actually named
3289 something starting with __ and the normal name is an alias. */
3290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3298 if { (eval echo configure
:3299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3300 eval "ac_cv_func_$ac_func=yes"
3302 echo "configure: failed program was:" >&5
3303 cat conftest.
$ac_ext >&5
3305 eval "ac_cv_func_$ac_func=no"
3310 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3311 echo "$ac_t""yes" 1>&6
3312 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3313 cat >> confdefs.h
<<EOF
3314 #define $ac_tr_func 1
3318 echo "$ac_t""no" 1>&6
3322 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3323 echo "configure:3324: checking for working mmap" >&5
3324 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 if test "$cross_compiling" = yes; then
3328 ac_cv_func_mmap_fixed_mapped
=no
3330 cat > conftest.
$ac_ext <<EOF
3331 #line 3332 "configure"
3332 #include "confdefs.h"
3334 /* Thanks to Mike Haertel and Jim Avera for this test.
3335 Here is a matrix of mmap possibilities:
3336 mmap private not fixed
3337 mmap private fixed at somewhere currently unmapped
3338 mmap private fixed at somewhere already mapped
3339 mmap shared not fixed
3340 mmap shared fixed at somewhere currently unmapped
3341 mmap shared fixed at somewhere already mapped
3342 For private mappings, we should verify that changes cannot be read()
3343 back from the file, nor mmap's back from the file at a different
3344 address. (There have been systems where private was not correctly
3345 implemented like the infamous i386 svr4.0, and systems where the
3346 VM page cache was not coherent with the filesystem buffer cache
3347 like early versions of FreeBSD and possibly contemporary NetBSD.)
3348 For shared mappings, we should conversely verify that changes get
3349 propogated back to all the places they're supposed to be.
3351 Grep wants private fixed already mapped.
3352 The main things grep needs to know about mmap are:
3353 * does it exist and is it safe to write into the mmap'd area
3354 * how to use it (BSD variants) */
3355 #include <sys/types.h>
3357 #include <sys/mman.h>
3359 /* This mess was copied from the GNU getpagesize.h. */
3360 #ifndef HAVE_GETPAGESIZE
3361 # ifdef HAVE_UNISTD_H
3362 # include <unistd.h>
3365 /* Assume that all systems that can run configure have sys/param.h. */
3366 # ifndef HAVE_SYS_PARAM_H
3367 # define HAVE_SYS_PARAM_H 1
3370 # ifdef _SC_PAGESIZE
3371 # define getpagesize() sysconf(_SC_PAGESIZE)
3372 # else /* no _SC_PAGESIZE */
3373 # ifdef HAVE_SYS_PARAM_H
3374 # include <sys/param.h>
3375 # ifdef EXEC_PAGESIZE
3376 # define getpagesize() EXEC_PAGESIZE
3377 # else /* no EXEC_PAGESIZE */
3379 # define getpagesize() NBPG * CLSIZE
3382 # endif /* no CLSIZE */
3383 # else /* no NBPG */
3385 # define getpagesize() NBPC
3386 # else /* no NBPC */
3388 # define getpagesize() PAGESIZE
3389 # endif /* PAGESIZE */
3390 # endif /* no NBPC */
3391 # endif /* no NBPG */
3392 # endif /* no EXEC_PAGESIZE */
3393 # else /* no HAVE_SYS_PARAM_H */
3394 # define getpagesize() 8192 /* punt totally */
3395 # endif /* no HAVE_SYS_PARAM_H */
3396 # endif /* no _SC_PAGESIZE */
3398 #endif /* no HAVE_GETPAGESIZE */
3401 extern "C" { void *malloc(unsigned); }
3409 char *data, *data2, *data3;
3413 pagesize = getpagesize();
3416 * First, make a file with some known garbage in it.
3418 data = malloc(pagesize);
3421 for (i = 0; i < pagesize; ++i)
3422 *(data + i) = rand();
3424 fd = creat("conftestmmap", 0600);
3427 if (write(fd, data, pagesize) != pagesize)
3432 * Next, try to mmap the file at a fixed address which
3433 * already has something else allocated at it. If we can,
3434 * also make sure that we see the same garbage.
3436 fd = open("conftestmmap", O_RDWR);
3439 data2 = malloc(2 * pagesize);
3442 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3443 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3444 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3446 for (i = 0; i < pagesize; ++i)
3447 if (*(data + i) != *(data2 + i))
3451 * Finally, make sure that changes to the mapped area
3452 * do not percolate back to the file as seen by read().
3453 * (This is a bug on some variants of i386 svr4.0.)
3455 for (i = 0; i < pagesize; ++i)
3456 *(data2 + i) = *(data2 + i) + 1;
3457 data3 = malloc(pagesize);
3460 if (read(fd, data3, pagesize) != pagesize)
3462 for (i = 0; i < pagesize; ++i)
3463 if (*(data + i) != *(data3 + i))
3466 unlink("conftestmmap");
3471 if { (eval echo configure
:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3473 ac_cv_func_mmap_fixed_mapped
=yes
3475 echo "configure: failed program was:" >&5
3476 cat conftest.
$ac_ext >&5
3478 ac_cv_func_mmap_fixed_mapped
=no
3485 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3486 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3487 cat >> confdefs.h
<<\EOF
3494 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3495 unistd.h values.h sys
/param.h
3497 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3499 echo "configure:3500: checking for $ac_hdr" >&5
3500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3501 echo $ac_n "(cached) $ac_c" 1>&6
3503 cat > conftest.
$ac_ext <<EOF
3504 #line 3505 "configure"
3505 #include "confdefs.h"
3508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3509 { (eval echo configure
:3510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3510 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3511 if test -z "$ac_err"; then
3513 eval "ac_cv_header_$ac_safe=yes"
3516 echo "configure: failed program was:" >&5
3517 cat conftest.
$ac_ext >&5
3519 eval "ac_cv_header_$ac_safe=no"
3523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3524 echo "$ac_t""yes" 1>&6
3525 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3526 cat >> confdefs.h
<<EOF
3527 #define $ac_tr_hdr 1
3531 echo "$ac_t""no" 1>&6
3535 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3536 __argz_count __argz_stringify __argz_next
3538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3539 echo "configure:3540: checking for $ac_func" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.
$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char $ac_func(); below. */
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3567 if { (eval echo configure
:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3569 eval "ac_cv_func_$ac_func=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.
$ac_ext >&5
3574 eval "ac_cv_func_$ac_func=no"
3579 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3581 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3582 cat >> confdefs.h
<<EOF
3583 #define $ac_tr_func 1
3587 echo "$ac_t""no" 1>&6
3592 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3593 for ac_func
in stpcpy
3595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3596 echo "configure:3597: checking for $ac_func" >&5
3597 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3598 echo $ac_n "(cached) $ac_c" 1>&6
3600 cat > conftest.
$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* System header to define __stub macros and hopefully few prototypes,
3604 which can conflict with char $ac_func(); below. */
3606 /* Override any gcc2 internal prototype to avoid an error. */
3607 /* We use char because int might match the return type of a gcc2
3608 builtin and then its argument prototype would still apply. */
3613 /* The GNU C library defines this for functions which it implements
3614 to always fail with ENOSYS. Some functions are actually named
3615 something starting with __ and the normal name is an alias. */
3616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3624 if { (eval echo configure
:3625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3626 eval "ac_cv_func_$ac_func=yes"
3628 echo "configure: failed program was:" >&5
3629 cat conftest.
$ac_ext >&5
3631 eval "ac_cv_func_$ac_func=no"
3636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3637 echo "$ac_t""yes" 1>&6
3638 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3639 cat >> confdefs.h
<<EOF
3640 #define $ac_tr_func 1
3644 echo "$ac_t""no" 1>&6
3649 if test "${ac_cv_func_stpcpy}" = "yes"; then
3650 cat >> confdefs.h
<<\EOF
3651 #define HAVE_STPCPY 1
3656 if test $ac_cv_header_locale_h = yes; then
3657 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3658 echo "configure:3659: checking for LC_MESSAGES" >&5
3659 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.
$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3670 if { (eval echo configure
:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3672 am_cv_val_LC_MESSAGES
=yes
3674 echo "configure: failed program was:" >&5
3675 cat conftest.
$ac_ext >&5
3677 am_cv_val_LC_MESSAGES
=no
3682 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3683 if test $am_cv_val_LC_MESSAGES = yes; then
3684 cat >> confdefs.h
<<\EOF
3685 #define HAVE_LC_MESSAGES 1
3690 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3691 echo "configure:3692: checking whether NLS is requested" >&5
3692 # Check whether --enable-nls or --disable-nls was given.
3693 if test "${enable_nls+set}" = set; then
3694 enableval
="$enable_nls"
3700 echo "$ac_t""$USE_NLS" 1>&6
3703 USE_INCLUDED_LIBINTL
=no
3705 if test "$USE_NLS" = "yes"; then
3706 cat >> confdefs.h
<<\EOF
3707 #define ENABLE_NLS 1
3710 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3711 echo "configure:3712: checking whether included gettext is requested" >&5
3712 # Check whether --with-included-gettext or --without-included-gettext was given.
3713 if test "${with_included_gettext+set}" = set; then
3714 withval
="$with_included_gettext"
3715 nls_cv_force_use_gnu_gettext
=$withval
3717 nls_cv_force_use_gnu_gettext
=no
3720 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3722 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3723 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3725 nls_cv_header_libgt
=
3728 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3729 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3730 echo "configure:3731: checking for libintl.h" >&5
3731 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 cat > conftest.
$ac_ext <<EOF
3735 #line 3736 "configure"
3736 #include "confdefs.h"
3737 #include <libintl.h>
3739 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3740 { (eval echo configure
:3741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3741 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3742 if test -z "$ac_err"; then
3744 eval "ac_cv_header_$ac_safe=yes"
3747 echo "configure: failed program was:" >&5
3748 cat conftest.
$ac_ext >&5
3750 eval "ac_cv_header_$ac_safe=no"
3754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3755 echo "$ac_t""yes" 1>&6
3756 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3757 echo "configure:3758: checking for gettext in libc" >&5
3758 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.
$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 #include <libintl.h>
3766 return (int) gettext ("")
3769 if { (eval echo configure
:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3771 gt_cv_func_gettext_libc
=yes
3773 echo "configure: failed program was:" >&5
3774 cat conftest.
$ac_ext >&5
3776 gt_cv_func_gettext_libc
=no
3781 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3783 if test "$gt_cv_func_gettext_libc" != "yes"; then
3784 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3785 echo "configure:3786: checking for bindtextdomain in -lintl" >&5
3786 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 ac_save_LIBS
="$LIBS"
3792 cat > conftest.
$ac_ext <<EOF
3793 #line 3794 "configure"
3794 #include "confdefs.h"
3795 /* Override any gcc2 internal prototype to avoid an error. */
3796 /* We use char because int might match the return type of a gcc2
3797 builtin and then its argument prototype would still apply. */
3798 char bindtextdomain();
3804 if { (eval echo configure
:3805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3806 eval "ac_cv_lib_$ac_lib_var=yes"
3808 echo "configure: failed program was:" >&5
3809 cat conftest.
$ac_ext >&5
3811 eval "ac_cv_lib_$ac_lib_var=no"
3814 LIBS
="$ac_save_LIBS"
3817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3818 echo "$ac_t""yes" 1>&6
3819 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3820 echo "configure:3821: checking for gettext in libintl" >&5
3821 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 cat > conftest.
$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3829 return (int) gettext ("")
3832 if { (eval echo configure
:3833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3834 gt_cv_func_gettext_libintl
=yes
3836 echo "configure: failed program was:" >&5
3837 cat conftest.
$ac_ext >&5
3839 gt_cv_func_gettext_libintl
=no
3844 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3846 echo "$ac_t""no" 1>&6
3851 if test "$gt_cv_func_gettext_libc" = "yes" \
3852 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3853 cat >> confdefs.h
<<\EOF
3854 #define HAVE_GETTEXT 1
3857 # Extract the first word of "msgfmt", so it can be a program name with args.
3858 set dummy msgfmt
; ac_word
=$2
3859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3860 echo "configure:3861: checking for $ac_word" >&5
3861 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3862 echo $ac_n "(cached) $ac_c" 1>&6
3866 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3869 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3870 for ac_dir
in $PATH; do
3871 test -z "$ac_dir" && ac_dir
=.
3872 if test -f $ac_dir/$ac_word; then
3873 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3874 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3880 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3884 MSGFMT
="$ac_cv_path_MSGFMT"
3885 if test -n "$MSGFMT"; then
3886 echo "$ac_t""$MSGFMT" 1>&6
3888 echo "$ac_t""no" 1>&6
3890 if test "$MSGFMT" != "no"; then
3891 for ac_func
in dcgettext
3893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3894 echo "configure:3895: checking for $ac_func" >&5
3895 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3896 echo $ac_n "(cached) $ac_c" 1>&6
3898 cat > conftest.
$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* System header to define __stub macros and hopefully few prototypes,
3902 which can conflict with char $ac_func(); below. */
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3911 /* The GNU C library defines this for functions which it implements
3912 to always fail with ENOSYS. Some functions are actually named
3913 something starting with __ and the normal name is an alias. */
3914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3922 if { (eval echo configure
:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3924 eval "ac_cv_func_$ac_func=yes"
3926 echo "configure: failed program was:" >&5
3927 cat conftest.
$ac_ext >&5
3929 eval "ac_cv_func_$ac_func=no"
3934 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3935 echo "$ac_t""yes" 1>&6
3936 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3937 cat >> confdefs.h
<<EOF
3938 #define $ac_tr_func 1
3942 echo "$ac_t""no" 1>&6
3946 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3947 set dummy gmsgfmt
; ac_word
=$2
3948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3949 echo "configure:3950: checking for $ac_word" >&5
3950 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3951 echo $ac_n "(cached) $ac_c" 1>&6
3955 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3958 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3961 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3963 for ac_dir
in $ac_dummy; do
3964 test -z "$ac_dir" && ac_dir
=.
3965 if test -f $ac_dir/$ac_word; then
3966 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3971 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3975 GMSGFMT
="$ac_cv_path_GMSGFMT"
3976 if test -n "$GMSGFMT"; then
3977 echo "$ac_t""$GMSGFMT" 1>&6
3979 echo "$ac_t""no" 1>&6
3982 # Extract the first word of "xgettext", so it can be a program name with args.
3983 set dummy xgettext
; ac_word
=$2
3984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3985 echo "configure:3986: checking for $ac_word" >&5
3986 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3987 echo $ac_n "(cached) $ac_c" 1>&6
3991 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3995 for ac_dir
in $PATH; do
3996 test -z "$ac_dir" && ac_dir
=.
3997 if test -f $ac_dir/$ac_word; then
3998 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3999 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4005 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4009 XGETTEXT
="$ac_cv_path_XGETTEXT"
4010 if test -n "$XGETTEXT"; then
4011 echo "$ac_t""$XGETTEXT" 1>&6
4013 echo "$ac_t""no" 1>&6
4016 cat > conftest.
$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4021 extern int _nl_msg_cat_cntr;
4022 return _nl_msg_cat_cntr
4025 if { (eval echo configure
:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4030 echo "configure: failed program was:" >&5
4031 cat conftest.
$ac_ext >&5
4042 echo "$ac_t""no" 1>&6
4047 if test "$CATOBJEXT" = "NONE"; then
4048 nls_cv_use_gnu_gettext
=yes
4052 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4053 INTLOBJS
="\$(GETTOBJS)"
4054 # Extract the first word of "msgfmt", so it can be a program name with args.
4055 set dummy msgfmt
; ac_word
=$2
4056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4057 echo "configure:4058: checking for $ac_word" >&5
4058 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4063 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4066 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4067 for ac_dir
in $PATH; do
4068 test -z "$ac_dir" && ac_dir
=.
4069 if test -f $ac_dir/$ac_word; then
4070 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4071 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4077 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4081 MSGFMT
="$ac_cv_path_MSGFMT"
4082 if test -n "$MSGFMT"; then
4083 echo "$ac_t""$MSGFMT" 1>&6
4085 echo "$ac_t""no" 1>&6
4088 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4089 set dummy gmsgfmt
; ac_word
=$2
4090 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4091 echo "configure:4092: checking for $ac_word" >&5
4092 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4093 echo $ac_n "(cached) $ac_c" 1>&6
4097 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4100 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4103 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4105 for ac_dir
in $ac_dummy; do
4106 test -z "$ac_dir" && ac_dir
=.
4107 if test -f $ac_dir/$ac_word; then
4108 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4113 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4117 GMSGFMT
="$ac_cv_path_GMSGFMT"
4118 if test -n "$GMSGFMT"; then
4119 echo "$ac_t""$GMSGFMT" 1>&6
4121 echo "$ac_t""no" 1>&6
4124 # Extract the first word of "xgettext", so it can be a program name with args.
4125 set dummy xgettext
; ac_word
=$2
4126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4127 echo "configure:4128: checking for $ac_word" >&5
4128 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4133 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4136 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4137 for ac_dir
in $PATH; do
4138 test -z "$ac_dir" && ac_dir
=.
4139 if test -f $ac_dir/$ac_word; then
4140 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4141 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4147 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4151 XGETTEXT
="$ac_cv_path_XGETTEXT"
4152 if test -n "$XGETTEXT"; then
4153 echo "$ac_t""$XGETTEXT" 1>&6
4155 echo "$ac_t""no" 1>&6
4159 USE_INCLUDED_LIBINTL
=yes
4163 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4165 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4166 nls_cv_header_intl
=libintl.h
4167 nls_cv_header_libgt
=libgettext.h
4170 if test "$XGETTEXT" != ":"; then
4171 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4174 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4179 # We need to process the po/ directory.
4183 nls_cv_header_intl
=libintl.h
4184 nls_cv_header_libgt
=libgettext.h
4187 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4188 # because some of the sources are only built for this goal.
4189 if test "$PACKAGE" = gettext; then
4191 USE_INCLUDED_LIBINTL
=yes
4194 for lang
in $ALL_LINGUAS; do
4195 GMOFILES
="$GMOFILES $lang.gmo"
4196 POFILES
="$POFILES $lang.po"
4212 if test "x$CATOBJEXT" != "x"; then
4213 if test "x$ALL_LINGUAS" = "x"; then
4216 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4217 echo "configure:4218: checking for catalogs to be installed" >&5
4219 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4220 case "$ALL_LINGUAS" in
4221 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4224 LINGUAS
=$NEW_LINGUAS
4225 echo "$ac_t""$LINGUAS" 1>&6
4228 if test -n "$LINGUAS"; then
4229 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4233 if test $ac_cv_header_locale_h = yes; then
4234 INCLUDE_LOCALE_H
="#include <locale.h>"
4237 /* The system does not provide the header <locale.h>. Take care yourself. */"
4241 if test -f $srcdir/po2tbl.
sed.
in; then
4242 if test "$CATOBJEXT" = ".cat"; then
4243 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4244 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4245 echo "configure:4246: checking for linux/version.h" >&5
4246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 cat > conftest.
$ac_ext <<EOF
4250 #line 4251 "configure"
4251 #include "confdefs.h"
4252 #include <linux/version.h>
4254 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4255 { (eval echo configure
:4256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4256 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4257 if test -z "$ac_err"; then
4259 eval "ac_cv_header_$ac_safe=yes"
4262 echo "configure: failed program was:" >&5
4263 cat conftest.
$ac_ext >&5
4265 eval "ac_cv_header_$ac_safe=no"
4269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4270 echo "$ac_t""yes" 1>&6
4273 echo "$ac_t""no" 1>&6
4278 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4280 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4281 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4284 if test "$PACKAGE" = "gettext"; then
4294 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4300 if test -d $srcdir/po
; then
4301 test -d po || mkdir po
4302 if test "x$srcdir" != "x."; then
4303 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4304 posrcprefix
="$srcdir/"
4306 posrcprefix
="../$srcdir/"
4312 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4313 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4317 # Permit host specific settings.
4318 .
${srcdir}/configure.
host
4321 # Find a good install program. We prefer a C program (faster),
4322 # so one script is as good as another. But avoid the broken or
4323 # incompatible versions:
4324 # SysV /etc/install, /usr/sbin/install
4325 # SunOS /usr/etc/install
4326 # IRIX /sbin/install
4328 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4329 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4330 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4331 # ./install, which can be erroneously created by make from ./install.sh.
4332 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4333 echo "configure:4334: checking for a BSD compatible install" >&5
4334 if test -z "$INSTALL"; then
4335 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4339 for ac_dir
in $PATH; do
4340 # Account for people who put trailing slashes in PATH elements.
4342 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4344 # OSF1 and SCO ODT 3.0 have their own names for install.
4345 # Don't use installbsd from OSF since it installs stuff as root
4347 for ac_prog
in ginstall scoinst
install; do
4348 if test -f $ac_dir/$ac_prog; then
4349 if test $ac_prog = install &&
4350 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4351 # AIX install. It has an incompatible calling convention.
4354 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4365 if test "${ac_cv_path_install+set}" = set; then
4366 INSTALL
="$ac_cv_path_install"
4368 # As a last resort, use the slow shell script. We don't cache a
4369 # path for INSTALL within a source directory, because that will
4370 # break other packages using the cache if that directory is
4371 # removed, or if the path is relative.
4372 INSTALL
="$ac_install_sh"
4375 echo "$ac_t""$INSTALL" 1>&6
4377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4378 # It thinks the first close brace ends the variable substitution.
4379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4383 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4386 BFD_HOST_64BIT_LONG
=0
4387 BFD_HOST_64_BIT_DEFINED
=0
4390 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4391 BFD_HOST_64BIT_LONG
=1
4392 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4393 BFD_HOST_64_BIT_DEFINED
=1
4394 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4395 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4402 # Put a plausible default for CC_FOR_BUILD in Makefile.
4403 if test -z "$CC_FOR_BUILD"; then
4404 if test "x$cross_compiling" = "xno"; then
4405 CC_FOR_BUILD
='$(CC)'
4411 # Also set EXEEXT_FOR_BUILD.
4412 if test "x$cross_compiling" = "xno"; then
4413 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4415 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4416 echo "configure:4417: checking for build system executable suffix" >&5
4417 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4418 echo $ac_n "(cached) $ac_c" 1>&6
4421 echo 'int main () { return 0; }' > conftest.c
4422 bfd_cv_build_exeext
=
4423 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4424 for file in conftest.
*; do
4426 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4427 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4431 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4434 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4436 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4440 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4442 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_hdr" >&5
4445 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.
$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4453 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4454 { (eval echo configure
:4455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4455 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4456 if test -z "$ac_err"; then
4458 eval "ac_cv_header_$ac_safe=yes"
4461 echo "configure: failed program was:" >&5
4462 cat conftest.
$ac_ext >&5
4464 eval "ac_cv_header_$ac_safe=no"
4468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4471 cat >> confdefs.h
<<EOF
4472 #define $ac_tr_hdr 1
4476 echo "$ac_t""no" 1>&6
4480 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4482 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_hdr" >&5
4485 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.
$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4494 { (eval echo configure
:4495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4495 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4496 if test -z "$ac_err"; then
4498 eval "ac_cv_header_$ac_safe=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.
$ac_ext >&5
4504 eval "ac_cv_header_$ac_safe=no"
4508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4511 cat >> confdefs.h
<<EOF
4512 #define $ac_tr_hdr 1
4516 echo "$ac_t""no" 1>&6
4520 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4521 echo "configure:4522: checking whether time.h and sys/time.h may both be included" >&5
4522 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4523 echo $ac_n "(cached) $ac_c" 1>&6
4525 cat > conftest.
$ac_ext <<EOF
4526 #line 4527 "configure"
4527 #include "confdefs.h"
4528 #include <sys/types.h>
4529 #include <sys/time.h>
4535 if { (eval echo configure
:4536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4537 ac_cv_header_time
=yes
4539 echo "configure: failed program was:" >&5
4540 cat conftest.
$ac_ext >&5
4542 ac_cv_header_time
=no
4547 echo "$ac_t""$ac_cv_header_time" 1>&6
4548 if test $ac_cv_header_time = yes; then
4549 cat >> confdefs.h
<<\EOF
4550 #define TIME_WITH_SYS_TIME 1
4556 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4558 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4559 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_hdr that defines DIR" >&5
4561 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 cat > conftest.
$ac_ext <<EOF
4565 #line 4566 "configure"
4566 #include "confdefs.h"
4567 #include <sys/types.h>
4573 if { (eval echo configure
:4574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 eval "ac_cv_header_dirent_$ac_safe=yes"
4577 echo "configure: failed program was:" >&5
4578 cat conftest.
$ac_ext >&5
4580 eval "ac_cv_header_dirent_$ac_safe=no"
4584 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4585 echo "$ac_t""yes" 1>&6
4586 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4587 cat >> confdefs.h
<<EOF
4588 #define $ac_tr_hdr 1
4590 ac_header_dirent
=$ac_hdr; break
4592 echo "$ac_t""no" 1>&6
4595 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4596 if test $ac_header_dirent = dirent.h
; then
4597 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4598 echo "configure:4599: checking for opendir in -ldir" >&5
4599 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 ac_save_LIBS
="$LIBS"
4605 cat > conftest.
$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 /* Override any gcc2 internal prototype to avoid an error. */
4609 /* We use char because int might match the return type of a gcc2
4610 builtin and then its argument prototype would still apply. */
4617 if { (eval echo configure
:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4619 eval "ac_cv_lib_$ac_lib_var=yes"
4621 echo "configure: failed program was:" >&5
4622 cat conftest.
$ac_ext >&5
4624 eval "ac_cv_lib_$ac_lib_var=no"
4627 LIBS
="$ac_save_LIBS"
4630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4631 echo "$ac_t""yes" 1>&6
4634 echo "$ac_t""no" 1>&6
4638 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4639 echo "configure:4640: checking for opendir in -lx" >&5
4640 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 ac_save_LIBS
="$LIBS"
4646 cat > conftest.
$ac_ext <<EOF
4647 #line 4648 "configure"
4648 #include "confdefs.h"
4649 /* Override any gcc2 internal prototype to avoid an error. */
4650 /* We use char because int might match the return type of a gcc2
4651 builtin and then its argument prototype would still apply. */
4658 if { (eval echo configure
:4659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4660 eval "ac_cv_lib_$ac_lib_var=yes"
4662 echo "configure: failed program was:" >&5
4663 cat conftest.
$ac_ext >&5
4665 eval "ac_cv_lib_$ac_lib_var=no"
4668 LIBS
="$ac_save_LIBS"
4671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4672 echo "$ac_t""yes" 1>&6
4675 echo "$ac_t""no" 1>&6
4680 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4682 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_func" >&5
4684 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 cat > conftest.
$ac_ext <<EOF
4688 #line 4689 "configure"
4689 #include "confdefs.h"
4690 /* System header to define __stub macros and hopefully few prototypes,
4691 which can conflict with char $ac_func(); below. */
4693 /* Override any gcc2 internal prototype to avoid an error. */
4694 /* We use char because int might match the return type of a gcc2
4695 builtin and then its argument prototype would still apply. */
4700 /* The GNU C library defines this for functions which it implements
4701 to always fail with ENOSYS. Some functions are actually named
4702 something starting with __ and the normal name is an alias. */
4703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4711 if { (eval echo configure
:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4713 eval "ac_cv_func_$ac_func=yes"
4715 echo "configure: failed program was:" >&5
4716 cat conftest.
$ac_ext >&5
4718 eval "ac_cv_func_$ac_func=no"
4723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4724 echo "$ac_t""yes" 1>&6
4725 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4726 cat >> confdefs.h
<<EOF
4727 #define $ac_tr_func 1
4731 echo "$ac_t""no" 1>&6
4738 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4739 cat >> confdefs.h
<<\EOF
4740 #define USE_BINARY_FOPEN 1
4745 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether strstr must be declared" >&5
4747 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4755 #ifdef HAVE_STRING_H
4758 #ifdef HAVE_STRINGS_H
4759 #include <strings.h>
4762 #ifdef HAVE_STDLIB_H
4765 #ifdef HAVE_UNISTD_H
4769 char *(*pfn) = (char *(*)) strstr
4772 if { (eval echo configure
:4773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4774 bfd_cv_decl_needed_strstr
=no
4776 echo "configure: failed program was:" >&5
4777 cat conftest.
$ac_ext >&5
4779 bfd_cv_decl_needed_strstr
=yes
4784 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4785 if test $bfd_cv_decl_needed_strstr = yes; then
4786 cat >> confdefs.h
<<\EOF
4787 #define NEED_DECLARATION_STRSTR 1
4792 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4793 echo "configure:4794: checking whether malloc must be declared" >&5
4794 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4802 #ifdef HAVE_STRING_H
4805 #ifdef HAVE_STRINGS_H
4806 #include <strings.h>
4809 #ifdef HAVE_STDLIB_H
4812 #ifdef HAVE_UNISTD_H
4816 char *(*pfn) = (char *(*)) malloc
4819 if { (eval echo configure
:4820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4821 bfd_cv_decl_needed_malloc
=no
4823 echo "configure: failed program was:" >&5
4824 cat conftest.
$ac_ext >&5
4826 bfd_cv_decl_needed_malloc
=yes
4831 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4832 if test $bfd_cv_decl_needed_malloc = yes; then
4833 cat >> confdefs.h
<<\EOF
4834 #define NEED_DECLARATION_MALLOC 1
4839 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4840 echo "configure:4841: checking whether realloc must be declared" >&5
4841 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4842 echo $ac_n "(cached) $ac_c" 1>&6
4844 cat > conftest.
$ac_ext <<EOF
4845 #line 4846 "configure"
4846 #include "confdefs.h"
4849 #ifdef HAVE_STRING_H
4852 #ifdef HAVE_STRINGS_H
4853 #include <strings.h>
4856 #ifdef HAVE_STDLIB_H
4859 #ifdef HAVE_UNISTD_H
4863 char *(*pfn) = (char *(*)) realloc
4866 if { (eval echo configure
:4867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4868 bfd_cv_decl_needed_realloc
=no
4870 echo "configure: failed program was:" >&5
4871 cat conftest.
$ac_ext >&5
4873 bfd_cv_decl_needed_realloc
=yes
4878 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4879 if test $bfd_cv_decl_needed_realloc = yes; then
4880 cat >> confdefs.h
<<\EOF
4881 #define NEED_DECLARATION_REALLOC 1
4886 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4887 echo "configure:4888: checking whether free must be declared" >&5
4888 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.
$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4896 #ifdef HAVE_STRING_H
4899 #ifdef HAVE_STRINGS_H
4900 #include <strings.h>
4903 #ifdef HAVE_STDLIB_H
4906 #ifdef HAVE_UNISTD_H
4910 char *(*pfn) = (char *(*)) free
4913 if { (eval echo configure
:4914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4915 bfd_cv_decl_needed_free
=no
4917 echo "configure: failed program was:" >&5
4918 cat conftest.
$ac_ext >&5
4920 bfd_cv_decl_needed_free
=yes
4925 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4926 if test $bfd_cv_decl_needed_free = yes; then
4927 cat >> confdefs.h
<<\EOF
4928 #define NEED_DECLARATION_FREE 1
4933 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4934 echo "configure:4935: checking whether getenv must be declared" >&5
4935 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4936 echo $ac_n "(cached) $ac_c" 1>&6
4938 cat > conftest.
$ac_ext <<EOF
4939 #line 4940 "configure"
4940 #include "confdefs.h"
4943 #ifdef HAVE_STRING_H
4946 #ifdef HAVE_STRINGS_H
4947 #include <strings.h>
4950 #ifdef HAVE_STDLIB_H
4953 #ifdef HAVE_UNISTD_H
4957 char *(*pfn) = (char *(*)) getenv
4960 if { (eval echo configure
:4961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4962 bfd_cv_decl_needed_getenv
=no
4964 echo "configure: failed program was:" >&5
4965 cat conftest.
$ac_ext >&5
4967 bfd_cv_decl_needed_getenv
=yes
4972 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4973 if test $bfd_cv_decl_needed_getenv = yes; then
4974 cat >> confdefs.h
<<\EOF
4975 #define NEED_DECLARATION_GETENV 1
4981 # If we are configured native, pick a core file support file.
4985 if test "${target}" = "${host}"; then
4987 alpha
*-*-linux-gnu*)
4988 COREFILE
=trad-core.lo
4989 TRAD_HEADER
='"hosts/alphalinux.h"'
4991 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
4992 alpha
*-*-*) COREFILE
=osf-core.lo
;;
4993 arm-
*-riscix) COREFILE
=trad-core.lo
;;
4994 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
4995 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
4996 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
4997 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
4998 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5000 COREFILE
=trad-core.lo
5001 TRAD_HEADER
='"hosts/i370linux.h"'
5004 i
[3456]86-sequent-bsd*)
5005 COREFILE
=trad-core.lo
5006 TRAD_HEADER
='"hosts/symmetry.h"'
5008 i
[3456]86-sequent-sysv4*) ;;
5009 i
[3456]86-sequent-sysv*)
5010 COREFILE
=trad-core.lo
5011 TRAD_HEADER
='"hosts/symmetry.h"'
5013 i
[3456]86-*-bsd* | i
[3456]86-*-freebsd*)
5014 COREFILE
=trad-core.lo
5015 TRAD_HEADER
='"hosts/i386bsd.h"'
5017 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
5018 COREFILE
=netbsd-core.lo
5020 i
[3456]86-esix-sysv3*)
5021 COREFILE
=trad-core.lo
5022 TRAD_HEADER
='"hosts/esix.h"'
5024 i
[3456]86-*-sco3.2v5
*)
5025 COREFILE
=sco5-core.lo
5027 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
5028 COREFILE
=trad-core.lo
5029 TRAD_HEADER
='"hosts/i386sco.h"'
5032 COREFILE
=trad-core.lo
5033 TRAD_HEADER
='"hosts/i386mach3.h"'
5035 i
[3456]86-*-linux-gnu*)
5036 COREFILE
=trad-core.lo
5037 TRAD_HEADER
='"hosts/i386linux.h"'
5039 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
5040 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
5041 i860-
*-mach3* | i860-
*-osf1*)
5042 COREFILE
=trad-core.lo
5043 TRAD_HEADER
='"hosts/i860mach3.h"'
5046 COREFILE
=trad-core.lo
5047 TRAD_HEADER
='"hosts/mipsbsd.h"'
5050 COREFILE
=trad-core.lo
5051 TRAD_HEADER
='"hosts/mipsmach3.h"'
5053 mips-
*-netbsd* | mips
*-*-openbsd*)
5054 COREFILE
=netbsd-core.lo
5057 COREFILE
=trad-core.lo
5058 TRAD_HEADER
='"hosts/decstation.h"'
5060 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5061 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5062 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5064 COREFILE
=trad-core.lo
5065 TRAD_HEADER
='"hosts/mipsmach3.h"'
5068 mips-
*-sysv* | mips-
*-riscos*)
5069 COREFILE
=trad-core.lo
5070 TRAD_HEADER
='"hosts/riscos.h"'
5073 COREFILE
=trad-core.lo
5074 TRAD_HEADER
='"hosts/news-mips.h"'
5077 COREFILE
=trad-core.lo
5078 TRAD_HEADER
='"hosts/dpx2.h"'
5080 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5082 COREFILE
=trad-core.lo
5083 TRAD_HEADER
='"hosts/hp300bsd.h"'
5086 COREFILE
=trad-core.lo
5087 TRAD_HEADER
='"hosts/m68klinux.h"'
5089 m68
*-motorola-sysv*)
5090 COREFILE
=trad-core.lo
5091 TRAD_HEADER
='"hosts/delta68.h"'
5094 COREFILE
=trad-core.lo
5095 TRAD_HEADER
='"hosts/news.h"'
5097 m68
*-*-netbsd* | m68
*-*-openbsd*)
5098 COREFILE
=netbsd-core.lo
5101 COREFILE
=trad-core.lo
5102 TRAD_HEADER
='"hosts/m68kaux.h"'
5105 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
5107 COREFILE
=trad-core.lo
5108 TRAD_HEADER
='"hosts/m88kmach3.h"'
5111 COREFILE
=trad-core.lo
5112 TRAD_HEADER
='"hosts/pc532mach.h"'
5114 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5115 COREFILE
=netbsd-core.lo
5117 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
5118 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5119 COREFILE
=rs6000-core.lo
5120 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5122 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5123 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5124 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5125 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5126 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5128 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5129 sparc-
*-netbsd* | sparc-
*-openbsd*)
5130 COREFILE
=netbsd-core.lo
5133 COREFILE
=trad-core.lo
5134 TRAD_HEADER
='"hosts/tahoe.h"'
5137 COREFILE
=trad-core.lo
5138 TRAD_HEADER
='"hosts/vaxult2.h"'
5141 COREFILE
=trad-core.lo
5142 TRAD_HEADER
='"hosts/vaxult2.h"'
5145 COREFILE
=trad-core.lo
5146 TRAD_HEADER
='"hosts/vaxbsd.h"'
5151 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5152 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5153 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5154 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5155 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5156 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5157 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5158 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5159 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5160 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5161 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5164 # ELF corefile support has several flavors, but all of
5165 # them use something called <sys/procfs.h>
5166 for ac_hdr
in sys
/procfs.h
5168 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5169 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5170 echo "configure:5171: checking for $ac_hdr" >&5
5171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5172 echo $ac_n "(cached) $ac_c" 1>&6
5174 cat > conftest.
$ac_ext <<EOF
5175 #line 5176 "configure"
5176 #include "confdefs.h"
5179 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5180 { (eval echo configure
:5181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5181 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5182 if test -z "$ac_err"; then
5184 eval "ac_cv_header_$ac_safe=yes"
5187 echo "configure: failed program was:" >&5
5188 cat conftest.
$ac_ext >&5
5190 eval "ac_cv_header_$ac_safe=no"
5194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5195 echo "$ac_t""yes" 1>&6
5196 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5197 cat >> confdefs.h
<<EOF
5198 #define $ac_tr_hdr 1
5202 echo "$ac_t""no" 1>&6
5206 if test "$ac_cv_header_sys_procfs_h" = yes; then
5207 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5208 echo "configure:5209: checking for prstatus_t in sys/procfs.h" >&5
5209 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5210 echo $ac_n "(cached) $ac_c" 1>&6
5212 cat > conftest.
$ac_ext <<EOF
5213 #line 5214 "configure"
5214 #include "confdefs.h"
5217 #include <sys/procfs.h>
5222 if { (eval echo configure
:5223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5224 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5226 echo "configure: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5229 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5235 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5236 cat >> confdefs.h
<<\EOF
5237 #define HAVE_PRSTATUS_T 1
5241 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5243 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5244 echo "configure:5245: checking for prstatus32_t in sys/procfs.h" >&5
5245 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5246 echo $ac_n "(cached) $ac_c" 1>&6
5248 cat > conftest.
$ac_ext <<EOF
5249 #line 5250 "configure"
5250 #include "confdefs.h"
5253 #include <sys/procfs.h>
5258 if { (eval echo configure
:5259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5260 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5262 echo "configure: failed program was:" >&5
5263 cat conftest.
$ac_ext >&5
5265 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5271 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5272 cat >> confdefs.h
<<\EOF
5273 #define HAVE_PRSTATUS32_T 1
5277 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5279 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5280 echo "configure:5281: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5281 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5289 #include <sys/procfs.h>
5291 prstatus_t avar; void* aref = (void*) &avar.pr_who
5294 if { (eval echo configure
:5295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5296 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5298 echo "configure: failed program was:" >&5
5299 cat conftest.
$ac_ext >&5
5301 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5307 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5308 cat >> confdefs.h
<<\EOF
5309 #define HAVE_PRSTATUS_T_PR_WHO 1
5313 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5315 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5316 echo "configure:5317: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5317 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5318 echo $ac_n "(cached) $ac_c" 1>&6
5320 cat > conftest.
$ac_ext <<EOF
5321 #line 5322 "configure"
5322 #include "confdefs.h"
5325 #include <sys/procfs.h>
5327 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5330 if { (eval echo configure
:5331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5332 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5334 echo "configure: failed program was:" >&5
5335 cat conftest.
$ac_ext >&5
5337 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5343 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5344 cat >> confdefs.h
<<\EOF
5345 #define HAVE_PRSTATUS32_T_PR_WHO 1
5349 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5351 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5352 echo "configure:5353: checking for pstatus_t in sys/procfs.h" >&5
5353 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 cat > conftest.
$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5361 #include <sys/procfs.h>
5366 if { (eval echo configure
:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5368 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5370 echo "configure: failed program was:" >&5
5371 cat conftest.
$ac_ext >&5
5373 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5379 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5380 cat >> confdefs.h
<<\EOF
5381 #define HAVE_PSTATUS_T 1
5385 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5387 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5388 echo "configure:5389: checking for pstatus32_t in sys/procfs.h" >&5
5389 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5390 echo $ac_n "(cached) $ac_c" 1>&6
5392 cat > conftest.
$ac_ext <<EOF
5393 #line 5394 "configure"
5394 #include "confdefs.h"
5397 #include <sys/procfs.h>
5402 if { (eval echo configure
:5403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5404 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5406 echo "configure: failed program was:" >&5
5407 cat conftest.
$ac_ext >&5
5409 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5415 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5416 cat >> confdefs.h
<<\EOF
5417 #define HAVE_PSTATUS32_T 1
5421 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5423 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5424 echo "configure:5425: checking for prpsinfo_t in sys/procfs.h" >&5
5425 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5426 echo $ac_n "(cached) $ac_c" 1>&6
5428 cat > conftest.
$ac_ext <<EOF
5429 #line 5430 "configure"
5430 #include "confdefs.h"
5433 #include <sys/procfs.h>
5438 if { (eval echo configure
:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5440 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5442 echo "configure: failed program was:" >&5
5443 cat conftest.
$ac_ext >&5
5445 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5451 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5452 cat >> confdefs.h
<<\EOF
5453 #define HAVE_PRPSINFO_T 1
5457 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5459 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5460 echo "configure:5461: checking for prpsinfo32_t in sys/procfs.h" >&5
5461 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5462 echo $ac_n "(cached) $ac_c" 1>&6
5464 cat > conftest.
$ac_ext <<EOF
5465 #line 5466 "configure"
5466 #include "confdefs.h"
5469 #include <sys/procfs.h>
5474 if { (eval echo configure
:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5476 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5478 echo "configure: failed program was:" >&5
5479 cat conftest.
$ac_ext >&5
5481 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5487 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5488 cat >> confdefs.h
<<\EOF
5489 #define HAVE_PRPSINFO32_T 1
5493 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5495 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5496 echo "configure:5497: checking for psinfo_t in sys/procfs.h" >&5
5497 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5498 echo $ac_n "(cached) $ac_c" 1>&6
5500 cat > conftest.
$ac_ext <<EOF
5501 #line 5502 "configure"
5502 #include "confdefs.h"
5505 #include <sys/procfs.h>
5510 if { (eval echo configure
:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5512 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5514 echo "configure: failed program was:" >&5
5515 cat conftest.
$ac_ext >&5
5517 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5523 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5524 cat >> confdefs.h
<<\EOF
5525 #define HAVE_PSINFO_T 1
5529 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5531 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5532 echo "configure:5533: checking for psinfo32_t in sys/procfs.h" >&5
5533 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5534 echo $ac_n "(cached) $ac_c" 1>&6
5536 cat > conftest.
$ac_ext <<EOF
5537 #line 5538 "configure"
5538 #include "confdefs.h"
5541 #include <sys/procfs.h>
5546 if { (eval echo configure
:5547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5548 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5550 echo "configure: failed program was:" >&5
5551 cat conftest.
$ac_ext >&5
5553 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5559 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5560 cat >> confdefs.h
<<\EOF
5561 #define HAVE_PSINFO32_T 1
5565 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5567 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5568 echo "configure:5569: checking for lwpstatus_t in sys/procfs.h" >&5
5569 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5572 cat > conftest.
$ac_ext <<EOF
5573 #line 5574 "configure"
5574 #include "confdefs.h"
5577 #include <sys/procfs.h>
5582 if { (eval echo configure
:5583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5584 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5586 echo "configure: failed program was:" >&5
5587 cat conftest.
$ac_ext >&5
5589 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5595 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5596 cat >> confdefs.h
<<\EOF
5597 #define HAVE_LWPSTATUS_T 1
5601 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5603 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5604 echo "configure:5605: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5605 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5606 echo $ac_n "(cached) $ac_c" 1>&6
5608 cat > conftest.
$ac_ext <<EOF
5609 #line 5610 "configure"
5610 #include "confdefs.h"
5613 #include <sys/procfs.h>
5615 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5618 if { (eval echo configure
:5619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5620 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5622 echo "configure: failed program was:" >&5
5623 cat conftest.
$ac_ext >&5
5625 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5631 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5632 cat >> confdefs.h
<<\EOF
5633 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5637 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5639 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5640 echo "configure:5641: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5641 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5642 echo $ac_n "(cached) $ac_c" 1>&6
5644 cat > conftest.
$ac_ext <<EOF
5645 #line 5646 "configure"
5646 #include "confdefs.h"
5649 #include <sys/procfs.h>
5651 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5654 if { (eval echo configure
:5655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5656 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5658 echo "configure: failed program was:" >&5
5659 cat conftest.
$ac_ext >&5
5661 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5667 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5668 cat >> confdefs.h
<<\EOF
5669 #define HAVE_LWPSTATUS_T_PR_REG 1
5673 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5675 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5676 echo "configure:5677: checking for win32_pstatus_t in sys/procfs.h" >&5
5677 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5678 echo $ac_n "(cached) $ac_c" 1>&6
5680 cat > conftest.
$ac_ext <<EOF
5681 #line 5682 "configure"
5682 #include "confdefs.h"
5685 #include <sys/procfs.h>
5687 win32_pstatus_t avar
5690 if { (eval echo configure
:5691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5692 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5694 echo "configure: failed program was:" >&5
5695 cat conftest.
$ac_ext >&5
5697 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5703 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5704 cat >> confdefs.h
<<\EOF
5705 #define HAVE_WIN32_PSTATUS_T 1
5709 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5715 if test -n "$TRAD_HEADER"; then
5716 cat >> confdefs.h
<<EOF
5717 #define TRAD_HEADER $TRAD_HEADER
5722 # Horrible hacks to build DLLs on Windows.
5727 if test "$enable_shared" = "yes"; then
5728 WIN32LDFLAGS
="-no-undefined"
5729 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5738 # Canonicalize the secondary target names.
5739 if test -n "$enable_targets" ; then
5740 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5742 result
=`$ac_config_sub $targ 2>/dev/null`
5743 if test -n "$result" ; then
5744 canon_targets
="$canon_targets $result"
5746 # Allow targets that config.sub doesn't recognize, like "all".
5747 canon_targets
="$canon_targets $targ"
5757 for targ
in $target $canon_targets
5759 if test "x$targ" = "xall"; then
5762 .
$srcdir/config.bfd
5763 if test "x$targ" = "x$target"; then
5766 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5767 selarchs
="$selarchs $targ_archs"
5768 TDEFINES
="$TDEFINES $targ_cflags"
5773 # This processing still needs to be done if we're to decide properly whether
5774 # 64-bit support needs to be compiled in. Currently, it will be included if
5775 # the default or any other explicitly requested target requires it; it
5776 # will not be included on a 32-bit host if no 64-bit target is requested, and
5777 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5780 # uniq the default and selected vectors in all the configured targets.
5782 for i
in $selvecs ; do
5791 # uniq the architectures in all the configured targets.
5793 for i
in $selarchs ; do
5801 # Target backend .o files.
5804 elf
="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
5809 # This list is alphabetized to make it easy to compare
5810 # with the two vector lists in targets.c.
5811 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5812 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5813 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5814 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5815 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5816 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5817 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5818 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5819 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5820 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5821 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5822 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5823 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5824 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5825 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5826 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5827 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5828 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5829 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5830 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5831 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5832 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5833 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo peigen.lo cofflink.lo"
5835 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5837 bfd_elf64_hppa_vec
) tb
="$tb elf64-hppa.lo elf64.lo $elf"
5839 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5841 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5843 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5844 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5845 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5846 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5847 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5848 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5849 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5850 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5851 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5852 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5854 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5855 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5856 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5857 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5858 bfd_elf32_hppa_vec
) tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5859 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5860 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5861 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5862 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5863 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5864 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5865 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5866 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5868 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5869 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5870 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5871 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5872 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5873 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5874 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5875 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5876 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5877 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5878 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5879 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5880 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5881 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5882 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5883 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5884 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5885 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5886 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5887 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5888 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5889 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5891 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
5893 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
5895 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
5896 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
5897 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
5898 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
5900 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5901 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5902 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
5903 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
5905 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
5906 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
5907 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
5908 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
5909 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
5910 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
5911 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
5912 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
5913 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
5914 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
5915 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
5916 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
5917 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
5918 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
5919 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
5920 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
5921 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
5922 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
5923 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
5924 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
5925 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
5926 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
5927 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5928 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
5929 ieee_vec
) tb
="$tb ieee.lo" ;;
5930 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
5931 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
5932 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
5933 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
5934 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
5935 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
5936 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
5937 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
5938 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
5939 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
5940 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
5941 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
5942 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5943 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
5944 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5945 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
5946 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
5947 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
5948 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
5950 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
5951 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
5953 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
5954 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
5955 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
5956 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
5957 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
5958 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
5959 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5960 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
5961 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5962 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
5963 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
5964 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5965 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5966 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5967 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
5968 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
5969 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
5970 som_vec
) tb
="$tb som.lo" ;;
5971 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
5972 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
5973 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
5974 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
5975 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
5976 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
5977 srec_vec
) tb
="$tb srec.lo" ;;
5978 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
5979 symbolsrec_vec
) tb
="$tb srec.lo" ;;
5980 tekhex_vec
) tb
="$tb tekhex.lo" ;;
5981 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
5982 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
5983 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
5984 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5985 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
5986 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5987 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
5988 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
5989 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
5990 versados_vec
) tb
="$tb versados.lo" ;;
5991 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
5993 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
5994 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
5995 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
5996 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
5999 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6003 # Target architecture .o files.
6004 # A couple of CPUs use shorter file names to avoid problems on DOS
6006 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6008 # Weed out duplicate .o files.
6030 if test x
${all_targets} = xtrue
; then
6031 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6032 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6036 else # all_targets is true
6037 # Only set these if they will be nonempty, for the clever echo.
6039 test -n "$selvecs" &&
6040 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6041 test -n "$selvecs" &&
6042 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6043 test -n "$selarchs" &&
6044 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6045 fi # all_targets is true
6047 case ${host64}-${target64}-${want64} in
6050 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6051 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6052 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6053 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6058 all_backends
='$(BFD32_BACKENDS)'
6068 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6069 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6070 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6071 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6074 for ac_hdr
in unistd.h
6076 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6078 echo "configure:6079: checking for $ac_hdr" >&5
6079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6080 echo $ac_n "(cached) $ac_c" 1>&6
6082 cat > conftest.
$ac_ext <<EOF
6083 #line 6084 "configure"
6084 #include "confdefs.h"
6087 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6088 { (eval echo configure
:6089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6089 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6090 if test -z "$ac_err"; then
6092 eval "ac_cv_header_$ac_safe=yes"
6095 echo "configure: failed program was:" >&5
6096 cat conftest.
$ac_ext >&5
6098 eval "ac_cv_header_$ac_safe=no"
6102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6103 echo "$ac_t""yes" 1>&6
6104 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6105 cat >> confdefs.h
<<EOF
6106 #define $ac_tr_hdr 1
6110 echo "$ac_t""no" 1>&6
6114 for ac_func
in getpagesize
6116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6117 echo "configure:6118: checking for $ac_func" >&5
6118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6119 echo $ac_n "(cached) $ac_c" 1>&6
6121 cat > conftest.
$ac_ext <<EOF
6122 #line 6123 "configure"
6123 #include "confdefs.h"
6124 /* System header to define __stub macros and hopefully few prototypes,
6125 which can conflict with char $ac_func(); below. */
6127 /* Override any gcc2 internal prototype to avoid an error. */
6128 /* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6134 /* The GNU C library defines this for functions which it implements
6135 to always fail with ENOSYS. Some functions are actually named
6136 something starting with __ and the normal name is an alias. */
6137 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6145 if { (eval echo configure
:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6147 eval "ac_cv_func_$ac_func=yes"
6149 echo "configure: failed program was:" >&5
6150 cat conftest.
$ac_ext >&5
6152 eval "ac_cv_func_$ac_func=no"
6157 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6158 echo "$ac_t""yes" 1>&6
6159 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6160 cat >> confdefs.h
<<EOF
6161 #define $ac_tr_func 1
6165 echo "$ac_t""no" 1>&6
6169 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6170 echo "configure:6171: checking for working mmap" >&5
6171 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6172 echo $ac_n "(cached) $ac_c" 1>&6
6174 if test "$cross_compiling" = yes; then
6175 ac_cv_func_mmap_fixed_mapped
=no
6177 cat > conftest.
$ac_ext <<EOF
6178 #line 6179 "configure"
6179 #include "confdefs.h"
6181 /* Thanks to Mike Haertel and Jim Avera for this test.
6182 Here is a matrix of mmap possibilities:
6183 mmap private not fixed
6184 mmap private fixed at somewhere currently unmapped
6185 mmap private fixed at somewhere already mapped
6186 mmap shared not fixed
6187 mmap shared fixed at somewhere currently unmapped
6188 mmap shared fixed at somewhere already mapped
6189 For private mappings, we should verify that changes cannot be read()
6190 back from the file, nor mmap's back from the file at a different
6191 address. (There have been systems where private was not correctly
6192 implemented like the infamous i386 svr4.0, and systems where the
6193 VM page cache was not coherent with the filesystem buffer cache
6194 like early versions of FreeBSD and possibly contemporary NetBSD.)
6195 For shared mappings, we should conversely verify that changes get
6196 propogated back to all the places they're supposed to be.
6198 Grep wants private fixed already mapped.
6199 The main things grep needs to know about mmap are:
6200 * does it exist and is it safe to write into the mmap'd area
6201 * how to use it (BSD variants) */
6202 #include <sys/types.h>
6204 #include <sys/mman.h>
6206 /* This mess was copied from the GNU getpagesize.h. */
6207 #ifndef HAVE_GETPAGESIZE
6208 # ifdef HAVE_UNISTD_H
6209 # include <unistd.h>
6212 /* Assume that all systems that can run configure have sys/param.h. */
6213 # ifndef HAVE_SYS_PARAM_H
6214 # define HAVE_SYS_PARAM_H 1
6217 # ifdef _SC_PAGESIZE
6218 # define getpagesize() sysconf(_SC_PAGESIZE)
6219 # else /* no _SC_PAGESIZE */
6220 # ifdef HAVE_SYS_PARAM_H
6221 # include <sys/param.h>
6222 # ifdef EXEC_PAGESIZE
6223 # define getpagesize() EXEC_PAGESIZE
6224 # else /* no EXEC_PAGESIZE */
6226 # define getpagesize() NBPG * CLSIZE
6229 # endif /* no CLSIZE */
6230 # else /* no NBPG */
6232 # define getpagesize() NBPC
6233 # else /* no NBPC */
6235 # define getpagesize() PAGESIZE
6236 # endif /* PAGESIZE */
6237 # endif /* no NBPC */
6238 # endif /* no NBPG */
6239 # endif /* no EXEC_PAGESIZE */
6240 # else /* no HAVE_SYS_PARAM_H */
6241 # define getpagesize() 8192 /* punt totally */
6242 # endif /* no HAVE_SYS_PARAM_H */
6243 # endif /* no _SC_PAGESIZE */
6245 #endif /* no HAVE_GETPAGESIZE */
6248 extern "C" { void *malloc(unsigned); }
6256 char *data, *data2, *data3;
6260 pagesize = getpagesize();
6263 * First, make a file with some known garbage in it.
6265 data = malloc(pagesize);
6268 for (i = 0; i < pagesize; ++i)
6269 *(data + i) = rand();
6271 fd = creat("conftestmmap", 0600);
6274 if (write(fd, data, pagesize) != pagesize)
6279 * Next, try to mmap the file at a fixed address which
6280 * already has something else allocated at it. If we can,
6281 * also make sure that we see the same garbage.
6283 fd = open("conftestmmap", O_RDWR);
6286 data2 = malloc(2 * pagesize);
6289 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6290 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6291 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6293 for (i = 0; i < pagesize; ++i)
6294 if (*(data + i) != *(data2 + i))
6298 * Finally, make sure that changes to the mapped area
6299 * do not percolate back to the file as seen by read().
6300 * (This is a bug on some variants of i386 svr4.0.)
6302 for (i = 0; i < pagesize; ++i)
6303 *(data2 + i) = *(data2 + i) + 1;
6304 data3 = malloc(pagesize);
6307 if (read(fd, data3, pagesize) != pagesize)
6309 for (i = 0; i < pagesize; ++i)
6310 if (*(data + i) != *(data3 + i))
6313 unlink("conftestmmap");
6318 if { (eval echo configure
:6319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6320 ac_cv_func_mmap_fixed_mapped
=yes
6322 echo "configure: failed program was:" >&5
6323 cat conftest.
$ac_ext >&5
6325 ac_cv_func_mmap_fixed_mapped
=no
6332 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6333 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6334 cat >> confdefs.h
<<\EOF
6340 for ac_func
in madvise mprotect
6342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6343 echo "configure:6344: checking for $ac_func" >&5
6344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6345 echo $ac_n "(cached) $ac_c" 1>&6
6347 cat > conftest.
$ac_ext <<EOF
6348 #line 6349 "configure"
6349 #include "confdefs.h"
6350 /* System header to define __stub macros and hopefully few prototypes,
6351 which can conflict with char $ac_func(); below. */
6353 /* Override any gcc2 internal prototype to avoid an error. */
6354 /* We use char because int might match the return type of a gcc2
6355 builtin and then its argument prototype would still apply. */
6360 /* The GNU C library defines this for functions which it implements
6361 to always fail with ENOSYS. Some functions are actually named
6362 something starting with __ and the normal name is an alias. */
6363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6371 if { (eval echo configure
:6372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6373 eval "ac_cv_func_$ac_func=yes"
6375 echo "configure: failed program was:" >&5
6376 cat conftest.
$ac_ext >&5
6378 eval "ac_cv_func_$ac_func=no"
6383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6384 echo "$ac_t""yes" 1>&6
6385 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6386 cat >> confdefs.h
<<EOF
6387 #define $ac_tr_func 1
6391 echo "$ac_t""no" 1>&6
6395 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6396 true
+yes ) cat >> confdefs.h
<<\EOF
6402 rm -f doc
/config.status
6404 cat > confcache
<<\EOF
6405 # This file is a shell script that caches the results of configure
6406 # tests run on this system so they can be shared between configure
6407 # scripts and configure runs. It is not useful on other systems.
6408 # If it contains results you don't want to keep, you may remove or edit it.
6410 # By default, configure uses ./config.cache as the cache file,
6411 # creating it if it does not exist already. You can give configure
6412 # the --cache-file=FILE option to use a different cache file; that is
6413 # what configure does when it calls configure scripts in
6414 # subdirectories, so they share the cache.
6415 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6416 # config.status only pays attention to the cache file if you give it the
6417 # --recheck option to rerun configure.
6420 # The following way of writing the cache mishandles newlines in values,
6421 # but we know of no workaround that is simple, portable, and efficient.
6422 # So, don't put newlines in cache variables' values.
6423 # Ultrix sh set writes to stderr and can't be redirected directly,
6424 # and sets the high bit in the cache file unless we assign to the vars.
6426 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6428 # `set' does not quote correctly, so add quotes (double-quote substitution
6429 # turns \\\\ into \\, and sed turns \\ into \).
6431 -e "s/'/'\\\\''/g" \
6432 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6435 # `set' quotes correctly as required by POSIX, so do not add quotes.
6436 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6439 if cmp -s $cache_file confcache
; then
6442 if test -w $cache_file; then
6443 echo "updating cache $cache_file"
6444 cat confcache
> $cache_file
6446 echo "not updating unwritable cache $cache_file"
6451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6453 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6454 # Let make expand exec_prefix.
6455 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6457 # Any assignment to VPATH causes Sun make to only execute
6458 # the first set of double-colon rules, so remove it if not needed.
6459 # If there is a colon in the path, we need to keep it.
6460 if test "x$srcdir" = x.
; then
6461 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6464 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6466 DEFS
=-DHAVE_CONFIG_H
6468 # Without the "./", some shells look in PATH for config.status.
6469 : ${CONFIG_STATUS=./config.status}
6471 echo creating
$CONFIG_STATUS
6472 rm -f $CONFIG_STATUS
6473 cat > $CONFIG_STATUS <<EOF
6475 # Generated automatically by configure.
6476 # Run this file to recreate the current configuration.
6477 # This directory was configured as follows,
6478 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6480 # $0 $ac_configure_args
6482 # Compiler output produced by configure, useful for debugging
6483 # configure, is in ./config.log if it exists.
6485 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6488 case "\$ac_option" in
6489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6490 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6491 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6492 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6493 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6495 -help | --help | --hel | --he | --h)
6496 echo "\$ac_cs_usage"; exit 0 ;;
6497 *) echo "\$ac_cs_usage"; exit 1 ;;
6501 ac_given_srcdir=$srcdir
6502 ac_given_INSTALL="$INSTALL"
6504 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
6506 cat >> $CONFIG_STATUS <<EOF
6508 # Protect against being on the right side of a sed subst in config.status.
6509 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6510 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6514 s%@CFLAGS@%$CFLAGS%g
6515 s%@CPPFLAGS@%$CPPFLAGS%g
6516 s%@CXXFLAGS@%$CXXFLAGS%g
6517 s%@FFLAGS@%$FFLAGS%g
6519 s%@LDFLAGS@%$LDFLAGS%g
6521 s%@exec_prefix@%$exec_prefix%g
6522 s%@prefix@%$prefix%g
6523 s%@program_transform_name@%$program_transform_name%g
6524 s%@bindir@%$bindir%g
6525 s%@sbindir@%$sbindir%g
6526 s%@libexecdir@%$libexecdir%g
6527 s%@datadir@%$datadir%g
6528 s%@sysconfdir@%$sysconfdir%g
6529 s%@sharedstatedir@%$sharedstatedir%g
6530 s%@localstatedir@%$localstatedir%g
6531 s%@libdir@%$libdir%g
6532 s%@includedir@%$includedir%g
6533 s%@oldincludedir@%$oldincludedir%g
6534 s%@infodir@%$infodir%g
6535 s%@mandir@%$mandir%g
6537 s%@host_alias@%$host_alias%g
6538 s%@host_cpu@%$host_cpu%g
6539 s%@host_vendor@%$host_vendor%g
6540 s%@host_os@%$host_os%g
6541 s%@target@%$target%g
6542 s%@target_alias@%$target_alias%g
6543 s%@target_cpu@%$target_cpu%g
6544 s%@target_vendor@%$target_vendor%g
6545 s%@target_os@%$target_os%g
6547 s%@build_alias@%$build_alias%g
6548 s%@build_cpu@%$build_cpu%g
6549 s%@build_vendor@%$build_vendor%g
6550 s%@build_os@%$build_os%g
6552 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6553 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6554 s%@INSTALL_DATA@%$INSTALL_DATA%g
6555 s%@PACKAGE@%$PACKAGE%g
6556 s%@VERSION@%$VERSION%g
6557 s%@ACLOCAL@%$ACLOCAL%g
6558 s%@AUTOCONF@%$AUTOCONF%g
6559 s%@AUTOMAKE@%$AUTOMAKE%g
6560 s%@AUTOHEADER@%$AUTOHEADER%g
6561 s%@MAKEINFO@%$MAKEINFO%g
6562 s%@SET_MAKE@%$SET_MAKE%g
6564 s%@RANLIB@%$RANLIB%g
6566 s%@OBJEXT@%$OBJEXT%g
6567 s%@EXEEXT@%$EXEEXT%g
6569 s%@LIBTOOL@%$LIBTOOL%g
6570 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6571 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6572 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6575 s%@ALLOCA@%$ALLOCA%g
6576 s%@USE_NLS@%$USE_NLS%g
6577 s%@MSGFMT@%$MSGFMT%g
6578 s%@GMSGFMT@%$GMSGFMT%g
6579 s%@XGETTEXT@%$XGETTEXT%g
6580 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6581 s%@CATALOGS@%$CATALOGS%g
6582 s%@CATOBJEXT@%$CATOBJEXT%g
6583 s%@DATADIRNAME@%$DATADIRNAME%g
6584 s%@GMOFILES@%$GMOFILES%g
6585 s%@INSTOBJEXT@%$INSTOBJEXT%g
6586 s%@INTLDEPS@%$INTLDEPS%g
6587 s%@INTLLIBS@%$INTLLIBS%g
6588 s%@INTLOBJS@%$INTLOBJS%g
6589 s%@POFILES@%$POFILES%g
6591 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6593 s%@GT_YES@%$GT_YES%g
6594 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6596 s%@HDEFINES@%$HDEFINES%g
6597 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6598 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6599 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6600 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6601 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6602 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6603 s%@COREFILE@%$COREFILE%g
6604 s%@COREFLAG@%$COREFLAG%g
6605 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6606 s%@WIN32LIBADD@%$WIN32LIBADD%g
6607 s%@TDEFINES@%$TDEFINES%g
6608 s%@wordsize@%$wordsize%g
6609 s%@all_backends@%$all_backends%g
6610 s%@bfd_backends@%$bfd_backends%g
6611 s%@bfd_machines@%$bfd_machines%g
6612 s%@tdefaults@%$tdefaults%g
6617 cat >> $CONFIG_STATUS <<\EOF
6619 # Split the substitutions into bite-sized pieces for seds with
6620 # small command number limits, like on Digital OSF/1 and HP-UX.
6621 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6622 ac_file
=1 # Number of current file.
6623 ac_beg
=1 # First line for current file.
6624 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6627 while $ac_more_lines; do
6628 if test $ac_beg -gt 1; then
6629 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6631 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6633 if test ! -s conftest.s
$ac_file; then
6635 rm -f conftest.s
$ac_file
6637 if test -z "$ac_sed_cmds"; then
6638 ac_sed_cmds
="sed -f conftest.s$ac_file"
6640 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6642 ac_file
=`expr $ac_file + 1`
6644 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6647 if test -z "$ac_sed_cmds"; then
6652 cat >> $CONFIG_STATUS <<EOF
6654 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6656 cat >> $CONFIG_STATUS <<\EOF
6657 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6660 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6661 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6662 *) ac_file_in
="${ac_file}.in" ;;
6665 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6667 # Remove last slash and all that follows it. Not all systems have dirname.
6668 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6669 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6670 # The file is in a subdirectory.
6671 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6672 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6673 # A "../" for each directory in $ac_dir_suffix.
6674 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6676 ac_dir_suffix
= ac_dots
=
6679 case "$ac_given_srcdir" in
6681 if test -z "$ac_dots"; then top_srcdir
=.
6682 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6683 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6685 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6686 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6689 case "$ac_given_INSTALL" in
6690 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6691 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6694 echo creating
"$ac_file"
6696 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6698 *Makefile
*) ac_comsub
="1i\\
6699 # $configure_input" ;;
6703 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6705 s%@configure_input@%$configure_input%g
6706 s%@srcdir@%$srcdir%g
6707 s%@top_srcdir@%$top_srcdir%g
6708 s%@INSTALL@%$INSTALL%g
6709 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6716 # ac_d sets the value in "#define NAME VALUE" lines.
6717 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6718 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6721 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6722 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6723 ac_uB
='\([ ]\)%\1#\2define\3'
6726 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6727 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6728 ac_eB
='$%\1#\2define\3'
6732 if test "${CONFIG_HEADERS+set}" != set; then
6734 cat >> $CONFIG_STATUS <<EOF
6735 CONFIG_HEADERS="config.h:config.in"
6737 cat >> $CONFIG_STATUS <<\EOF
6739 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6740 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6742 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6743 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6744 *) ac_file_in
="${ac_file}.in" ;;
6747 echo creating
$ac_file
6749 rm -f conftest.frag conftest.
in conftest.out
6750 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6751 cat $ac_file_inputs > conftest.
in
6755 # Transform confdefs.h into a sed script conftest.vals that substitutes
6756 # the proper values into config.h.in to produce config.h. And first:
6757 # Protect against being on the right side of a sed subst in config.status.
6758 # Protect against being in an unquoted here document in config.status.
6760 cat > conftest.hdr
<<\EOF
6763 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6767 sed -n -f conftest.hdr confdefs.h > conftest.vals
6770 # This sed command replaces #undef with comments. This is necessary, for
6771 # example, in the case of _POSIX_SOURCE, which is predefined and required
6772 # on some systems where configure will not decide to define it.
6773 cat >> conftest.vals <<\EOF
6774 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6777 # Break up conftest.vals because some shells have a limit on
6778 # the size of here documents, and old seds have small limits too.
6783 ac_lines=`grep -c . conftest.vals
`
6784 # grep -c gives empty output for an empty file on some AIX systems.
6785 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6786 # Write a limited-size here document to conftest.frag.
6787 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6788 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6790 sed -f conftest.frag conftest.in > conftest.out
6792 mv conftest.out conftest.in
6794 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6796 mv conftest.tail conftest.vals
6800 cat >> $CONFIG_STATUS <<\EOF
6801 rm -f conftest.frag conftest.h
6802 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6803 cat conftest.in >> conftest.h
6805 if cmp -s $ac_file conftest.h 2>/dev/null; then
6806 echo "$ac_file is unchanged"
6809 # Remove last slash and all that follows it. Not all systems have dirname.
6810 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6811 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6812 # The file is in a subdirectory.
6813 test ! -d "$ac_dir" && mkdir "$ac_dir"
6816 mv conftest.h $ac_file
6821 cat >> $CONFIG_STATUS <<EOF
6825 cat >> $CONFIG_STATUS <<\EOF
6826 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6827 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6830 chmod +x $CONFIG_STATUS
6831 rm -fr confdefs* $ac_clean_files
6832 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1