3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix
=/usr
/local
14 # Any additions from configure.in:
16 --enable-shared[=PKGS] build shared libraries [default=no]"
18 --enable-static[=PKGS] build static libraries [default=yes]"
20 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 --disable-libtool-lock avoid locking (might break parallel builds)"
26 --with-pic try to use only PIC/non-PIC objects [default=use both]"
28 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)"
30 --enable-targets alternative target configurations"
32 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
34 --with-mmap try using mmap for BFD input files if available"
36 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
38 --enable-maintainer-mode enable make rules and dependencies not useful
39 (and sometimes confusing) to the casual installer"
41 --disable-nls do not use Native Language Support"
43 --with-included-gettext use the GNU gettext library included here"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
49 cache_file
=.
/config.cache
58 program_transform_name
=s
,x
,x
,
67 bindir
='${exec_prefix}/bin'
68 sbindir
='${exec_prefix}/sbin'
69 libexecdir
='${exec_prefix}/libexec'
70 datadir
='${prefix}/share'
71 sysconfdir
='${prefix}/etc'
72 sharedstatedir
='${prefix}/com'
73 localstatedir
='${prefix}/var'
74 libdir
='${exec_prefix}/lib'
75 includedir
='${prefix}/include'
76 oldincludedir
='/usr/include'
77 infodir
='${prefix}/info'
78 mandir
='${prefix}/man'
80 # Initialize some other variables.
83 SHELL
=${CONFIG_SHELL-/bin/sh}
84 # Maximum number of lines to put in a shell here document.
91 # If the previous option needs an argument, assign it.
92 if test -n "$ac_prev"; then
93 eval "$ac_prev=\$ac_option"
99 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
103 # Accept the important Cygnus configure options, so we can diagnose typos.
107 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
109 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
110 bindir
="$ac_optarg" ;;
112 -build |
--build |
--buil |
--bui |
--bu)
114 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
115 build
="$ac_optarg" ;;
117 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
118 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
119 ac_prev
=cache_file
;;
120 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
121 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
122 cache_file
="$ac_optarg" ;;
124 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
126 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
128 datadir
="$ac_optarg" ;;
130 -disable-* |
--disable-*)
131 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
132 # Reject names that are not valid shell variable names.
133 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
136 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}=no" ;;
139 -enable-* |
--enable-*)
140 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
145 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
150 eval "enable_${ac_feature}='$ac_optarg'" ;;
152 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
153 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
154 |
--exec |
--exe |
--ex)
155 ac_prev
=exec_prefix
;;
156 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
157 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
158 |
--exec=* |
--exe=* |
--ex=*)
159 exec_prefix
="$ac_optarg" ;;
161 -gas |
--gas |
--ga |
--g)
162 # Obsolete; use --with-gas.
165 -help |
--help |
--hel |
--he)
166 # Omit some internal or obsolete options to make the list less imposing.
167 # This message is too long to be a string in the A/UX 3.1 sh.
169 Usage: configure [options] [host]
170 Options: [defaults in brackets after descriptions]
172 --cache-file=FILE cache test results in FILE
173 --help print this message
174 --no-create do not create output files
175 --quiet, --silent do not print \`checking...' messages
176 --site-file=FILE use FILE as the site file
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host |
--host |
--hos |
--ho)
223 -host=* |
--host=* |
--hos=* |
--ho=*)
226 -includedir |
--includedir |
--includedi |
--included |
--include \
227 |
--includ |
--inclu |
--incl |
--inc)
228 ac_prev
=includedir
;;
229 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
230 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
231 includedir
="$ac_optarg" ;;
233 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
235 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
236 infodir
="$ac_optarg" ;;
238 -libdir |
--libdir |
--libdi |
--libd)
240 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
241 libdir
="$ac_optarg" ;;
243 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
244 |
--libexe |
--libex |
--libe)
245 ac_prev
=libexecdir
;;
246 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
247 |
--libexe=* |
--libex=* |
--libe=*)
248 libexecdir
="$ac_optarg" ;;
250 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
251 |
--localstate |
--localstat |
--localsta |
--localst \
252 |
--locals |
--local |
--loca |
--loc |
--lo)
253 ac_prev
=localstatedir
;;
254 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
255 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
256 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
257 localstatedir
="$ac_optarg" ;;
259 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
261 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
262 mandir
="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
272 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
273 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
276 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
277 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
278 |
--oldin |
--oldi |
--old |
--ol |
--o)
279 ac_prev
=oldincludedir
;;
280 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
281 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
282 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
283 oldincludedir
="$ac_optarg" ;;
285 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
287 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
288 prefix
="$ac_optarg" ;;
290 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
291 |
--program-pre |
--program-pr |
--program-p)
292 ac_prev
=program_prefix
;;
293 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
294 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
295 program_prefix
="$ac_optarg" ;;
297 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
298 |
--program-suf |
--program-su |
--program-s)
299 ac_prev
=program_suffix
;;
300 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
301 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
302 program_suffix
="$ac_optarg" ;;
304 -program-transform-name |
--program-transform-name \
305 |
--program-transform-nam |
--program-transform-na \
306 |
--program-transform-n |
--program-transform- \
307 |
--program-transform |
--program-transfor \
308 |
--program-transfo |
--program-transf \
309 |
--program-trans |
--program-tran \
310 |
--progr-tra |
--program-tr |
--program-t)
311 ac_prev
=program_transform_name
;;
312 -program-transform-name=* |
--program-transform-name=* \
313 |
--program-transform-nam=* |
--program-transform-na=* \
314 |
--program-transform-n=* |
--program-transform-=* \
315 |
--program-transform=* |
--program-transfor=* \
316 |
--program-transfo=* |
--program-transf=* \
317 |
--program-trans=* |
--program-tran=* \
318 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
319 program_transform_name
="$ac_optarg" ;;
321 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
322 |
-silent |
--silent |
--silen |
--sile |
--sil)
325 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
327 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
329 sbindir
="$ac_optarg" ;;
331 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
332 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
333 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
335 ac_prev
=sharedstatedir
;;
336 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
337 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
338 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
340 sharedstatedir
="$ac_optarg" ;;
342 -site |
--site |
--sit)
344 -site=* |
--site=* |
--sit=*)
347 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
349 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
350 sitefile
="$ac_optarg" ;;
352 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
354 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
355 srcdir
="$ac_optarg" ;;
357 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
358 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
359 ac_prev
=sysconfdir
;;
360 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
361 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
362 sysconfdir
="$ac_optarg" ;;
364 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
366 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
367 target
="$ac_optarg" ;;
369 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
372 -version |
--version |
--versio |
--versi |
--vers)
373 echo "configure generated by autoconf version 2.13"
377 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378 # Reject names that are not valid shell variable names.
379 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382 ac_package
=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}='$ac_optarg'" ;;
389 -without-* |
--without-*)
390 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
391 # Reject names that are not valid shell variable names.
392 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 ac_package
=`echo $ac_package| sed 's/-/_/g'`
396 eval "with_${ac_package}=no" ;;
399 # Obsolete; use --with-x.
402 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
403 |
--x-incl |
--x-inc |
--x-in |
--x-i)
404 ac_prev
=x_includes
;;
405 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
406 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
407 x_includes
="$ac_optarg" ;;
409 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
410 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
411 ac_prev
=x_libraries
;;
412 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
413 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
414 x_libraries
="$ac_optarg" ;;
416 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421 echo "configure: warning: $ac_option: invalid host type" 1>&2
423 if test "x$nonopt" != xNONE
; then
424 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432 if test -n "$ac_prev"; then
433 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
436 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
438 # File descriptor usage:
441 # 2 errors and warnings
442 # 3 some systems may open it to /dev/tty
443 # 4 used on the Kubota Titan
444 # 6 checking for... messages and results
445 # 5 compiler messages saved in config.log
446 if test "$silent" = yes; then
454 This file contains any messages produced by compilers while
455 running configure, to aid debugging if configure makes a mistake.
458 # Strip out --no-create and --no-recursion so they do not pile up.
459 # Also quote any args containing shell metacharacters.
464 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
465 |
--no-cr |
--no-c) ;;
466 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
467 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
468 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
470 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
475 # Only set these to C if already set. These must not be set unconditionally
476 # because not all systems understand e.g. LANG=C (notably SCO).
477 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478 # Non-C LC_CTYPE values break the ctype check.
479 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
480 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
481 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
482 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
485 rm -rf conftest
* confdefs.h
486 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
489 # A filename unique to this package, relative to the directory that
490 # configure is in, which we can look for to find out if srcdir is correct.
491 ac_unique_file
=libbfd.c
493 # Find the source files, if location was not specified.
494 if test -z "$srcdir"; then
495 ac_srcdir_defaulted
=yes
496 # Try the directory containing this script, then its parent.
498 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
501 if test ! -r $srcdir/$ac_unique_file; then
505 ac_srcdir_defaulted
=no
507 if test ! -r $srcdir/$ac_unique_file; then
508 if test "$ac_srcdir_defaulted" = yes; then
509 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
511 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
514 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
516 # Prefer explicitly selected file to automatically selected ones.
517 if test -z "$sitefile"; then
518 if test -z "$CONFIG_SITE"; then
519 if test "x$prefix" != xNONE
; then
520 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
522 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
526 CONFIG_SITE
="$sitefile"
528 for ac_site_file
in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp
='$CPP $CPPFLAGS'
546 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling
=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
561 ac_n
= ac_c
='\c' ac_t
=
564 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
565 echo "configure:565: checking for Cygwin environment" >&5
566 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
567 echo $ac_n "(cached) $ac_c" 1>&6
569 cat > conftest.
$ac_ext <<EOF
570 #line 570 "configure"
571 #include "confdefs.h"
576 #define __CYGWIN__ __CYGWIN32__
581 if { (eval echo configure
:581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
585 echo "configure: failed program was:" >&5
586 cat conftest.
$ac_ext >&5
594 echo "$ac_t""$ac_cv_cygwin" 1>&6
596 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
597 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
598 echo "configure:598: checking for mingw32 environment" >&5
599 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
602 cat > conftest.
$ac_ext <<EOF
603 #line 603 "configure"
604 #include "confdefs.h"
610 if { (eval echo configure
:610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
614 echo "configure: failed program was:" >&5
615 cat conftest.
$ac_ext >&5
623 echo "$ac_t""$ac_cv_mingw32" 1>&6
625 test "$ac_cv_mingw32" = yes && MINGW32
=yes
629 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
630 if test -f $ac_dir/install-sh
; then
632 ac_install_sh
="$ac_aux_dir/install-sh -c"
634 elif test -f $ac_dir/install.sh
; then
636 ac_install_sh
="$ac_aux_dir/install.sh -c"
640 if test -z "$ac_aux_dir"; then
641 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
643 ac_config_guess
=$ac_aux_dir/config.guess
644 ac_config_sub
=$ac_aux_dir/config.sub
645 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
648 # Do some error checking and defaulting for the host and target type.
650 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
653 # 1. You are not allowed to specify --host, --target, and nonopt at the
655 # 2. Host defaults to nonopt.
656 # 3. If nonopt is not specified, then host defaults to the current host,
657 # as determined by config.guess.
658 # 4. Target and build default to nonopt.
659 # 5. If nonopt is not specified, then target and build default to host.
661 # The aliases save the names the user supplied, while $host etc.
662 # will get canonicalized.
663 case $host---$target---$nonopt in
664 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
665 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
669 # Make sure we can run config.sub.
670 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
671 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:675: checking host system type" >&5
678 case "$host_alias" in
682 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
683 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
685 *) host_alias
=$nonopt ;;
689 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
690 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
691 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
692 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
693 echo "$ac_t""$host" 1>&6
695 echo $ac_n "checking target system type""... $ac_c" 1>&6
696 echo "configure:696: checking target system type" >&5
699 case "$target_alias" in
702 NONE
) target_alias
=$host_alias ;;
703 *) target_alias
=$nonopt ;;
707 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
708 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
711 echo "$ac_t""$target" 1>&6
713 echo $ac_n "checking build system type""... $ac_c" 1>&6
714 echo "configure:714: checking build system type" >&5
717 case "$build_alias" in
720 NONE
) build_alias
=$host_alias ;;
721 *) build_alias
=$nonopt ;;
725 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
726 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
727 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
728 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
729 echo "$ac_t""$build" 1>&6
731 test "$host_alias" != "$target_alias" &&
732 test "$program_prefix$program_suffix$program_transform_name" = \
734 program_prefix
=${target_alias}-
737 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
738 echo "configure:738: checking for strerror in -lcposix" >&5
739 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
741 echo $ac_n "(cached) $ac_c" 1>&6
744 LIBS
="-lcposix $LIBS"
745 cat > conftest.
$ac_ext <<EOF
746 #line 746 "configure"
747 #include "confdefs.h"
748 /* Override any gcc2 internal prototype to avoid an error. */
749 /* We use char because int might match the return type of a gcc2
750 builtin and then its argument prototype would still apply. */
757 if { (eval echo configure
:757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
759 eval "ac_cv_lib_$ac_lib_var=yes"
761 echo "configure: failed program was:" >&5
762 cat conftest.
$ac_ext >&5
764 eval "ac_cv_lib_$ac_lib_var=no"
770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
771 echo "$ac_t""yes" 1>&6
772 LIBS
="$LIBS -lcposix"
774 echo "$ac_t""no" 1>&6
780 # Find a good install program. We prefer a C program (faster),
781 # so one script is as good as another. But avoid the broken or
782 # incompatible versions:
783 # SysV /etc/install, /usr/sbin/install
784 # SunOS /usr/etc/install
787 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
788 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
789 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
790 # ./install, which can be erroneously created by make from ./install.sh.
791 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
792 echo "configure:792: checking for a BSD compatible install" >&5
793 if test -z "$INSTALL"; then
794 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
798 for ac_dir
in $PATH; do
799 # Account for people who put trailing slashes in PATH elements.
801 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
803 # OSF1 and SCO ODT 3.0 have their own names for install.
804 # Don't use installbsd from OSF since it installs stuff as root
806 for ac_prog
in ginstall scoinst
install; do
807 if test -f $ac_dir/$ac_prog; then
808 if test $ac_prog = install &&
809 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
810 # AIX install. It has an incompatible calling convention.
813 ac_cv_path_install
="$ac_dir/$ac_prog -c"
824 if test "${ac_cv_path_install+set}" = set; then
825 INSTALL
="$ac_cv_path_install"
827 # As a last resort, use the slow shell script. We don't cache a
828 # path for INSTALL within a source directory, because that will
829 # break other packages using the cache if that directory is
830 # removed, or if the path is relative.
831 INSTALL
="$ac_install_sh"
834 echo "$ac_t""$INSTALL" 1>&6
836 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
837 # It thinks the first close brace ends the variable substitution.
838 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
840 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
842 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
844 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
845 echo "configure:845: checking whether build environment is sane" >&5
848 echo timestamp
> conftestfile
849 # Do `set' in a subshell so we don't clobber the current shell's
850 # arguments. Must try -L first in case configure is actually a
851 # symlink; some systems play weird games with the mod time of symlinks
852 # (eg FreeBSD returns the mod time of the symlink's containing
855 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
856 if test "$*" = "X"; then
858 set X
`ls -t $srcdir/configure conftestfile`
860 if test "$*" != "X $srcdir/configure conftestfile" \
861 && test "$*" != "X conftestfile $srcdir/configure"; then
863 # If neither matched, then we have a broken ls. This can happen
864 # if, for instance, CONFIG_SHELL is bash and it inherits a
865 # broken ls alias from the environment. This has actually
866 # happened. Such a system could not be considered "sane".
867 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
868 alias in your environment" 1>&2; exit 1; }
871 test "$2" = conftestfile
877 { echo "configure: error: newly created file is older than distributed files!
878 Check your system clock" 1>&2; exit 1; }
881 echo "$ac_t""yes" 1>&6
882 if test "$program_transform_name" = s
,x
,x
,; then
883 program_transform_name
=
885 # Double any \ or $. echo might interpret backslashes.
886 cat <<\EOF_SED
> conftestsed
887 s
,\\,\\\\,g
; s
,\$
,$$
,g
889 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
892 test "$program_prefix" != NONE
&&
893 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
894 # Use a double $ so make ignores it.
895 test "$program_suffix" != NONE
&&
896 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
898 # sed with no file args requires a program.
899 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
901 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
902 echo "configure:902: checking whether ${MAKE-make} sets \${MAKE}" >&5
903 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
904 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 cat > conftestmake
<<\EOF
909 @
echo 'ac_maketemp="${MAKE}"'
911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
912 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
913 if test -n "$ac_maketemp"; then
914 eval ac_cv_prog_make_
${ac_make}_set
=yes
916 eval ac_cv_prog_make_
${ac_make}_set
=no
920 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
924 echo "$ac_t""no" 1>&6
925 SET_MAKE
="MAKE=${MAKE-make}"
933 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
934 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
936 cat >> confdefs.h
<<EOF
937 #define PACKAGE "$PACKAGE"
940 cat >> confdefs.h
<<EOF
941 #define VERSION "$VERSION"
946 missing_dir
=`cd $ac_aux_dir && pwd`
947 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
948 echo "configure:948: checking for working aclocal" >&5
949 # Run test in a subshell; some versions of sh will print an error if
950 # an executable is not found, even if stderr is redirected.
951 # Redirect stdin to placate older versions of autoconf. Sigh.
952 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
954 echo "$ac_t""found" 1>&6
956 ACLOCAL
="$missing_dir/missing aclocal"
957 echo "$ac_t""missing" 1>&6
960 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
961 echo "configure:961: checking for working autoconf" >&5
962 # Run test in a subshell; some versions of sh will print an error if
963 # an executable is not found, even if stderr is redirected.
964 # Redirect stdin to placate older versions of autoconf. Sigh.
965 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
967 echo "$ac_t""found" 1>&6
969 AUTOCONF
="$missing_dir/missing autoconf"
970 echo "$ac_t""missing" 1>&6
973 echo $ac_n "checking for working automake""... $ac_c" 1>&6
974 echo "configure:974: checking for working automake" >&5
975 # Run test in a subshell; some versions of sh will print an error if
976 # an executable is not found, even if stderr is redirected.
977 # Redirect stdin to placate older versions of autoconf. Sigh.
978 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
980 echo "$ac_t""found" 1>&6
982 AUTOMAKE
="$missing_dir/missing automake"
983 echo "$ac_t""missing" 1>&6
986 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
987 echo "configure:987: checking for working autoheader" >&5
988 # Run test in a subshell; some versions of sh will print an error if
989 # an executable is not found, even if stderr is redirected.
990 # Redirect stdin to placate older versions of autoconf. Sigh.
991 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
992 AUTOHEADER
=autoheader
993 echo "$ac_t""found" 1>&6
995 AUTOHEADER
="$missing_dir/missing autoheader"
996 echo "$ac_t""missing" 1>&6
999 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1000 echo "configure:1000: checking for working makeinfo" >&5
1001 # Run test in a subshell; some versions of sh will print an error if
1002 # an executable is not found, even if stderr is redirected.
1003 # Redirect stdin to placate older versions of autoconf. Sigh.
1004 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1006 echo "$ac_t""found" 1>&6
1008 MAKEINFO
="$missing_dir/missing makeinfo"
1009 echo "$ac_t""missing" 1>&6
1014 if test $host != $build; then
1015 ac_tool_prefix
=${host_alias}-
1020 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1021 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1023: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$AR"; then
1028 ac_cv_prog_AR
="$AR" # Let the user override the test.
1030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1032 for ac_dir
in $ac_dummy; do
1033 test -z "$ac_dir" && ac_dir
=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1040 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1044 if test -n "$AR"; then
1045 echo "$ac_t""$AR" 1>&6
1047 echo "$ac_t""no" 1>&6
1052 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1053 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1055: checking for $ac_word" >&5
1056 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$RANLIB"; then
1060 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1067 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1074 RANLIB
="$ac_cv_prog_RANLIB"
1075 if test -n "$RANLIB"; then
1076 echo "$ac_t""$RANLIB" 1>&6
1078 echo "$ac_t""no" 1>&6
1082 if test -z "$ac_cv_prog_RANLIB"; then
1083 if test -n "$ac_tool_prefix"; then
1084 # Extract the first word of "ranlib", so it can be a program name with args.
1085 set dummy ranlib
; ac_word
=$2
1086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1087 echo "configure:1087: checking for $ac_word" >&5
1088 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1089 echo $ac_n "(cached) $ac_c" 1>&6
1091 if test -n "$RANLIB"; then
1092 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1094 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1096 for ac_dir
in $ac_dummy; do
1097 test -z "$ac_dir" && ac_dir
=.
1098 if test -f $ac_dir/$ac_word; then
1099 ac_cv_prog_RANLIB
="ranlib"
1104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1107 RANLIB
="$ac_cv_prog_RANLIB"
1108 if test -n "$RANLIB"; then
1109 echo "$ac_t""$RANLIB" 1>&6
1111 echo "$ac_t""no" 1>&6
1120 # Check whether --enable-shared or --disable-shared was given.
1121 if test "${enable_shared+set}" = set; then
1122 enableval
="$enable_shared"
1123 p
=${PACKAGE-default}
1124 case "$enableval" in
1125 yes) enable_shared
=yes ;;
1126 no
) enable_shared
=no
;;
1129 # Look at the argument we got. We use all the common list separators.
1130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1131 for pkg
in $enableval; do
1132 if test "X$pkg" = "X$p"; then
1144 # Check whether --enable-static or --disable-static was given.
1145 if test "${enable_static+set}" = set; then
1146 enableval
="$enable_static"
1147 p
=${PACKAGE-default}
1148 case "$enableval" in
1149 yes) enable_static
=yes ;;
1150 no
) enable_static
=no
;;
1153 # Look at the argument we got. We use all the common list separators.
1154 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1155 for pkg
in $enableval; do
1156 if test "X$pkg" = "X$p"; then
1167 # Check whether --enable-fast-install or --disable-fast-install was given.
1168 if test "${enable_fast_install+set}" = set; then
1169 enableval
="$enable_fast_install"
1170 p
=${PACKAGE-default}
1171 case "$enableval" in
1172 yes) enable_fast_install
=yes ;;
1173 no
) enable_fast_install
=no
;;
1175 enable_fast_install
=no
1176 # Look at the argument we got. We use all the common list separators.
1177 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1178 for pkg
in $enableval; do
1179 if test "X$pkg" = "X$p"; then
1180 enable_fast_install
=yes
1187 enable_fast_install
=yes
1190 # Extract the first word of "gcc", so it can be a program name with args.
1191 set dummy gcc
; ac_word
=$2
1192 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1193 echo "configure:1193: checking for $ac_word" >&5
1194 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1195 echo $ac_n "(cached) $ac_c" 1>&6
1197 if test -n "$CC"; then
1198 ac_cv_prog_CC
="$CC" # Let the user override the test.
1200 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1202 for ac_dir
in $ac_dummy; do
1203 test -z "$ac_dir" && ac_dir
=.
1204 if test -f $ac_dir/$ac_word; then
1213 if test -n "$CC"; then
1214 echo "$ac_t""$CC" 1>&6
1216 echo "$ac_t""no" 1>&6
1219 if test -z "$CC"; then
1220 # Extract the first word of "cc", so it can be a program name with args.
1221 set dummy cc
; ac_word
=$2
1222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1223 echo "configure:1223: checking for $ac_word" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1227 if test -n "$CC"; then
1228 ac_cv_prog_CC
="$CC" # Let the user override the test.
1230 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1233 for ac_dir
in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir
=.
1235 if test -f $ac_dir/$ac_word; then
1236 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1237 ac_prog_rejected
=yes
1245 if test $ac_prog_rejected = yes; then
1246 # We found a bogon in the path, so make sure we never use it.
1247 set dummy
$ac_cv_prog_CC
1249 if test $# -gt 0; then
1250 # We chose a different compiler from the bogus one.
1251 # However, it has the same basename, so the bogon will be chosen
1252 # first if we set CC to just the basename; use the full file name.
1254 set dummy
"$ac_dir/$ac_word" "$@"
1262 if test -n "$CC"; then
1263 echo "$ac_t""$CC" 1>&6
1265 echo "$ac_t""no" 1>&6
1268 if test -z "$CC"; then
1269 case "`uname -s`" in
1271 # Extract the first word of "cl", so it can be a program name with args.
1272 set dummy cl
; ac_word
=$2
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1274 echo "configure:1274: checking for $ac_word" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1278 if test -n "$CC"; then
1279 ac_cv_prog_CC
="$CC" # Let the user override the test.
1281 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1283 for ac_dir
in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir
=.
1285 if test -f $ac_dir/$ac_word; then
1294 if test -n "$CC"; then
1295 echo "$ac_t""$CC" 1>&6
1297 echo "$ac_t""no" 1>&6
1302 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1305 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1306 echo "configure:1306: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1309 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1310 ac_cpp
='$CPP $CPPFLAGS'
1311 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1312 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1313 cross_compiling
=$ac_cv_prog_cc_cross
1315 cat > conftest.
$ac_ext << EOF
1317 #line 1317 "configure"
1318 #include "confdefs.h"
1322 if { (eval echo configure
:1322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1323 ac_cv_prog_cc_works
=yes
1324 # If we can't run a trivial program, we are probably using a cross compiler.
1325 if (.
/conftest
; exit) 2>/dev
/null
; then
1326 ac_cv_prog_cc_cross
=no
1328 ac_cv_prog_cc_cross
=yes
1331 echo "configure: failed program was:" >&5
1332 cat conftest.
$ac_ext >&5
1333 ac_cv_prog_cc_works
=no
1337 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1338 ac_cpp
='$CPP $CPPFLAGS'
1339 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1340 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1341 cross_compiling
=$ac_cv_prog_cc_cross
1343 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1344 if test $ac_cv_prog_cc_works = no
; then
1345 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1347 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1348 echo "configure:1348: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1349 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1350 cross_compiling
=$ac_cv_prog_cc_cross
1352 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1353 echo "configure:1353: checking whether we are using GNU C" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 cat > conftest.c
<<EOF
1362 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
1369 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1371 if test $ac_cv_prog_gcc = yes; then
1377 ac_test_CFLAGS
="${CFLAGS+set}"
1378 ac_save_CFLAGS
="$CFLAGS"
1380 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1381 echo "configure:1381: checking whether ${CC-cc} accepts -g" >&5
1382 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 echo 'void f(){}' > conftest.c
1386 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1395 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1396 if test "$ac_test_CFLAGS" = set; then
1397 CFLAGS
="$ac_save_CFLAGS"
1398 elif test $ac_cv_prog_cc_g = yes; then
1399 if test "$GCC" = yes; then
1405 if test "$GCC" = yes; then
1412 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1413 if test "${with_gnu_ld+set}" = set; then
1414 withval
="$with_gnu_ld"
1415 test "$withval" = no || with_gnu_ld
=yes
1421 if test "$ac_cv_prog_gcc" = yes; then
1422 # Check if gcc -print-prog-name=ld gives a path.
1423 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1424 echo "configure:1424: checking for ld used by GCC" >&5
1427 # gcc leaves a trailing carriage return which upsets mingw
1428 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1430 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1433 # Accept absolute paths.
1434 [\\/]* |
[A-Za-z
]:[\\/]*)
1435 re_direlt
='/[^/][^/]*/\.\./'
1436 # Canonicalize the path of ld
1437 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1438 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1439 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1441 test -z "$LD" && LD
="$ac_prog"
1444 # If it fails, then pretend we aren't using GCC.
1448 # If it is relative, then search for the first ld in PATH.
1452 elif test "$with_gnu_ld" = yes; then
1453 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1454 echo "configure:1454: checking for GNU ld" >&5
1456 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1457 echo "configure:1457: checking for non-GNU ld" >&5
1459 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1462 if test -z "$LD"; then
1463 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1464 for ac_dir
in $PATH; do
1465 test -z "$ac_dir" && ac_dir
=.
1466 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1467 ac_cv_path_LD
="$ac_dir/$ac_prog"
1468 # Check to see if the program is GNU ld. I'd rather use --version,
1469 # but apparently some GNU ld's only accept -v.
1470 # Break only if it was the GNU/non-GNU ld that we prefer.
1471 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1472 test "$with_gnu_ld" != no
&& break
1474 test "$with_gnu_ld" != yes && break
1480 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1485 if test -n "$LD"; then
1486 echo "$ac_t""$LD" 1>&6
1488 echo "$ac_t""no" 1>&6
1490 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1491 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1492 echo "configure:1492: checking if the linker ($LD) is GNU ld" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1497 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1498 ac_cv_prog_gnu_ld
=yes
1500 ac_cv_prog_gnu_ld
=no
1504 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1505 with_gnu_ld
=$ac_cv_prog_gnu_ld
1508 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1509 echo "configure:1509: checking for $LD option to reload object files" >&5
1510 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1513 lt_cv_ld_reload_flag
='-r'
1516 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1517 reload_flag
=$lt_cv_ld_reload_flag
1518 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1520 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1521 echo "configure:1521: checking for BSD-compatible nm" >&5
1522 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 if test -n "$NM"; then
1526 # Let the user override the test.
1529 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1530 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1531 test -z "$ac_dir" && ac_dir
=.
1532 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1533 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1534 # Check to see if the nm accepts a BSD-compat flag.
1535 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1536 # nm: unknown option "B" ignored
1537 # Tru64's nm complains that /dev/null is an invalid object file
1538 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1539 ac_cv_path_NM
="$tmp_nm -B"
1541 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1542 ac_cv_path_NM
="$tmp_nm -p"
1545 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1546 continue # so that we can try to find one that supports BSD flags
1551 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1556 echo "$ac_t""$NM" 1>&6
1558 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1559 echo "configure:1559: checking whether ln -s works" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1564 if ln -s X conftestdata
2>/dev
/null
1567 ac_cv_prog_LN_S
="ln -s"
1572 LN_S
="$ac_cv_prog_LN_S"
1573 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1574 echo "$ac_t""yes" 1>&6
1576 echo "$ac_t""no" 1>&6
1579 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1580 echo "configure:1580: checking how to recognise dependant libraries" >&5
1581 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1585 lt_cv_file_magic_test_file
=
1586 lt_cv_deplibs_check_method
='unknown'
1587 # Need to set the preceding variable on all platforms that support
1588 # interlibrary dependencies.
1589 # 'none' -- dependencies not supported.
1590 # `unknown' -- same as none, but documents that we really don't know.
1591 # 'pass_all' -- all dependencies passed with no checks.
1592 # 'test_compile' -- check by making test program.
1593 # 'file_magic [regex]' -- check by looking for files in library path
1594 # which responds to the $file_magic_cmd with a given egrep regex.
1595 # If you have `file' or equivalent on your system and you're not sure
1596 # whether `pass_all' will *always* work, you probably want this one.
1600 lt_cv_deplibs_check_method
=pass_all
1604 lt_cv_deplibs_check_method
=pass_all
1608 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1609 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1610 lt_cv_file_magic_test_file
=/shlib
/libc.so
1613 cygwin
* | mingw
* |pw32
*)
1614 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1615 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1619 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1622 # Not sure whether the presence of OpenBSD here was a mistake.
1623 # Let's accept both of them until this is cleared up.
1624 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1625 lt_cv_file_magic_cmd
=/usr
/bin
/file
1626 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1630 lt_cv_deplibs_check_method
=pass_all
1635 lt_cv_deplibs_check_method
=pass_all
1639 # TODO: Does this work for hpux-11 too?
1640 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1641 lt_cv_file_magic_cmd
=/usr
/bin
/file
1642 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1648 # this will be overridden with pass_all, but let us keep it just in case
1649 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1653 *-32|
*"-32 ") libmagic
=32-bit;;
1654 *-n32|
*"-n32 ") libmagic
=N32
;;
1655 *-64|
*"-64 ") libmagic
=64-bit;;
1656 *) libmagic
=never-match
;;
1658 # this will be overridden with pass_all, but let us keep it just in case
1659 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1662 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1663 lt_cv_deplibs_check_method
=pass_all
1666 # This must be Linux ELF.
1669 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1670 lt_cv_deplibs_check_method
=pass_all
;;
1672 # glibc up to 2.1.1 does not perform some relocations on ARM
1673 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1675 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1679 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1681 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1682 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1683 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1687 osf3
* | osf4
* | osf5
*)
1688 # this will be overridden with pass_all, but let us keep it just in case
1689 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1690 lt_cv_file_magic_test_file
=/shlib
/libc.so
1691 lt_cv_deplibs_check_method
=pass_all
1695 lt_cv_deplibs_check_method
=pass_all
1699 lt_cv_deplibs_check_method
=pass_all
1700 lt_cv_file_magic_test_file
=/lib
/libc.so
1703 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1704 case "$host_vendor" in
1706 lt_cv_deplibs_check_method
=pass_all
1709 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]'
1710 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1718 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1719 file_magic_cmd
=$lt_cv_file_magic_cmd
1720 deplibs_check_method
=$lt_cv_deplibs_check_method
1722 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1723 echo "configure:1723: checking for object suffix" >&5
1724 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1728 echo 'int i = 1;' > conftest.
$ac_ext
1729 if { (eval echo configure
:1729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1730 for ac_file
in conftest.
*; do
1733 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1737 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1742 echo "$ac_t""$ac_cv_objext" 1>&6
1743 OBJEXT
=$ac_cv_objext
1744 ac_objext
=$ac_cv_objext
1748 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1749 echo "configure:1749: checking for executable suffix" >&5
1750 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1753 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1757 echo 'int main () { return 0; }' > conftest.
$ac_ext
1759 if { (eval echo configure
:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1760 for file in conftest.
*; do
1762 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1763 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1767 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1770 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1775 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1776 echo "$ac_t""${ac_cv_exeext}" 1>&6
1779 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1781 # Only perform the check for file, if the check method requires it
1782 case "$deplibs_check_method" in
1784 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1785 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1786 echo "configure:1786: checking for ${ac_tool_prefix}file" >&5
1787 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 case "$MAGIC_CMD" in
1792 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1795 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1798 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1799 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1800 ac_dummy
="/usr/bin:$PATH"
1801 for ac_dir
in $ac_dummy; do
1802 test -z "$ac_dir" && ac_dir
=.
1803 if test -f $ac_dir/${ac_tool_prefix}file; then
1804 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1805 if test -n "$file_magic_test_file"; then
1806 case "$deplibs_check_method" in
1808 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1809 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1810 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1811 egrep "$file_magic_regex" > /dev
/null
; then
1816 *** Warning: the command libtool uses to detect shared libraries,
1817 *** $file_magic_cmd, produces output that libtool cannot recognize.
1818 *** The result is that libtool may fail to recognize shared libraries
1819 *** as such. This will affect the creation of libtool libraries that
1820 *** depend on shared libraries, but programs linked with such libtool
1821 *** libraries will work regardless of this problem. Nevertheless, you
1822 *** may want to report the problem to your system manager and/or to
1823 *** bug-libtool@gnu.org
1833 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1838 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1839 if test -n "$MAGIC_CMD"; then
1840 echo "$ac_t""$MAGIC_CMD" 1>&6
1842 echo "$ac_t""no" 1>&6
1845 if test -z "$lt_cv_path_MAGIC_CMD"; then
1846 if test -n "$ac_tool_prefix"; then
1847 echo $ac_n "checking for file""... $ac_c" 1>&6
1848 echo "configure:1848: checking for file" >&5
1849 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1852 case "$MAGIC_CMD" in
1854 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1857 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1860 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1861 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1862 ac_dummy
="/usr/bin:$PATH"
1863 for ac_dir
in $ac_dummy; do
1864 test -z "$ac_dir" && ac_dir
=.
1865 if test -f $ac_dir/file; then
1866 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1867 if test -n "$file_magic_test_file"; then
1868 case "$deplibs_check_method" in
1870 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1871 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1872 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1873 egrep "$file_magic_regex" > /dev
/null
; then
1878 *** Warning: the command libtool uses to detect shared libraries,
1879 *** $file_magic_cmd, produces output that libtool cannot recognize.
1880 *** The result is that libtool may fail to recognize shared libraries
1881 *** as such. This will affect the creation of libtool libraries that
1882 *** depend on shared libraries, but programs linked with such libtool
1883 *** libraries will work regardless of this problem. Nevertheless, you
1884 *** may want to report the problem to your system manager and/or to
1885 *** bug-libtool@gnu.org
1895 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1900 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1901 if test -n "$MAGIC_CMD"; then
1902 echo "$ac_t""$MAGIC_CMD" 1>&6
1904 echo "$ac_t""no" 1>&6
1916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1917 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1918 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1919 echo "configure:1919: checking for $ac_word" >&5
1920 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 if test -n "$RANLIB"; then
1924 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1926 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1928 for ac_dir
in $ac_dummy; do
1929 test -z "$ac_dir" && ac_dir
=.
1930 if test -f $ac_dir/$ac_word; then
1931 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1938 RANLIB
="$ac_cv_prog_RANLIB"
1939 if test -n "$RANLIB"; then
1940 echo "$ac_t""$RANLIB" 1>&6
1942 echo "$ac_t""no" 1>&6
1946 if test -z "$ac_cv_prog_RANLIB"; then
1947 if test -n "$ac_tool_prefix"; then
1948 # Extract the first word of "ranlib", so it can be a program name with args.
1949 set dummy ranlib
; ac_word
=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1951: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test -n "$RANLIB"; then
1956 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1960 for ac_dir
in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir
=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_RANLIB
="ranlib"
1968 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1971 RANLIB
="$ac_cv_prog_RANLIB"
1972 if test -n "$RANLIB"; then
1973 echo "$ac_t""$RANLIB" 1>&6
1975 echo "$ac_t""no" 1>&6
1983 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1984 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1986 echo "configure:1986: checking for $ac_word" >&5
1987 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 if test -n "$STRIP"; then
1991 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1993 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1995 for ac_dir
in $ac_dummy; do
1996 test -z "$ac_dir" && ac_dir
=.
1997 if test -f $ac_dir/$ac_word; then
1998 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2005 STRIP
="$ac_cv_prog_STRIP"
2006 if test -n "$STRIP"; then
2007 echo "$ac_t""$STRIP" 1>&6
2009 echo "$ac_t""no" 1>&6
2013 if test -z "$ac_cv_prog_STRIP"; then
2014 if test -n "$ac_tool_prefix"; then
2015 # Extract the first word of "strip", so it can be a program name with args.
2016 set dummy strip
; ac_word
=$2
2017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2018 echo "configure:2018: checking for $ac_word" >&5
2019 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 if test -n "$STRIP"; then
2023 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2025 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2027 for ac_dir
in $ac_dummy; do
2028 test -z "$ac_dir" && ac_dir
=.
2029 if test -f $ac_dir/$ac_word; then
2030 ac_cv_prog_STRIP
="strip"
2035 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2038 STRIP
="$ac_cv_prog_STRIP"
2039 if test -n "$STRIP"; then
2040 echo "$ac_t""$STRIP" 1>&6
2042 echo "$ac_t""no" 1>&6
2051 # Check for any special flags to pass to ltconfig.
2052 libtool_flags
="--cache-file=$cache_file"
2053 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2054 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2055 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2056 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2057 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2060 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2061 if test "${enable_libtool_lock+set}" = set; then
2062 enableval
="$enable_libtool_lock"
2066 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2067 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2069 # Check whether --with-pic or --without-pic was given.
2070 if test "${with_pic+set}" = set; then
2077 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2078 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2080 # Some flags need to be propagated to the compiler or linker for good
2084 # Find out which ABI we are using.
2085 echo '#line 2085 "configure"' > conftest.
$ac_ext
2086 if { (eval echo configure
:2086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 case "`/usr/bin/file conftest.o`" in
2103 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2104 SAVE_CFLAGS
="$CFLAGS"
2105 CFLAGS
="$CFLAGS -belf"
2106 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2107 echo "configure:2107: checking whether the C compiler needs -belf" >&5
2108 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2113 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2114 ac_cpp
='$CPP $CPPFLAGS'
2115 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2116 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2117 cross_compiling
=$ac_cv_prog_cc_cross
2119 cat > conftest.
$ac_ext <<EOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2127 if { (eval echo configure
:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2129 lt_cv_cc_needs_belf
=yes
2131 echo "configure: failed program was:" >&5
2132 cat conftest.
$ac_ext >&5
2134 lt_cv_cc_needs_belf
=no
2138 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2139 ac_cpp
='$CPP $CPPFLAGS'
2140 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2141 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2142 cross_compiling
=$ac_cv_prog_cc_cross
2146 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2147 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2148 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2149 CFLAGS
="$SAVE_CFLAGS"
2157 # Save cache, so that ltconfig can load it
2158 cat > confcache
<<\EOF
2159 # This file is a shell script that caches the results of configure
2160 # tests run on this system so they can be shared between configure
2161 # scripts and configure runs. It is not useful on other systems.
2162 # If it contains results you don't want to keep, you may remove or edit it.
2164 # By default, configure uses ./config.cache as the cache file,
2165 # creating it if it does not exist already. You can give configure
2166 # the --cache-file=FILE option to use a different cache file; that is
2167 # what configure does when it calls configure scripts in
2168 # subdirectories, so they share the cache.
2169 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2170 # config.status only pays attention to the cache file if you give it the
2171 # --recheck option to rerun configure.
2174 # The following way of writing the cache mishandles newlines in values,
2175 # but we know of no workaround that is simple, portable, and efficient.
2176 # So, don't put newlines in cache variables' values.
2177 # Ultrix sh set writes to stderr and can't be redirected directly,
2178 # and sets the high bit in the cache file unless we assign to the vars.
2180 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2182 # `set' does not quote correctly, so add quotes (double-quote substitution
2183 # turns \\\\ into \\, and sed turns \\ into \).
2185 -e "s/'/'\\\\''/g" \
2186 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2189 # `set' quotes correctly as required by POSIX, so do not add quotes.
2190 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2193 if cmp -s $cache_file confcache
; then
2196 if test -w $cache_file; then
2197 echo "updating cache $cache_file"
2198 cat confcache
> $cache_file
2200 echo "not updating unwritable cache $cache_file"
2206 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2207 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2208 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2209 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2210 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2211 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2212 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2213 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2214 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2215 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2217 # Reload cache, that may have been modified by ltconfig
2218 if test -r "$cache_file"; then
2219 echo "loading cache $cache_file"
2222 echo "creating cache $cache_file"
2227 # This can be used to rebuild libtool when needed
2228 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2230 # Always use our own libtool.
2231 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2233 # Redirect the config.log output again, so that the ltconfig log is not
2234 # clobbered by the next message.
2235 exec 5>>.
/config.log
2244 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
2245 if test "${enable_64_bit_bfd+set}" = set; then
2246 enableval
="$enable_64_bit_bfd"
2247 case "${enableval}" in
2250 *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;;
2255 # Check whether --enable-targets or --disable-targets was given.
2256 if test "${enable_targets+set}" = set; then
2257 enableval
="$enable_targets"
2258 case "${enableval}" in
2259 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2261 no
) enable_targets
= ;;
2262 *) enable_targets
=$enableval ;;
2265 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2266 if test "${enable_commonbfdlib+set}" = set; then
2267 enableval
="$enable_commonbfdlib"
2268 case "${enableval}" in
2269 yes) commonbfdlib
=true
;;
2270 no
) commonbfdlib
=false
;;
2271 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2274 # Check whether --with-mmap or --without-mmap was given.
2275 if test "${with_mmap+set}" = set; then
2276 withval
="$with_mmap"
2277 case "${withval}" in
2278 yes) want_mmap
=true
;;
2279 no
) want_mmap
=false
;;
2280 *) { echo "configure: error: bad value ${withval} for BFD with-mmap option" 1>&2; exit 1; } ;;
2286 build_warnings
="-W -Wall"
2287 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2288 if test "${enable_build_warnings+set}" = set; then
2289 enableval
="$enable_build_warnings"
2290 case "${enableval}" in
2292 no
) build_warnings
="-w";;
2293 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2294 build_warnings
="${build_warnings} ${t}";;
2295 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2296 build_warnings
="${t} ${build_warnings}";;
2297 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2299 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2300 echo "Setting warning flags = $build_warnings" 6>&1
2304 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2305 WARN_CFLAGS
="${build_warnings}"
2313 if test -z "$target" ; then
2314 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2316 if test "$program_transform_name" = s
,x
,x
,; then
2317 program_transform_name
=
2319 # Double any \ or $. echo might interpret backslashes.
2320 cat <<\EOF_SED
> conftestsed
2321 s
,\\,\\\\,g
; s
,\$
,$$
,g
2323 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2326 test "$program_prefix" != NONE
&&
2327 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2328 # Use a double $ so make ignores it.
2329 test "$program_suffix" != NONE
&&
2330 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2332 # sed with no file args requires a program.
2333 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2336 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2337 echo "configure:2337: checking whether to enable maintainer-specific portions of Makefiles" >&5
2338 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2339 if test "${enable_maintainer_mode+set}" = set; then
2340 enableval
="$enable_maintainer_mode"
2341 USE_MAINTAINER_MODE
=$enableval
2343 USE_MAINTAINER_MODE
=no
2346 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2349 if test $USE_MAINTAINER_MODE = yes; then
2350 MAINTAINER_MODE_TRUE
=
2351 MAINTAINER_MODE_FALSE
='#'
2353 MAINTAINER_MODE_TRUE
='#'
2354 MAINTAINER_MODE_FALSE
=
2356 MAINT
=$MAINTAINER_MODE_TRUE
2361 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2362 echo "configure:2362: checking for executable suffix" >&5
2363 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2366 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2370 echo 'int main () { return 0; }' > conftest.
$ac_ext
2372 if { (eval echo configure
:2372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2373 for file in conftest.
*; do
2375 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2376 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2380 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2383 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2388 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2389 echo "$ac_t""${ac_cv_exeext}" 1>&6
2398 # Extract the first word of "gcc", so it can be a program name with args.
2399 set dummy gcc
; ac_word
=$2
2400 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2401 echo "configure:2401: checking for $ac_word" >&5
2402 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC
="$CC" # Let the user override the test.
2408 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2410 for ac_dir
in $ac_dummy; do
2411 test -z "$ac_dir" && ac_dir
=.
2412 if test -f $ac_dir/$ac_word; then
2421 if test -n "$CC"; then
2422 echo "$ac_t""$CC" 1>&6
2424 echo "$ac_t""no" 1>&6
2427 if test -z "$CC"; then
2428 # Extract the first word of "cc", so it can be a program name with args.
2429 set dummy cc
; ac_word
=$2
2430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2431 echo "configure:2431: checking for $ac_word" >&5
2432 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2435 if test -n "$CC"; then
2436 ac_cv_prog_CC
="$CC" # Let the user override the test.
2438 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2441 for ac_dir
in $ac_dummy; do
2442 test -z "$ac_dir" && ac_dir
=.
2443 if test -f $ac_dir/$ac_word; then
2444 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2445 ac_prog_rejected
=yes
2453 if test $ac_prog_rejected = yes; then
2454 # We found a bogon in the path, so make sure we never use it.
2455 set dummy
$ac_cv_prog_CC
2457 if test $# -gt 0; then
2458 # We chose a different compiler from the bogus one.
2459 # However, it has the same basename, so the bogon will be chosen
2460 # first if we set CC to just the basename; use the full file name.
2462 set dummy
"$ac_dir/$ac_word" "$@"
2470 if test -n "$CC"; then
2471 echo "$ac_t""$CC" 1>&6
2473 echo "$ac_t""no" 1>&6
2476 if test -z "$CC"; then
2477 case "`uname -s`" in
2479 # Extract the first word of "cl", so it can be a program name with args.
2480 set dummy cl
; ac_word
=$2
2481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482 echo "configure:2482: checking for $ac_word" >&5
2483 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 if test -n "$CC"; then
2487 ac_cv_prog_CC
="$CC" # Let the user override the test.
2489 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2491 for ac_dir
in $ac_dummy; do
2492 test -z "$ac_dir" && ac_dir
=.
2493 if test -f $ac_dir/$ac_word; then
2502 if test -n "$CC"; then
2503 echo "$ac_t""$CC" 1>&6
2505 echo "$ac_t""no" 1>&6
2510 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2513 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2514 echo "configure:2514: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2518 ac_cpp
='$CPP $CPPFLAGS'
2519 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2520 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2521 cross_compiling
=$ac_cv_prog_cc_cross
2523 cat > conftest.
$ac_ext << EOF
2525 #line 2525 "configure"
2526 #include "confdefs.h"
2530 if { (eval echo configure
:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2531 ac_cv_prog_cc_works
=yes
2532 # If we can't run a trivial program, we are probably using a cross compiler.
2533 if (.
/conftest
; exit) 2>/dev
/null
; then
2534 ac_cv_prog_cc_cross
=no
2536 ac_cv_prog_cc_cross
=yes
2539 echo "configure: failed program was:" >&5
2540 cat conftest.
$ac_ext >&5
2541 ac_cv_prog_cc_works
=no
2545 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2546 ac_cpp
='$CPP $CPPFLAGS'
2547 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2548 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2549 cross_compiling
=$ac_cv_prog_cc_cross
2551 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2552 if test $ac_cv_prog_cc_works = no
; then
2553 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2555 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2556 echo "configure:2556: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2557 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2558 cross_compiling
=$ac_cv_prog_cc_cross
2560 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2561 echo "configure:2561: checking whether we are using GNU C" >&5
2562 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.c
<<EOF
2570 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2577 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2579 if test $ac_cv_prog_gcc = yes; then
2585 ac_test_CFLAGS
="${CFLAGS+set}"
2586 ac_save_CFLAGS
="$CFLAGS"
2588 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2589 echo "configure:2589: checking whether ${CC-cc} accepts -g" >&5
2590 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 echo 'void f(){}' > conftest.c
2594 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2603 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2604 if test "$ac_test_CFLAGS" = set; then
2605 CFLAGS
="$ac_save_CFLAGS"
2606 elif test $ac_cv_prog_cc_g = yes; then
2607 if test "$GCC" = yes; then
2613 if test "$GCC" = yes; then
2622 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2623 echo "configure:2623: checking how to run the C preprocessor" >&5
2624 # On Suns, sometimes $CPP names a directory.
2625 if test -n "$CPP" && test -d "$CPP"; then
2628 if test -z "$CPP"; then
2629 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2632 # This must be in double quotes, not single quotes, because CPP may get
2633 # substituted into the Makefile and "${CC-cc}" will confuse make.
2635 # On the NeXT, cc -E runs the code through the compiler's parser,
2636 # not just through cpp.
2637 cat > conftest.
$ac_ext <<EOF
2638 #line 2638 "configure"
2639 #include "confdefs.h"
2643 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2644 { (eval echo configure
:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2645 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2646 if test -z "$ac_err"; then
2650 echo "configure: failed program was:" >&5
2651 cat conftest.
$ac_ext >&5
2653 CPP
="${CC-cc} -E -traditional-cpp"
2654 cat > conftest.
$ac_ext <<EOF
2655 #line 2655 "configure"
2656 #include "confdefs.h"
2660 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2661 { (eval echo configure
:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2662 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2663 if test -z "$ac_err"; then
2667 echo "configure: failed program was:" >&5
2668 cat conftest.
$ac_ext >&5
2670 CPP
="${CC-cc} -nologo -E"
2671 cat > conftest.
$ac_ext <<EOF
2672 #line 2672 "configure"
2673 #include "confdefs.h"
2677 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2678 { (eval echo configure
:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2679 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2680 if test -z "$ac_err"; then
2684 echo "configure: failed program was:" >&5
2685 cat conftest.
$ac_ext >&5
2694 ac_cv_prog_CPP
="$CPP"
2696 CPP
="$ac_cv_prog_CPP"
2698 ac_cv_prog_CPP
="$CPP"
2700 echo "$ac_t""$CPP" 1>&6
2702 # Extract the first word of "ranlib", so it can be a program name with args.
2703 set dummy ranlib
; ac_word
=$2
2704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2705 echo "configure:2705: checking for $ac_word" >&5
2706 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2707 echo $ac_n "(cached) $ac_c" 1>&6
2709 if test -n "$RANLIB"; then
2710 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2712 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2714 for ac_dir
in $ac_dummy; do
2715 test -z "$ac_dir" && ac_dir
=.
2716 if test -f $ac_dir/$ac_word; then
2717 ac_cv_prog_RANLIB
="ranlib"
2722 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2725 RANLIB
="$ac_cv_prog_RANLIB"
2726 if test -n "$RANLIB"; then
2727 echo "$ac_t""$RANLIB" 1>&6
2729 echo "$ac_t""no" 1>&6
2732 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2733 echo "configure:2733: checking for ANSI C header files" >&5
2734 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 cat > conftest.
$ac_ext <<EOF
2738 #line 2738 "configure"
2739 #include "confdefs.h"
2745 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2746 { (eval echo configure
:2746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2747 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2748 if test -z "$ac_err"; then
2750 ac_cv_header_stdc
=yes
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2756 ac_cv_header_stdc
=no
2760 if test $ac_cv_header_stdc = yes; then
2761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2762 cat > conftest.
$ac_ext <<EOF
2763 #line 2763 "configure"
2764 #include "confdefs.h"
2767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2768 egrep "memchr" >/dev
/null
2>&1; then
2772 ac_cv_header_stdc
=no
2778 if test $ac_cv_header_stdc = yes; then
2779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2780 cat > conftest.
$ac_ext <<EOF
2781 #line 2781 "configure"
2782 #include "confdefs.h"
2785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2786 egrep "free" >/dev
/null
2>&1; then
2790 ac_cv_header_stdc
=no
2796 if test $ac_cv_header_stdc = yes; then
2797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2798 if test "$cross_compiling" = yes; then
2801 cat > conftest.
$ac_ext <<EOF
2802 #line 2802 "configure"
2803 #include "confdefs.h"
2805 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2806 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2808 int main () { int i; for (i = 0; i < 256; i++)
2809 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2813 if { (eval echo configure
:2813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2817 echo "configure: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2820 ac_cv_header_stdc
=no
2828 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2829 if test $ac_cv_header_stdc = yes; then
2830 cat >> confdefs.h
<<\EOF
2831 #define STDC_HEADERS 1
2836 echo $ac_n "checking for working const""... $ac_c" 1>&6
2837 echo "configure:2837: checking for working const" >&5
2838 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 cat > conftest.
$ac_ext <<EOF
2842 #line 2842 "configure"
2843 #include "confdefs.h"
2847 /* Ultrix mips cc rejects this. */
2848 typedef int charset[2]; const charset x;
2849 /* SunOS 4.1.1 cc rejects this. */
2850 char const *const *ccp;
2852 /* NEC SVR4.0.2 mips cc rejects this. */
2853 struct point {int x, y;};
2854 static struct point const zero = {0,0};
2855 /* AIX XL C 1.02.0.0 rejects this.
2856 It does not let you subtract one const X* pointer from another in an arm
2857 of an if-expression whose if-part is not a constant expression */
2858 const char *g = "string";
2859 ccp = &g + (g ? g-g : 0);
2860 /* HPUX 7.0 cc rejects these. */
2863 ccp = (char const *const *) p;
2864 { /* SCO 3.2v4 cc rejects this. */
2866 char const *s = 0 ? (char *) 0 : (char const *) 0;
2870 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2872 const int *foo = &x[0];
2875 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2876 typedef const int *iptr;
2880 { /* AIX XL C 1.02.0.0 rejects this saying
2881 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2882 struct s { int j; const int *ap[3]; };
2883 struct s *b; b->j = 5;
2885 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2891 if { (eval echo configure
:2891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2895 echo "configure: failed program was:" >&5
2896 cat conftest.
$ac_ext >&5
2903 echo "$ac_t""$ac_cv_c_const" 1>&6
2904 if test $ac_cv_c_const = no
; then
2905 cat >> confdefs.h
<<\EOF
2911 echo $ac_n "checking for inline""... $ac_c" 1>&6
2912 echo "configure:2912: checking for inline" >&5
2913 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2917 for ac_kw
in inline __inline__ __inline
; do
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2919 "configure"
2920 #include "confdefs.h"
2926 if { (eval echo configure
:2926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2928 ac_cv_c_inline
=$ac_kw; break
2930 echo "configure: failed program was:" >&5
2931 cat conftest.
$ac_ext >&5
2938 echo "$ac_t""$ac_cv_c_inline" 1>&6
2939 case "$ac_cv_c_inline" in
2941 no
) cat >> confdefs.h
<<\EOF
2945 *) cat >> confdefs.h
<<EOF
2946 #define inline $ac_cv_c_inline
2951 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2952 echo "configure:2952: checking for off_t" >&5
2953 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 cat > conftest.
$ac_ext <<EOF
2957 #line 2957 "configure"
2958 #include "confdefs.h"
2959 #include <sys/types.h>
2965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2966 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2968 ac_cv_type_off_t
=yes
2976 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2977 if test $ac_cv_type_off_t = no
; then
2978 cat >> confdefs.h
<<\EOF
2984 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2985 echo "configure:2985: checking for size_t" >&5
2986 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.
$ac_ext <<EOF
2990 #line 2990 "configure"
2991 #include "confdefs.h"
2992 #include <sys/types.h>
2998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2999 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3001 ac_cv_type_size_t
=yes
3004 ac_cv_type_size_t
=no
3009 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3010 if test $ac_cv_type_size_t = no
; then
3011 cat >> confdefs.h
<<\EOF
3012 #define size_t unsigned
3017 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3018 # for constant arguments. Useless!
3019 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3020 echo "configure:3020: checking for working alloca.h" >&5
3021 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3025 "configure"
3026 #include "confdefs.h"
3029 char *p = alloca(2 * sizeof(int));
3032 if { (eval echo configure
:3032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3034 ac_cv_header_alloca_h
=yes
3036 echo "configure: failed program was:" >&5
3037 cat conftest.
$ac_ext >&5
3039 ac_cv_header_alloca_h
=no
3044 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3045 if test $ac_cv_header_alloca_h = yes; then
3046 cat >> confdefs.h
<<\EOF
3047 #define HAVE_ALLOCA_H 1
3052 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3053 echo "configure:3053: checking for alloca" >&5
3054 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.
$ac_ext <<EOF
3058 #line 3058 "configure"
3059 #include "confdefs.h"
3062 # define alloca __builtin_alloca
3065 # include <malloc.h>
3066 # define alloca _alloca
3069 # include <alloca.h>
3074 # ifndef alloca /* predefined by HP cc +Olibcalls */
3083 char *p = (char *) alloca(1);
3086 if { (eval echo configure
:3086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3088 ac_cv_func_alloca_works
=yes
3090 echo "configure: failed program was:" >&5
3091 cat conftest.
$ac_ext >&5
3093 ac_cv_func_alloca_works
=no
3098 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3099 if test $ac_cv_func_alloca_works = yes; then
3100 cat >> confdefs.h
<<\EOF
3101 #define HAVE_ALLOCA 1
3106 if test $ac_cv_func_alloca_works = no
; then
3107 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3108 # that cause trouble. Some versions do not even contain alloca or
3109 # contain a buggy version. If you still want to use their alloca,
3110 # use ar to extract alloca.o from them instead of compiling alloca.c.
3111 ALLOCA
=alloca.
${ac_objext}
3112 cat >> confdefs.h
<<\EOF
3117 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3118 echo "configure:3118: checking whether alloca needs Cray hooks" >&5
3119 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 cat > conftest.
$ac_ext <<EOF
3123 #line 3123 "configure"
3124 #include "confdefs.h"
3125 #if defined(CRAY) && ! defined(CRAY2)
3132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3133 egrep "webecray" >/dev
/null
2>&1; then
3144 echo "$ac_t""$ac_cv_os_cray" 1>&6
3145 if test $ac_cv_os_cray = yes; then
3146 for ac_func
in _getb67 GETB67 getb67
; do
3147 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3148 echo "configure:3148: checking for $ac_func" >&5
3149 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 cat > conftest.
$ac_ext <<EOF
3153 #line 3153 "configure"
3154 #include "confdefs.h"
3155 /* System header to define __stub macros and hopefully few prototypes,
3156 which can conflict with char $ac_func(); below. */
3158 /* Override any gcc2 internal prototype to avoid an error. */
3159 /* We use char because int might match the return type of a gcc2
3160 builtin and then its argument prototype would still apply. */
3165 /* The GNU C library defines this for functions which it implements
3166 to always fail with ENOSYS. Some functions are actually named
3167 something starting with __ and the normal name is an alias. */
3168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3176 if { (eval echo configure
:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3178 eval "ac_cv_func_$ac_func=yes"
3180 echo "configure: failed program was:" >&5
3181 cat conftest.
$ac_ext >&5
3183 eval "ac_cv_func_$ac_func=no"
3188 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3189 echo "$ac_t""yes" 1>&6
3190 cat >> confdefs.h
<<EOF
3191 #define CRAY_STACKSEG_END $ac_func
3196 echo "$ac_t""no" 1>&6
3202 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3203 echo "configure:3203: checking stack direction for C alloca" >&5
3204 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 if test "$cross_compiling" = yes; then
3208 ac_cv_c_stack_direction
=0
3210 cat > conftest.
$ac_ext <<EOF
3211 #line 3211 "configure"
3212 #include "confdefs.h"
3213 find_stack_direction ()
3215 static char *addr = 0;
3220 return find_stack_direction ();
3223 return (&dummy > addr) ? 1 : -1;
3227 exit (find_stack_direction() < 0);
3230 if { (eval echo configure
:3230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3232 ac_cv_c_stack_direction
=1
3234 echo "configure: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3237 ac_cv_c_stack_direction
=-1
3244 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3245 cat >> confdefs.h
<<EOF
3246 #define STACK_DIRECTION $ac_cv_c_stack_direction
3251 for ac_hdr
in unistd.h
3253 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3255 echo "configure:3255: checking for $ac_hdr" >&5
3256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3260 "configure"
3261 #include "confdefs.h"
3264 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3265 { (eval echo configure
:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3266 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3267 if test -z "$ac_err"; then
3269 eval "ac_cv_header_$ac_safe=yes"
3272 echo "configure: failed program was:" >&5
3273 cat conftest.
$ac_ext >&5
3275 eval "ac_cv_header_$ac_safe=no"
3279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3282 cat >> confdefs.h
<<EOF
3283 #define $ac_tr_hdr 1
3287 echo "$ac_t""no" 1>&6
3291 for ac_func
in getpagesize
3293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3294 echo "configure:3294: checking for $ac_func" >&5
3295 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 cat > conftest.
$ac_ext <<EOF
3299 #line 3299 "configure"
3300 #include "confdefs.h"
3301 /* System header to define __stub macros and hopefully few prototypes,
3302 which can conflict with char $ac_func(); below. */
3304 /* Override any gcc2 internal prototype to avoid an error. */
3305 /* We use char because int might match the return type of a gcc2
3306 builtin and then its argument prototype would still apply. */
3311 /* The GNU C library defines this for functions which it implements
3312 to always fail with ENOSYS. Some functions are actually named
3313 something starting with __ and the normal name is an alias. */
3314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3322 if { (eval echo configure
:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3324 eval "ac_cv_func_$ac_func=yes"
3326 echo "configure: failed program was:" >&5
3327 cat conftest.
$ac_ext >&5
3329 eval "ac_cv_func_$ac_func=no"
3334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3335 echo "$ac_t""yes" 1>&6
3336 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3337 cat >> confdefs.h
<<EOF
3338 #define $ac_tr_func 1
3342 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3347 echo "configure:3347: checking for working mmap" >&5
3348 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 if test "$cross_compiling" = yes; then
3352 ac_cv_func_mmap_fixed_mapped
=no
3354 cat > conftest.
$ac_ext <<EOF
3355 #line 3355 "configure"
3356 #include "confdefs.h"
3358 /* Thanks to Mike Haertel and Jim Avera for this test.
3359 Here is a matrix of mmap possibilities:
3360 mmap private not fixed
3361 mmap private fixed at somewhere currently unmapped
3362 mmap private fixed at somewhere already mapped
3363 mmap shared not fixed
3364 mmap shared fixed at somewhere currently unmapped
3365 mmap shared fixed at somewhere already mapped
3366 For private mappings, we should verify that changes cannot be read()
3367 back from the file, nor mmap's back from the file at a different
3368 address. (There have been systems where private was not correctly
3369 implemented like the infamous i386 svr4.0, and systems where the
3370 VM page cache was not coherent with the filesystem buffer cache
3371 like early versions of FreeBSD and possibly contemporary NetBSD.)
3372 For shared mappings, we should conversely verify that changes get
3373 propogated back to all the places they're supposed to be.
3375 Grep wants private fixed already mapped.
3376 The main things grep needs to know about mmap are:
3377 * does it exist and is it safe to write into the mmap'd area
3378 * how to use it (BSD variants) */
3379 #include <sys/types.h>
3381 #include <sys/mman.h>
3383 /* This mess was copied from the GNU getpagesize.h. */
3384 #ifndef HAVE_GETPAGESIZE
3385 # ifdef HAVE_UNISTD_H
3386 # include <unistd.h>
3389 /* Assume that all systems that can run configure have sys/param.h. */
3390 # ifndef HAVE_SYS_PARAM_H
3391 # define HAVE_SYS_PARAM_H 1
3394 # ifdef _SC_PAGESIZE
3395 # define getpagesize() sysconf(_SC_PAGESIZE)
3396 # else /* no _SC_PAGESIZE */
3397 # ifdef HAVE_SYS_PARAM_H
3398 # include <sys/param.h>
3399 # ifdef EXEC_PAGESIZE
3400 # define getpagesize() EXEC_PAGESIZE
3401 # else /* no EXEC_PAGESIZE */
3403 # define getpagesize() NBPG * CLSIZE
3406 # endif /* no CLSIZE */
3407 # else /* no NBPG */
3409 # define getpagesize() NBPC
3410 # else /* no NBPC */
3412 # define getpagesize() PAGESIZE
3413 # endif /* PAGESIZE */
3414 # endif /* no NBPC */
3415 # endif /* no NBPG */
3416 # endif /* no EXEC_PAGESIZE */
3417 # else /* no HAVE_SYS_PARAM_H */
3418 # define getpagesize() 8192 /* punt totally */
3419 # endif /* no HAVE_SYS_PARAM_H */
3420 # endif /* no _SC_PAGESIZE */
3422 #endif /* no HAVE_GETPAGESIZE */
3425 extern "C" { void *malloc(unsigned); }
3433 char *data, *data2, *data3;
3437 pagesize = getpagesize();
3440 * First, make a file with some known garbage in it.
3442 data = malloc(pagesize);
3445 for (i = 0; i < pagesize; ++i)
3446 *(data + i) = rand();
3448 fd = creat("conftestmmap", 0600);
3451 if (write(fd, data, pagesize) != pagesize)
3456 * Next, try to mmap the file at a fixed address which
3457 * already has something else allocated at it. If we can,
3458 * also make sure that we see the same garbage.
3460 fd = open("conftestmmap", O_RDWR);
3463 data2 = malloc(2 * pagesize);
3466 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3467 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3468 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3470 for (i = 0; i < pagesize; ++i)
3471 if (*(data + i) != *(data2 + i))
3475 * Finally, make sure that changes to the mapped area
3476 * do not percolate back to the file as seen by read().
3477 * (This is a bug on some variants of i386 svr4.0.)
3479 for (i = 0; i < pagesize; ++i)
3480 *(data2 + i) = *(data2 + i) + 1;
3481 data3 = malloc(pagesize);
3484 if (read(fd, data3, pagesize) != pagesize)
3486 for (i = 0; i < pagesize; ++i)
3487 if (*(data + i) != *(data3 + i))
3490 unlink("conftestmmap");
3495 if { (eval echo configure
:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3497 ac_cv_func_mmap_fixed_mapped
=yes
3499 echo "configure: failed program was:" >&5
3500 cat conftest.
$ac_ext >&5
3502 ac_cv_func_mmap_fixed_mapped
=no
3509 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3510 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3511 cat >> confdefs.h
<<\EOF
3518 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3519 unistd.h values.h sys
/param.h
3521 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3523 echo "configure:3523: checking for $ac_hdr" >&5
3524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3527 cat > conftest.
$ac_ext <<EOF
3528 #line 3528 "configure"
3529 #include "confdefs.h"
3532 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3533 { (eval echo configure
:3533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3534 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3535 if test -z "$ac_err"; then
3537 eval "ac_cv_header_$ac_safe=yes"
3540 echo "configure: failed program was:" >&5
3541 cat conftest.
$ac_ext >&5
3543 eval "ac_cv_header_$ac_safe=no"
3547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3550 cat >> confdefs.h
<<EOF
3551 #define $ac_tr_hdr 1
3555 echo "$ac_t""no" 1>&6
3559 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3560 __argz_count __argz_stringify __argz_next
3562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3563 echo "configure:3563: checking for $ac_func" >&5
3564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3567 cat > conftest.
$ac_ext <<EOF
3568 #line 3568 "configure"
3569 #include "confdefs.h"
3570 /* System header to define __stub macros and hopefully few prototypes,
3571 which can conflict with char $ac_func(); below. */
3573 /* Override any gcc2 internal prototype to avoid an error. */
3574 /* We use char because int might match the return type of a gcc2
3575 builtin and then its argument prototype would still apply. */
3580 /* The GNU C library defines this for functions which it implements
3581 to always fail with ENOSYS. Some functions are actually named
3582 something starting with __ and the normal name is an alias. */
3583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3591 if { (eval echo configure
:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3593 eval "ac_cv_func_$ac_func=yes"
3595 echo "configure: failed program was:" >&5
3596 cat conftest.
$ac_ext >&5
3598 eval "ac_cv_func_$ac_func=no"
3603 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3604 echo "$ac_t""yes" 1>&6
3605 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3606 cat >> confdefs.h
<<EOF
3607 #define $ac_tr_func 1
3611 echo "$ac_t""no" 1>&6
3616 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3617 for ac_func
in stpcpy
3619 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3620 echo "configure:3620: checking for $ac_func" >&5
3621 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3622 echo $ac_n "(cached) $ac_c" 1>&6
3624 cat > conftest.
$ac_ext <<EOF
3625 #line 3625 "configure"
3626 #include "confdefs.h"
3627 /* System header to define __stub macros and hopefully few prototypes,
3628 which can conflict with char $ac_func(); below. */
3630 /* Override any gcc2 internal prototype to avoid an error. */
3631 /* We use char because int might match the return type of a gcc2
3632 builtin and then its argument prototype would still apply. */
3637 /* The GNU C library defines this for functions which it implements
3638 to always fail with ENOSYS. Some functions are actually named
3639 something starting with __ and the normal name is an alias. */
3640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3648 if { (eval echo configure
:3648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3650 eval "ac_cv_func_$ac_func=yes"
3652 echo "configure: failed program was:" >&5
3653 cat conftest.
$ac_ext >&5
3655 eval "ac_cv_func_$ac_func=no"
3660 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3661 echo "$ac_t""yes" 1>&6
3662 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3663 cat >> confdefs.h
<<EOF
3664 #define $ac_tr_func 1
3668 echo "$ac_t""no" 1>&6
3673 if test "${ac_cv_func_stpcpy}" = "yes"; then
3674 cat >> confdefs.h
<<\EOF
3675 #define HAVE_STPCPY 1
3680 if test $ac_cv_header_locale_h = yes; then
3681 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3682 echo "configure:3682: checking for LC_MESSAGES" >&5
3683 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.
$ac_ext <<EOF
3687 #line 3687 "configure"
3688 #include "confdefs.h"
3694 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3696 am_cv_val_LC_MESSAGES
=yes
3698 echo "configure: failed program was:" >&5
3699 cat conftest.
$ac_ext >&5
3701 am_cv_val_LC_MESSAGES
=no
3706 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3707 if test $am_cv_val_LC_MESSAGES = yes; then
3708 cat >> confdefs.h
<<\EOF
3709 #define HAVE_LC_MESSAGES 1
3714 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3715 echo "configure:3715: checking whether NLS is requested" >&5
3716 # Check whether --enable-nls or --disable-nls was given.
3717 if test "${enable_nls+set}" = set; then
3718 enableval
="$enable_nls"
3724 echo "$ac_t""$USE_NLS" 1>&6
3727 USE_INCLUDED_LIBINTL
=no
3729 if test "$USE_NLS" = "yes"; then
3730 cat >> confdefs.h
<<\EOF
3731 #define ENABLE_NLS 1
3734 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3735 echo "configure:3735: checking whether included gettext is requested" >&5
3736 # Check whether --with-included-gettext or --without-included-gettext was given.
3737 if test "${with_included_gettext+set}" = set; then
3738 withval
="$with_included_gettext"
3739 nls_cv_force_use_gnu_gettext
=$withval
3741 nls_cv_force_use_gnu_gettext
=no
3744 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3746 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3747 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3749 nls_cv_header_libgt
=
3752 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3753 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3754 echo "configure:3754: checking for libintl.h" >&5
3755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 cat > conftest.
$ac_ext <<EOF
3759 #line 3759 "configure"
3760 #include "confdefs.h"
3761 #include <libintl.h>
3763 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3764 { (eval echo configure
:3764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3765 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3766 if test -z "$ac_err"; then
3768 eval "ac_cv_header_$ac_safe=yes"
3771 echo "configure: failed program was:" >&5
3772 cat conftest.
$ac_ext >&5
3774 eval "ac_cv_header_$ac_safe=no"
3778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3781 echo "configure:3781: checking for gettext in libc" >&5
3782 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.
$ac_ext <<EOF
3786 #line 3786 "configure"
3787 #include "confdefs.h"
3788 #include <libintl.h>
3790 return (int) gettext ("")
3793 if { (eval echo configure
:3793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3795 gt_cv_func_gettext_libc
=yes
3797 echo "configure: failed program was:" >&5
3798 cat conftest.
$ac_ext >&5
3800 gt_cv_func_gettext_libc
=no
3805 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3807 if test "$gt_cv_func_gettext_libc" != "yes"; then
3808 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3809 echo "configure:3809: checking for bindtextdomain in -lintl" >&5
3810 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 ac_save_LIBS
="$LIBS"
3816 cat > conftest.
$ac_ext <<EOF
3817 #line 3817 "configure"
3818 #include "confdefs.h"
3819 /* Override any gcc2 internal prototype to avoid an error. */
3820 /* We use char because int might match the return type of a gcc2
3821 builtin and then its argument prototype would still apply. */
3822 char bindtextdomain();
3828 if { (eval echo configure
:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3830 eval "ac_cv_lib_$ac_lib_var=yes"
3832 echo "configure: failed program was:" >&5
3833 cat conftest.
$ac_ext >&5
3835 eval "ac_cv_lib_$ac_lib_var=no"
3838 LIBS
="$ac_save_LIBS"
3841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3842 echo "$ac_t""yes" 1>&6
3843 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3844 echo "configure:3844: checking for gettext in libintl" >&5
3845 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.
$ac_ext <<EOF
3849 #line 3849 "configure"
3850 #include "confdefs.h"
3853 return (int) gettext ("")
3856 if { (eval echo configure
:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3858 gt_cv_func_gettext_libintl
=yes
3860 echo "configure: failed program was:" >&5
3861 cat conftest.
$ac_ext >&5
3863 gt_cv_func_gettext_libintl
=no
3868 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3870 echo "$ac_t""no" 1>&6
3875 if test "$gt_cv_func_gettext_libc" = "yes" \
3876 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3877 cat >> confdefs.h
<<\EOF
3878 #define HAVE_GETTEXT 1
3881 # Extract the first word of "msgfmt", so it can be a program name with args.
3882 set dummy msgfmt
; ac_word
=$2
3883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3884 echo "configure:3884: checking for $ac_word" >&5
3885 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3890 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3894 for ac_dir
in $PATH; do
3895 test -z "$ac_dir" && ac_dir
=.
3896 if test -f $ac_dir/$ac_word; then
3897 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3898 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3904 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3908 MSGFMT
="$ac_cv_path_MSGFMT"
3909 if test -n "$MSGFMT"; then
3910 echo "$ac_t""$MSGFMT" 1>&6
3912 echo "$ac_t""no" 1>&6
3914 if test "$MSGFMT" != "no"; then
3915 for ac_func
in dcgettext
3917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3918 echo "configure:3918: checking for $ac_func" >&5
3919 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3920 echo $ac_n "(cached) $ac_c" 1>&6
3922 cat > conftest.
$ac_ext <<EOF
3923 #line 3923 "configure"
3924 #include "confdefs.h"
3925 /* System header to define __stub macros and hopefully few prototypes,
3926 which can conflict with char $ac_func(); below. */
3928 /* Override any gcc2 internal prototype to avoid an error. */
3929 /* We use char because int might match the return type of a gcc2
3930 builtin and then its argument prototype would still apply. */
3935 /* The GNU C library defines this for functions which it implements
3936 to always fail with ENOSYS. Some functions are actually named
3937 something starting with __ and the normal name is an alias. */
3938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3946 if { (eval echo configure
:3946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3948 eval "ac_cv_func_$ac_func=yes"
3950 echo "configure: failed program was:" >&5
3951 cat conftest.
$ac_ext >&5
3953 eval "ac_cv_func_$ac_func=no"
3958 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3959 echo "$ac_t""yes" 1>&6
3960 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3961 cat >> confdefs.h
<<EOF
3962 #define $ac_tr_func 1
3966 echo "$ac_t""no" 1>&6
3970 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3971 set dummy gmsgfmt
; ac_word
=$2
3972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3973 echo "configure:3973: checking for $ac_word" >&5
3974 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3975 echo $ac_n "(cached) $ac_c" 1>&6
3979 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3982 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3987 for ac_dir
in $ac_dummy; do
3988 test -z "$ac_dir" && ac_dir
=.
3989 if test -f $ac_dir/$ac_word; then
3990 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3995 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3999 GMSGFMT
="$ac_cv_path_GMSGFMT"
4000 if test -n "$GMSGFMT"; then
4001 echo "$ac_t""$GMSGFMT" 1>&6
4003 echo "$ac_t""no" 1>&6
4006 # Extract the first word of "xgettext", so it can be a program name with args.
4007 set dummy xgettext
; ac_word
=$2
4008 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4009 echo "configure:4009: checking for $ac_word" >&5
4010 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4015 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4019 for ac_dir
in $PATH; do
4020 test -z "$ac_dir" && ac_dir
=.
4021 if test -f $ac_dir/$ac_word; then
4022 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4023 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4029 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4033 XGETTEXT
="$ac_cv_path_XGETTEXT"
4034 if test -n "$XGETTEXT"; then
4035 echo "$ac_t""$XGETTEXT" 1>&6
4037 echo "$ac_t""no" 1>&6
4040 cat > conftest.
$ac_ext <<EOF
4041 #line 4041 "configure"
4042 #include "confdefs.h"
4045 extern int _nl_msg_cat_cntr;
4046 return _nl_msg_cat_cntr
4049 if { (eval echo configure
:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4054 echo "configure: failed program was:" >&5
4055 cat conftest.
$ac_ext >&5
4066 echo "$ac_t""no" 1>&6
4071 if test "$CATOBJEXT" = "NONE"; then
4072 nls_cv_use_gnu_gettext
=yes
4076 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4077 INTLOBJS
="\$(GETTOBJS)"
4078 # Extract the first word of "msgfmt", so it can be a program name with args.
4079 set dummy msgfmt
; ac_word
=$2
4080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4081 echo "configure:4081: checking for $ac_word" >&5
4082 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4087 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4090 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4091 for ac_dir
in $PATH; do
4092 test -z "$ac_dir" && ac_dir
=.
4093 if test -f $ac_dir/$ac_word; then
4094 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4095 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4101 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4105 MSGFMT
="$ac_cv_path_MSGFMT"
4106 if test -n "$MSGFMT"; then
4107 echo "$ac_t""$MSGFMT" 1>&6
4109 echo "$ac_t""no" 1>&6
4112 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4113 set dummy gmsgfmt
; ac_word
=$2
4114 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4115 echo "configure:4115: checking for $ac_word" >&5
4116 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4121 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4124 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4127 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4129 for ac_dir
in $ac_dummy; do
4130 test -z "$ac_dir" && ac_dir
=.
4131 if test -f $ac_dir/$ac_word; then
4132 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4137 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4141 GMSGFMT
="$ac_cv_path_GMSGFMT"
4142 if test -n "$GMSGFMT"; then
4143 echo "$ac_t""$GMSGFMT" 1>&6
4145 echo "$ac_t""no" 1>&6
4148 # Extract the first word of "xgettext", so it can be a program name with args.
4149 set dummy xgettext
; ac_word
=$2
4150 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4151 echo "configure:4151: checking for $ac_word" >&5
4152 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4157 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4160 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4161 for ac_dir
in $PATH; do
4162 test -z "$ac_dir" && ac_dir
=.
4163 if test -f $ac_dir/$ac_word; then
4164 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4165 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4171 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4175 XGETTEXT
="$ac_cv_path_XGETTEXT"
4176 if test -n "$XGETTEXT"; then
4177 echo "$ac_t""$XGETTEXT" 1>&6
4179 echo "$ac_t""no" 1>&6
4183 USE_INCLUDED_LIBINTL
=yes
4187 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4189 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4190 nls_cv_header_intl
=libintl.h
4191 nls_cv_header_libgt
=libgettext.h
4194 if test "$XGETTEXT" != ":"; then
4195 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4198 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4203 # We need to process the po/ directory.
4207 nls_cv_header_intl
=libintl.h
4208 nls_cv_header_libgt
=libgettext.h
4211 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4212 # because some of the sources are only built for this goal.
4213 if test "$PACKAGE" = gettext; then
4215 USE_INCLUDED_LIBINTL
=yes
4218 for lang
in $ALL_LINGUAS; do
4219 GMOFILES
="$GMOFILES $lang.gmo"
4220 POFILES
="$POFILES $lang.po"
4236 if test "x$CATOBJEXT" != "x"; then
4237 if test "x$ALL_LINGUAS" = "x"; then
4240 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4241 echo "configure:4241: checking for catalogs to be installed" >&5
4243 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4244 case "$ALL_LINGUAS" in
4245 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4248 LINGUAS
=$NEW_LINGUAS
4249 echo "$ac_t""$LINGUAS" 1>&6
4252 if test -n "$LINGUAS"; then
4253 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4257 if test $ac_cv_header_locale_h = yes; then
4258 INCLUDE_LOCALE_H
="#include <locale.h>"
4261 /* The system does not provide the header <locale.h>. Take care yourself. */"
4265 if test -f $srcdir/po2tbl.
sed.
in; then
4266 if test "$CATOBJEXT" = ".cat"; then
4267 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4268 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4269 echo "configure:4269: checking for linux/version.h" >&5
4270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4273 cat > conftest.
$ac_ext <<EOF
4274 #line 4274 "configure"
4275 #include "confdefs.h"
4276 #include <linux/version.h>
4278 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4279 { (eval echo configure
:4279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4280 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4281 if test -z "$ac_err"; then
4283 eval "ac_cv_header_$ac_safe=yes"
4286 echo "configure: failed program was:" >&5
4287 cat conftest.
$ac_ext >&5
4289 eval "ac_cv_header_$ac_safe=no"
4293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4294 echo "$ac_t""yes" 1>&6
4297 echo "$ac_t""no" 1>&6
4302 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4304 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4305 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4308 if test "$PACKAGE" = "gettext"; then
4318 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4324 if test -d $srcdir/po
; then
4325 test -d po || mkdir po
4326 if test "x$srcdir" != "x."; then
4327 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4328 posrcprefix
="$srcdir/"
4330 posrcprefix
="../$srcdir/"
4336 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4337 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4341 # Permit host specific settings.
4342 .
${srcdir}/configure.
host
4345 # Find a good install program. We prefer a C program (faster),
4346 # so one script is as good as another. But avoid the broken or
4347 # incompatible versions:
4348 # SysV /etc/install, /usr/sbin/install
4349 # SunOS /usr/etc/install
4350 # IRIX /sbin/install
4352 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4353 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4354 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4355 # ./install, which can be erroneously created by make from ./install.sh.
4356 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4357 echo "configure:4357: checking for a BSD compatible install" >&5
4358 if test -z "$INSTALL"; then
4359 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4363 for ac_dir
in $PATH; do
4364 # Account for people who put trailing slashes in PATH elements.
4366 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4368 # OSF1 and SCO ODT 3.0 have their own names for install.
4369 # Don't use installbsd from OSF since it installs stuff as root
4371 for ac_prog
in ginstall scoinst
install; do
4372 if test -f $ac_dir/$ac_prog; then
4373 if test $ac_prog = install &&
4374 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4375 # AIX install. It has an incompatible calling convention.
4378 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4389 if test "${ac_cv_path_install+set}" = set; then
4390 INSTALL
="$ac_cv_path_install"
4392 # As a last resort, use the slow shell script. We don't cache a
4393 # path for INSTALL within a source directory, because that will
4394 # break other packages using the cache if that directory is
4395 # removed, or if the path is relative.
4396 INSTALL
="$ac_install_sh"
4399 echo "$ac_t""$INSTALL" 1>&6
4401 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4402 # It thinks the first close brace ends the variable substitution.
4403 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4405 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4407 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4410 BFD_HOST_64BIT_LONG
=0
4411 BFD_HOST_64_BIT_DEFINED
=0
4414 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
4415 BFD_HOST_64BIT_LONG
=1
4416 elif test "x${HOST_64BIT_TYPE}" != "x"; then
4417 BFD_HOST_64_BIT_DEFINED
=1
4418 BFD_HOST_64_BIT
=${HOST_64BIT_TYPE}
4419 BFD_HOST_U_64_BIT
=${HOST_U_64BIT_TYPE}
4426 # Put a plausible default for CC_FOR_BUILD in Makefile.
4427 if test -z "$CC_FOR_BUILD"; then
4428 if test "x$cross_compiling" = "xno"; then
4429 CC_FOR_BUILD
='$(CC)'
4435 # Also set EXEEXT_FOR_BUILD.
4436 if test "x$cross_compiling" = "xno"; then
4437 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4439 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4440 echo "configure:4440: checking for build system executable suffix" >&5
4441 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4445 echo 'int main () { return 0; }' > conftest.c
4446 bfd_cv_build_exeext
=
4447 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4448 for file in conftest.
*; do
4450 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4451 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4455 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4458 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4460 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4464 for ac_hdr
in stddef.h string.h
strings.h stdlib.h
time.h unistd.h
4466 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4468 echo "configure:4468: checking for $ac_hdr" >&5
4469 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4470 echo $ac_n "(cached) $ac_c" 1>&6
4472 cat > conftest.
$ac_ext <<EOF
4473 #line 4473 "configure"
4474 #include "confdefs.h"
4477 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4478 { (eval echo configure
:4478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4479 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4480 if test -z "$ac_err"; then
4482 eval "ac_cv_header_$ac_safe=yes"
4485 echo "configure: failed program was:" >&5
4486 cat conftest.
$ac_ext >&5
4488 eval "ac_cv_header_$ac_safe=no"
4492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4493 echo "$ac_t""yes" 1>&6
4494 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4495 cat >> confdefs.h
<<EOF
4496 #define $ac_tr_hdr 1
4500 echo "$ac_t""no" 1>&6
4504 for ac_hdr
in fcntl.h sys
/file.h sys
/time.h
4506 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4508 echo "configure:4508: checking for $ac_hdr" >&5
4509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4512 cat > conftest.
$ac_ext <<EOF
4513 #line 4513 "configure"
4514 #include "confdefs.h"
4517 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4518 { (eval echo configure
:4518: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4519 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4520 if test -z "$ac_err"; then
4522 eval "ac_cv_header_$ac_safe=yes"
4525 echo "configure: failed program was:" >&5
4526 cat conftest.
$ac_ext >&5
4528 eval "ac_cv_header_$ac_safe=no"
4532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4533 echo "$ac_t""yes" 1>&6
4534 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4535 cat >> confdefs.h
<<EOF
4536 #define $ac_tr_hdr 1
4540 echo "$ac_t""no" 1>&6
4544 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4545 echo "configure:4545: checking whether time.h and sys/time.h may both be included" >&5
4546 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4549 cat > conftest.
$ac_ext <<EOF
4550 #line 4550 "configure"
4551 #include "confdefs.h"
4552 #include <sys/types.h>
4553 #include <sys/time.h>
4559 if { (eval echo configure
:4559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4561 ac_cv_header_time
=yes
4563 echo "configure: failed program was:" >&5
4564 cat conftest.
$ac_ext >&5
4566 ac_cv_header_time
=no
4571 echo "$ac_t""$ac_cv_header_time" 1>&6
4572 if test $ac_cv_header_time = yes; then
4573 cat >> confdefs.h
<<\EOF
4574 #define TIME_WITH_SYS_TIME 1
4580 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
4582 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4583 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4584 echo "configure:4584: checking for $ac_hdr that defines DIR" >&5
4585 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
4586 echo $ac_n "(cached) $ac_c" 1>&6
4588 cat > conftest.
$ac_ext <<EOF
4589 #line 4589 "configure"
4590 #include "confdefs.h"
4591 #include <sys/types.h>
4597 if { (eval echo configure
:4597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4599 eval "ac_cv_header_dirent_$ac_safe=yes"
4601 echo "configure: failed program was:" >&5
4602 cat conftest.
$ac_ext >&5
4604 eval "ac_cv_header_dirent_$ac_safe=no"
4608 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4611 cat >> confdefs.h
<<EOF
4612 #define $ac_tr_hdr 1
4614 ac_header_dirent
=$ac_hdr; break
4616 echo "$ac_t""no" 1>&6
4619 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4620 if test $ac_header_dirent = dirent.h
; then
4621 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4622 echo "configure:4622: checking for opendir in -ldir" >&5
4623 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
4624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS
="$LIBS"
4629 cat > conftest.
$ac_ext <<EOF
4630 #line 4630 "configure"
4631 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure
:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.
$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS
="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4658 echo "$ac_t""no" 1>&6
4662 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4663 echo "configure:4663: checking for opendir in -lx" >&5
4664 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
4665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 ac_save_LIBS
="$LIBS"
4670 cat > conftest.
$ac_ext <<EOF
4671 #line 4671 "configure"
4672 #include "confdefs.h"
4673 /* Override any gcc2 internal prototype to avoid an error. */
4674 /* We use char because int might match the return type of a gcc2
4675 builtin and then its argument prototype would still apply. */
4682 if { (eval echo configure
:4682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4684 eval "ac_cv_lib_$ac_lib_var=yes"
4686 echo "configure: failed program was:" >&5
4687 cat conftest.
$ac_ext >&5
4689 eval "ac_cv_lib_$ac_lib_var=no"
4692 LIBS
="$ac_save_LIBS"
4695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4696 echo "$ac_t""yes" 1>&6
4699 echo "$ac_t""no" 1>&6
4704 for ac_func
in fcntl getpagesize setitimer sysconf fdopen getuid getgid
4706 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4707 echo "configure:4707: checking for $ac_func" >&5
4708 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 cat > conftest.
$ac_ext <<EOF
4712 #line 4712 "configure"
4713 #include "confdefs.h"
4714 /* System header to define __stub macros and hopefully few prototypes,
4715 which can conflict with char $ac_func(); below. */
4717 /* Override any gcc2 internal prototype to avoid an error. */
4718 /* We use char because int might match the return type of a gcc2
4719 builtin and then its argument prototype would still apply. */
4724 /* The GNU C library defines this for functions which it implements
4725 to always fail with ENOSYS. Some functions are actually named
4726 something starting with __ and the normal name is an alias. */
4727 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4735 if { (eval echo configure
:4735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4737 eval "ac_cv_func_$ac_func=yes"
4739 echo "configure: failed program was:" >&5
4740 cat conftest.
$ac_ext >&5
4742 eval "ac_cv_func_$ac_func=no"
4747 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4749 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4750 cat >> confdefs.h
<<EOF
4751 #define $ac_tr_func 1
4755 echo "$ac_t""no" 1>&6
4762 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
4763 cat >> confdefs.h
<<\EOF
4764 #define USE_BINARY_FOPEN 1
4769 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
4770 echo "configure:4770: checking whether strstr must be declared" >&5
4771 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.
$ac_ext <<EOF
4775 #line 4775 "configure"
4776 #include "confdefs.h"
4779 #ifdef HAVE_STRING_H
4782 #ifdef HAVE_STRINGS_H
4783 #include <strings.h>
4786 #ifdef HAVE_STDLIB_H
4789 #ifdef HAVE_UNISTD_H
4793 char *(*pfn) = (char *(*)) strstr
4796 if { (eval echo configure
:4796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4798 bfd_cv_decl_needed_strstr
=no
4800 echo "configure: failed program was:" >&5
4801 cat conftest.
$ac_ext >&5
4803 bfd_cv_decl_needed_strstr
=yes
4808 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
4809 if test $bfd_cv_decl_needed_strstr = yes; then
4810 cat >> confdefs.h
<<\EOF
4811 #define NEED_DECLARATION_STRSTR 1
4816 echo $ac_n "checking whether malloc must be declared""... $ac_c" 1>&6
4817 echo "configure:4817: checking whether malloc must be declared" >&5
4818 if eval "test \"`echo '$''{'bfd_cv_decl_needed_malloc'+set}'`\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 cat > conftest.
$ac_ext <<EOF
4822 #line 4822 "configure"
4823 #include "confdefs.h"
4826 #ifdef HAVE_STRING_H
4829 #ifdef HAVE_STRINGS_H
4830 #include <strings.h>
4833 #ifdef HAVE_STDLIB_H
4836 #ifdef HAVE_UNISTD_H
4840 char *(*pfn) = (char *(*)) malloc
4843 if { (eval echo configure
:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4845 bfd_cv_decl_needed_malloc
=no
4847 echo "configure: failed program was:" >&5
4848 cat conftest.
$ac_ext >&5
4850 bfd_cv_decl_needed_malloc
=yes
4855 echo "$ac_t""$bfd_cv_decl_needed_malloc" 1>&6
4856 if test $bfd_cv_decl_needed_malloc = yes; then
4857 cat >> confdefs.h
<<\EOF
4858 #define NEED_DECLARATION_MALLOC 1
4863 echo $ac_n "checking whether realloc must be declared""... $ac_c" 1>&6
4864 echo "configure:4864: checking whether realloc must be declared" >&5
4865 if eval "test \"`echo '$''{'bfd_cv_decl_needed_realloc'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 cat > conftest.
$ac_ext <<EOF
4869 #line 4869 "configure"
4870 #include "confdefs.h"
4873 #ifdef HAVE_STRING_H
4876 #ifdef HAVE_STRINGS_H
4877 #include <strings.h>
4880 #ifdef HAVE_STDLIB_H
4883 #ifdef HAVE_UNISTD_H
4887 char *(*pfn) = (char *(*)) realloc
4890 if { (eval echo configure
:4890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4892 bfd_cv_decl_needed_realloc
=no
4894 echo "configure: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4897 bfd_cv_decl_needed_realloc
=yes
4902 echo "$ac_t""$bfd_cv_decl_needed_realloc" 1>&6
4903 if test $bfd_cv_decl_needed_realloc = yes; then
4904 cat >> confdefs.h
<<\EOF
4905 #define NEED_DECLARATION_REALLOC 1
4910 echo $ac_n "checking whether free must be declared""... $ac_c" 1>&6
4911 echo "configure:4911: checking whether free must be declared" >&5
4912 if eval "test \"`echo '$''{'bfd_cv_decl_needed_free'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.
$ac_ext <<EOF
4916 #line 4916 "configure"
4917 #include "confdefs.h"
4920 #ifdef HAVE_STRING_H
4923 #ifdef HAVE_STRINGS_H
4924 #include <strings.h>
4927 #ifdef HAVE_STDLIB_H
4930 #ifdef HAVE_UNISTD_H
4934 char *(*pfn) = (char *(*)) free
4937 if { (eval echo configure
:4937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4939 bfd_cv_decl_needed_free
=no
4941 echo "configure: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4944 bfd_cv_decl_needed_free
=yes
4949 echo "$ac_t""$bfd_cv_decl_needed_free" 1>&6
4950 if test $bfd_cv_decl_needed_free = yes; then
4951 cat >> confdefs.h
<<\EOF
4952 #define NEED_DECLARATION_FREE 1
4957 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
4958 echo "configure:4958: checking whether getenv must be declared" >&5
4959 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.
$ac_ext <<EOF
4963 #line 4963 "configure"
4964 #include "confdefs.h"
4967 #ifdef HAVE_STRING_H
4970 #ifdef HAVE_STRINGS_H
4971 #include <strings.h>
4974 #ifdef HAVE_STDLIB_H
4977 #ifdef HAVE_UNISTD_H
4981 char *(*pfn) = (char *(*)) getenv
4984 if { (eval echo configure
:4984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4986 bfd_cv_decl_needed_getenv
=no
4988 echo "configure: failed program was:" >&5
4989 cat conftest.
$ac_ext >&5
4991 bfd_cv_decl_needed_getenv
=yes
4996 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
4997 if test $bfd_cv_decl_needed_getenv = yes; then
4998 cat >> confdefs.h
<<\EOF
4999 #define NEED_DECLARATION_GETENV 1
5005 # If we are configured native, pick a core file support file.
5009 if test "${target}" = "${host}"; then
5014 alpha
*-*-linux-gnu*)
5015 COREFILE
=trad-core.lo
5016 TRAD_HEADER
='"hosts/alphalinux.h"'
5018 alpha
*-*-netbsd*) COREFILE
=netbsd-core.lo
;;
5019 alpha
*-*-*) COREFILE
=osf-core.lo
;;
5020 arm-
*-freebsd*) COREFILE
='' ;;
5021 arm-
*-riscix) COREFILE
=trad-core.lo
;;
5022 hppa
*-*-hpux*) COREFILE
=hpux-core.lo
;;
5023 hppa
*-*-hiux*) COREFILE
=hpux-core.lo
;;
5024 hppa
*-*-mpeix*) COREFILE
=hpux-core.lo
;;
5025 hppa
*-*-bsd*) COREFILE
="hpux-core.lo hppabsd-core.lo"
5026 COREFLAG
="-DHPUX_CORE -DHPPABSD_CORE" ;;
5028 COREFILE
=trad-core.lo
5029 TRAD_HEADER
='"hosts/i370linux.h"'
5032 i
[3456]86-sequent-bsd*)
5033 COREFILE
=trad-core.lo
5034 TRAD_HEADER
='"hosts/symmetry.h"'
5036 i
[3456]86-sequent-sysv4*) ;;
5037 i
[3456]86-sequent-sysv*)
5038 COREFILE
=trad-core.lo
5039 TRAD_HEADER
='"hosts/symmetry.h"'
5041 i
[3456]86-*-bsd* | i
[34567]86-*-freebsd[1234] | i
[34567]86-*-freebsd[1234]\.
* | i
[34567]86-*-freebsd*aout
*)
5042 COREFILE
=trad-core.lo
5043 TRAD_HEADER
='"hosts/i386bsd.h"'
5045 i
[3456]86-*-freebsd*)
5047 TRAD_HEADER
='"hosts/i386bsd.h"'
5049 i
[3456]86-*-netbsd* | i
[3456]86-*-openbsd*)
5050 COREFILE
=netbsd-core.lo
5052 i
[3456]86-esix-sysv3*)
5053 COREFILE
=trad-core.lo
5054 TRAD_HEADER
='"hosts/esix.h"'
5056 i
[3456]86-*-sco3.2v5
*)
5057 COREFILE
=sco5-core.lo
5059 i
[3456]86-*-sco* | i
[3456]86-*-isc*)
5060 COREFILE
=trad-core.lo
5061 TRAD_HEADER
='"hosts/i386sco.h"'
5064 COREFILE
=trad-core.lo
5065 TRAD_HEADER
='"hosts/i386mach3.h"'
5067 i
[3456]86-*-linux-gnu*)
5068 COREFILE
=trad-core.lo
5069 TRAD_HEADER
='"hosts/i386linux.h"'
5071 i
[3456]86-*-isc*) COREFILE
=trad-core.lo
;;
5072 i
[3456]86-*-aix*) COREFILE
=aix386-core.lo
;;
5073 i860-
*-mach3* | i860-
*-osf1*)
5074 COREFILE
=trad-core.lo
5075 TRAD_HEADER
='"hosts/i860mach3.h"'
5078 COREFILE
=trad-core.lo
5079 TRAD_HEADER
='"hosts/mipsbsd.h"'
5082 COREFILE
=trad-core.lo
5083 TRAD_HEADER
='"hosts/mipsmach3.h"'
5085 mips-
*-netbsd* | mips
*-*-openbsd*)
5086 COREFILE
=netbsd-core.lo
5089 COREFILE
=trad-core.lo
5090 TRAD_HEADER
='"hosts/decstation.h"'
5092 mips-sgi-irix4
*) COREFILE
=irix-core.lo
;;
5093 mips-sgi-irix5
*) COREFILE
=irix-core.lo
;;
5094 mips-sgi-irix6
*) COREFILE
=irix-core.lo
;;
5096 COREFILE
=trad-core.lo
5097 TRAD_HEADER
='"hosts/mipsmach3.h"'
5100 mips-
*-sysv* | mips-
*-riscos*)
5101 COREFILE
=trad-core.lo
5102 TRAD_HEADER
='"hosts/riscos.h"'
5105 COREFILE
=trad-core.lo
5106 TRAD_HEADER
='"hosts/news-mips.h"'
5109 COREFILE
=trad-core.lo
5110 TRAD_HEADER
='"hosts/dpx2.h"'
5112 m68
*-hp-hpux*) COREFILE
=hpux-core.lo
;;
5114 COREFILE
=trad-core.lo
5115 TRAD_HEADER
='"hosts/hp300bsd.h"'
5118 COREFILE
=trad-core.lo
5119 TRAD_HEADER
='"hosts/m68klinux.h"'
5121 m68
*-motorola-sysv*)
5122 COREFILE
=trad-core.lo
5123 TRAD_HEADER
='"hosts/delta68.h"'
5126 COREFILE
=trad-core.lo
5127 TRAD_HEADER
='"hosts/news.h"'
5129 m68
*-*-netbsd* | m68
*-*-openbsd*)
5130 COREFILE
=netbsd-core.lo
5133 COREFILE
=trad-core.lo
5134 TRAD_HEADER
='"hosts/m68kaux.h"'
5137 m88
*-motorola-sysv*) COREFILE
=ptrace-core.lo
;;
5139 COREFILE
=trad-core.lo
5140 TRAD_HEADER
='"hosts/m88kmach3.h"'
5143 COREFILE
=trad-core.lo
5144 TRAD_HEADER
='"hosts/pc532mach.h"'
5146 ns32k-
*-netbsd* | ns32k-
*-openbsd*)
5147 COREFILE
=netbsd-core.lo
5149 rs6000-
*-lynx*) COREFILE
=lynx-core.lo
;;
5150 rs6000-
*-aix4.
[3-9]* | powerpc-
*-aix4.
[3-9]*)
5151 COREFILE
=rs6000-core.lo
5152 COREFLAG
="$COREFLAG -DAIX_CORE_DUMPX_CORE"
5154 rs6000-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5155 rs6000-
*-*) COREFILE
=rs6000-core.lo
;;
5156 powerpc-
*-aix4*) COREFILE
=rs6000-core.lo
;;
5157 powerpc-
*-aix*) COREFILE
=rs6000-core.lo
;;
5159 powerpc-
*-freebsd*) COREFILE
='' ;;
5160 powerpc-
*-netbsd*) COREFILE
=netbsd-core.lo
;;
5161 powerpc-
*-*bsd
*) COREFILE
=netbsd-core.lo
;;
5162 s390
*-*-*) COREFILE
=trad-core.lo
;;
5163 sparc-
*-netbsd* | sparc-
*-openbsd*)
5164 COREFILE
=netbsd-core.lo
5167 COREFILE
=trad-core.lo
5168 TRAD_HEADER
='"hosts/tahoe.h"'
5171 COREFILE
=trad-core.lo
5172 TRAD_HEADER
='"hosts/vaxult2.h"'
5175 COREFILE
=trad-core.lo
5176 TRAD_HEADER
='"hosts/vaxult2.h"'
5179 COREFILE
=trad-core.lo
5180 TRAD_HEADER
='"hosts/vaxbsd.h"'
5185 aix386-core.lo
) COREFLAG
=-DAIX386_CORE ;;
5186 hppabsd-core.lo
) COREFLAG
=-DHPPABSD_CORE ;;
5187 hpux-core.lo
) COREFLAG
=-DHPUX_CORE ;;
5188 irix-core.lo
) COREFLAG
=-DIRIX_CORE ;;
5189 lynx-core.lo
) COREFLAG
=-DLYNX_CORE ;;
5190 netbsd-core.lo
) COREFLAG
=-DNETBSD_CORE ;;
5191 osf-core.lo
) COREFLAG
=-DOSF_CORE ;;
5192 ptrace-core.lo
) COREFLAG
=-DPTRACE_CORE ;;
5193 rs6000-core.lo
) COREFLAG
="$COREFLAG -DAIX_CORE" ;;
5194 sco5-core.lo
) COREFLAG
="$COREFLAG -DSCO5_CORE" ;;
5195 trad-core.lo
) COREFLAG
="$COREFLAG -DTRAD_CORE" ;;
5198 # ELF corefile support has several flavors, but all of
5199 # them use something called <sys/procfs.h>
5200 for ac_hdr
in sys
/procfs.h
5202 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5204 echo "configure:5204: checking for $ac_hdr" >&5
5205 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.
$ac_ext <<EOF
5209 #line 5209 "configure"
5210 #include "confdefs.h"
5213 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5214 { (eval echo configure
:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5215 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5216 if test -z "$ac_err"; then
5218 eval "ac_cv_header_$ac_safe=yes"
5221 echo "configure: failed program was:" >&5
5222 cat conftest.
$ac_ext >&5
5224 eval "ac_cv_header_$ac_safe=no"
5228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5229 echo "$ac_t""yes" 1>&6
5230 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5231 cat >> confdefs.h
<<EOF
5232 #define $ac_tr_hdr 1
5236 echo "$ac_t""no" 1>&6
5240 if test "$ac_cv_header_sys_procfs_h" = yes; then
5241 echo $ac_n "checking for prstatus_t in sys/procfs.h""... $ac_c" 1>&6
5242 echo "configure:5242: checking for prstatus_t in sys/procfs.h" >&5
5243 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus_t'+set}'`\" = set"; then
5244 echo $ac_n "(cached) $ac_c" 1>&6
5246 cat > conftest.
$ac_ext <<EOF
5247 #line 5247 "configure"
5248 #include "confdefs.h"
5251 #include <sys/procfs.h>
5256 if { (eval echo configure
:5256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5258 bfd_cv_have_sys_procfs_type_prstatus_t
=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.
$ac_ext >&5
5263 bfd_cv_have_sys_procfs_type_prstatus_t
=no
5269 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
5270 cat >> confdefs.h
<<\EOF
5271 #define HAVE_PRSTATUS_T 1
5275 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus_t" 1>&6
5277 echo $ac_n "checking for prstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5278 echo "configure:5278: checking for prstatus32_t in sys/procfs.h" >&5
5279 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prstatus32_t'+set}'`\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 cat > conftest.
$ac_ext <<EOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5287 #include <sys/procfs.h>
5292 if { (eval echo configure
:5292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5294 bfd_cv_have_sys_procfs_type_prstatus32_t
=yes
5296 echo "configure: failed program was:" >&5
5297 cat conftest.
$ac_ext >&5
5299 bfd_cv_have_sys_procfs_type_prstatus32_t
=no
5305 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
5306 cat >> confdefs.h
<<\EOF
5307 #define HAVE_PRSTATUS32_T 1
5311 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prstatus32_t" 1>&6
5313 echo $ac_n "checking for prstatus_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5314 echo "configure:5314: checking for prstatus_t.pr_who in sys/procfs.h" >&5
5315 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who'+set}'`\" = set"; then
5316 echo $ac_n "(cached) $ac_c" 1>&6
5318 cat > conftest.
$ac_ext <<EOF
5319 #line 5319 "configure"
5320 #include "confdefs.h"
5323 #include <sys/procfs.h>
5325 prstatus_t avar; void* aref = (void*) &avar.pr_who
5328 if { (eval echo configure
:5328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5330 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=yes
5332 echo "configure: failed program was:" >&5
5333 cat conftest.
$ac_ext >&5
5335 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who
=no
5341 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
5342 cat >> confdefs.h
<<\EOF
5343 #define HAVE_PRSTATUS_T_PR_WHO 1
5347 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" 1>&6
5349 echo $ac_n "checking for prstatus32_t.pr_who in sys/procfs.h""... $ac_c" 1>&6
5350 echo "configure:5350: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
5351 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who'+set}'`\" = set"; then
5352 echo $ac_n "(cached) $ac_c" 1>&6
5354 cat > conftest.
$ac_ext <<EOF
5355 #line 5355 "configure"
5356 #include "confdefs.h"
5359 #include <sys/procfs.h>
5361 prstatus32_t avar; void* aref = (void*) &avar.pr_who
5364 if { (eval echo configure
:5364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5366 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=yes
5368 echo "configure: failed program was:" >&5
5369 cat conftest.
$ac_ext >&5
5371 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who
=no
5377 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
5378 cat >> confdefs.h
<<\EOF
5379 #define HAVE_PRSTATUS32_T_PR_WHO 1
5383 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" 1>&6
5385 echo $ac_n "checking for pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5386 echo "configure:5386: checking for pstatus_t in sys/procfs.h" >&5
5387 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus_t'+set}'`\" = set"; then
5388 echo $ac_n "(cached) $ac_c" 1>&6
5390 cat > conftest.
$ac_ext <<EOF
5391 #line 5391 "configure"
5392 #include "confdefs.h"
5395 #include <sys/procfs.h>
5400 if { (eval echo configure
:5400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5402 bfd_cv_have_sys_procfs_type_pstatus_t
=yes
5404 echo "configure: failed program was:" >&5
5405 cat conftest.
$ac_ext >&5
5407 bfd_cv_have_sys_procfs_type_pstatus_t
=no
5413 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
5414 cat >> confdefs.h
<<\EOF
5415 #define HAVE_PSTATUS_T 1
5419 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus_t" 1>&6
5421 echo $ac_n "checking for pxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5422 echo "configure:5422: checking for pxstatus_t in sys/procfs.h" >&5
5423 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pxstatus_t'+set}'`\" = set"; then
5424 echo $ac_n "(cached) $ac_c" 1>&6
5426 cat > conftest.
$ac_ext <<EOF
5427 #line 5427 "configure"
5428 #include "confdefs.h"
5431 #include <sys/procfs.h>
5436 if { (eval echo configure
:5436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5438 bfd_cv_have_sys_procfs_type_pxstatus_t
=yes
5440 echo "configure: failed program was:" >&5
5441 cat conftest.
$ac_ext >&5
5443 bfd_cv_have_sys_procfs_type_pxstatus_t
=no
5449 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
5450 cat >> confdefs.h
<<\EOF
5451 #define HAVE_PXSTATUS_T 1
5455 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pxstatus_t" 1>&6
5457 echo $ac_n "checking for pstatus32_t in sys/procfs.h""... $ac_c" 1>&6
5458 echo "configure:5458: checking for pstatus32_t in sys/procfs.h" >&5
5459 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_pstatus32_t'+set}'`\" = set"; then
5460 echo $ac_n "(cached) $ac_c" 1>&6
5462 cat > conftest.
$ac_ext <<EOF
5463 #line 5463 "configure"
5464 #include "confdefs.h"
5467 #include <sys/procfs.h>
5472 if { (eval echo configure
:5472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5474 bfd_cv_have_sys_procfs_type_pstatus32_t
=yes
5476 echo "configure: failed program was:" >&5
5477 cat conftest.
$ac_ext >&5
5479 bfd_cv_have_sys_procfs_type_pstatus32_t
=no
5485 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
5486 cat >> confdefs.h
<<\EOF
5487 #define HAVE_PSTATUS32_T 1
5491 echo "$ac_t""$bfd_cv_have_sys_procfs_type_pstatus32_t" 1>&6
5493 echo $ac_n "checking for prpsinfo_t in sys/procfs.h""... $ac_c" 1>&6
5494 echo "configure:5494: checking for prpsinfo_t in sys/procfs.h" >&5
5495 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo_t'+set}'`\" = set"; then
5496 echo $ac_n "(cached) $ac_c" 1>&6
5498 cat > conftest.
$ac_ext <<EOF
5499 #line 5499 "configure"
5500 #include "confdefs.h"
5503 #include <sys/procfs.h>
5508 if { (eval echo configure
:5508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5510 bfd_cv_have_sys_procfs_type_prpsinfo_t
=yes
5512 echo "configure: failed program was:" >&5
5513 cat conftest.
$ac_ext >&5
5515 bfd_cv_have_sys_procfs_type_prpsinfo_t
=no
5521 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
5522 cat >> confdefs.h
<<\EOF
5523 #define HAVE_PRPSINFO_T 1
5527 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo_t" 1>&6
5529 echo $ac_n "checking for prpsinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5530 echo "configure:5530: checking for prpsinfo32_t in sys/procfs.h" >&5
5531 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_prpsinfo32_t'+set}'`\" = set"; then
5532 echo $ac_n "(cached) $ac_c" 1>&6
5534 cat > conftest.
$ac_ext <<EOF
5535 #line 5535 "configure"
5536 #include "confdefs.h"
5539 #include <sys/procfs.h>
5544 if { (eval echo configure
:5544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5546 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=yes
5548 echo "configure: failed program was:" >&5
5549 cat conftest.
$ac_ext >&5
5551 bfd_cv_have_sys_procfs_type_prpsinfo32_t
=no
5557 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
5558 cat >> confdefs.h
<<\EOF
5559 #define HAVE_PRPSINFO32_T 1
5563 echo "$ac_t""$bfd_cv_have_sys_procfs_type_prpsinfo32_t" 1>&6
5565 echo $ac_n "checking for psinfo_t in sys/procfs.h""... $ac_c" 1>&6
5566 echo "configure:5566: checking for psinfo_t in sys/procfs.h" >&5
5567 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo_t'+set}'`\" = set"; then
5568 echo $ac_n "(cached) $ac_c" 1>&6
5570 cat > conftest.
$ac_ext <<EOF
5571 #line 5571 "configure"
5572 #include "confdefs.h"
5575 #include <sys/procfs.h>
5580 if { (eval echo configure
:5580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5582 bfd_cv_have_sys_procfs_type_psinfo_t
=yes
5584 echo "configure: failed program was:" >&5
5585 cat conftest.
$ac_ext >&5
5587 bfd_cv_have_sys_procfs_type_psinfo_t
=no
5593 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
5594 cat >> confdefs.h
<<\EOF
5595 #define HAVE_PSINFO_T 1
5599 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo_t" 1>&6
5601 echo $ac_n "checking for psinfo32_t in sys/procfs.h""... $ac_c" 1>&6
5602 echo "configure:5602: checking for psinfo32_t in sys/procfs.h" >&5
5603 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_psinfo32_t'+set}'`\" = set"; then
5604 echo $ac_n "(cached) $ac_c" 1>&6
5606 cat > conftest.
$ac_ext <<EOF
5607 #line 5607 "configure"
5608 #include "confdefs.h"
5611 #include <sys/procfs.h>
5616 if { (eval echo configure
:5616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5618 bfd_cv_have_sys_procfs_type_psinfo32_t
=yes
5620 echo "configure: failed program was:" >&5
5621 cat conftest.
$ac_ext >&5
5623 bfd_cv_have_sys_procfs_type_psinfo32_t
=no
5629 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
5630 cat >> confdefs.h
<<\EOF
5631 #define HAVE_PSINFO32_T 1
5635 echo "$ac_t""$bfd_cv_have_sys_procfs_type_psinfo32_t" 1>&6
5637 echo $ac_n "checking for lwpstatus_t in sys/procfs.h""... $ac_c" 1>&6
5638 echo "configure:5638: checking for lwpstatus_t in sys/procfs.h" >&5
5639 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpstatus_t'+set}'`\" = set"; then
5640 echo $ac_n "(cached) $ac_c" 1>&6
5642 cat > conftest.
$ac_ext <<EOF
5643 #line 5643 "configure"
5644 #include "confdefs.h"
5647 #include <sys/procfs.h>
5652 if { (eval echo configure
:5652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5654 bfd_cv_have_sys_procfs_type_lwpstatus_t
=yes
5656 echo "configure: failed program was:" >&5
5657 cat conftest.
$ac_ext >&5
5659 bfd_cv_have_sys_procfs_type_lwpstatus_t
=no
5665 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
5666 cat >> confdefs.h
<<\EOF
5667 #define HAVE_LWPSTATUS_T 1
5671 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpstatus_t" 1>&6
5673 echo $ac_n "checking for lwpxstatus_t in sys/procfs.h""... $ac_c" 1>&6
5674 echo "configure:5674: checking for lwpxstatus_t in sys/procfs.h" >&5
5675 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_lwpxstatus_t'+set}'`\" = set"; then
5676 echo $ac_n "(cached) $ac_c" 1>&6
5678 cat > conftest.
$ac_ext <<EOF
5679 #line 5679 "configure"
5680 #include "confdefs.h"
5683 #include <sys/procfs.h>
5688 if { (eval echo configure
:5688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5690 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=yes
5692 echo "configure: failed program was:" >&5
5693 cat conftest.
$ac_ext >&5
5695 bfd_cv_have_sys_procfs_type_lwpxstatus_t
=no
5701 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
5702 cat >> confdefs.h
<<\EOF
5703 #define HAVE_LWPXSTATUS_T 1
5707 echo "$ac_t""$bfd_cv_have_sys_procfs_type_lwpxstatus_t" 1>&6
5709 echo $ac_n "checking for lwpstatus_t.pr_context in sys/procfs.h""... $ac_c" 1>&6
5710 echo "configure:5710: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
5711 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context'+set}'`\" = set"; then
5712 echo $ac_n "(cached) $ac_c" 1>&6
5714 cat > conftest.
$ac_ext <<EOF
5715 #line 5715 "configure"
5716 #include "confdefs.h"
5719 #include <sys/procfs.h>
5721 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
5724 if { (eval echo configure
:5724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5726 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=yes
5728 echo "configure: failed program was:" >&5
5729 cat conftest.
$ac_ext >&5
5731 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context
=no
5737 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
5738 cat >> confdefs.h
<<\EOF
5739 #define HAVE_LWPSTATUS_T_PR_CONTEXT 1
5743 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" 1>&6
5745 echo $ac_n "checking for lwpstatus_t.pr_reg in sys/procfs.h""... $ac_c" 1>&6
5746 echo "configure:5746: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
5747 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg'+set}'`\" = set"; then
5748 echo $ac_n "(cached) $ac_c" 1>&6
5750 cat > conftest.
$ac_ext <<EOF
5751 #line 5751 "configure"
5752 #include "confdefs.h"
5755 #include <sys/procfs.h>
5757 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
5760 if { (eval echo configure
:5760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5762 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=yes
5764 echo "configure: failed program was:" >&5
5765 cat conftest.
$ac_ext >&5
5767 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg
=no
5773 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
5774 cat >> confdefs.h
<<\EOF
5775 #define HAVE_LWPSTATUS_T_PR_REG 1
5779 echo "$ac_t""$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" 1>&6
5781 echo $ac_n "checking for win32_pstatus_t in sys/procfs.h""... $ac_c" 1>&6
5782 echo "configure:5782: checking for win32_pstatus_t in sys/procfs.h" >&5
5783 if eval "test \"`echo '$''{'bfd_cv_have_sys_procfs_type_win32_pstatus_t'+set}'`\" = set"; then
5784 echo $ac_n "(cached) $ac_c" 1>&6
5786 cat > conftest.
$ac_ext <<EOF
5787 #line 5787 "configure"
5788 #include "confdefs.h"
5791 #include <sys/procfs.h>
5793 win32_pstatus_t avar
5796 if { (eval echo configure
:5796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5798 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=yes
5800 echo "configure: failed program was:" >&5
5801 cat conftest.
$ac_ext >&5
5803 bfd_cv_have_sys_procfs_type_win32_pstatus_t
=no
5809 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
5810 cat >> confdefs.h
<<\EOF
5811 #define HAVE_WIN32_PSTATUS_T 1
5815 echo "$ac_t""$bfd_cv_have_sys_procfs_type_win32_pstatus_t" 1>&6
5821 if test -n "$TRAD_HEADER"; then
5822 cat >> confdefs.h
<<EOF
5823 #define TRAD_HEADER $TRAD_HEADER
5828 # Horrible hacks to build DLLs on Windows.
5833 if test "$enable_shared" = "yes"; then
5834 WIN32LDFLAGS
="-no-undefined"
5835 WIN32LIBADD
="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
5844 # Canonicalize the secondary target names.
5845 if test -n "$enable_targets" ; then
5846 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5848 result
=`$ac_config_sub $targ 2>/dev/null`
5849 if test -n "$result" ; then
5850 canon_targets
="$canon_targets $result"
5852 # Allow targets that config.sub doesn't recognize, like "all".
5853 canon_targets
="$canon_targets $targ"
5863 for targ
in $target $canon_targets
5865 if test "x$targ" = "xall"; then
5868 .
$srcdir/config.bfd
5869 if test "x$targ" = "x$target"; then
5872 selvecs
="$selvecs $targ_defvec $targ_selvecs"
5873 selarchs
="$selarchs $targ_archs"
5874 TDEFINES
="$TDEFINES $targ_cflags"
5879 # This processing still needs to be done if we're to decide properly whether
5880 # 64-bit support needs to be compiled in. Currently, it will be included if
5881 # the default or any other explicitly requested target requires it; it
5882 # will not be included on a 32-bit host if no 64-bit target is requested, and
5883 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
5886 # uniq the default and selected vectors in all the configured targets.
5888 for i
in $selvecs ; do
5897 # uniq the architectures in all the configured targets.
5899 for i
in $selarchs ; do
5907 # Target backend .o files.
5910 elf
="elf.lo elflink.lo dwarf1.lo"
5915 # This list is alphabetized to make it easy to compare
5916 # with the two vector lists in targets.c.
5917 a29kcoff_big_vec
) tb
="$tb coff-a29k.lo cofflink.lo" ;;
5918 a_out_adobe_vec
) tb
="$tb aout-adobe.lo aout32.lo" ;;
5919 armcoff_little_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5920 armcoff_big_vec
) tb
="$tb coff-arm.lo cofflink.lo " ;;
5921 armnetbsd_vec
) tb
="$tb armnetbsd.lo aout32.lo" ;;
5922 armpe_little_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5923 armpe_big_vec
) tb
="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
5924 armpei_little_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5925 armpei_big_vec
) tb
="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
5926 arm_epoc_pe_little_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5927 arm_epoc_pe_big_vec
) tb
="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
5928 arm_epoc_pei_little_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5929 arm_epoc_pei_big_vec
) tb
="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
5930 aout0_big_vec
) tb
="$tb aout0.lo aout32.lo" ;;
5931 aout_arm_big_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5932 aout_arm_little_vec
) tb
="$tb aout-arm.lo aout32.lo" ;;
5933 aout_mips_big_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5934 aout_mips_little_vec
) tb
="$tb mipsbsd.lo aout32.lo" ;;
5935 apollocoff_vec
) tb
="$tb coff-apollo.lo" ;;
5936 b_out_vec_big_host
) tb
="$tb bout.lo aout32.lo" ;;
5937 b_out_vec_little_host
) tb
="$tb bout.lo aout32.lo" ;;
5938 bfd_efi_app_ia32_vec
) tb
="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
5939 bfd_efi_app_ia64_vec
) tb
="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"
5941 bfd_elf64_alpha_vec
) tb
="$tb elf64-alpha.lo elf64.lo $elf"
5943 bfd_elf64_hppa_vec | bfd_elf64_hppa_linux_vec
)
5944 tb
="$tb elf64-hppa.lo elf64.lo $elf"
5946 bfd_elf64_ia64_little_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5948 bfd_elf64_ia64_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5950 bfd_elf64_ia64_aix_little_vec
)
5951 tb
="$tb elf64-ia64.lo elf64.lo $elf"
5953 bfd_elf64_ia64_aix_big_vec
) tb
="$tb elf64-ia64.lo elf64.lo $elf"
5955 bfd_elf32_ia64_big_vec
) tb
="$tb elf32-ia64.lo elf32.lo $elf" ;;
5956 bfd_elf32_avr_vec
) tb
="$tb elf32-avr.lo elf32.lo $elf" ;;
5957 bfd_elf32_littlearc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5958 bfd_elf32_littlearm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5959 bfd_elf32_littlearm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5960 bfd_elf32_bigarc_vec
) tb
="$tb elf32-arc.lo elf32.lo $elf" ;;
5961 bfd_elf32_bigarm_vec
) tb
="$tb elfarm-nabi.lo elf32.lo $elf" ;;
5962 bfd_elf32_bigarm_oabi_vec
) tb
="$tb elfarm-oabi.lo elf32.lo $elf" ;;
5963 bfd_elf32_big_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5964 bfd_elf32_bigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5965 bfd_elf64_bigmips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5967 bfd_elf32_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5968 bfd_elf32_us_cris_vec
) tb
="$tb elf32-cris.lo elf32.lo $elf" ;;
5969 bfd_elf32_d10v_vec
) tb
="$tb elf32-d10v.lo elf32.lo $elf" ;;
5970 bfd_elf32_d30v_vec
) tb
="$tb elf32-d30v.lo elf32.lo $elf" ;;
5971 bfd_elf32_fr30_vec
) tb
="$tb elf32-fr30.lo elf32.lo $elf" ;;
5972 bfd_elf32_hppa_vec | bfd_elf32_hppa_linux_vec
)
5973 tb
="$tb elf32-hppa.lo elf32.lo $elf" ;;
5974 bfd_elf32_i370_vec
) tb
="$tb elf32-i370.lo elf32.lo $elf" ;;
5975 bfd_elf32_i386_vec
) tb
="$tb elf32-i386.lo elf32.lo $elf" ;;
5976 bfd_elf64_x86_64_vec
) tb
="$tb elf64-x86-64.lo elf64.lo $elf"
5978 bfd_elf32_i860_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5979 bfd_elf32_i860_little_vec
) tb
="$tb elf32-i860.lo elf32.lo $elf" ;;
5980 bfd_elf32_i960_vec
) tb
="$tb elf32-i960.lo elf32.lo $elf" ;;
5981 bfd_elf32_little_generic_vec
) tb
="$tb elf32-gen.lo elf32.lo $elf" ;;
5982 bfd_elf32_littlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
5983 bfd_elf64_littlemips_vec
) tb
="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
5985 bfd_elf32_m32r_vec
) tb
="$tb elf32-m32r.lo elf32.lo $elf" ;;
5986 bfd_elf32_m68hc11_vec
) tb
="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
5987 bfd_elf32_m68hc12_vec
) tb
="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
5988 bfd_elf32_m68k_vec
) tb
="$tb elf32-m68k.lo elf32.lo $elf" ;;
5989 bfd_elf32_m88k_vec
) tb
="$tb elf32-m88k.lo elf32.lo $elf" ;;
5990 bfd_elf32_mcore_big_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5991 bfd_elf32_mcore_little_vec
) tb
="$tb elf32-mcore.lo elf32.lo $elf" ;;
5992 bfd_elf32_mn10200_vec
) tb
="$tb elf-m10200.lo elf32.lo $elf" ;;
5993 bfd_elf32_mn10300_vec
) tb
="$tb elf-m10300.lo elf32.lo $elf" ;;
5994 bfd_elf32_pj_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5995 bfd_elf32_pjl_vec
) tb
="$tb elf32-pj.lo elf32.lo $elf";;
5996 bfd_elf32_powerpc_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5997 bfd_elf32_powerpcle_vec
) tb
="$tb elf32-ppc.lo elf32.lo $elf" ;;
5998 bfd_elf32_s390_vec
) tb
="$tb elf32-s390.lo elf32.lo $elf" ;;
5999 bfd_elf32_sh_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6000 bfd_elf32_shl_vec
) tb
="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
6001 bfd_elf32_shlin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6002 bfd_elf32_shblin_vec
) tb
="$tb elf32-sh-lin.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
6003 bfd_elf32_sparc_vec
) tb
="$tb elf32-sparc.lo elf32.lo $elf" ;;
6004 bfd_elf32_tradbigmips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
6005 bfd_elf32_tradlittlemips_vec
) tb
="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
6006 bfd_elf32_v850_vec
) tb
="$tb elf32-v850.lo elf32.lo $elf" ;;
6007 bfd_elf64_big_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
6009 bfd_elf64_little_generic_vec
) tb
="$tb elf64-gen.lo elf64.lo $elf"
6011 bfd_elf64_s390_vec
) tb
="$tb elf64-s390.lo elf64.lo $elf"
6013 bfd_elf64_sparc_vec
) tb
="$tb elf64-sparc.lo elf64.lo $elf"
6015 cisco_core_big_vec
) tb
="$tb cisco-core.lo" ;;
6016 cisco_core_little_vec
) tb
="$tb cisco-core.lo" ;;
6017 cris_aout_vec
) tb
="$tb aout-cris.lo" ;;
6018 demo_64_vec
) tb
="$tb demo64.lo aout64.lo"
6020 ecoff_big_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6021 ecoff_little_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6022 ecoff_biglittle_vec
) tb
="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
6023 ecoffalpha_little_vec
) tb
="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
6025 go32coff_vec
) tb
="$tb coff-go32.lo cofflink.lo" ;;
6026 go32stubbedcoff_vec
) tb
="$tb coff-stgo32.lo cofflink.lo" ;;
6027 h8300coff_vec
) tb
="$tb coff-h8300.lo reloc16.lo" ;;
6028 h8500coff_vec
) tb
="$tb coff-h8500.lo reloc16.lo" ;;
6029 host_aout_vec
) tb
="$tb host-aout.lo aout32.lo" ;;
6030 hp300bsd_vec
) tb
="$tb hp300bsd.lo aout32.lo" ;;
6031 hp300hpux_vec
) tb
="$tb hp300hpux.lo aout32.lo" ;;
6032 i386aout_vec
) tb
="$tb i386aout.lo aout32.lo" ;;
6033 i386bsd_vec
) tb
="$tb i386bsd.lo aout32.lo" ;;
6034 i386coff_vec
) tb
="$tb coff-i386.lo cofflink.lo" ;;
6035 i386dynix_vec
) tb
="$tb i386dynix.lo aout32.lo" ;;
6036 i386freebsd_vec
) tb
="$tb i386freebsd.lo aout32.lo" ;;
6037 i386msdos_vec
) tb
="$tb i386msdos.lo" ;;
6038 i386pe_vec
) tb
="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
6039 i386pei_vec
) tb
="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
6040 i386linux_vec
) tb
="$tb i386linux.lo aout32.lo" ;;
6041 i386lynx_aout_vec
) tb
="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
6042 i386lynx_coff_vec
) tb
="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
6043 i386mach3_vec
) tb
="$tb i386mach3.lo aout32.lo" ;;
6044 i386netbsd_vec
) tb
="$tb i386netbsd.lo aout32.lo" ;;
6045 i386os9k_vec
) tb
="$tb i386os9k.lo aout32.lo" ;;
6046 i860coff_vec
) tb
="$tb coff-i860.lo cofflink.lo" ;;
6047 icoff_big_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6048 icoff_little_vec
) tb
="$tb coff-i960.lo cofflink.lo" ;;
6049 ieee_vec
) tb
="$tb ieee.lo" ;;
6050 m68kcoff_vec
) tb
="$tb coff-m68k.lo cofflink.lo" ;;
6051 m68kcoffun_vec
) tb
="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
6052 m68klinux_vec
) tb
="$tb m68klinux.lo aout32.lo" ;;
6053 m68klynx_aout_vec
) tb
="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
6054 m68klynx_coff_vec
) tb
="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
6055 m68knetbsd_vec
) tb
="$tb m68knetbsd.lo aout32.lo" ;;
6056 m68k4knetbsd_vec
) tb
="$tb m68k4knetbsd.lo aout32.lo" ;;
6057 m68kaux_coff_vec
) tb
="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
6058 m68ksysvcoff_vec
) tb
="$tb coff-svm68k.lo cofflink.lo" ;;
6059 m88kbcs_vec
) tb
="$tb coff-m88k.lo" ;;
6060 mipslpe_vec
) tb
="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
6061 mipslpei_vec
) tb
="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
6062 mcore_pe_big_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6063 mcore_pe_little_vec
) tb
="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
6064 mcore_pei_big_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6065 mcore_pei_little_vec
) tb
="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
6066 newsos3_vec
) tb
="$tb newsos3.lo aout32.lo" ;;
6067 nlm32_i386_vec
) tb
="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
6068 rs6000coff64_vec
) tb
="$tb coff64-rs6000.lo xcofflink.lo"
6070 nlm32_sparc_vec
) tb
="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
6071 nlm32_alpha_vec
) tb
="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
6073 riscix_vec
) tb
="$tb aout32.lo riscix.lo" ;;
6074 nlm32_powerpc_vec
) tb
="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
6075 pc532netbsd_vec
) tb
="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6076 pc532machaout_vec
) tb
="$tb pc532-mach.lo aout-ns32k.lo" ;;
6077 pdp11_aout_vec
) tb
="$tb pdp11.lo" ;;
6078 pmac_xcoff_vec
) tb
="$tb coff-pmac.lo xcofflink.lo" ;;
6079 rs6000coff_vec
) tb
="$tb coff-rs6000.lo xcofflink.lo" ;;
6080 bfd_powerpc_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6081 bfd_powerpcle_pe_vec
) tb
="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
6082 bfd_powerpc_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6083 bfd_powerpcle_pei_vec
) tb
="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
6084 ppcboot_vec
) tb
="$tb ppcboot.lo" ;;
6085 shcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6086 shlcoff_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6087 shcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6088 shlcoff_small_vec
) tb
="$tb coff-sh.lo cofflink.lo" ;;
6089 shlpe_vec
) tb
="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6090 shlpei_vec
) tb
="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
6091 som_vec
) tb
="$tb som.lo" ;;
6092 sparcle_aout_vec
) tb
="$tb aout-sparcle.lo aout32.lo" ;;
6093 sparclinux_vec
) tb
="$tb sparclinux.lo aout32.lo" ;;
6094 sparclynx_aout_vec
) tb
="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
6095 sparclynx_coff_vec
) tb
="$tb cf-sparclynx.lo lynx-core.lo" ;;
6096 sparcnetbsd_vec
) tb
="$tb sparcnetbsd.lo aout32.lo" ;;
6097 sparccoff_vec
) tb
="$tb coff-sparc.lo" ;;
6098 srec_vec
) tb
="$tb srec.lo" ;;
6099 sunos_big_vec
) tb
="$tb sunos.lo aout32.lo" ;;
6100 symbolsrec_vec
) tb
="$tb srec.lo" ;;
6101 tekhex_vec
) tb
="$tb tekhex.lo" ;;
6102 tic30_aout_vec
) tb
="$tb aout-tic30.lo" ;;
6103 tic30_coff_vec
) tb
="$tb coff-tic30.lo" ;;
6104 tic54x_coff0_vec
) tb
="$tb coff-tic54x.lo" ;;
6105 tic54x_coff0_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6106 tic54x_coff1_vec
) tb
="$tb coff-tic54x.lo" ;;
6107 tic54x_coff1_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6108 tic54x_coff2_vec
) tb
="$tb coff-tic54x.lo" ;;
6109 tic54x_coff2_beh_vec
) tb
="$tb coff-tic54x.lo" ;;
6110 tic80coff_vec
) tb
="$tb coff-tic80.lo cofflink.lo" ;;
6111 versados_vec
) tb
="$tb versados.lo" ;;
6112 vms_alpha_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
6114 vms_vax_vec
) tb
="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
6115 w65_vec
) tb
="$tb coff-w65.lo reloc16.lo" ;;
6116 we32kcoff_vec
) tb
="$tb coff-we32k.lo" ;;
6117 z8kcoff_vec
) tb
="$tb coff-z8k.lo reloc16.lo" ;;
6120 *) { echo "configure: error: *** unknown target vector $vec" 1>&2; exit 1; } ;;
6124 # Target architecture .o files.
6125 # A couple of CPUs use shorter file names to avoid problems on DOS
6127 ta
=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
6129 # Weed out duplicate .o files.
6151 if test x
${all_targets} = xtrue
; then
6152 bfd_backends
="${bfd_backends}"' $(ALL_BACKENDS)'
6153 bfd_machines
="${bfd_machines}"' $(ALL_MACHINES)'
6157 else # all_targets is true
6158 # Only set these if they will be nonempty, for the clever echo.
6160 test -n "$selvecs" &&
6161 havevecs
=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
6162 test -n "$selvecs" &&
6163 selvecs
=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6164 test -n "$selarchs" &&
6165 selarchs
=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
6166 fi # all_targets is true
6168 case ${host64}-${target64}-${want64} in
6171 all_backends
='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
6172 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
6173 echo "configure: warning: You have requested a 64 bit BFD configuration, but" 1>&2
6174 echo "configure: warning: your compiler may not have a 64 bit integral type" 1>&2
6179 all_backends
='$(BFD32_BACKENDS)'
6189 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
6190 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
6191 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
6192 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
6195 for ac_hdr
in unistd.h
6197 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6199 echo "configure:6199: checking for $ac_hdr" >&5
6200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6201 echo $ac_n "(cached) $ac_c" 1>&6
6203 cat > conftest.
$ac_ext <<EOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6208 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6209 { (eval echo configure
:6209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6210 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6211 if test -z "$ac_err"; then
6213 eval "ac_cv_header_$ac_safe=yes"
6216 echo "configure: failed program was:" >&5
6217 cat conftest.
$ac_ext >&5
6219 eval "ac_cv_header_$ac_safe=no"
6223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6224 echo "$ac_t""yes" 1>&6
6225 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6226 cat >> confdefs.h
<<EOF
6227 #define $ac_tr_hdr 1
6231 echo "$ac_t""no" 1>&6
6235 for ac_func
in getpagesize
6237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6238 echo "configure:6238: checking for $ac_func" >&5
6239 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6240 echo $ac_n "(cached) $ac_c" 1>&6
6242 cat > conftest.
$ac_ext <<EOF
6243 #line 6243 "configure"
6244 #include "confdefs.h"
6245 /* System header to define __stub macros and hopefully few prototypes,
6246 which can conflict with char $ac_func(); below. */
6248 /* Override any gcc2 internal prototype to avoid an error. */
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6255 /* The GNU C library defines this for functions which it implements
6256 to always fail with ENOSYS. Some functions are actually named
6257 something starting with __ and the normal name is an alias. */
6258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6266 if { (eval echo configure
:6266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6268 eval "ac_cv_func_$ac_func=yes"
6270 echo "configure: failed program was:" >&5
6271 cat conftest.
$ac_ext >&5
6273 eval "ac_cv_func_$ac_func=no"
6278 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6279 echo "$ac_t""yes" 1>&6
6280 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6281 cat >> confdefs.h
<<EOF
6282 #define $ac_tr_func 1
6286 echo "$ac_t""no" 1>&6
6290 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6291 echo "configure:6291: checking for working mmap" >&5
6292 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 if test "$cross_compiling" = yes; then
6296 ac_cv_func_mmap_fixed_mapped
=no
6298 cat > conftest.
$ac_ext <<EOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
6302 /* Thanks to Mike Haertel and Jim Avera for this test.
6303 Here is a matrix of mmap possibilities:
6304 mmap private not fixed
6305 mmap private fixed at somewhere currently unmapped
6306 mmap private fixed at somewhere already mapped
6307 mmap shared not fixed
6308 mmap shared fixed at somewhere currently unmapped
6309 mmap shared fixed at somewhere already mapped
6310 For private mappings, we should verify that changes cannot be read()
6311 back from the file, nor mmap's back from the file at a different
6312 address. (There have been systems where private was not correctly
6313 implemented like the infamous i386 svr4.0, and systems where the
6314 VM page cache was not coherent with the filesystem buffer cache
6315 like early versions of FreeBSD and possibly contemporary NetBSD.)
6316 For shared mappings, we should conversely verify that changes get
6317 propogated back to all the places they're supposed to be.
6319 Grep wants private fixed already mapped.
6320 The main things grep needs to know about mmap are:
6321 * does it exist and is it safe to write into the mmap'd area
6322 * how to use it (BSD variants) */
6323 #include <sys/types.h>
6325 #include <sys/mman.h>
6327 /* This mess was copied from the GNU getpagesize.h. */
6328 #ifndef HAVE_GETPAGESIZE
6329 # ifdef HAVE_UNISTD_H
6330 # include <unistd.h>
6333 /* Assume that all systems that can run configure have sys/param.h. */
6334 # ifndef HAVE_SYS_PARAM_H
6335 # define HAVE_SYS_PARAM_H 1
6338 # ifdef _SC_PAGESIZE
6339 # define getpagesize() sysconf(_SC_PAGESIZE)
6340 # else /* no _SC_PAGESIZE */
6341 # ifdef HAVE_SYS_PARAM_H
6342 # include <sys/param.h>
6343 # ifdef EXEC_PAGESIZE
6344 # define getpagesize() EXEC_PAGESIZE
6345 # else /* no EXEC_PAGESIZE */
6347 # define getpagesize() NBPG * CLSIZE
6350 # endif /* no CLSIZE */
6351 # else /* no NBPG */
6353 # define getpagesize() NBPC
6354 # else /* no NBPC */
6356 # define getpagesize() PAGESIZE
6357 # endif /* PAGESIZE */
6358 # endif /* no NBPC */
6359 # endif /* no NBPG */
6360 # endif /* no EXEC_PAGESIZE */
6361 # else /* no HAVE_SYS_PARAM_H */
6362 # define getpagesize() 8192 /* punt totally */
6363 # endif /* no HAVE_SYS_PARAM_H */
6364 # endif /* no _SC_PAGESIZE */
6366 #endif /* no HAVE_GETPAGESIZE */
6369 extern "C" { void *malloc(unsigned); }
6377 char *data, *data2, *data3;
6381 pagesize = getpagesize();
6384 * First, make a file with some known garbage in it.
6386 data = malloc(pagesize);
6389 for (i = 0; i < pagesize; ++i)
6390 *(data + i) = rand();
6392 fd = creat("conftestmmap", 0600);
6395 if (write(fd, data, pagesize) != pagesize)
6400 * Next, try to mmap the file at a fixed address which
6401 * already has something else allocated at it. If we can,
6402 * also make sure that we see the same garbage.
6404 fd = open("conftestmmap", O_RDWR);
6407 data2 = malloc(2 * pagesize);
6410 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6411 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6412 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6414 for (i = 0; i < pagesize; ++i)
6415 if (*(data + i) != *(data2 + i))
6419 * Finally, make sure that changes to the mapped area
6420 * do not percolate back to the file as seen by read().
6421 * (This is a bug on some variants of i386 svr4.0.)
6423 for (i = 0; i < pagesize; ++i)
6424 *(data2 + i) = *(data2 + i) + 1;
6425 data3 = malloc(pagesize);
6428 if (read(fd, data3, pagesize) != pagesize)
6430 for (i = 0; i < pagesize; ++i)
6431 if (*(data + i) != *(data3 + i))
6434 unlink("conftestmmap");
6439 if { (eval echo configure
:6439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
6441 ac_cv_func_mmap_fixed_mapped
=yes
6443 echo "configure: failed program was:" >&5
6444 cat conftest.
$ac_ext >&5
6446 ac_cv_func_mmap_fixed_mapped
=no
6453 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6454 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6455 cat >> confdefs.h
<<\EOF
6461 for ac_func
in madvise mprotect
6463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6464 echo "configure:6464: checking for $ac_func" >&5
6465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6466 echo $ac_n "(cached) $ac_c" 1>&6
6468 cat > conftest.
$ac_ext <<EOF
6469 #line 6469 "configure"
6470 #include "confdefs.h"
6471 /* System header to define __stub macros and hopefully few prototypes,
6472 which can conflict with char $ac_func(); below. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6475 /* We use char because int might match the return type of a gcc2
6476 builtin and then its argument prototype would still apply. */
6481 /* The GNU C library defines this for functions which it implements
6482 to always fail with ENOSYS. Some functions are actually named
6483 something starting with __ and the normal name is an alias. */
6484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6492 if { (eval echo configure
:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6494 eval "ac_cv_func_$ac_func=yes"
6496 echo "configure: failed program was:" >&5
6497 cat conftest.
$ac_ext >&5
6499 eval "ac_cv_func_$ac_func=no"
6504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6505 echo "$ac_t""yes" 1>&6
6506 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6507 cat >> confdefs.h
<<EOF
6508 #define $ac_tr_func 1
6512 echo "$ac_t""no" 1>&6
6516 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
6517 true
+yes ) cat >> confdefs.h
<<\EOF
6523 rm -f doc
/config.status
6525 cat > confcache
<<\EOF
6526 # This file is a shell script that caches the results of configure
6527 # tests run on this system so they can be shared between configure
6528 # scripts and configure runs. It is not useful on other systems.
6529 # If it contains results you don't want to keep, you may remove or edit it.
6531 # By default, configure uses ./config.cache as the cache file,
6532 # creating it if it does not exist already. You can give configure
6533 # the --cache-file=FILE option to use a different cache file; that is
6534 # what configure does when it calls configure scripts in
6535 # subdirectories, so they share the cache.
6536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6537 # config.status only pays attention to the cache file if you give it the
6538 # --recheck option to rerun configure.
6541 # The following way of writing the cache mishandles newlines in values,
6542 # but we know of no workaround that is simple, portable, and efficient.
6543 # So, don't put newlines in cache variables' values.
6544 # Ultrix sh set writes to stderr and can't be redirected directly,
6545 # and sets the high bit in the cache file unless we assign to the vars.
6547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6549 # `set' does not quote correctly, so add quotes (double-quote substitution
6550 # turns \\\\ into \\, and sed turns \\ into \).
6552 -e "s/'/'\\\\''/g" \
6553 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6556 # `set' quotes correctly as required by POSIX, so do not add quotes.
6557 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6560 if cmp -s $cache_file confcache
; then
6563 if test -w $cache_file; then
6564 echo "updating cache $cache_file"
6565 cat confcache
> $cache_file
6567 echo "not updating unwritable cache $cache_file"
6572 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6574 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6575 # Let make expand exec_prefix.
6576 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6578 # Any assignment to VPATH causes Sun make to only execute
6579 # the first set of double-colon rules, so remove it if not needed.
6580 # If there is a colon in the path, we need to keep it.
6581 if test "x$srcdir" = x.
; then
6582 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
6585 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6587 DEFS
=-DHAVE_CONFIG_H
6589 # Without the "./", some shells look in PATH for config.status.
6590 : ${CONFIG_STATUS=./config.status}
6592 echo creating
$CONFIG_STATUS
6593 rm -f $CONFIG_STATUS
6594 cat > $CONFIG_STATUS <<EOF
6596 # Generated automatically by configure.
6597 # Run this file to recreate the current configuration.
6598 # This directory was configured as follows,
6599 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6601 # $0 $ac_configure_args
6603 # Compiler output produced by configure, useful for debugging
6604 # configure, is in ./config.log if it exists.
6606 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6609 case "\$ac_option" in
6610 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6611 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6612 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6613 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6614 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6616 -help | --help | --hel | --he | --h)
6617 echo "\$ac_cs_usage"; exit 0 ;;
6618 *) echo "\$ac_cs_usage"; exit 1 ;;
6622 ac_given_srcdir=$srcdir
6623 ac_given_INSTALL="$INSTALL"
6625 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
6627 cat >> $CONFIG_STATUS <<EOF
6629 # Protect against being on the right side of a sed subst in config.status.
6630 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6631 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6635 s%@CFLAGS@%$CFLAGS%g
6636 s%@CPPFLAGS@%$CPPFLAGS%g
6637 s%@CXXFLAGS@%$CXXFLAGS%g
6638 s%@FFLAGS@%$FFLAGS%g
6640 s%@LDFLAGS@%$LDFLAGS%g
6642 s%@exec_prefix@%$exec_prefix%g
6643 s%@prefix@%$prefix%g
6644 s%@program_transform_name@%$program_transform_name%g
6645 s%@bindir@%$bindir%g
6646 s%@sbindir@%$sbindir%g
6647 s%@libexecdir@%$libexecdir%g
6648 s%@datadir@%$datadir%g
6649 s%@sysconfdir@%$sysconfdir%g
6650 s%@sharedstatedir@%$sharedstatedir%g
6651 s%@localstatedir@%$localstatedir%g
6652 s%@libdir@%$libdir%g
6653 s%@includedir@%$includedir%g
6654 s%@oldincludedir@%$oldincludedir%g
6655 s%@infodir@%$infodir%g
6656 s%@mandir@%$mandir%g
6658 s%@host_alias@%$host_alias%g
6659 s%@host_cpu@%$host_cpu%g
6660 s%@host_vendor@%$host_vendor%g
6661 s%@host_os@%$host_os%g
6662 s%@target@%$target%g
6663 s%@target_alias@%$target_alias%g
6664 s%@target_cpu@%$target_cpu%g
6665 s%@target_vendor@%$target_vendor%g
6666 s%@target_os@%$target_os%g
6668 s%@build_alias@%$build_alias%g
6669 s%@build_cpu@%$build_cpu%g
6670 s%@build_vendor@%$build_vendor%g
6671 s%@build_os@%$build_os%g
6672 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6673 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6674 s%@INSTALL_DATA@%$INSTALL_DATA%g
6675 s%@PACKAGE@%$PACKAGE%g
6676 s%@VERSION@%$VERSION%g
6677 s%@ACLOCAL@%$ACLOCAL%g
6678 s%@AUTOCONF@%$AUTOCONF%g
6679 s%@AUTOMAKE@%$AUTOMAKE%g
6680 s%@AUTOHEADER@%$AUTOHEADER%g
6681 s%@MAKEINFO@%$MAKEINFO%g
6682 s%@SET_MAKE@%$SET_MAKE%g
6684 s%@RANLIB@%$RANLIB%g
6687 s%@OBJEXT@%$OBJEXT%g
6688 s%@EXEEXT@%$EXEEXT%g
6690 s%@LIBTOOL@%$LIBTOOL%g
6691 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6692 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6693 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6696 s%@ALLOCA@%$ALLOCA%g
6697 s%@USE_NLS@%$USE_NLS%g
6698 s%@MSGFMT@%$MSGFMT%g
6699 s%@GMSGFMT@%$GMSGFMT%g
6700 s%@XGETTEXT@%$XGETTEXT%g
6701 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6702 s%@CATALOGS@%$CATALOGS%g
6703 s%@CATOBJEXT@%$CATOBJEXT%g
6704 s%@DATADIRNAME@%$DATADIRNAME%g
6705 s%@GMOFILES@%$GMOFILES%g
6706 s%@INSTOBJEXT@%$INSTOBJEXT%g
6707 s%@INTLDEPS@%$INTLDEPS%g
6708 s%@INTLLIBS@%$INTLLIBS%g
6709 s%@INTLOBJS@%$INTLOBJS%g
6710 s%@POFILES@%$POFILES%g
6712 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6714 s%@GT_YES@%$GT_YES%g
6715 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6717 s%@HDEFINES@%$HDEFINES%g
6718 s%@BFD_HOST_64BIT_LONG@%$BFD_HOST_64BIT_LONG%g
6719 s%@BFD_HOST_64_BIT_DEFINED@%$BFD_HOST_64_BIT_DEFINED%g
6720 s%@BFD_HOST_64_BIT@%$BFD_HOST_64_BIT%g
6721 s%@BFD_HOST_U_64_BIT@%$BFD_HOST_U_64_BIT%g
6722 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
6723 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
6724 s%@COREFILE@%$COREFILE%g
6725 s%@COREFLAG@%$COREFLAG%g
6726 s%@WIN32LDFLAGS@%$WIN32LDFLAGS%g
6727 s%@WIN32LIBADD@%$WIN32LIBADD%g
6728 s%@TDEFINES@%$TDEFINES%g
6729 s%@wordsize@%$wordsize%g
6730 s%@all_backends@%$all_backends%g
6731 s%@bfd_backends@%$bfd_backends%g
6732 s%@bfd_machines@%$bfd_machines%g
6733 s%@tdefaults@%$tdefaults%g
6738 cat >> $CONFIG_STATUS <<\EOF
6740 # Split the substitutions into bite-sized pieces for seds with
6741 # small command number limits, like on Digital OSF/1 and HP-UX.
6742 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
6743 ac_file
=1 # Number of current file.
6744 ac_beg
=1 # First line for current file.
6745 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
6748 while $ac_more_lines; do
6749 if test $ac_beg -gt 1; then
6750 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
6752 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
6754 if test ! -s conftest.s
$ac_file; then
6756 rm -f conftest.s
$ac_file
6758 if test -z "$ac_sed_cmds"; then
6759 ac_sed_cmds
="sed -f conftest.s$ac_file"
6761 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
6763 ac_file
=`expr $ac_file + 1`
6765 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
6768 if test -z "$ac_sed_cmds"; then
6773 cat >> $CONFIG_STATUS <<EOF
6775 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"}
6777 cat >> $CONFIG_STATUS <<\EOF
6778 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
6779 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6781 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6782 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6783 *) ac_file_in
="${ac_file}.in" ;;
6786 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6788 # Remove last slash and all that follows it. Not all systems have dirname.
6789 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6790 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
6791 # The file is in a subdirectory.
6792 test ! -d "$ac_dir" && mkdir
"$ac_dir"
6793 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
6794 # A "../" for each directory in $ac_dir_suffix.
6795 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6797 ac_dir_suffix
= ac_dots
=
6800 case "$ac_given_srcdir" in
6802 if test -z "$ac_dots"; then top_srcdir
=.
6803 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6804 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
6806 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6807 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
6810 case "$ac_given_INSTALL" in
6811 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
6812 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
6815 echo creating
"$ac_file"
6817 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6819 *Makefile
*) ac_comsub
="1i\\
6820 # $configure_input" ;;
6824 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6826 s%@configure_input@%$configure_input%g
6827 s%@srcdir@%$srcdir%g
6828 s%@top_srcdir@%$top_srcdir%g
6829 s%@INSTALL@%$INSTALL%g
6830 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
6834 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6835 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6837 # ac_d sets the value in "#define NAME VALUE" lines.
6838 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6839 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
6842 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6843 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6844 ac_uB
='\([ ]\)%\1#\2define\3'
6847 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6848 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6849 ac_eB
='$%\1#\2define\3'
6853 if test "${CONFIG_HEADERS+set}" != set; then
6855 cat >> $CONFIG_STATUS <<EOF
6856 CONFIG_HEADERS="config.h:config.in"
6858 cat >> $CONFIG_STATUS <<\EOF
6860 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6861 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6863 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6864 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6865 *) ac_file_in
="${ac_file}.in" ;;
6868 echo creating
$ac_file
6870 rm -f conftest.frag conftest.
in conftest.out
6871 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6872 cat $ac_file_inputs > conftest.
in
6876 # Transform confdefs.h into a sed script conftest.vals that substitutes
6877 # the proper values into config.h.in to produce config.h. And first:
6878 # Protect against being on the right side of a sed subst in config.status.
6879 # Protect against being in an unquoted here document in config.status.
6881 cat > conftest.hdr
<<\EOF
6884 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6888 sed -n -f conftest.hdr confdefs.h > conftest.vals
6891 # This sed command replaces #undef with comments. This is necessary, for
6892 # example, in the case of _POSIX_SOURCE, which is predefined and required
6893 # on some systems where configure will not decide to define it.
6894 cat >> conftest.vals <<\EOF
6895 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6898 # Break up conftest.vals because some shells have a limit on
6899 # the size of here documents, and old seds have small limits too.
6904 ac_lines=`grep -c . conftest.vals
`
6905 # grep -c gives empty output for an empty file on some AIX systems.
6906 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6907 # Write a limited-size here document to conftest.frag.
6908 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6909 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6911 sed -f conftest.frag conftest.in > conftest.out
6913 mv conftest.out conftest.in
6915 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6917 mv conftest.tail conftest.vals
6921 cat >> $CONFIG_STATUS <<\EOF
6922 rm -f conftest.frag conftest.h
6923 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6924 cat conftest.in >> conftest.h
6926 if cmp -s $ac_file conftest.h 2>/dev/null; then
6927 echo "$ac_file is unchanged"
6930 # Remove last slash and all that follows it. Not all systems have dirname.
6931 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6933 # The file is in a subdirectory.
6934 test ! -d "$ac_dir" && mkdir "$ac_dir"
6937 mv conftest.h $ac_file
6942 cat >> $CONFIG_STATUS <<EOF
6946 cat >> $CONFIG_STATUS <<\EOF
6947 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6948 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6951 chmod +x $CONFIG_STATUS
6952 rm -fr confdefs* $ac_clean_files
6953 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1