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}-
736 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
737 echo "configure:738: checking for strerror in -lcposix" >&5
738 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
739 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
740 echo $ac_n "(cached) $ac_c" 1>&6
743 LIBS
="-lcposix $LIBS"
744 cat > conftest.
$ac_ext <<EOF
745 #line 746 "configure"
746 #include "confdefs.h"
747 /* Override any gcc2 internal prototype to avoid an error. */
748 /* We use char because int might match the return type of a gcc2
749 builtin and then its argument prototype would still apply. */
756 if { (eval echo configure
:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
758 eval "ac_cv_lib_$ac_lib_var=yes"
760 echo "configure: failed program was:" >&5
761 cat conftest.
$ac_ext >&5
763 eval "ac_cv_lib_$ac_lib_var=no"
769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
770 echo "$ac_t""yes" 1>&6
771 LIBS
="$LIBS -lcposix"
773 echo "$ac_t""no" 1>&6
779 # Find a good install program. We prefer a C program (faster),
780 # so one script is as good as another. But avoid the broken or
781 # incompatible versions:
782 # SysV /etc/install, /usr/sbin/install
783 # SunOS /usr/etc/install
786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
789 # ./install, which can be erroneously created by make from ./install.sh.
790 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
791 echo "configure:792: checking for a BSD compatible install" >&5
792 if test -z "$INSTALL"; then
793 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
797 for ac_dir
in $PATH; do
798 # Account for people who put trailing slashes in PATH elements.
800 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
802 # OSF1 and SCO ODT 3.0 have their own names for install.
803 # Don't use installbsd from OSF since it installs stuff as root
805 for ac_prog
in ginstall scoinst
install; do
806 if test -f $ac_dir/$ac_prog; then
807 if test $ac_prog = install &&
808 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
809 # AIX install. It has an incompatible calling convention.
812 ac_cv_path_install
="$ac_dir/$ac_prog -c"
823 if test "${ac_cv_path_install+set}" = set; then
824 INSTALL
="$ac_cv_path_install"
826 # As a last resort, use the slow shell script. We don't cache a
827 # path for INSTALL within a source directory, because that will
828 # break other packages using the cache if that directory is
829 # removed, or if the path is relative.
830 INSTALL
="$ac_install_sh"
833 echo "$ac_t""$INSTALL" 1>&6
835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
836 # It thinks the first close brace ends the variable substitution.
837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
839 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
841 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
843 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
844 echo "configure:845: checking whether build environment is sane" >&5
847 echo timestamp
> conftestfile
848 # Do `set' in a subshell so we don't clobber the current shell's
849 # arguments. Must try -L first in case configure is actually a
850 # symlink; some systems play weird games with the mod time of symlinks
851 # (eg FreeBSD returns the mod time of the symlink's containing
854 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
855 if test "$*" = "X"; then
857 set X
`ls -t $srcdir/configure conftestfile`
859 if test "$*" != "X $srcdir/configure conftestfile" \
860 && test "$*" != "X conftestfile $srcdir/configure"; then
862 # If neither matched, then we have a broken ls. This can happen
863 # if, for instance, CONFIG_SHELL is bash and it inherits a
864 # broken ls alias from the environment. This has actually
865 # happened. Such a system could not be considered "sane".
866 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
867 alias in your environment" 1>&2; exit 1; }
870 test "$2" = conftestfile
876 { echo "configure: error: newly created file is older than distributed files!
877 Check your system clock" 1>&2; exit 1; }
880 echo "$ac_t""yes" 1>&6
881 if test "$program_transform_name" = s
,x
,x
,; then
882 program_transform_name
=
884 # Double any \ or $. echo might interpret backslashes.
885 cat <<\EOF_SED
> conftestsed
886 s
,\\,\\\\,g
; s
,\$
,$$
,g
888 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
891 test "$program_prefix" != NONE
&&
892 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
893 # Use a double $ so make ignores it.
894 test "$program_suffix" != NONE
&&
895 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
897 # sed with no file args requires a program.
898 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
900 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
901 echo "configure:902: checking whether ${MAKE-make} sets \${MAKE}" >&5
902 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
903 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 cat > conftestmake
<<\EOF
908 @
echo 'ac_maketemp="${MAKE}"'
910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
911 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
912 if test -n "$ac_maketemp"; then
913 eval ac_cv_prog_make_
${ac_make}_set
=yes
915 eval ac_cv_prog_make_
${ac_make}_set
=no
919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
920 echo "$ac_t""yes" 1>&6
923 echo "$ac_t""no" 1>&6
924 SET_MAKE
="MAKE=${MAKE-make}"
932 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
933 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
935 cat >> confdefs.h
<<EOF
936 #define PACKAGE "$PACKAGE"
939 cat >> confdefs.h
<<EOF
940 #define VERSION "$VERSION"
945 missing_dir
=`cd $ac_aux_dir && pwd`
946 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
947 echo "configure:948: checking for working aclocal" >&5
948 # Run test in a subshell; some versions of sh will print an error if
949 # an executable is not found, even if stderr is redirected.
950 # Redirect stdin to placate older versions of autoconf. Sigh.
951 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
953 echo "$ac_t""found" 1>&6
955 ACLOCAL
="$missing_dir/missing aclocal"
956 echo "$ac_t""missing" 1>&6
959 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
960 echo "configure:961: checking for working autoconf" >&5
961 # Run test in a subshell; some versions of sh will print an error if
962 # an executable is not found, even if stderr is redirected.
963 # Redirect stdin to placate older versions of autoconf. Sigh.
964 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
966 echo "$ac_t""found" 1>&6
968 AUTOCONF
="$missing_dir/missing autoconf"
969 echo "$ac_t""missing" 1>&6
972 echo $ac_n "checking for working automake""... $ac_c" 1>&6
973 echo "configure:974: checking for working automake" >&5
974 # Run test in a subshell; some versions of sh will print an error if
975 # an executable is not found, even if stderr is redirected.
976 # Redirect stdin to placate older versions of autoconf. Sigh.
977 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
979 echo "$ac_t""found" 1>&6
981 AUTOMAKE
="$missing_dir/missing automake"
982 echo "$ac_t""missing" 1>&6
985 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
986 echo "configure:987: checking for working autoheader" >&5
987 # Run test in a subshell; some versions of sh will print an error if
988 # an executable is not found, even if stderr is redirected.
989 # Redirect stdin to placate older versions of autoconf. Sigh.
990 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
991 AUTOHEADER
=autoheader
992 echo "$ac_t""found" 1>&6
994 AUTOHEADER
="$missing_dir/missing autoheader"
995 echo "$ac_t""missing" 1>&6
998 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
999 echo "configure:1000: checking for working makeinfo" >&5
1000 # Run test in a subshell; some versions of sh will print an error if
1001 # an executable is not found, even if stderr is redirected.
1002 # Redirect stdin to placate older versions of autoconf. Sigh.
1003 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1005 echo "$ac_t""found" 1>&6
1007 MAKEINFO
="$missing_dir/missing makeinfo"
1008 echo "$ac_t""missing" 1>&6
1013 if test $host != $build; then
1014 ac_tool_prefix
=${host_alias}-
1019 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1020 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1022 echo "configure:1023: checking for $ac_word" >&5
1023 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 if test -n "$AR"; then
1027 ac_cv_prog_AR
="$AR" # Let the user override the test.
1029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1031 for ac_dir
in $ac_dummy; do
1032 test -z "$ac_dir" && ac_dir
=.
1033 if test -f $ac_dir/$ac_word; then
1034 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1039 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1043 if test -n "$AR"; then
1044 echo "$ac_t""$AR" 1>&6
1046 echo "$ac_t""no" 1>&6
1051 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1052 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1054 echo "configure:1055: checking for $ac_word" >&5
1055 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1056 echo $ac_n "(cached) $ac_c" 1>&6
1058 if test -n "$RANLIB"; then
1059 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1063 for ac_dir
in $ac_dummy; do
1064 test -z "$ac_dir" && ac_dir
=.
1065 if test -f $ac_dir/$ac_word; then
1066 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1073 RANLIB
="$ac_cv_prog_RANLIB"
1074 if test -n "$RANLIB"; then
1075 echo "$ac_t""$RANLIB" 1>&6
1077 echo "$ac_t""no" 1>&6
1081 if test -z "$ac_cv_prog_RANLIB"; then
1082 if test -n "$ac_tool_prefix"; then
1083 # Extract the first word of "ranlib", so it can be a program name with args.
1084 set dummy ranlib
; ac_word
=$2
1085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1086 echo "configure:1087: checking for $ac_word" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 if test -n "$RANLIB"; then
1091 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1093 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1095 for ac_dir
in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir
=.
1097 if test -f $ac_dir/$ac_word; then
1098 ac_cv_prog_RANLIB
="ranlib"
1103 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1106 RANLIB
="$ac_cv_prog_RANLIB"
1107 if test -n "$RANLIB"; then
1108 echo "$ac_t""$RANLIB" 1>&6
1110 echo "$ac_t""no" 1>&6
1119 # Check whether --enable-shared or --disable-shared was given.
1120 if test "${enable_shared+set}" = set; then
1121 enableval
="$enable_shared"
1122 p
=${PACKAGE-default}
1124 yes) enable_shared
=yes ;;
1125 no
) enable_shared
=no
;;
1128 # Look at the argument we got. We use all the common list separators.
1129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1130 for pkg
in $enableval; do
1131 if test "X$pkg" = "X$p"; then
1143 # Check whether --enable-static or --disable-static was given.
1144 if test "${enable_static+set}" = set; then
1145 enableval
="$enable_static"
1146 p
=${PACKAGE-default}
1148 yes) enable_static
=yes ;;
1149 no
) enable_static
=no
;;
1152 # Look at the argument we got. We use all the common list separators.
1153 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1154 for pkg
in $enableval; do
1155 if test "X$pkg" = "X$p"; then
1166 # Check whether --enable-fast-install or --disable-fast-install was given.
1167 if test "${enable_fast_install+set}" = set; then
1168 enableval
="$enable_fast_install"
1169 p
=${PACKAGE-default}
1171 yes) enable_fast_install
=yes ;;
1172 no
) enable_fast_install
=no
;;
1174 enable_fast_install
=no
1175 # Look at the argument we got. We use all the common list separators.
1176 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1177 for pkg
in $enableval; do
1178 if test "X$pkg" = "X$p"; then
1179 enable_fast_install
=yes
1186 enable_fast_install
=yes
1189 # Extract the first word of "gcc", so it can be a program name with args.
1190 set dummy gcc
; ac_word
=$2
1191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1192 echo "configure:1193: checking for $ac_word" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 if test -n "$CC"; then
1197 ac_cv_prog_CC
="$CC" # Let the user override the test.
1199 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1201 for ac_dir
in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir
=.
1203 if test -f $ac_dir/$ac_word; then
1212 if test -n "$CC"; then
1213 echo "$ac_t""$CC" 1>&6
1215 echo "$ac_t""no" 1>&6
1218 if test -z "$CC"; then
1219 # Extract the first word of "cc", so it can be a program name with args.
1220 set dummy cc
; 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_CC'+set}'`\" = set"; then
1224 echo $ac_n "(cached) $ac_c" 1>&6
1226 if test -n "$CC"; then
1227 ac_cv_prog_CC
="$CC" # Let the user override the test.
1229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1232 for ac_dir
in $ac_dummy; do
1233 test -z "$ac_dir" && ac_dir
=.
1234 if test -f $ac_dir/$ac_word; then
1235 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1236 ac_prog_rejected
=yes
1244 if test $ac_prog_rejected = yes; then
1245 # We found a bogon in the path, so make sure we never use it.
1246 set dummy
$ac_cv_prog_CC
1248 if test $# -gt 0; then
1249 # We chose a different compiler from the bogus one.
1250 # However, it has the same basename, so the bogon will be chosen
1251 # first if we set CC to just the basename; use the full file name.
1253 set dummy
"$ac_dir/$ac_word" "$@"
1261 if test -n "$CC"; then
1262 echo "$ac_t""$CC" 1>&6
1264 echo "$ac_t""no" 1>&6
1267 if test -z "$CC"; then
1268 case "`uname -s`" in
1270 # Extract the first word of "cl", so it can be a program name with args.
1271 set dummy cl
; ac_word
=$2
1272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1273 echo "configure:1274: checking for $ac_word" >&5
1274 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1275 echo $ac_n "(cached) $ac_c" 1>&6
1277 if test -n "$CC"; then
1278 ac_cv_prog_CC
="$CC" # Let the user override the test.
1280 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1282 for ac_dir
in $ac_dummy; do
1283 test -z "$ac_dir" && ac_dir
=.
1284 if test -f $ac_dir/$ac_word; then
1293 if test -n "$CC"; then
1294 echo "$ac_t""$CC" 1>&6
1296 echo "$ac_t""no" 1>&6
1301 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1304 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1305 echo "configure:1306: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1309 ac_cpp
='$CPP $CPPFLAGS'
1310 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1311 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1312 cross_compiling
=$ac_cv_prog_cc_cross
1314 cat > conftest.
$ac_ext << EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1321 if { (eval echo configure
:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1322 ac_cv_prog_cc_works
=yes
1323 # If we can't run a trivial program, we are probably using a cross compiler.
1324 if (.
/conftest
; exit) 2>/dev
/null
; then
1325 ac_cv_prog_cc_cross
=no
1327 ac_cv_prog_cc_cross
=yes
1330 echo "configure: failed program was:" >&5
1331 cat conftest.
$ac_ext >&5
1332 ac_cv_prog_cc_works
=no
1336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1337 ac_cpp
='$CPP $CPPFLAGS'
1338 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1339 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1340 cross_compiling
=$ac_cv_prog_cc_cross
1342 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1343 if test $ac_cv_prog_cc_works = no
; then
1344 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1346 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1347 echo "configure:1348: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1348 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1349 cross_compiling
=$ac_cv_prog_cc_cross
1351 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1352 echo "configure:1353: checking whether we are using GNU C" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 cat > conftest.c
<<EOF
1361 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1368 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1370 if test $ac_cv_prog_gcc = yes; then
1376 ac_test_CFLAGS
="${CFLAGS+set}"
1377 ac_save_CFLAGS
="$CFLAGS"
1379 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1380 echo "configure:1381: checking whether ${CC-cc} accepts -g" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 echo 'void f(){}' > conftest.c
1385 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1394 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1395 if test "$ac_test_CFLAGS" = set; then
1396 CFLAGS
="$ac_save_CFLAGS"
1397 elif test $ac_cv_prog_cc_g = yes; then
1398 if test "$GCC" = yes; then
1404 if test "$GCC" = yes; then
1411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1412 if test "${with_gnu_ld+set}" = set; then
1413 withval
="$with_gnu_ld"
1414 test "$withval" = no || with_gnu_ld
=yes
1420 if test "$GCC" = yes; then
1421 # Check if gcc -print-prog-name=ld gives a path.
1422 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1423 echo "configure:1424: checking for ld used by GCC" >&5
1426 # gcc leaves a trailing carriage return which upsets mingw
1427 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1429 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1432 # Accept absolute paths.
1433 [\\/]* |
[A-Za-z
]:[\\/]*)
1434 re_direlt
='/[^/][^/]*/\.\./'
1435 # Canonicalize the path of ld
1436 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1437 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1438 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1440 test -z "$LD" && LD
="$ac_prog"
1443 # If it fails, then pretend we aren't using GCC.
1447 # If it is relative, then search for the first ld in PATH.
1451 elif test "$with_gnu_ld" = yes; then
1452 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1453 echo "configure:1454: checking for GNU ld" >&5
1455 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1456 echo "configure:1457: checking for non-GNU ld" >&5
1458 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 if test -z "$LD"; then
1462 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1463 for ac_dir
in $PATH; do
1464 test -z "$ac_dir" && ac_dir
=.
1465 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1466 lt_cv_path_LD
="$ac_dir/$ac_prog"
1467 # Check to see if the program is GNU ld. I'd rather use --version,
1468 # but apparently some GNU ld's only accept -v.
1469 # Break only if it was the GNU/non-GNU ld that we prefer.
1470 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1471 test "$with_gnu_ld" != no
&& break
1473 test "$with_gnu_ld" != yes && break
1479 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1484 if test -n "$LD"; then
1485 echo "$ac_t""$LD" 1>&6
1487 echo "$ac_t""no" 1>&6
1489 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1490 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1491 echo "configure:1492: checking if the linker ($LD) is GNU ld" >&5
1492 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1496 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1497 lt_cv_prog_gnu_ld
=yes
1499 lt_cv_prog_gnu_ld
=no
1503 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1504 with_gnu_ld
=$lt_cv_prog_gnu_ld
1507 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1508 echo "configure:1509: checking for $LD option to reload object files" >&5
1509 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 lt_cv_ld_reload_flag
='-r'
1515 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1516 reload_flag
=$lt_cv_ld_reload_flag
1517 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1519 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1520 echo "configure:1521: checking for BSD-compatible nm" >&5
1521 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1524 if test -n "$NM"; then
1525 # Let the user override the test.
1528 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1529 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1530 test -z "$ac_dir" && ac_dir
=.
1531 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1532 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1533 # Check to see if the nm accepts a BSD-compat flag.
1534 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1535 # nm: unknown option "B" ignored
1536 # Tru64's nm complains that /dev/null is an invalid object file
1537 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1538 lt_cv_path_NM
="$tmp_nm -B"
1540 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1541 lt_cv_path_NM
="$tmp_nm -p"
1544 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1545 continue # so that we can try to find one that supports BSD flags
1550 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1555 echo "$ac_t""$NM" 1>&6
1557 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1558 echo "configure:1559: checking whether ln -s works" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1563 if ln -s X conftestdata
2>/dev
/null
1566 ac_cv_prog_LN_S
="ln -s"
1571 LN_S
="$ac_cv_prog_LN_S"
1572 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1573 echo "$ac_t""yes" 1>&6
1575 echo "$ac_t""no" 1>&6
1578 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1579 echo "configure:1580: checking how to recognise dependant libraries" >&5
1580 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1584 lt_cv_file_magic_test_file
=
1585 lt_cv_deplibs_check_method
='unknown'
1586 # Need to set the preceding variable on all platforms that support
1587 # interlibrary dependencies.
1588 # 'none' -- dependencies not supported.
1589 # `unknown' -- same as none, but documents that we really don't know.
1590 # 'pass_all' -- all dependencies passed with no checks.
1591 # 'test_compile' -- check by making test program.
1592 # 'file_magic [regex]' -- check by looking for files in library path
1593 # which responds to the $file_magic_cmd with a given egrep regex.
1594 # If you have `file' or equivalent on your system and you're not sure
1595 # whether `pass_all' will *always* work, you probably want this one.
1599 lt_cv_deplibs_check_method
=pass_all
1603 lt_cv_deplibs_check_method
=pass_all
1607 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1608 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1609 lt_cv_file_magic_test_file
=/shlib
/libc.so
1612 cygwin
* | mingw
* |pw32
*)
1613 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1614 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1617 darwin
* | rhapsody
*)
1618 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1619 lt_cv_file_magic_cmd
=/usr
/bin
/file
1620 lt_cv_file_magic_test_file
=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1624 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1627 # Not sure whether the presence of OpenBSD here was a mistake.
1628 # Let's accept both of them until this is cleared up.
1629 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1630 lt_cv_file_magic_cmd
=/usr
/bin
/file
1631 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1635 lt_cv_deplibs_check_method
=pass_all
1640 lt_cv_deplibs_check_method
=pass_all
1644 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1645 lt_cv_file_magic_cmd
=/usr
/bin
/file
1646 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1652 # this will be overridden with pass_all, but let us keep it just in case
1653 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1657 *-32|
*"-32 ") libmagic
=32-bit;;
1658 *-n32|
*"-n32 ") libmagic
=N32
;;
1659 *-64|
*"-64 ") libmagic
=64-bit;;
1660 *) libmagic
=never-match
;;
1662 # this will be overridden with pass_all, but let us keep it just in case
1663 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1666 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1667 lt_cv_deplibs_check_method
=pass_all
1670 # This must be Linux ELF.
1673 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1674 lt_cv_deplibs_check_method
=pass_all
;;
1676 # glibc up to 2.1.1 does not perform some relocations on ARM
1677 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1679 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1683 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1684 lt_cv_deplibs_check_method
='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1686 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1688 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1689 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1693 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1694 lt_cv_file_magic_cmd
=/usr
/bin
/file
1695 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1698 osf3
* | osf4
* | osf5
*)
1699 # this will be overridden with pass_all, but let us keep it just in case
1700 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1701 lt_cv_file_magic_test_file
=/shlib
/libc.so
1702 lt_cv_deplibs_check_method
=pass_all
1706 lt_cv_deplibs_check_method
=pass_all
1710 lt_cv_deplibs_check_method
=pass_all
1711 lt_cv_file_magic_test_file
=/lib
/libc.so
1714 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1715 case $host_vendor in
1717 lt_cv_deplibs_check_method
=pass_all
1720 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1721 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1729 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1730 file_magic_cmd
=$lt_cv_file_magic_cmd
1731 deplibs_check_method
=$lt_cv_deplibs_check_method
1733 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1734 echo "configure:1735: checking for object suffix" >&5
1735 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1739 echo 'int i = 1;' > conftest.
$ac_ext
1740 if { (eval echo configure
:1741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1741 for ac_file
in conftest.
*; do
1744 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1748 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1753 echo "$ac_t""$ac_cv_objext" 1>&6
1754 OBJEXT
=$ac_cv_objext
1755 ac_objext
=$ac_cv_objext
1759 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1760 echo "configure:1761: checking for executable suffix" >&5
1761 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1764 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1768 echo 'int main () { return 0; }' > conftest.
$ac_ext
1770 if { (eval echo configure
:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1771 for file in conftest.
*; do
1773 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1774 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1778 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1781 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1786 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1787 echo "$ac_t""${ac_cv_exeext}" 1>&6
1790 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1792 # Only perform the check for file, if the check method requires it
1793 case $deplibs_check_method in
1795 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1796 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1797 echo "configure:1798: checking for ${ac_tool_prefix}file" >&5
1798 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1799 echo $ac_n "(cached) $ac_c" 1>&6
1803 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1806 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1809 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1810 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1811 ac_dummy
="/usr/bin:$PATH"
1812 for ac_dir
in $ac_dummy; do
1813 test -z "$ac_dir" && ac_dir
=.
1814 if test -f $ac_dir/${ac_tool_prefix}file; then
1815 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1816 if test -n "$file_magic_test_file"; then
1817 case $deplibs_check_method in
1819 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1820 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1821 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1822 egrep "$file_magic_regex" > /dev
/null
; then
1827 *** Warning: the command libtool uses to detect shared libraries,
1828 *** $file_magic_cmd, produces output that libtool cannot recognize.
1829 *** The result is that libtool may fail to recognize shared libraries
1830 *** as such. This will affect the creation of libtool libraries that
1831 *** depend on shared libraries, but programs linked with such libtool
1832 *** libraries will work regardless of this problem. Nevertheless, you
1833 *** may want to report the problem to your system manager and/or to
1834 *** bug-libtool@gnu.org
1844 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1849 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1850 if test -n "$MAGIC_CMD"; then
1851 echo "$ac_t""$MAGIC_CMD" 1>&6
1853 echo "$ac_t""no" 1>&6
1856 if test -z "$lt_cv_path_MAGIC_CMD"; then
1857 if test -n "$ac_tool_prefix"; then
1858 echo $ac_n "checking for file""... $ac_c" 1>&6
1859 echo "configure:1860: checking for file" >&5
1860 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1865 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1868 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1871 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1873 ac_dummy
="/usr/bin:$PATH"
1874 for ac_dir
in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir
=.
1876 if test -f $ac_dir/file; then
1877 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1878 if test -n "$file_magic_test_file"; then
1879 case $deplibs_check_method in
1881 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1882 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1883 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1884 egrep "$file_magic_regex" > /dev
/null
; then
1889 *** Warning: the command libtool uses to detect shared libraries,
1890 *** $file_magic_cmd, produces output that libtool cannot recognize.
1891 *** The result is that libtool may fail to recognize shared libraries
1892 *** as such. This will affect the creation of libtool libraries that
1893 *** depend on shared libraries, but programs linked with such libtool
1894 *** libraries will work regardless of this problem. Nevertheless, you
1895 *** may want to report the problem to your system manager and/or to
1896 *** bug-libtool@gnu.org
1906 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1911 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1912 if test -n "$MAGIC_CMD"; then
1913 echo "$ac_t""$MAGIC_CMD" 1>&6
1915 echo "$ac_t""no" 1>&6
1927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1928 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1930 echo "configure:1931: checking for $ac_word" >&5
1931 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 if test -n "$RANLIB"; then
1935 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1937 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1939 for ac_dir
in $ac_dummy; do
1940 test -z "$ac_dir" && ac_dir
=.
1941 if test -f $ac_dir/$ac_word; then
1942 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1949 RANLIB
="$ac_cv_prog_RANLIB"
1950 if test -n "$RANLIB"; then
1951 echo "$ac_t""$RANLIB" 1>&6
1953 echo "$ac_t""no" 1>&6
1957 if test -z "$ac_cv_prog_RANLIB"; then
1958 if test -n "$ac_tool_prefix"; then
1959 # Extract the first word of "ranlib", so it can be a program name with args.
1960 set dummy ranlib
; ac_word
=$2
1961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1962 echo "configure:1963: checking for $ac_word" >&5
1963 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1964 echo $ac_n "(cached) $ac_c" 1>&6
1966 if test -n "$RANLIB"; then
1967 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1969 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1971 for ac_dir
in $ac_dummy; do
1972 test -z "$ac_dir" && ac_dir
=.
1973 if test -f $ac_dir/$ac_word; then
1974 ac_cv_prog_RANLIB
="ranlib"
1979 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1982 RANLIB
="$ac_cv_prog_RANLIB"
1983 if test -n "$RANLIB"; then
1984 echo "$ac_t""$RANLIB" 1>&6
1986 echo "$ac_t""no" 1>&6
1994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1995 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997 echo "configure:1998: checking for $ac_word" >&5
1998 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1999 echo $ac_n "(cached) $ac_c" 1>&6
2001 if test -n "$STRIP"; then
2002 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2004 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2006 for ac_dir
in $ac_dummy; do
2007 test -z "$ac_dir" && ac_dir
=.
2008 if test -f $ac_dir/$ac_word; then
2009 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2016 STRIP
="$ac_cv_prog_STRIP"
2017 if test -n "$STRIP"; then
2018 echo "$ac_t""$STRIP" 1>&6
2020 echo "$ac_t""no" 1>&6
2024 if test -z "$ac_cv_prog_STRIP"; then
2025 if test -n "$ac_tool_prefix"; then
2026 # Extract the first word of "strip", so it can be a program name with args.
2027 set dummy strip
; ac_word
=$2
2028 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2029 echo "configure:2030: checking for $ac_word" >&5
2030 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2031 echo $ac_n "(cached) $ac_c" 1>&6
2033 if test -n "$STRIP"; then
2034 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2036 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2038 for ac_dir
in $ac_dummy; do
2039 test -z "$ac_dir" && ac_dir
=.
2040 if test -f $ac_dir/$ac_word; then
2041 ac_cv_prog_STRIP
="strip"
2046 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2049 STRIP
="$ac_cv_prog_STRIP"
2050 if test -n "$STRIP"; then
2051 echo "$ac_t""$STRIP" 1>&6
2053 echo "$ac_t""no" 1>&6
2062 # Check for any special flags to pass to ltconfig.
2063 libtool_flags
="--cache-file=$cache_file"
2064 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2065 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2066 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2067 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2068 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2071 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2072 if test "${enable_libtool_lock+set}" = set; then
2073 enableval
="$enable_libtool_lock"
2077 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2078 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2080 # Check whether --with-pic or --without-pic was given.
2081 if test "${with_pic+set}" = set; then
2088 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2089 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2091 # Some flags need to be propagated to the compiler or linker for good
2095 # Find out which ABI we are using.
2096 echo '#line 2097 "configure"' > conftest.
$ac_ext
2097 if { (eval echo configure
:2098: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2098 case `/usr/bin/file conftest.$ac_objext` in
2114 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2115 SAVE_CFLAGS
="$CFLAGS"
2116 CFLAGS
="$CFLAGS -belf"
2117 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2118 echo "configure:2119: checking whether the C compiler needs -belf" >&5
2119 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2125 ac_cpp
='$CPP $CPPFLAGS'
2126 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2127 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2128 cross_compiling
=$ac_cv_prog_cc_cross
2130 cat > conftest.
$ac_ext <<EOF
2131 #line 2132 "configure"
2132 #include "confdefs.h"
2138 if { (eval echo configure
:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2140 lt_cv_cc_needs_belf
=yes
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 lt_cv_cc_needs_belf
=no
2149 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2150 ac_cpp
='$CPP $CPPFLAGS'
2151 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2152 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2153 cross_compiling
=$ac_cv_prog_cc_cross
2157 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2158 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2159 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2160 CFLAGS
="$SAVE_CFLAGS"
2168 # Save cache, so that ltconfig can load it
2169 cat > confcache
<<\EOF
2170 # This file is a shell script that caches the results of configure
2171 # tests run on this system so they can be shared between configure
2172 # scripts and configure runs. It is not useful on other systems.
2173 # If it contains results you don't want to keep, you may remove or edit it.
2175 # By default, configure uses ./config.cache as the cache file,
2176 # creating it if it does not exist already. You can give configure
2177 # the --cache-file=FILE option to use a different cache file; that is
2178 # what configure does when it calls configure scripts in
2179 # subdirectories, so they share the cache.
2180 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2181 # config.status only pays attention to the cache file if you give it the
2182 # --recheck option to rerun configure.
2185 # The following way of writing the cache mishandles newlines in values,
2186 # but we know of no workaround that is simple, portable, and efficient.
2187 # So, don't put newlines in cache variables' values.
2188 # Ultrix sh set writes to stderr and can't be redirected directly,
2189 # and sets the high bit in the cache file unless we assign to the vars.
2191 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2193 # `set' does not quote correctly, so add quotes (double-quote substitution
2194 # turns \\\\ into \\, and sed turns \\ into \).
2196 -e "s/'/'\\\\''/g" \
2197 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2200 # `set' quotes correctly as required by POSIX, so do not add quotes.
2201 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2204 if cmp -s $cache_file confcache
; then
2207 if test -w $cache_file; then
2208 echo "updating cache $cache_file"
2209 cat confcache
> $cache_file
2211 echo "not updating unwritable cache $cache_file"
2217 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2218 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2219 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2220 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2221 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2222 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2223 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2224 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2225 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2226 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2228 # Reload cache, that may have been modified by ltconfig
2229 if test -r "$cache_file"; then
2230 echo "loading cache $cache_file"
2233 echo "creating cache $cache_file"
2238 # This can be used to rebuild libtool when needed
2239 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2241 # Always use our own libtool.
2242 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2244 # Redirect the config.log output again, so that the ltconfig log is not
2245 # clobbered by the next message.
2246 exec 5>>.
/config.log
2254 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2255 if test "${enable_64_bit_bfd+set}" = set; then
2256 enableval
="$enable_64_bit_bfd"
2257 case "${enableval}" in
2260 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2265 # Check whether --enable-targets or --disable-targets was given.
2266 if test "${enable_targets+set}" = set; then
2267 enableval
="$enable_targets"
2268 case "${enableval}" in
2269 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2271 no
) enable_targets
= ;;
2272 *) enable_targets
=$enableval ;;
2275 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2276 if test "${enable_commonbfdlib+set}" = set; then
2277 enableval
="$enable_commonbfdlib"
2278 case "${enableval}" in
2279 yes) commonbfdlib
=true
;;
2280 no
) commonbfdlib
=false
;;
2281 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2284 # Check whether --with-mmap or --without-mmap was given.
2285 if test "${with_mmap+set}" = set; then
2286 withval
="$with_mmap"
2287 case "${withval}" in
2288 yes) want_mmap
=true
;;
2289 no
) want_mmap
=false
;;
2290 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2296 build_warnings
="-W -Wall"
2297 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2298 if test "${enable_build_warnings+set}" = set; then
2299 enableval
="$enable_build_warnings"
2300 case "${enableval}" in
2302 no
) build_warnings
="-w";;
2303 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2304 build_warnings
="${build_warnings} ${t}";;
2305 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2306 build_warnings
="${t} ${build_warnings}";;
2307 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2309 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2310 echo "Setting warning flags = $build_warnings" 6>&1
2314 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2315 WARN_CFLAGS
="${build_warnings}"
2323 if test -z "$target" ; then
2324 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2327 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2328 echo "configure:2329: checking whether to enable maintainer-specific portions of Makefiles" >&5
2329 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2330 if test "${enable_maintainer_mode+set}" = set; then
2331 enableval
="$enable_maintainer_mode"
2332 USE_MAINTAINER_MODE
=$enableval
2334 USE_MAINTAINER_MODE
=no
2337 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2340 if test $USE_MAINTAINER_MODE = yes; then
2341 MAINTAINER_MODE_TRUE
=
2342 MAINTAINER_MODE_FALSE
='#'
2344 MAINTAINER_MODE_TRUE
='#'
2345 MAINTAINER_MODE_FALSE
=
2347 MAINT
=$MAINTAINER_MODE_TRUE
2352 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2353 echo "configure:2354: checking for executable suffix" >&5
2354 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2355 echo $ac_n "(cached) $ac_c" 1>&6
2357 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2361 echo 'int main () { return 0; }' > conftest.
$ac_ext
2363 if { (eval echo configure
:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2364 for file in conftest.
*; do
2366 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2367 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2371 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2374 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2379 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2380 echo "$ac_t""${ac_cv_exeext}" 1>&6
2389 # Extract the first word of "gcc", so it can be a program name with args.
2390 set dummy gcc
; ac_word
=$2
2391 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_word" >&5
2393 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC
="$CC" # Let the user override the test.
2399 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2401 for ac_dir
in $ac_dummy; do
2402 test -z "$ac_dir" && ac_dir
=.
2403 if test -f $ac_dir/$ac_word; then
2412 if test -n "$CC"; then
2413 echo "$ac_t""$CC" 1>&6
2415 echo "$ac_t""no" 1>&6
2418 if test -z "$CC"; then
2419 # Extract the first word of "cc", so it can be a program name with args.
2420 set dummy cc
; ac_word
=$2
2421 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2422 echo "configure:2423: checking for $ac_word" >&5
2423 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2424 echo $ac_n "(cached) $ac_c" 1>&6
2426 if test -n "$CC"; then
2427 ac_cv_prog_CC
="$CC" # Let the user override the test.
2429 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2432 for ac_dir
in $ac_dummy; do
2433 test -z "$ac_dir" && ac_dir
=.
2434 if test -f $ac_dir/$ac_word; then
2435 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2436 ac_prog_rejected
=yes
2444 if test $ac_prog_rejected = yes; then
2445 # We found a bogon in the path, so make sure we never use it.
2446 set dummy
$ac_cv_prog_CC
2448 if test $# -gt 0; then
2449 # We chose a different compiler from the bogus one.
2450 # However, it has the same basename, so the bogon will be chosen
2451 # first if we set CC to just the basename; use the full file name.
2453 set dummy
"$ac_dir/$ac_word" "$@"
2461 if test -n "$CC"; then
2462 echo "$ac_t""$CC" 1>&6
2464 echo "$ac_t""no" 1>&6
2467 if test -z "$CC"; then
2468 case "`uname -s`" in
2470 # Extract the first word of "cl", so it can be a program name with args.
2471 set dummy cl
; ac_word
=$2
2472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2473 echo "configure:2474: checking for $ac_word" >&5
2474 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2475 echo $ac_n "(cached) $ac_c" 1>&6
2477 if test -n "$CC"; then
2478 ac_cv_prog_CC
="$CC" # Let the user override the test.
2480 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2482 for ac_dir
in $ac_dummy; do
2483 test -z "$ac_dir" && ac_dir
=.
2484 if test -f $ac_dir/$ac_word; then
2493 if test -n "$CC"; then
2494 echo "$ac_t""$CC" 1>&6
2496 echo "$ac_t""no" 1>&6
2501 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2504 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2505 echo "configure:2506: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2509 ac_cpp
='$CPP $CPPFLAGS'
2510 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2511 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2512 cross_compiling
=$ac_cv_prog_cc_cross
2514 cat > conftest.
$ac_ext << EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2521 if { (eval echo configure
:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2522 ac_cv_prog_cc_works
=yes
2523 # If we can't run a trivial program, we are probably using a cross compiler.
2524 if (.
/conftest
; exit) 2>/dev
/null
; then
2525 ac_cv_prog_cc_cross
=no
2527 ac_cv_prog_cc_cross
=yes
2530 echo "configure: failed program was:" >&5
2531 cat conftest.
$ac_ext >&5
2532 ac_cv_prog_cc_works
=no
2536 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2537 ac_cpp
='$CPP $CPPFLAGS'
2538 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2539 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2540 cross_compiling
=$ac_cv_prog_cc_cross
2542 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2543 if test $ac_cv_prog_cc_works = no
; then
2544 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2546 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2547 echo "configure:2548: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2548 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2549 cross_compiling
=$ac_cv_prog_cc_cross
2551 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2552 echo "configure:2553: checking whether we are using GNU C" >&5
2553 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 cat > conftest.c
<<EOF
2561 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2568 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2570 if test $ac_cv_prog_gcc = yes; then
2576 ac_test_CFLAGS
="${CFLAGS+set}"
2577 ac_save_CFLAGS
="$CFLAGS"
2579 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2580 echo "configure:2581: checking whether ${CC-cc} accepts -g" >&5
2581 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2584 echo 'void f(){}' > conftest.c
2585 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2594 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2595 if test "$ac_test_CFLAGS" = set; then
2596 CFLAGS
="$ac_save_CFLAGS"
2597 elif test $ac_cv_prog_cc_g = yes; then
2598 if test "$GCC" = yes; then
2604 if test "$GCC" = yes; then
2613 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2614 echo "configure:2615: checking how to run the C preprocessor" >&5
2615 # On Suns, sometimes $CPP names a directory.
2616 if test -n "$CPP" && test -d "$CPP"; then
2619 if test -z "$CPP"; then
2620 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 # This must be in double quotes, not single quotes, because CPP may get
2624 # substituted into the Makefile and "${CC-cc}" will confuse make.
2626 # On the NeXT, cc -E runs the code through the compiler's parser,
2627 # not just through cpp.
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2635 { (eval echo configure
:2636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2637 if test -z "$ac_err"; then
2641 echo "configure: failed program was:" >&5
2642 cat conftest.
$ac_ext >&5
2644 CPP
="${CC-cc} -E -traditional-cpp"
2645 cat > conftest.
$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2651 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2652 { (eval echo configure
:2653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2653 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2654 if test -z "$ac_err"; then
2658 echo "configure: failed program was:" >&5
2659 cat conftest.
$ac_ext >&5
2661 CPP
="${CC-cc} -nologo -E"
2662 cat > conftest.
$ac_ext <<EOF
2663 #line 2664 "configure"
2664 #include "confdefs.h"
2668 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2669 { (eval echo configure
:2670: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2670 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2671 if test -z "$ac_err"; then
2675 echo "configure: failed program was:" >&5
2676 cat conftest.
$ac_ext >&5
2685 ac_cv_prog_CPP
="$CPP"
2687 CPP
="$ac_cv_prog_CPP"
2689 ac_cv_prog_CPP
="$CPP"
2691 echo "$ac_t""$CPP" 1>&6
2693 # Extract the first word of "ranlib", so it can be a program name with args.
2694 set dummy ranlib
; ac_word
=$2
2695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2696 echo "configure:2697: checking for $ac_word" >&5
2697 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 if test -n "$RANLIB"; then
2701 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2703 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2705 for ac_dir
in $ac_dummy; do
2706 test -z "$ac_dir" && ac_dir
=.
2707 if test -f $ac_dir/$ac_word; then
2708 ac_cv_prog_RANLIB
="ranlib"
2713 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2716 RANLIB
="$ac_cv_prog_RANLIB"
2717 if test -n "$RANLIB"; then
2718 echo "$ac_t""$RANLIB" 1>&6
2720 echo "$ac_t""no" 1>&6
2723 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2724 echo "configure:2725: checking for ANSI C header files" >&5
2725 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 cat > conftest.
$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2736 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2737 { (eval echo configure
:2738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2738 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2739 if test -z "$ac_err"; then
2741 ac_cv_header_stdc
=yes
2744 echo "configure: failed program was:" >&5
2745 cat conftest.
$ac_ext >&5
2747 ac_cv_header_stdc
=no
2751 if test $ac_cv_header_stdc = yes; then
2752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2753 cat > conftest.
$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 egrep "memchr" >/dev
/null
2>&1; then
2763 ac_cv_header_stdc
=no
2769 if test $ac_cv_header_stdc = yes; then
2770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2771 cat > conftest.
$ac_ext <<EOF
2772 #line 2773 "configure"
2773 #include "confdefs.h"
2776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2777 egrep "free" >/dev
/null
2>&1; then
2781 ac_cv_header_stdc
=no
2787 if test $ac_cv_header_stdc = yes; then
2788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2789 if test "$cross_compiling" = yes; then
2792 cat > conftest.
$ac_ext <<EOF
2793 #line 2794 "configure"
2794 #include "confdefs.h"
2796 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2797 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2798 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2799 int main () { int i; for (i = 0; i < 256; i++)
2800 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2804 if { (eval echo configure
:2805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2808 echo "configure: failed program was:" >&5
2809 cat conftest.
$ac_ext >&5
2811 ac_cv_header_stdc
=no
2819 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2820 if test $ac_cv_header_stdc = yes; then
2821 cat >> confdefs.h
<<\EOF
2822 #define STDC_HEADERS 1
2827 echo $ac_n "checking for working const""... $ac_c" 1>&6
2828 echo "configure:2829: checking for working const" >&5
2829 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2830 echo $ac_n "(cached) $ac_c" 1>&6
2832 cat > conftest.
$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2838 /* Ultrix mips cc rejects this. */
2839 typedef int charset[2]; const charset x;
2840 /* SunOS 4.1.1 cc rejects this. */
2841 char const *const *ccp;
2843 /* NEC SVR4.0.2 mips cc rejects this. */
2844 struct point {int x, y;};
2845 static struct point const zero = {0,0};
2846 /* AIX XL C 1.02.0.0 rejects this.
2847 It does not let you subtract one const X* pointer from another in an arm
2848 of an if-expression whose if-part is not a constant expression */
2849 const char *g = "string";
2850 ccp = &g + (g ? g-g : 0);
2851 /* HPUX 7.0 cc rejects these. */
2854 ccp = (char const *const *) p;
2855 { /* SCO 3.2v4 cc rejects this. */
2857 char const *s = 0 ? (char *) 0 : (char const *) 0;
2861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2863 const int *foo = &x[0];
2866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2867 typedef const int *iptr;
2871 { /* AIX XL C 1.02.0.0 rejects this saying
2872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2873 struct s { int j; const int *ap[3]; };
2874 struct s *b; b->j = 5;
2876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2882 if { (eval echo configure
:2883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2886 echo "configure: failed program was:" >&5
2887 cat conftest.
$ac_ext >&5
2894 echo "$ac_t""$ac_cv_c_const" 1>&6
2895 if test $ac_cv_c_const = no
; then
2896 cat >> confdefs.h
<<\EOF
2902 echo $ac_n "checking for inline""... $ac_c" 1>&6
2903 echo "configure:2904: checking for inline" >&5
2904 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2905 echo $ac_n "(cached) $ac_c" 1>&6
2908 for ac_kw
in inline __inline__ __inline
; do
2909 cat > conftest.
$ac_ext <<EOF
2910 #line 2911 "configure"
2911 #include "confdefs.h"
2917 if { (eval echo configure
:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2919 ac_cv_c_inline
=$ac_kw; break
2921 echo "configure: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2929 echo "$ac_t""$ac_cv_c_inline" 1>&6
2930 case "$ac_cv_c_inline" in
2932 no
) cat >> confdefs.h
<<\EOF
2936 *) cat >> confdefs.h
<<EOF
2937 #define inline $ac_cv_c_inline
2942 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2943 echo "configure:2944: checking for off_t" >&5
2944 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 #include <sys/types.h>
2956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2957 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2959 ac_cv_type_off_t
=yes
2967 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2968 if test $ac_cv_type_off_t = no
; then
2969 cat >> confdefs.h
<<\EOF
2975 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2976 echo "configure:2977: checking for size_t" >&5
2977 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2980 cat > conftest.
$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 #include <sys/types.h>
2989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2990 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2992 ac_cv_type_size_t
=yes
2995 ac_cv_type_size_t
=no
3000 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3001 if test $ac_cv_type_size_t = no
; then
3002 cat >> confdefs.h
<<\EOF
3003 #define size_t unsigned
3008 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3009 # for constant arguments. Useless!
3010 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3011 echo "configure:3012: checking for working alloca.h" >&5
3012 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.
$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3020 char *p = alloca(2 * sizeof(int));
3023 if { (eval echo configure
:3024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3025 ac_cv_header_alloca_h
=yes
3027 echo "configure: failed program was:" >&5
3028 cat conftest.
$ac_ext >&5
3030 ac_cv_header_alloca_h
=no
3035 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3036 if test $ac_cv_header_alloca_h = yes; then
3037 cat >> confdefs.h
<<\EOF
3038 #define HAVE_ALLOCA_H 1
3043 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3044 echo "configure:3045: checking for alloca" >&5
3045 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3046 echo $ac_n "(cached) $ac_c" 1>&6
3048 cat > conftest.
$ac_ext <<EOF
3049 #line 3050 "configure"
3050 #include "confdefs.h"
3053 # define alloca __builtin_alloca
3056 # include <malloc.h>
3057 # define alloca _alloca
3060 # include <alloca.h>
3065 # ifndef alloca /* predefined by HP cc +Olibcalls */
3074 char *p = (char *) alloca(1);
3077 if { (eval echo configure
:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3079 ac_cv_func_alloca_works
=yes
3081 echo "configure: failed program was:" >&5
3082 cat conftest.
$ac_ext >&5
3084 ac_cv_func_alloca_works
=no
3089 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3090 if test $ac_cv_func_alloca_works = yes; then
3091 cat >> confdefs.h
<<\EOF
3092 #define HAVE_ALLOCA 1
3097 if test $ac_cv_func_alloca_works = no
; then
3098 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3099 # that cause trouble. Some versions do not even contain alloca or
3100 # contain a buggy version. If you still want to use their alloca,
3101 # use ar to extract alloca.o from them instead of compiling alloca.c.
3102 ALLOCA
=alloca.
${ac_objext}
3103 cat >> confdefs.h
<<\EOF
3108 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3109 echo "configure:3110: checking whether alloca needs Cray hooks" >&5
3110 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3111 echo $ac_n "(cached) $ac_c" 1>&6
3113 cat > conftest.
$ac_ext <<EOF
3114 #line 3115 "configure"
3115 #include "confdefs.h"
3116 #if defined(CRAY) && ! defined(CRAY2)
3123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3124 egrep "webecray" >/dev
/null
2>&1; then
3135 echo "$ac_t""$ac_cv_os_cray" 1>&6
3136 if test $ac_cv_os_cray = yes; then
3137 for ac_func
in _getb67 GETB67 getb67
; do
3138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3139 echo "configure:3140: checking for $ac_func" >&5
3140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 /* System header to define __stub macros and hopefully few prototypes,
3147 which can conflict with char $ac_func(); below. */
3149 /* Override any gcc2 internal prototype to avoid an error. */
3150 /* We use char because int might match the return type of a gcc2
3151 builtin and then its argument prototype would still apply. */
3156 /* The GNU C library defines this for functions which it implements
3157 to always fail with ENOSYS. Some functions are actually named
3158 something starting with __ and the normal name is an alias. */
3159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3167 if { (eval echo configure
:3168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3169 eval "ac_cv_func_$ac_func=yes"
3171 echo "configure: failed program was:" >&5
3172 cat conftest.
$ac_ext >&5
3174 eval "ac_cv_func_$ac_func=no"
3179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3181 cat >> confdefs.h
<<EOF
3182 #define CRAY_STACKSEG_END $ac_func
3187 echo "$ac_t""no" 1>&6
3193 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3194 echo "configure:3195: checking stack direction for C alloca" >&5
3195 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3196 echo $ac_n "(cached) $ac_c" 1>&6
3198 if test "$cross_compiling" = yes; then
3199 ac_cv_c_stack_direction
=0
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 find_stack_direction ()
3206 static char *addr = 0;
3211 return find_stack_direction ();
3214 return (&dummy > addr) ? 1 : -1;
3218 exit (find_stack_direction() < 0);
3221 if { (eval echo configure
:3222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3223 ac_cv_c_stack_direction
=1
3225 echo "configure: failed program was:" >&5
3226 cat conftest.
$ac_ext >&5
3228 ac_cv_c_stack_direction
=-1
3235 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3236 cat >> confdefs.h
<<EOF
3237 #define STACK_DIRECTION $ac_cv_c_stack_direction
3242 for ac_hdr
in unistd.h
3244 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3246 echo "configure:3247: checking for $ac_hdr" >&5
3247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 cat > conftest.
$ac_ext <<EOF
3251 #line 3252 "configure"
3252 #include "confdefs.h"
3255 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3256 { (eval echo configure
:3257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3257 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3258 if test -z "$ac_err"; then
3260 eval "ac_cv_header_$ac_safe=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.
$ac_ext >&5
3266 eval "ac_cv_header_$ac_safe=no"
3270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3271 echo "$ac_t""yes" 1>&6
3272 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3273 cat >> confdefs.h
<<EOF
3274 #define $ac_tr_hdr 1
3278 echo "$ac_t""no" 1>&6
3282 for ac_func
in getpagesize
3284 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3285 echo "configure:3286: checking for $ac_func" >&5
3286 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 cat > conftest.
$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 /* System header to define __stub macros and hopefully few prototypes,
3293 which can conflict with char $ac_func(); below. */
3295 /* Override any gcc2 internal prototype to avoid an error. */
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3302 /* The GNU C library defines this for functions which it implements
3303 to always fail with ENOSYS. Some functions are actually named
3304 something starting with __ and the normal name is an alias. */
3305 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3313 if { (eval echo configure
:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3315 eval "ac_cv_func_$ac_func=yes"
3317 echo "configure: failed program was:" >&5
3318 cat conftest.
$ac_ext >&5
3320 eval "ac_cv_func_$ac_func=no"
3325 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3327 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3328 cat >> confdefs.h
<<EOF
3329 #define $ac_tr_func 1
3333 echo "$ac_t""no" 1>&6
3337 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3338 echo "configure:3339: checking for working mmap" >&5
3339 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3340 echo $ac_n "(cached) $ac_c" 1>&6
3342 if test "$cross_compiling" = yes; then
3343 ac_cv_func_mmap_fixed_mapped
=no
3345 cat > conftest.
$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3349 /* Thanks to Mike Haertel and Jim Avera for this test.
3350 Here is a matrix of mmap possibilities:
3351 mmap private not fixed
3352 mmap private fixed at somewhere currently unmapped
3353 mmap private fixed at somewhere already mapped
3354 mmap shared not fixed
3355 mmap shared fixed at somewhere currently unmapped
3356 mmap shared fixed at somewhere already mapped
3357 For private mappings, we should verify that changes cannot be read()
3358 back from the file, nor mmap's back from the file at a different
3359 address. (There have been systems where private was not correctly
3360 implemented like the infamous i386 svr4.0, and systems where the
3361 VM page cache was not coherent with the filesystem buffer cache
3362 like early versions of FreeBSD and possibly contemporary NetBSD.)
3363 For shared mappings, we should conversely verify that changes get
3364 propogated back to all the places they're supposed to be.
3366 Grep wants private fixed already mapped.
3367 The main things grep needs to know about mmap are:
3368 * does it exist and is it safe to write into the mmap'd area
3369 * how to use it (BSD variants) */
3370 #include <sys/types.h>
3372 #include <sys/mman.h>
3374 /* This mess was copied from the GNU getpagesize.h. */
3375 #ifndef HAVE_GETPAGESIZE
3376 # ifdef HAVE_UNISTD_H
3377 # include <unistd.h>
3380 /* Assume that all systems that can run configure have sys/param.h. */
3381 # ifndef HAVE_SYS_PARAM_H
3382 # define HAVE_SYS_PARAM_H 1
3385 # ifdef _SC_PAGESIZE
3386 # define getpagesize() sysconf(_SC_PAGESIZE)
3387 # else /* no _SC_PAGESIZE */
3388 # ifdef HAVE_SYS_PARAM_H
3389 # include <sys/param.h>
3390 # ifdef EXEC_PAGESIZE
3391 # define getpagesize() EXEC_PAGESIZE
3392 # else /* no EXEC_PAGESIZE */
3394 # define getpagesize() NBPG * CLSIZE
3397 # endif /* no CLSIZE */
3398 # else /* no NBPG */
3400 # define getpagesize() NBPC
3401 # else /* no NBPC */
3403 # define getpagesize() PAGESIZE
3404 # endif /* PAGESIZE */
3405 # endif /* no NBPC */
3406 # endif /* no NBPG */
3407 # endif /* no EXEC_PAGESIZE */
3408 # else /* no HAVE_SYS_PARAM_H */
3409 # define getpagesize() 8192 /* punt totally */
3410 # endif /* no HAVE_SYS_PARAM_H */
3411 # endif /* no _SC_PAGESIZE */
3413 #endif /* no HAVE_GETPAGESIZE */
3416 extern "C" { void *malloc(unsigned); }
3424 char *data, *data2, *data3;
3428 pagesize = getpagesize();
3431 * First, make a file with some known garbage in it.
3433 data = malloc(pagesize);
3436 for (i = 0; i < pagesize; ++i)
3437 *(data + i) = rand();
3439 fd = creat("conftestmmap", 0600);
3442 if (write(fd, data, pagesize) != pagesize)
3447 * Next, try to mmap the file at a fixed address which
3448 * already has something else allocated at it. If we can,
3449 * also make sure that we see the same garbage.
3451 fd = open("conftestmmap", O_RDWR);
3454 data2 = malloc(2 * pagesize);
3457 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3458 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3459 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3461 for (i = 0; i < pagesize; ++i)
3462 if (*(data + i) != *(data2 + i))
3466 * Finally, make sure that changes to the mapped area
3467 * do not percolate back to the file as seen by read().
3468 * (This is a bug on some variants of i386 svr4.0.)
3470 for (i = 0; i < pagesize; ++i)
3471 *(data2 + i) = *(data2 + i) + 1;
3472 data3 = malloc(pagesize);
3475 if (read(fd, data3, pagesize) != pagesize)
3477 for (i = 0; i < pagesize; ++i)
3478 if (*(data + i) != *(data3 + i))
3481 unlink("conftestmmap");
3486 if { (eval echo configure
:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3488 ac_cv_func_mmap_fixed_mapped
=yes
3490 echo "configure: failed program was:" >&5
3491 cat conftest.
$ac_ext >&5
3493 ac_cv_func_mmap_fixed_mapped
=no
3500 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3501 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3502 cat >> confdefs.h
<<\EOF
3509 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3510 unistd.h values.h sys
/param.h
3512 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3514 echo "configure:3515: checking for $ac_hdr" >&5
3515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3523 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3524 { (eval echo configure
:3525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3525 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3526 if test -z "$ac_err"; then
3528 eval "ac_cv_header_$ac_safe=yes"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.
$ac_ext >&5
3534 eval "ac_cv_header_$ac_safe=no"
3538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3541 cat >> confdefs.h
<<EOF
3542 #define $ac_tr_hdr 1
3546 echo "$ac_t""no" 1>&6
3550 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3551 __argz_count __argz_stringify __argz_next
3553 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3554 echo "configure:3555: checking for $ac_func" >&5
3555 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3558 cat > conftest.
$ac_ext <<EOF
3559 #line 3560 "configure"
3560 #include "confdefs.h"
3561 /* System header to define __stub macros and hopefully few prototypes,
3562 which can conflict with char $ac_func(); below. */
3564 /* Override any gcc2 internal prototype to avoid an error. */
3565 /* We use char because int might match the return type of a gcc2
3566 builtin and then its argument prototype would still apply. */
3571 /* The GNU C library defines this for functions which it implements
3572 to always fail with ENOSYS. Some functions are actually named
3573 something starting with __ and the normal name is an alias. */
3574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3582 if { (eval echo configure
:3583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3584 eval "ac_cv_func_$ac_func=yes"
3586 echo "configure: failed program was:" >&5
3587 cat conftest.
$ac_ext >&5
3589 eval "ac_cv_func_$ac_func=no"
3594 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3595 echo "$ac_t""yes" 1>&6
3596 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3597 cat >> confdefs.h
<<EOF
3598 #define $ac_tr_func 1
3602 echo "$ac_t""no" 1>&6
3607 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3608 for ac_func
in stpcpy
3610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_func" >&5
3612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char $ac_func(); below. */
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3628 /* The GNU C library defines this for functions which it implements
3629 to always fail with ENOSYS. Some functions are actually named
3630 something starting with __ and the normal name is an alias. */
3631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3639 if { (eval echo configure
:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3641 eval "ac_cv_func_$ac_func=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.
$ac_ext >&5
3646 eval "ac_cv_func_$ac_func=no"
3651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3653 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3654 cat >> confdefs.h
<<EOF
3655 #define $ac_tr_func 1
3659 echo "$ac_t""no" 1>&6
3664 if test "${ac_cv_func_stpcpy}" = "yes"; then
3665 cat >> confdefs.h
<<\EOF
3666 #define HAVE_STPCPY 1
3671 if test $ac_cv_header_locale_h = yes; then
3672 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3673 echo "configure:3674: checking for LC_MESSAGES" >&5
3674 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
3677 cat > conftest.
$ac_ext <<EOF
3678 #line 3679 "configure"
3679 #include "confdefs.h"
3685 if { (eval echo configure
:3686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3687 am_cv_val_LC_MESSAGES
=yes
3689 echo "configure: failed program was:" >&5
3690 cat conftest.
$ac_ext >&5
3692 am_cv_val_LC_MESSAGES
=no
3697 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3698 if test $am_cv_val_LC_MESSAGES = yes; then
3699 cat >> confdefs.h
<<\EOF
3700 #define HAVE_LC_MESSAGES 1
3705 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3706 echo "configure:3707: checking whether NLS is requested" >&5
3707 # Check whether --enable-nls or --disable-nls was given.
3708 if test "${enable_nls+set}" = set; then
3709 enableval
="$enable_nls"
3715 echo "$ac_t""$USE_NLS" 1>&6
3718 USE_INCLUDED_LIBINTL
=no
3720 if test "$USE_NLS" = "yes"; then
3721 cat >> confdefs.h
<<\EOF
3722 #define ENABLE_NLS 1
3725 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3726 echo "configure:3727: checking whether included gettext is requested" >&5
3727 # Check whether --with-included-gettext or --without-included-gettext was given.
3728 if test "${with_included_gettext+set}" = set; then
3729 withval
="$with_included_gettext"
3730 nls_cv_force_use_gnu_gettext
=$withval
3732 nls_cv_force_use_gnu_gettext
=no
3735 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3737 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3738 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3740 nls_cv_header_libgt
=
3743 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3744 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3745 echo "configure:3746: checking for libintl.h" >&5
3746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3747 echo $ac_n "(cached) $ac_c" 1>&6
3749 cat > conftest.
$ac_ext <<EOF
3750 #line 3751 "configure"
3751 #include "confdefs.h"
3752 #include <libintl.h>
3754 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3755 { (eval echo configure
:3756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3756 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3757 if test -z "$ac_err"; then
3759 eval "ac_cv_header_$ac_safe=yes"
3762 echo "configure: failed program was:" >&5
3763 cat conftest.
$ac_ext >&5
3765 eval "ac_cv_header_$ac_safe=no"
3769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3770 echo "$ac_t""yes" 1>&6
3771 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3772 echo "configure:3773: checking for gettext in libc" >&5
3773 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3776 cat > conftest.
$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3779 #include <libintl.h>
3781 return (int) gettext ("")
3784 if { (eval echo configure
:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3786 gt_cv_func_gettext_libc
=yes
3788 echo "configure: failed program was:" >&5
3789 cat conftest.
$ac_ext >&5
3791 gt_cv_func_gettext_libc
=no
3796 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3798 if test "$gt_cv_func_gettext_libc" != "yes"; then
3799 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3800 echo "configure:3801: checking for bindtextdomain in -lintl" >&5
3801 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3803 echo $ac_n "(cached) $ac_c" 1>&6
3805 ac_save_LIBS
="$LIBS"
3807 cat > conftest.
$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 /* Override any gcc2 internal prototype to avoid an error. */
3811 /* We use char because int might match the return type of a gcc2
3812 builtin and then its argument prototype would still apply. */
3813 char bindtextdomain();
3819 if { (eval echo configure
:3820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3821 eval "ac_cv_lib_$ac_lib_var=yes"
3823 echo "configure: failed program was:" >&5
3824 cat conftest.
$ac_ext >&5
3826 eval "ac_cv_lib_$ac_lib_var=no"
3829 LIBS
="$ac_save_LIBS"
3832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3833 echo "$ac_t""yes" 1>&6
3834 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3835 echo "configure:3836: checking for gettext in libintl" >&5
3836 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 cat > conftest.
$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3844 return (int) gettext ("")
3847 if { (eval echo configure
:3848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3849 gt_cv_func_gettext_libintl
=yes
3851 echo "configure: failed program was:" >&5
3852 cat conftest.
$ac_ext >&5
3854 gt_cv_func_gettext_libintl
=no
3859 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3861 echo "$ac_t""no" 1>&6
3866 if test "$gt_cv_func_gettext_libc" = "yes" \
3867 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3868 cat >> confdefs.h
<<\EOF
3869 #define HAVE_GETTEXT 1
3872 # Extract the first word of "msgfmt", so it can be a program name with args.
3873 set dummy msgfmt
; ac_word
=$2
3874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3875 echo "configure:3876: checking for $ac_word" >&5
3876 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3881 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3884 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3885 for ac_dir
in $PATH; do
3886 test -z "$ac_dir" && ac_dir
=.
3887 if test -f $ac_dir/$ac_word; then
3888 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3889 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3895 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3899 MSGFMT
="$ac_cv_path_MSGFMT"
3900 if test -n "$MSGFMT"; then
3901 echo "$ac_t""$MSGFMT" 1>&6
3903 echo "$ac_t""no" 1>&6
3905 if test "$MSGFMT" != "no"; then
3906 for ac_func
in dcgettext
3908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3909 echo "configure:3910: checking for $ac_func" >&5
3910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 cat > conftest.
$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* System header to define __stub macros and hopefully few prototypes,
3917 which can conflict with char $ac_func(); below. */
3919 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3926 /* The GNU C library defines this for functions which it implements
3927 to always fail with ENOSYS. Some functions are actually named
3928 something starting with __ and the normal name is an alias. */
3929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3937 if { (eval echo configure
:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3939 eval "ac_cv_func_$ac_func=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.
$ac_ext >&5
3944 eval "ac_cv_func_$ac_func=no"
3949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3952 cat >> confdefs.h
<<EOF
3953 #define $ac_tr_func 1
3957 echo "$ac_t""no" 1>&6
3961 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3962 set dummy gmsgfmt
; ac_word
=$2
3963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3964 echo "configure:3965: checking for $ac_word" >&5
3965 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3970 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3973 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3976 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3978 for ac_dir
in $ac_dummy; do
3979 test -z "$ac_dir" && ac_dir
=.
3980 if test -f $ac_dir/$ac_word; then
3981 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3986 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3990 GMSGFMT
="$ac_cv_path_GMSGFMT"
3991 if test -n "$GMSGFMT"; then
3992 echo "$ac_t""$GMSGFMT" 1>&6
3994 echo "$ac_t""no" 1>&6
3997 # Extract the first word of "xgettext", so it can be a program name with args.
3998 set dummy xgettext
; ac_word
=$2
3999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4000 echo "configure:4001: checking for $ac_word" >&5
4001 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4006 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4010 for ac_dir
in $PATH; do
4011 test -z "$ac_dir" && ac_dir
=.
4012 if test -f $ac_dir/$ac_word; then
4013 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4014 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4020 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4024 XGETTEXT
="$ac_cv_path_XGETTEXT"
4025 if test -n "$XGETTEXT"; then
4026 echo "$ac_t""$XGETTEXT" 1>&6
4028 echo "$ac_t""no" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4036 extern int _nl_msg_cat_cntr;
4037 return _nl_msg_cat_cntr
4040 if { (eval echo configure
:4041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4045 echo "configure: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4057 echo "$ac_t""no" 1>&6
4062 if test "$CATOBJEXT" = "NONE"; then
4063 nls_cv_use_gnu_gettext
=yes
4067 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4068 INTLOBJS
="\$(GETTOBJS)"
4069 # Extract the first word of "msgfmt", so it can be a program name with args.
4070 set dummy msgfmt
; ac_word
=$2
4071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_word" >&5
4073 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4078 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4082 for ac_dir
in $PATH; do
4083 test -z "$ac_dir" && ac_dir
=.
4084 if test -f $ac_dir/$ac_word; then
4085 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4086 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4092 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4096 MSGFMT
="$ac_cv_path_MSGFMT"
4097 if test -n "$MSGFMT"; then
4098 echo "$ac_t""$MSGFMT" 1>&6
4100 echo "$ac_t""no" 1>&6
4103 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4104 set dummy gmsgfmt
; ac_word
=$2
4105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4106 echo "configure:4107: checking for $ac_word" >&5
4107 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4112 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4115 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4120 for ac_dir
in $ac_dummy; do
4121 test -z "$ac_dir" && ac_dir
=.
4122 if test -f $ac_dir/$ac_word; then
4123 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4128 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4132 GMSGFMT
="$ac_cv_path_GMSGFMT"
4133 if test -n "$GMSGFMT"; then
4134 echo "$ac_t""$GMSGFMT" 1>&6
4136 echo "$ac_t""no" 1>&6
4139 # Extract the first word of "xgettext", so it can be a program name with args.
4140 set dummy xgettext
; ac_word
=$2
4141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4142 echo "configure:4143: checking for $ac_word" >&5
4143 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4144 echo $ac_n "(cached) $ac_c" 1>&6
4148 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4151 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4152 for ac_dir
in $PATH; do
4153 test -z "$ac_dir" && ac_dir
=.
4154 if test -f $ac_dir/$ac_word; then
4155 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4156 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4162 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4166 XGETTEXT
="$ac_cv_path_XGETTEXT"
4167 if test -n "$XGETTEXT"; then
4168 echo "$ac_t""$XGETTEXT" 1>&6
4170 echo "$ac_t""no" 1>&6
4174 USE_INCLUDED_LIBINTL
=yes
4178 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4180 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4181 nls_cv_header_intl
=libintl.h
4182 nls_cv_header_libgt
=libgettext.h
4185 if test "$XGETTEXT" != ":"; then
4186 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4189 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4194 # We need to process the po/ directory.
4198 nls_cv_header_intl
=libintl.h
4199 nls_cv_header_libgt
=libgettext.h
4202 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4203 # because some of the sources are only built for this goal.
4204 if test "$PACKAGE" = gettext; then
4206 USE_INCLUDED_LIBINTL
=yes
4209 for lang
in $ALL_LINGUAS; do
4210 GMOFILES
="$GMOFILES $lang.gmo"
4211 POFILES
="$POFILES $lang.po"
4227 if test "x$CATOBJEXT" != "x"; then
4228 if test "x$ALL_LINGUAS" = "x"; then
4231 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4232 echo "configure:4233: checking for catalogs to be installed" >&5
4234 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4235 case "$ALL_LINGUAS" in
4236 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4239 LINGUAS
=$NEW_LINGUAS
4240 echo "$ac_t""$LINGUAS" 1>&6
4243 if test -n "$LINGUAS"; then
4244 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4248 if test $ac_cv_header_locale_h = yes; then
4249 INCLUDE_LOCALE_H
="#include <locale.h>"
4252 /* The system does not provide the header <locale.h>. Take care yourself. */"
4256 if test -f $srcdir/po2tbl.
sed.
in; then
4257 if test "$CATOBJEXT" = ".cat"; then
4258 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4259 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4260 echo "configure:4261: checking for linux/version.h" >&5
4261 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4262 echo $ac_n "(cached) $ac_c" 1>&6
4264 cat > conftest.
$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 #include <linux/version.h>
4269 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4270 { (eval echo configure
:4271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4271 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4272 if test -z "$ac_err"; then
4274 eval "ac_cv_header_$ac_safe=yes"
4277 echo "configure: failed program was:" >&5
4278 cat conftest.
$ac_ext >&5
4280 eval "ac_cv_header_$ac_safe=no"
4284 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4288 echo "$ac_t""no" 1>&6
4293 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4295 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4296 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4299 if test "$PACKAGE" = "gettext"; then
4309 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4315 if test -d $srcdir/po
; then
4316 test -d po || mkdir po
4317 if test "x$srcdir" != "x."; then
4318 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4319 posrcprefix
="$srcdir/"
4321 posrcprefix
="../$srcdir/"
4327 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4328 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4332 # Permit host specific settings.
4333 .
${srcdir}/configure.
host
4336 # Find a good install program. We prefer a C program (faster),
4337 # so one script is as good as another. But avoid the broken or
4338 # incompatible versions:
4339 # SysV /etc/install, /usr/sbin/install
4340 # SunOS /usr/etc/install
4341 # IRIX /sbin/install
4343 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4344 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4345 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4346 # ./install, which can be erroneously created by make from ./install.sh.
4347 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4348 echo "configure:4349: checking for a BSD compatible install" >&5
4349 if test -z "$INSTALL"; then
4350 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4351 echo $ac_n "(cached) $ac_c" 1>&6
4353 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4354 for ac_dir
in $PATH; do
4355 # Account for people who put trailing slashes in PATH elements.
4357 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4359 # OSF1 and SCO ODT 3.0 have their own names for install.
4360 # Don't use installbsd from OSF since it installs stuff as root
4362 for ac_prog
in ginstall scoinst
install; do
4363 if test -f $ac_dir/$ac_prog; then
4364 if test $ac_prog = install &&
4365 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4366 # AIX install. It has an incompatible calling convention.
4369 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4380 if test "${ac_cv_path_install+set}" = set; then
4381 INSTALL
="$ac_cv_path_install"
4383 # As a last resort, use the slow shell script. We don't cache a
4384 # path for INSTALL within a source directory, because that will
4385 # break other packages using the cache if that directory is
4386 # removed, or if the path is relative.
4387 INSTALL
="$ac_install_sh"
4390 echo "$ac_t""$INSTALL" 1>&6
4392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4393 # It thinks the first close brace ends the variable substitution.
4394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4398 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4401 BFD_HOST_64BIT_LONG
=0
4402 BFD_HOST_64_BIT_DEFINED
=0
4405 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4406 BFD_HOST_64BIT_LONG
=1
4407 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4408 BFD_HOST_64_BIT_DEFINED
=1
4409 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4410 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4417 # Put a plausible default for CC_FOR_BUILD in Makefile.
4418 if test -z "$CC_FOR_BUILD"; then
4419 if test "x$cross_compiling" = "xno"; then
4420 CC_FOR_BUILD
='$(CC)'
4426 # Also set EXEEXT_FOR_BUILD.
4427 if test "x$cross_compiling" = "xno"; then
4428 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4430 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4431 echo "configure:4432: checking for build system executable suffix" >&5
4432 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4436 echo 'int main () { return 0; }' > conftest.c
4437 bfd_cv_build_exeext
=
4438 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4439 for file in conftest.
*; do
4441 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4442 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4446 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4449 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4451 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4455 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4457 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_hdr" >&5
4460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 cat > conftest.
$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4468 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4469 { (eval echo configure
:4470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4470 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4471 if test -z "$ac_err"; then
4473 eval "ac_cv_header_$ac_safe=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.
$ac_ext >&5
4479 eval "ac_cv_header_$ac_safe=no"
4483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4484 echo "$ac_t""yes" 1>&6
4485 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4486 cat >> confdefs.h
<<EOF
4487 #define $ac_tr_hdr 1
4491 echo "$ac_t""no" 1>&6
4495 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4497 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4499 echo "configure:4500: checking for $ac_hdr" >&5
4500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4501 echo $ac_n "(cached) $ac_c" 1>&6
4503 cat > conftest.
$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4508 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4509 { (eval echo configure
:4510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4510 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4511 if test -z "$ac_err"; then
4513 eval "ac_cv_header_$ac_safe=yes"
4516 echo "configure: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4519 eval "ac_cv_header_$ac_safe=no"
4523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4524 echo "$ac_t""yes" 1>&6
4525 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4526 cat >> confdefs.h
<<EOF
4527 #define $ac_tr_hdr 1
4531 echo "$ac_t""no" 1>&6
4535 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4536 echo "configure:4537: checking whether time.h and sys/time.h may both be included" >&5
4537 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 cat > conftest.
$ac_ext <<EOF
4541 #line 4542 "configure"
4542 #include "confdefs.h"
4543 #include <sys/types.h>
4544 #include <sys/time.h>
4550 if { (eval echo configure
:4551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4552 ac_cv_header_time
=yes
4554 echo "configure: failed program was:" >&5
4555 cat conftest.
$ac_ext >&5
4557 ac_cv_header_time
=no
4562 echo "$ac_t""$ac_cv_header_time" 1>&6
4563 if test $ac_cv_header_time = yes; then
4564 cat >> confdefs.h
<<\EOF
4565 #define TIME_WITH_SYS_TIME 1
4571 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4573 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4574 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4575 echo "configure:4576: checking for $ac_hdr that defines DIR" >&5
4576 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4577 echo $ac_n "(cached) $ac_c" 1>&6
4579 cat > conftest.
$ac_ext <<EOF
4580 #line 4581 "configure"
4581 #include "confdefs.h"
4582 #include <sys/types.h>
4588 if { (eval echo configure
:4589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4590 eval "ac_cv_header_dirent_$ac_safe=yes"
4592 echo "configure: failed program was:" >&5
4593 cat conftest.
$ac_ext >&5
4595 eval "ac_cv_header_dirent_$ac_safe=no"
4599 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4600 echo "$ac_t""yes" 1>&6
4601 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4602 cat >> confdefs.h
<<EOF
4603 #define $ac_tr_hdr 1
4605 ac_header_dirent
=$ac_hdr; break
4607 echo "$ac_t""no" 1>&6
4610 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4611 if test $ac_header_dirent = dirent.h
; then
4612 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4613 echo "configure:4614: checking for opendir in -ldir" >&5
4614 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 ac_save_LIBS
="$LIBS"
4620 cat > conftest.
$ac_ext <<EOF
4621 #line 4622 "configure"
4622 #include "confdefs.h"
4623 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4632 if { (eval echo configure
:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4634 eval "ac_cv_lib_$ac_lib_var=yes"
4636 echo "configure: failed program was:" >&5
4637 cat conftest.
$ac_ext >&5
4639 eval "ac_cv_lib_$ac_lib_var=no"
4642 LIBS
="$ac_save_LIBS"
4645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4646 echo "$ac_t""yes" 1>&6
4649 echo "$ac_t""no" 1>&6
4653 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4654 echo "configure:4655: checking for opendir in -lx" >&5
4655 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 ac_save_LIBS
="$LIBS"
4661 cat > conftest.
$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4673 if { (eval echo configure
:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4675 eval "ac_cv_lib_$ac_lib_var=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.
$ac_ext >&5
4680 eval "ac_cv_lib_$ac_lib_var=no"
4683 LIBS
="$ac_save_LIBS"
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4690 echo "$ac_t""no" 1>&6
4695 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4697 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4698 echo "configure:4699: checking for $ac_func" >&5
4699 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4700 echo $ac_n "(cached) $ac_c" 1>&6
4702 cat > conftest.
$ac_ext <<EOF
4703 #line 4704 "configure"
4704 #include "confdefs.h"
4705 /* System header to define __stub macros and hopefully few prototypes,
4706 which can conflict with char $ac_func(); below. */
4708 /* Override any gcc2 internal prototype to avoid an error. */
4709 /* We use char because int might match the return type of a gcc2
4710 builtin and then its argument prototype would still apply. */
4715 /* The GNU C library defines this for functions which it implements
4716 to always fail with ENOSYS. Some functions are actually named
4717 something starting with __ and the normal name is an alias. */
4718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4726 if { (eval echo configure
:4727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4728 eval "ac_cv_func_$ac_func=yes"
4730 echo "configure: failed program was:" >&5
4731 cat conftest.
$ac_ext >&5
4733 eval "ac_cv_func_$ac_func=no"
4738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4739 echo "$ac_t""yes" 1>&6
4740 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4741 cat >> confdefs.h
<<EOF
4742 #define $ac_tr_func 1
4746 echo "$ac_t""no" 1>&6
4753 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4754 cat >> confdefs.h
<<\EOF
4755 #define USE_BINARY_FOPEN 1
4760 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4761 echo "configure:4762: checking whether strstr must be declared" >&5
4762 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4763 echo $ac_n "(cached) $ac_c" 1>&6
4765 cat > conftest.
$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4770 #ifdef HAVE_STRING_H
4773 #ifdef HAVE_STRINGS_H
4774 #include <strings.h>
4777 #ifdef HAVE_STDLIB_H
4780 #ifdef HAVE_UNISTD_H
4784 char *(*pfn) = (char *(*)) strstr
4787 if { (eval echo configure
:4788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4789 bfd_cv_decl_needed_strstr
=no
4791 echo "configure: failed program was:" >&5
4792 cat conftest.
$ac_ext >&5
4794 bfd_cv_decl_needed_strstr
=yes
4799 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4800 if test $bfd_cv_decl_needed_strstr = yes; then
4801 cat >> confdefs.h
<<\EOF
4802 #define NEED_DECLARATION_STRSTR 1
4807 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4808 echo "configure:4809: checking whether malloc must be declared" >&5
4809 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 cat > conftest.
$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4817 #ifdef HAVE_STRING_H
4820 #ifdef HAVE_STRINGS_H
4821 #include <strings.h>
4824 #ifdef HAVE_STDLIB_H
4827 #ifdef HAVE_UNISTD_H
4831 char *(*pfn) = (char *(*)) malloc
4834 if { (eval echo configure
:4835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4836 bfd_cv_decl_needed_malloc
=no
4838 echo "configure: failed program was:" >&5
4839 cat conftest.
$ac_ext >&5
4841 bfd_cv_decl_needed_malloc
=yes
4846 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4847 if test $bfd_cv_decl_needed_malloc = yes; then
4848 cat >> confdefs.h
<<\EOF
4849 #define NEED_DECLARATION_MALLOC 1
4854 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4855 echo "configure:4856: checking whether realloc must be declared" >&5
4856 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 cat > conftest.
$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4864 #ifdef HAVE_STRING_H
4867 #ifdef HAVE_STRINGS_H
4868 #include <strings.h>
4871 #ifdef HAVE_STDLIB_H
4874 #ifdef HAVE_UNISTD_H
4878 char *(*pfn) = (char *(*)) realloc
4881 if { (eval echo configure
:4882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4883 bfd_cv_decl_needed_realloc
=no
4885 echo "configure: failed program was:" >&5
4886 cat conftest.
$ac_ext >&5
4888 bfd_cv_decl_needed_realloc
=yes
4893 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4894 if test $bfd_cv_decl_needed_realloc = yes; then
4895 cat >> confdefs.h
<<\EOF
4896 #define NEED_DECLARATION_REALLOC 1
4901 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4902 echo "configure:4903: checking whether free must be declared" >&5
4903 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4906 cat > conftest.
$ac_ext <<EOF
4907 #line 4908 "configure"
4908 #include "confdefs.h"
4911 #ifdef HAVE_STRING_H
4914 #ifdef HAVE_STRINGS_H
4915 #include <strings.h>
4918 #ifdef HAVE_STDLIB_H
4921 #ifdef HAVE_UNISTD_H
4925 char *(*pfn) = (char *(*)) free
4928 if { (eval echo configure
:4929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4930 bfd_cv_decl_needed_free
=no
4932 echo "configure: failed program was:" >&5
4933 cat conftest.
$ac_ext >&5
4935 bfd_cv_decl_needed_free
=yes
4940 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4941 if test $bfd_cv_decl_needed_free = yes; then
4942 cat >> confdefs.h
<<\EOF
4943 #define NEED_DECLARATION_FREE 1
4948 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4949 echo "configure:4950: checking whether getenv must be declared" >&5
4950 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4951 echo $ac_n "(cached) $ac_c" 1>&6
4953 cat > conftest.
$ac_ext <<EOF
4954 #line 4955 "configure"
4955 #include "confdefs.h"
4958 #ifdef HAVE_STRING_H
4961 #ifdef HAVE_STRINGS_H
4962 #include <strings.h>
4965 #ifdef HAVE_STDLIB_H
4968 #ifdef HAVE_UNISTD_H
4972 char *(*pfn) = (char *(*)) getenv
4975 if { (eval echo configure
:4976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4977 bfd_cv_decl_needed_getenv
=no
4979 echo "configure: failed program was:" >&5
4980 cat conftest.
$ac_ext >&5
4982 bfd_cv_decl_needed_getenv
=yes
4987 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4988 if test $bfd_cv_decl_needed_getenv = yes; then
4989 cat >> confdefs.h
<<\EOF
4990 #define NEED_DECLARATION_GETENV 1
4996 # If we are configured native, pick a core file support file.
5000 if test "${target}" = "${host}"; then
5005 alpha
*-*-linux-gnu*)
5006 COREFILE
=trad-core.lo
5007 TRAD_HEADER
='"hosts/alphalinux.h"'
5009 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5010 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5011 arm-
*-freebsd*) COREFILE
='' ;;
5012 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5013 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5014 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5015 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5016 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5017 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5019 COREFILE
=trad-core.lo
5020 TRAD_HEADER
='"hosts/i370linux.h"'
5023 i
[3456]86-sequent-bsd*)
5024 COREFILE
=trad-core.lo
5025 TRAD_HEADER
='"hosts/symmetry.h"'
5027 i
[3456]86-sequent-sysv4*) ;;
5028 i
[3456]86-sequent-sysv*)
5029 COREFILE
=trad-core.lo
5030 TRAD_HEADER
='"hosts/symmetry.h"'
5032 i
[3456]86-*-bsd* | i
[34567]86-*-freebsd[1234] | i
[34567]86-*-freebsd[1234]\.
* | i
[34567]86-*-freebsd*aout
*)
5033 COREFILE
=trad-core.lo
5034 TRAD_HEADER
='"hosts/i386bsd.h"'
5036 i
[3456]86-*-freebsd*)
5038 TRAD_HEADER
='"hosts/i386bsd.h"'
5040 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
5041 COREFILE
=netbsd-core.lo
5043 i
[3456]86-esix-sysv3*)
5044 COREFILE
=trad-core.lo
5045 TRAD_HEADER
='"hosts/esix.h"'
5047 i
[3456]86-*-sco3.2v5
*)
5048 COREFILE
=sco5-core.lo
5050 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
5051 COREFILE
=trad-core.lo
5052 TRAD_HEADER
='"hosts/i386sco.h"'
5055 COREFILE
=trad-core.lo
5056 TRAD_HEADER
='"hosts/i386mach3.h"'
5058 i
[3456]86-*-linux-gnu*)
5059 COREFILE
=trad-core.lo
5060 TRAD_HEADER
='"hosts/i386linux.h"'
5062 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
5063 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
5064 i860-
*-mach3* | i860-
*-osf1*)
5065 COREFILE
=trad-core.lo
5066 TRAD_HEADER
='"hosts/i860mach3.h"'
5069 COREFILE
=trad-core.lo
5070 TRAD_HEADER
='"hosts/mipsbsd.h"'
5073 COREFILE
=trad-core.lo
5074 TRAD_HEADER
='"hosts/mipsmach3.h"'
5076 mips-
*-netbsd* | mips
*-*-openbsd*)
5077 COREFILE
=netbsd-core.lo
5080 COREFILE
=trad-core.lo
5081 TRAD_HEADER
='"hosts/decstation.h"'
5083 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5084 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5085 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5087 COREFILE
=trad-core.lo
5088 TRAD_HEADER
='"hosts/mipsmach3.h"'
5091 mips-
*-sysv* | mips-
*-riscos*)
5092 COREFILE
=trad-core.lo
5093 TRAD_HEADER
='"hosts/riscos.h"'
5096 COREFILE
=trad-core.lo
5097 TRAD_HEADER
='"hosts/news-mips.h"'
5100 COREFILE
=trad-core.lo
5101 TRAD_HEADER
='"hosts/dpx2.h"'
5103 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5105 COREFILE
=trad-core.lo
5106 TRAD_HEADER
='"hosts/hp300bsd.h"'
5109 COREFILE
=trad-core.lo
5110 TRAD_HEADER
='"hosts/m68klinux.h"'
5112 m68
*-motorola-sysv*)
5113 COREFILE
=trad-core.lo
5114 TRAD_HEADER
='"hosts/delta68.h"'
5117 COREFILE
=trad-core.lo
5118 TRAD_HEADER
='"hosts/news.h"'
5120 m68
*-*-netbsd* | m68
*-*-openbsd*)
5121 COREFILE
=netbsd-core.lo
5124 COREFILE
=trad-core.lo
5125 TRAD_HEADER
='"hosts/m68kaux.h"'
5128 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
5130 COREFILE
=trad-core.lo
5131 TRAD_HEADER
='"hosts/m88kmach3.h"'
5134 COREFILE
=trad-core.lo
5135 TRAD_HEADER
='"hosts/pc532mach.h"'
5137 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5138 COREFILE
=netbsd-core.lo
5140 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
5141 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5142 COREFILE
=rs6000-core.lo
5143 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5145 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5146 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5147 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5148 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5150 powerpc-
*-freebsd*) COREFILE
='' ;;
5151 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5152 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5153 s390
*-*-*) COREFILE
=trad-core.lo
;;
5154 sparc-
*-netbsd* | sparc-
*-openbsd*)
5155 COREFILE
=netbsd-core.lo
5158 COREFILE
=trad-core.lo
5159 TRAD_HEADER
='"hosts/tahoe.h"'
5162 COREFILE
=trad-core.lo
5163 TRAD_HEADER
='"hosts/vaxult2.h"'
5166 COREFILE
=trad-core.lo
5167 TRAD_HEADER
='"hosts/vaxult2.h"'
5170 COREFILE
=trad-core.lo
5171 TRAD_HEADER
='"hosts/vaxbsd.h"'
5176 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5177 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5178 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5179 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5180 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5181 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5182 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5183 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5184 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5185 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5186 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5189 # ELF corefile support has several flavors, but all of
5190 # them use something called <sys/procfs.h>
5191 for ac_hdr
in sys
/procfs.h
5193 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5194 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $ac_hdr" >&5
5196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 cat > conftest.
$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5204 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5205 { (eval echo configure
:5206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5206 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5207 if test -z "$ac_err"; then
5209 eval "ac_cv_header_$ac_safe=yes"
5212 echo "configure: failed program was:" >&5
5213 cat conftest.
$ac_ext >&5
5215 eval "ac_cv_header_$ac_safe=no"
5219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5220 echo "$ac_t""yes" 1>&6
5221 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5222 cat >> confdefs.h
<<EOF
5223 #define $ac_tr_hdr 1
5227 echo "$ac_t""no" 1>&6
5231 if test "$ac_cv_header_sys_procfs_h" = yes; then
5232 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5233 echo "configure:5234: checking for prstatus_t in sys/procfs.h" >&5
5234 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5235 echo $ac_n "(cached) $ac_c" 1>&6
5237 cat > conftest.
$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5242 #include <sys/procfs.h>
5247 if { (eval echo configure
:5248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5249 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5251 echo "configure: failed program was:" >&5
5252 cat conftest.
$ac_ext >&5
5254 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5260 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5261 cat >> confdefs.h
<<\EOF
5262 #define HAVE_PRSTATUS_T 1
5266 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5268 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5269 echo "configure:5270: checking for prstatus32_t in sys/procfs.h" >&5
5270 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5271 echo $ac_n "(cached) $ac_c" 1>&6
5273 cat > conftest.
$ac_ext <<EOF
5274 #line 5275 "configure"
5275 #include "confdefs.h"
5278 #include <sys/procfs.h>
5283 if { (eval echo configure
:5284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5285 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5287 echo "configure: failed program was:" >&5
5288 cat conftest.
$ac_ext >&5
5290 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5296 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5297 cat >> confdefs.h
<<\EOF
5298 #define HAVE_PRSTATUS32_T 1
5302 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5304 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5305 echo "configure:5306: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5306 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5307 echo $ac_n "(cached) $ac_c" 1>&6
5309 cat > conftest.
$ac_ext <<EOF
5310 #line 5311 "configure"
5311 #include "confdefs.h"
5314 #include <sys/procfs.h>
5316 prstatus_t avar; void* aref = (void*) &avar.pr_who
5319 if { (eval echo configure
:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5323 echo "configure: failed program was:" >&5
5324 cat conftest.
$ac_ext >&5
5326 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5332 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5333 cat >> confdefs.h
<<\EOF
5334 #define HAVE_PRSTATUS_T_PR_WHO 1
5338 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5340 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5341 echo "configure:5342: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5342 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5343 echo $ac_n "(cached) $ac_c" 1>&6
5345 cat > conftest.
$ac_ext <<EOF
5346 #line 5347 "configure"
5347 #include "confdefs.h"
5350 #include <sys/procfs.h>
5352 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5355 if { (eval echo configure
:5356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5357 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5359 echo "configure: failed program was:" >&5
5360 cat conftest.
$ac_ext >&5
5362 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5368 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5369 cat >> confdefs.h
<<\EOF
5370 #define HAVE_PRSTATUS32_T_PR_WHO 1
5374 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5376 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5377 echo "configure:5378: checking for pstatus_t in sys/procfs.h" >&5
5378 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5379 echo $ac_n "(cached) $ac_c" 1>&6
5381 cat > conftest.
$ac_ext <<EOF
5382 #line 5383 "configure"
5383 #include "confdefs.h"
5386 #include <sys/procfs.h>
5391 if { (eval echo configure
:5392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5393 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5395 echo "configure: failed program was:" >&5
5396 cat conftest.
$ac_ext >&5
5398 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5404 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5405 cat >> confdefs.h
<<\EOF
5406 #define HAVE_PSTATUS_T 1
5410 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5412 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5413 echo "configure:5414: checking for pxstatus_t in sys/procfs.h" >&5
5414 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 cat > conftest.
$ac_ext <<EOF
5418 #line 5419 "configure"
5419 #include "confdefs.h"
5422 #include <sys/procfs.h>
5427 if { (eval echo configure
:5428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5429 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5431 echo "configure: failed program was:" >&5
5432 cat conftest.
$ac_ext >&5
5434 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5440 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5441 cat >> confdefs.h
<<\EOF
5442 #define HAVE_PXSTATUS_T 1
5446 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5448 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5449 echo "configure:5450: checking for pstatus32_t in sys/procfs.h" >&5
5450 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 cat > conftest.
$ac_ext <<EOF
5454 #line 5455 "configure"
5455 #include "confdefs.h"
5458 #include <sys/procfs.h>
5463 if { (eval echo configure
:5464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5465 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5467 echo "configure: failed program was:" >&5
5468 cat conftest.
$ac_ext >&5
5470 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5476 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5477 cat >> confdefs.h
<<\EOF
5478 #define HAVE_PSTATUS32_T 1
5482 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5484 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5485 echo "configure:5486: checking for prpsinfo_t in sys/procfs.h" >&5
5486 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 cat > conftest.
$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5494 #include <sys/procfs.h>
5499 if { (eval echo configure
:5500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5501 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5503 echo "configure: failed program was:" >&5
5504 cat conftest.
$ac_ext >&5
5506 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5512 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5513 cat >> confdefs.h
<<\EOF
5514 #define HAVE_PRPSINFO_T 1
5518 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5520 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5521 echo "configure:5522: checking for prpsinfo32_t in sys/procfs.h" >&5
5522 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5523 echo $ac_n "(cached) $ac_c" 1>&6
5525 cat > conftest.
$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5530 #include <sys/procfs.h>
5535 if { (eval echo configure
:5536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5537 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5539 echo "configure: failed program was:" >&5
5540 cat conftest.
$ac_ext >&5
5542 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5548 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5549 cat >> confdefs.h
<<\EOF
5550 #define HAVE_PRPSINFO32_T 1
5554 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5556 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5557 echo "configure:5558: checking for psinfo_t in sys/procfs.h" >&5
5558 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 cat > conftest.
$ac_ext <<EOF
5562 #line 5563 "configure"
5563 #include "confdefs.h"
5566 #include <sys/procfs.h>
5571 if { (eval echo configure
:5572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5573 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5575 echo "configure: failed program was:" >&5
5576 cat conftest.
$ac_ext >&5
5578 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5584 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5585 cat >> confdefs.h
<<\EOF
5586 #define HAVE_PSINFO_T 1
5590 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5592 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5593 echo "configure:5594: checking for psinfo32_t in sys/procfs.h" >&5
5594 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5595 echo $ac_n "(cached) $ac_c" 1>&6
5597 cat > conftest.
$ac_ext <<EOF
5598 #line 5599 "configure"
5599 #include "confdefs.h"
5602 #include <sys/procfs.h>
5607 if { (eval echo configure
:5608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5609 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5611 echo "configure: failed program was:" >&5
5612 cat conftest.
$ac_ext >&5
5614 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5620 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5621 cat >> confdefs.h
<<\EOF
5622 #define HAVE_PSINFO32_T 1
5626 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5628 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5629 echo "configure:5630: checking for lwpstatus_t in sys/procfs.h" >&5
5630 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5631 echo $ac_n "(cached) $ac_c" 1>&6
5633 cat > conftest.
$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5638 #include <sys/procfs.h>
5643 if { (eval echo configure
:5644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5645 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5647 echo "configure: failed program was:" >&5
5648 cat conftest.
$ac_ext >&5
5650 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5656 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5657 cat >> confdefs.h
<<\EOF
5658 #define HAVE_LWPSTATUS_T 1
5662 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5664 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5665 echo "configure:5666: checking for lwpxstatus_t in sys/procfs.h" >&5
5666 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5667 echo $ac_n "(cached) $ac_c" 1>&6
5669 cat > conftest.
$ac_ext <<EOF
5670 #line 5671 "configure"
5671 #include "confdefs.h"
5674 #include <sys/procfs.h>
5679 if { (eval echo configure
:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5681 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5683 echo "configure: failed program was:" >&5
5684 cat conftest.
$ac_ext >&5
5686 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5692 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5693 cat >> confdefs.h
<<\EOF
5694 #define HAVE_LWPXSTATUS_T 1
5698 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5700 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5701 echo "configure:5702: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5702 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5703 echo $ac_n "(cached) $ac_c" 1>&6
5705 cat > conftest.
$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5710 #include <sys/procfs.h>
5712 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5715 if { (eval echo configure
:5716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5717 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5719 echo "configure: failed program was:" >&5
5720 cat conftest.
$ac_ext >&5
5722 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5728 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5729 cat >> confdefs.h
<<\EOF
5730 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5734 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5736 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5737 echo "configure:5738: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5738 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5739 echo $ac_n "(cached) $ac_c" 1>&6
5741 cat > conftest.
$ac_ext <<EOF
5742 #line 5743 "configure"
5743 #include "confdefs.h"
5746 #include <sys/procfs.h>
5748 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5751 if { (eval echo configure
:5752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5753 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5755 echo "configure: failed program was:" >&5
5756 cat conftest.
$ac_ext >&5
5758 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5764 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5765 cat >> confdefs.h
<<\EOF
5766 #define HAVE_LWPSTATUS_T_PR_REG 1
5770 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5772 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5773 echo "configure:5774: checking for win32_pstatus_t in sys/procfs.h" >&5
5774 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5775 echo $ac_n "(cached) $ac_c" 1>&6
5777 cat > conftest.
$ac_ext <<EOF
5778 #line 5779 "configure"
5779 #include "confdefs.h"
5782 #include <sys/procfs.h>
5784 win32_pstatus_t avar
5787 if { (eval echo configure
:5788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5789 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5791 echo "configure: failed program was:" >&5
5792 cat conftest.
$ac_ext >&5
5794 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5800 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5801 cat >> confdefs.h
<<\EOF
5802 #define HAVE_WIN32_PSTATUS_T 1
5806 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5812 if test -n "$TRAD_HEADER"; then
5813 cat >> confdefs.h
<<EOF
5814 #define TRAD_HEADER $TRAD_HEADER
5819 # Horrible hacks to build DLLs on Windows.
5824 if test "$enable_shared" = "yes"; then
5825 WIN32LDFLAGS
="-no-undefined"
5826 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5835 # Canonicalize the secondary target names.
5836 if test -n "$enable_targets" ; then
5837 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5839 result
=`$ac_config_sub $targ 2>/dev/null`
5840 if test -n "$result" ; then
5841 canon_targets
="$canon_targets $result"
5843 # Allow targets that config.sub doesn't recognize, like "all".
5844 canon_targets
="$canon_targets $targ"
5854 for targ
in $target $canon_targets
5856 if test "x$targ" = "xall"; then
5859 .
$srcdir/config.bfd
5860 if test "x$targ" = "x$target"; then
5863 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5864 selarchs
="$selarchs $targ_archs"
5865 TDEFINES
="$TDEFINES $targ_cflags"
5870 # This processing still needs to be done if we're to decide properly whether
5871 # 64-bit support needs to be compiled in. Currently, it will be included if
5872 # the default or any other explicitly requested target requires it; it
5873 # will not be included on a 32-bit host if no 64-bit target is requested, and
5874 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5877 # uniq the default and selected vectors in all the configured targets.
5879 for i
in $selvecs ; do
5888 # uniq the architectures in all the configured targets.
5890 for i
in $selarchs ; do
5898 # Target backend .o files.
5901 elf
="elf.lo elflink.lo dwarf1.lo"
5906 # This list is alphabetized to make it easy to compare
5907 # with the two vector lists in targets.c.
5908 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5909 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5910 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5911 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5912 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5913 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5914 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5915 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5916 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5917 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5918 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5919 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5920 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5921 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5922 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5923 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5924 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5925 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5926 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5927 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5928 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5929 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5930 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
5932 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5934 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec
)
5935 tb
="$tb elf64-hppa.lo elf64.lo $elf"
5937 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5939 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5941 bfd_elf64_ia64_aix_little_vec
)
5942 tb
="$tb elf64-ia64.lo elf64.lo $elf"
5944 bfd_elf64_ia64_aix_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5946 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
5947 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5948 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5949 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5950 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5951 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5952 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5953 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5954 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5955 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5956 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5958 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5959 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5960 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5961 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5962 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5963 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec
)
5964 tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5965 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5966 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5967 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"
5969 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5970 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5971 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5972 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5973 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5974 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5976 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5977 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5978 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5979 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5980 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5981 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5982 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5983 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5984 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5985 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5986 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5987 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5988 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5989 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
5990 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5991 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
5992 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5993 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
5994 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
5995 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5996 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5997 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
5998 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
6000 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
6002 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"
6004 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
6006 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6007 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6008 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6009 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
6011 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6012 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6013 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6014 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
6016 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6017 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6018 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6019 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6020 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6021 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6022 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6023 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6024 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6025 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6026 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6027 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6028 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6029 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6030 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6031 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6032 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6033 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6034 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6035 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6036 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6037 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6038 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6039 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6040 ieee_vec
) tb
="$tb ieee.lo" ;;
6041 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6042 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6043 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6044 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6045 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6046 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6047 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6048 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6049 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6050 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6051 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6052 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6053 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6054 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6055 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6056 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6057 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6058 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6059 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
6061 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6062 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
6064 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6065 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6066 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6067 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6068 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6069 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
6070 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6071 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6072 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6073 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6074 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6075 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6076 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6077 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6078 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6079 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6080 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6081 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6082 som_vec
) tb
="$tb som.lo" ;;
6083 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6084 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6085 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6086 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6087 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6088 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6089 srec_vec
) tb
="$tb srec.lo" ;;
6090 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6091 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6092 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6093 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6094 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6095 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6096 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6097 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6098 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6099 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6100 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6101 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6102 versados_vec
) tb
="$tb versados.lo" ;;
6103 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
6105 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6106 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6107 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6108 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6111 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6115 # Target architecture .o files.
6116 # A couple of CPUs use shorter file names to avoid problems on DOS
6118 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6120 # Weed out duplicate .o files.
6142 if test x
${all_targets} = xtrue
; then
6143 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6144 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6148 else # all_targets is true
6149 # Only set these if they will be nonempty, for the clever echo.
6151 test -n "$selvecs" &&
6152 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6153 test -n "$selvecs" &&
6154 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6155 test -n "$selarchs" &&
6156 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6157 fi # all_targets is true
6159 case ${host64}-${target64}-${want64} in
6162 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6163 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6164 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6165 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6170 all_backends
='$(BFD32_BACKENDS)'
6180 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6181 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6182 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6183 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6186 for ac_hdr
in unistd.h
6188 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6189 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6190 echo "configure:6191: checking for $ac_hdr" >&5
6191 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6192 echo $ac_n "(cached) $ac_c" 1>&6
6194 cat > conftest.
$ac_ext <<EOF
6195 #line 6196 "configure"
6196 #include "confdefs.h"
6199 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6200 { (eval echo configure
:6201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6201 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6202 if test -z "$ac_err"; then
6204 eval "ac_cv_header_$ac_safe=yes"
6207 echo "configure: failed program was:" >&5
6208 cat conftest.
$ac_ext >&5
6210 eval "ac_cv_header_$ac_safe=no"
6214 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6215 echo "$ac_t""yes" 1>&6
6216 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6217 cat >> confdefs.h
<<EOF
6218 #define $ac_tr_hdr 1
6222 echo "$ac_t""no" 1>&6
6226 for ac_func
in getpagesize
6228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6229 echo "configure:6230: checking for $ac_func" >&5
6230 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6231 echo $ac_n "(cached) $ac_c" 1>&6
6233 cat > conftest.
$ac_ext <<EOF
6234 #line 6235 "configure"
6235 #include "confdefs.h"
6236 /* System header to define __stub macros and hopefully few prototypes,
6237 which can conflict with char $ac_func(); below. */
6239 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6246 /* The GNU C library defines this for functions which it implements
6247 to always fail with ENOSYS. Some functions are actually named
6248 something starting with __ and the normal name is an alias. */
6249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6257 if { (eval echo configure
:6258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6259 eval "ac_cv_func_$ac_func=yes"
6261 echo "configure: failed program was:" >&5
6262 cat conftest.
$ac_ext >&5
6264 eval "ac_cv_func_$ac_func=no"
6269 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6270 echo "$ac_t""yes" 1>&6
6271 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6272 cat >> confdefs.h
<<EOF
6273 #define $ac_tr_func 1
6277 echo "$ac_t""no" 1>&6
6281 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6282 echo "configure:6283: checking for working mmap" >&5
6283 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6284 echo $ac_n "(cached) $ac_c" 1>&6
6286 if test "$cross_compiling" = yes; then
6287 ac_cv_func_mmap_fixed_mapped
=no
6289 cat > conftest.
$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6293 /* Thanks to Mike Haertel and Jim Avera for this test.
6294 Here is a matrix of mmap possibilities:
6295 mmap private not fixed
6296 mmap private fixed at somewhere currently unmapped
6297 mmap private fixed at somewhere already mapped
6298 mmap shared not fixed
6299 mmap shared fixed at somewhere currently unmapped
6300 mmap shared fixed at somewhere already mapped
6301 For private mappings, we should verify that changes cannot be read()
6302 back from the file, nor mmap's back from the file at a different
6303 address. (There have been systems where private was not correctly
6304 implemented like the infamous i386 svr4.0, and systems where the
6305 VM page cache was not coherent with the filesystem buffer cache
6306 like early versions of FreeBSD and possibly contemporary NetBSD.)
6307 For shared mappings, we should conversely verify that changes get
6308 propogated back to all the places they're supposed to be.
6310 Grep wants private fixed already mapped.
6311 The main things grep needs to know about mmap are:
6312 * does it exist and is it safe to write into the mmap'd area
6313 * how to use it (BSD variants) */
6314 #include <sys/types.h>
6316 #include <sys/mman.h>
6318 /* This mess was copied from the GNU getpagesize.h. */
6319 #ifndef HAVE_GETPAGESIZE
6320 # ifdef HAVE_UNISTD_H
6321 # include <unistd.h>
6324 /* Assume that all systems that can run configure have sys/param.h. */
6325 # ifndef HAVE_SYS_PARAM_H
6326 # define HAVE_SYS_PARAM_H 1
6329 # ifdef _SC_PAGESIZE
6330 # define getpagesize() sysconf(_SC_PAGESIZE)
6331 # else /* no _SC_PAGESIZE */
6332 # ifdef HAVE_SYS_PARAM_H
6333 # include <sys/param.h>
6334 # ifdef EXEC_PAGESIZE
6335 # define getpagesize() EXEC_PAGESIZE
6336 # else /* no EXEC_PAGESIZE */
6338 # define getpagesize() NBPG * CLSIZE
6341 # endif /* no CLSIZE */
6342 # else /* no NBPG */
6344 # define getpagesize() NBPC
6345 # else /* no NBPC */
6347 # define getpagesize() PAGESIZE
6348 # endif /* PAGESIZE */
6349 # endif /* no NBPC */
6350 # endif /* no NBPG */
6351 # endif /* no EXEC_PAGESIZE */
6352 # else /* no HAVE_SYS_PARAM_H */
6353 # define getpagesize() 8192 /* punt totally */
6354 # endif /* no HAVE_SYS_PARAM_H */
6355 # endif /* no _SC_PAGESIZE */
6357 #endif /* no HAVE_GETPAGESIZE */
6360 extern "C" { void *malloc(unsigned); }
6368 char *data, *data2, *data3;
6372 pagesize = getpagesize();
6375 * First, make a file with some known garbage in it.
6377 data = malloc(pagesize);
6380 for (i = 0; i < pagesize; ++i)
6381 *(data + i) = rand();
6383 fd = creat("conftestmmap", 0600);
6386 if (write(fd, data, pagesize) != pagesize)
6391 * Next, try to mmap the file at a fixed address which
6392 * already has something else allocated at it. If we can,
6393 * also make sure that we see the same garbage.
6395 fd = open("conftestmmap", O_RDWR);
6398 data2 = malloc(2 * pagesize);
6401 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6402 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6405 for (i = 0; i < pagesize; ++i)
6406 if (*(data + i) != *(data2 + i))
6410 * Finally, make sure that changes to the mapped area
6411 * do not percolate back to the file as seen by read().
6412 * (This is a bug on some variants of i386 svr4.0.)
6414 for (i = 0; i < pagesize; ++i)
6415 *(data2 + i) = *(data2 + i) + 1;
6416 data3 = malloc(pagesize);
6419 if (read(fd, data3, pagesize) != pagesize)
6421 for (i = 0; i < pagesize; ++i)
6422 if (*(data + i) != *(data3 + i))
6425 unlink("conftestmmap");
6430 if { (eval echo configure
:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6432 ac_cv_func_mmap_fixed_mapped
=yes
6434 echo "configure: failed program was:" >&5
6435 cat conftest.
$ac_ext >&5
6437 ac_cv_func_mmap_fixed_mapped
=no
6444 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6445 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6446 cat >> confdefs.h
<<\EOF
6452 for ac_func
in madvise mprotect
6454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6455 echo "configure:6456: checking for $ac_func" >&5
6456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6457 echo $ac_n "(cached) $ac_c" 1>&6
6459 cat > conftest.
$ac_ext <<EOF
6460 #line 6461 "configure"
6461 #include "confdefs.h"
6462 /* System header to define __stub macros and hopefully few prototypes,
6463 which can conflict with char $ac_func(); below. */
6465 /* Override any gcc2 internal prototype to avoid an error. */
6466 /* We use char because int might match the return type of a gcc2
6467 builtin and then its argument prototype would still apply. */
6472 /* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
6475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6483 if { (eval echo configure
:6484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6485 eval "ac_cv_func_$ac_func=yes"
6487 echo "configure: failed program was:" >&5
6488 cat conftest.
$ac_ext >&5
6490 eval "ac_cv_func_$ac_func=no"
6495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6496 echo "$ac_t""yes" 1>&6
6497 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6498 cat >> confdefs.h
<<EOF
6499 #define $ac_tr_func 1
6503 echo "$ac_t""no" 1>&6
6507 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6508 true
+yes ) cat >> confdefs.h
<<\EOF
6514 rm -f doc
/config.status
6516 cat > confcache
<<\EOF
6517 # This file is a shell script that caches the results of configure
6518 # tests run on this system so they can be shared between configure
6519 # scripts and configure runs. It is not useful on other systems.
6520 # If it contains results you don't want to keep, you may remove or edit it.
6522 # By default, configure uses ./config.cache as the cache file,
6523 # creating it if it does not exist already. You can give configure
6524 # the --cache-file=FILE option to use a different cache file; that is
6525 # what configure does when it calls configure scripts in
6526 # subdirectories, so they share the cache.
6527 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6528 # config.status only pays attention to the cache file if you give it the
6529 # --recheck option to rerun configure.
6532 # The following way of writing the cache mishandles newlines in values,
6533 # but we know of no workaround that is simple, portable, and efficient.
6534 # So, don't put newlines in cache variables' values.
6535 # Ultrix sh set writes to stderr and can't be redirected directly,
6536 # and sets the high bit in the cache file unless we assign to the vars.
6538 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6540 # `set' does not quote correctly, so add quotes (double-quote substitution
6541 # turns \\\\ into \\, and sed turns \\ into \).
6543 -e "s/'/'\\\\''/g" \
6544 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6547 # `set' quotes correctly as required by POSIX, so do not add quotes.
6548 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6551 if cmp -s $cache_file confcache
; then
6554 if test -w $cache_file; then
6555 echo "updating cache $cache_file"
6556 cat confcache
> $cache_file
6558 echo "not updating unwritable cache $cache_file"
6563 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6565 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6566 # Let make expand exec_prefix.
6567 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6569 # Any assignment to VPATH causes Sun make to only execute
6570 # the first set of double-colon rules, so remove it if not needed.
6571 # If there is a colon in the path, we need to keep it.
6572 if test "x$srcdir" = x.
; then
6573 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6576 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6578 DEFS
=-DHAVE_CONFIG_H
6580 # Without the "./", some shells look in PATH for config.status.
6581 : ${CONFIG_STATUS=./config.status}
6583 echo creating
$CONFIG_STATUS
6584 rm -f $CONFIG_STATUS
6585 cat > $CONFIG_STATUS <<EOF
6587 # Generated automatically by configure.
6588 # Run this file to recreate the current configuration.
6589 # This directory was configured as follows,
6590 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6592 # $0 $ac_configure_args
6594 # Compiler output produced by configure, useful for debugging
6595 # configure, is in ./config.log if it exists.
6597 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6600 case "\$ac_option" in
6601 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6602 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6603 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6604 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6605 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6607 -help | --help | --hel | --he | --h)
6608 echo "\$ac_cs_usage"; exit 0 ;;
6609 *) echo "\$ac_cs_usage"; exit 1 ;;
6613 ac_given_srcdir=$srcdir
6614 ac_given_INSTALL="$INSTALL"
6616 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
6618 cat >> $CONFIG_STATUS <<EOF
6620 # Protect against being on the right side of a sed subst in config.status.
6621 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6622 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6626 s%@CFLAGS@%$CFLAGS%g
6627 s%@CPPFLAGS@%$CPPFLAGS%g
6628 s%@CXXFLAGS@%$CXXFLAGS%g
6629 s%@FFLAGS@%$FFLAGS%g
6631 s%@LDFLAGS@%$LDFLAGS%g
6633 s%@exec_prefix@%$exec_prefix%g
6634 s%@prefix@%$prefix%g
6635 s%@program_transform_name@%$program_transform_name%g
6636 s%@bindir@%$bindir%g
6637 s%@sbindir@%$sbindir%g
6638 s%@libexecdir@%$libexecdir%g
6639 s%@datadir@%$datadir%g
6640 s%@sysconfdir@%$sysconfdir%g
6641 s%@sharedstatedir@%$sharedstatedir%g
6642 s%@localstatedir@%$localstatedir%g
6643 s%@libdir@%$libdir%g
6644 s%@includedir@%$includedir%g
6645 s%@oldincludedir@%$oldincludedir%g
6646 s%@infodir@%$infodir%g
6647 s%@mandir@%$mandir%g
6649 s%@host_alias@%$host_alias%g
6650 s%@host_cpu@%$host_cpu%g
6651 s%@host_vendor@%$host_vendor%g
6652 s%@host_os@%$host_os%g
6653 s%@target@%$target%g
6654 s%@target_alias@%$target_alias%g
6655 s%@target_cpu@%$target_cpu%g
6656 s%@target_vendor@%$target_vendor%g
6657 s%@target_os@%$target_os%g
6659 s%@build_alias@%$build_alias%g
6660 s%@build_cpu@%$build_cpu%g
6661 s%@build_vendor@%$build_vendor%g
6662 s%@build_os@%$build_os%g
6663 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6664 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6665 s%@INSTALL_DATA@%$INSTALL_DATA%g
6666 s%@PACKAGE@%$PACKAGE%g
6667 s%@VERSION@%$VERSION%g
6668 s%@ACLOCAL@%$ACLOCAL%g
6669 s%@AUTOCONF@%$AUTOCONF%g
6670 s%@AUTOMAKE@%$AUTOMAKE%g
6671 s%@AUTOHEADER@%$AUTOHEADER%g
6672 s%@MAKEINFO@%$MAKEINFO%g
6673 s%@SET_MAKE@%$SET_MAKE%g
6675 s%@RANLIB@%$RANLIB%g
6678 s%@OBJEXT@%$OBJEXT%g
6679 s%@EXEEXT@%$EXEEXT%g
6681 s%@LIBTOOL@%$LIBTOOL%g
6682 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6683 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6684 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6687 s%@ALLOCA@%$ALLOCA%g
6688 s%@USE_NLS@%$USE_NLS%g
6689 s%@MSGFMT@%$MSGFMT%g
6690 s%@GMSGFMT@%$GMSGFMT%g
6691 s%@XGETTEXT@%$XGETTEXT%g
6692 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6693 s%@CATALOGS@%$CATALOGS%g
6694 s%@CATOBJEXT@%$CATOBJEXT%g
6695 s%@DATADIRNAME@%$DATADIRNAME%g
6696 s%@GMOFILES@%$GMOFILES%g
6697 s%@INSTOBJEXT@%$INSTOBJEXT%g
6698 s%@INTLDEPS@%$INTLDEPS%g
6699 s%@INTLLIBS@%$INTLLIBS%g
6700 s%@INTLOBJS@%$INTLOBJS%g
6701 s%@POFILES@%$POFILES%g
6703 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6705 s%@GT_YES@%$GT_YES%g
6706 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6708 s%@HDEFINES@%$HDEFINES%g
6709 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6710 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6711 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6712 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6713 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6714 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6715 s%@COREFILE@%$COREFILE%g
6716 s%@COREFLAG@%$COREFLAG%g
6717 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6718 s%@WIN32LIBADD@%$WIN32LIBADD%g
6719 s%@TDEFINES@%$TDEFINES%g
6720 s%@wordsize@%$wordsize%g
6721 s%@all_backends@%$all_backends%g
6722 s%@bfd_backends@%$bfd_backends%g
6723 s%@bfd_machines@%$bfd_machines%g
6724 s%@tdefaults@%$tdefaults%g
6729 cat >> $CONFIG_STATUS <<\EOF
6731 # Split the substitutions into bite-sized pieces for seds with
6732 # small command number limits, like on Digital OSF/1 and HP-UX.
6733 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6734 ac_file
=1 # Number of current file.
6735 ac_beg
=1 # First line for current file.
6736 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6739 while $ac_more_lines; do
6740 if test $ac_beg -gt 1; then
6741 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6743 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6745 if test ! -s conftest.s
$ac_file; then
6747 rm -f conftest.s
$ac_file
6749 if test -z "$ac_sed_cmds"; then
6750 ac_sed_cmds
="sed -f conftest.s$ac_file"
6752 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6754 ac_file
=`expr $ac_file + 1`
6756 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6759 if test -z "$ac_sed_cmds"; then
6764 cat >> $CONFIG_STATUS <<EOF
6766 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6768 cat >> $CONFIG_STATUS <<\EOF
6769 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6772 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6773 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6774 *) ac_file_in
="${ac_file}.in" ;;
6777 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6779 # Remove last slash and all that follows it. Not all systems have dirname.
6780 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6781 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6782 # The file is in a subdirectory.
6783 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6784 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6785 # A "../" for each directory in $ac_dir_suffix.
6786 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6788 ac_dir_suffix
= ac_dots
=
6791 case "$ac_given_srcdir" in
6793 if test -z "$ac_dots"; then top_srcdir
=.
6794 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6795 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6797 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6798 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6801 case "$ac_given_INSTALL" in
6802 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6803 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6806 echo creating
"$ac_file"
6808 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6810 *Makefile
*) ac_comsub
="1i\\
6811 # $configure_input" ;;
6815 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6817 s%@configure_input@%$configure_input%g
6818 s%@srcdir@%$srcdir%g
6819 s%@top_srcdir@%$top_srcdir%g
6820 s%@INSTALL@%$INSTALL%g
6821 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6825 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6826 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6828 # ac_d sets the value in "#define NAME VALUE" lines.
6829 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6830 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6833 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6834 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6835 ac_uB
='\([ ]\)%\1#\2define\3'
6838 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6839 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6840 ac_eB
='$%\1#\2define\3'
6844 if test "${CONFIG_HEADERS+set}" != set; then
6846 cat >> $CONFIG_STATUS <<EOF
6847 CONFIG_HEADERS="config.h:config.in"
6849 cat >> $CONFIG_STATUS <<\EOF
6851 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6854 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6855 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6856 *) ac_file_in
="${ac_file}.in" ;;
6859 echo creating
$ac_file
6861 rm -f conftest.frag conftest.
in conftest.out
6862 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6863 cat $ac_file_inputs > conftest.
in
6867 # Transform confdefs.h into a sed script conftest.vals that substitutes
6868 # the proper values into config.h.in to produce config.h. And first:
6869 # Protect against being on the right side of a sed subst in config.status.
6870 # Protect against being in an unquoted here document in config.status.
6872 cat > conftest.hdr
<<\EOF
6875 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6879 sed -n -f conftest.hdr confdefs.h > conftest.vals
6882 # This sed command replaces #undef with comments. This is necessary, for
6883 # example, in the case of _POSIX_SOURCE, which is predefined and required
6884 # on some systems where configure will not decide to define it.
6885 cat >> conftest.vals <<\EOF
6886 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6889 # Break up conftest.vals because some shells have a limit on
6890 # the size of here documents, and old seds have small limits too.
6895 ac_lines=`grep -c . conftest.vals
`
6896 # grep -c gives empty output for an empty file on some AIX systems.
6897 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6898 # Write a limited-size here document to conftest.frag.
6899 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6900 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6902 sed -f conftest.frag conftest.in > conftest.out
6904 mv conftest.out conftest.in
6906 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6908 mv conftest.tail conftest.vals
6912 cat >> $CONFIG_STATUS <<\EOF
6913 rm -f conftest.frag conftest.h
6914 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6915 cat conftest.in >> conftest.h
6917 if cmp -s $ac_file conftest.h 2>/dev/null; then
6918 echo "$ac_file is unchanged"
6921 # Remove last slash and all that follows it. Not all systems have dirname.
6922 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6924 # The file is in a subdirectory.
6925 test ! -d "$ac_dir" && mkdir "$ac_dir"
6928 mv conftest.h $ac_file
6933 cat >> $CONFIG_STATUS <<EOF
6937 cat >> $CONFIG_STATUS <<\EOF
6938 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6939 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile
6942 chmod +x $CONFIG_STATUS
6943 rm -fr confdefs* $ac_clean_files
6944 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1