3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-targets alternative target configurations"
23 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
25 --enable-maintainer-mode enable make rules and dependencies not useful
26 (and sometimes confusing) to the casual installer"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file
=.
/config.cache
41 program_transform_name
=s
,x
,x
,
49 bindir
='${exec_prefix}/bin'
50 sbindir
='${exec_prefix}/sbin'
51 libexecdir
='${exec_prefix}/libexec'
52 datadir
='${prefix}/share'
53 sysconfdir
='${prefix}/etc'
54 sharedstatedir
='${prefix}/com'
55 localstatedir
='${prefix}/var'
56 libdir
='${exec_prefix}/lib'
57 includedir
='${prefix}/include'
58 oldincludedir
='/usr/include'
59 infodir
='${prefix}/info'
60 mandir
='${prefix}/man'
62 # Initialize some other variables.
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
90 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
91 bindir
="$ac_optarg" ;;
93 -build |
--build |
--buil |
--bui |
--bu)
95 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
98 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
99 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
100 ac_prev
=cache_file
;;
101 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
102 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
103 cache_file
="$ac_optarg" ;;
105 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
107 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
109 datadir
="$ac_optarg" ;;
111 -disable-* |
--disable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* |
--enable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
134 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
135 |
--exec |
--exe |
--ex)
136 ac_prev
=exec_prefix
;;
137 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
138 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
139 |
--exec=* |
--exe=* |
--ex=*)
140 exec_prefix
="$ac_optarg" ;;
142 -gas |
--gas |
--ga |
--g)
143 # Obsolete; use --with-gas.
146 -help |
--help |
--hel |
--he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host |
--host |
--hos |
--ho)
203 -host=* |
--host=* |
--hos=* |
--ho=*)
206 -includedir |
--includedir |
--includedi |
--included |
--include \
207 |
--includ |
--inclu |
--incl |
--inc)
208 ac_prev
=includedir
;;
209 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
210 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
211 includedir
="$ac_optarg" ;;
213 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
215 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
216 infodir
="$ac_optarg" ;;
218 -libdir |
--libdir |
--libdi |
--libd)
220 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
221 libdir
="$ac_optarg" ;;
223 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
224 |
--libexe |
--libex |
--libe)
225 ac_prev
=libexecdir
;;
226 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
227 |
--libexe=* |
--libex=* |
--libe=*)
228 libexecdir
="$ac_optarg" ;;
230 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
231 |
--localstate |
--localstat |
--localsta |
--localst \
232 |
--locals |
--local |
--loca |
--loc |
--lo)
233 ac_prev
=localstatedir
;;
234 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
235 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
236 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
237 localstatedir
="$ac_optarg" ;;
239 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
241 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
242 mandir
="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
252 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
253 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
256 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
257 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
258 |
--oldin |
--oldi |
--old |
--ol |
--o)
259 ac_prev
=oldincludedir
;;
260 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
261 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
262 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
263 oldincludedir
="$ac_optarg" ;;
265 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
267 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
268 prefix
="$ac_optarg" ;;
270 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
271 |
--program-pre |
--program-pr |
--program-p)
272 ac_prev
=program_prefix
;;
273 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
274 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
275 program_prefix
="$ac_optarg" ;;
277 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
278 |
--program-suf |
--program-su |
--program-s)
279 ac_prev
=program_suffix
;;
280 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
281 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
282 program_suffix
="$ac_optarg" ;;
284 -program-transform-name |
--program-transform-name \
285 |
--program-transform-nam |
--program-transform-na \
286 |
--program-transform-n |
--program-transform- \
287 |
--program-transform |
--program-transfor \
288 |
--program-transfo |
--program-transf \
289 |
--program-trans |
--program-tran \
290 |
--progr-tra |
--program-tr |
--program-t)
291 ac_prev
=program_transform_name
;;
292 -program-transform-name=* |
--program-transform-name=* \
293 |
--program-transform-nam=* |
--program-transform-na=* \
294 |
--program-transform-n=* |
--program-transform-=* \
295 |
--program-transform=* |
--program-transfor=* \
296 |
--program-transfo=* |
--program-transf=* \
297 |
--program-trans=* |
--program-tran=* \
298 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
299 program_transform_name
="$ac_optarg" ;;
301 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
302 |
-silent |
--silent |
--silen |
--sile |
--sil)
305 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
307 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
309 sbindir
="$ac_optarg" ;;
311 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
312 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
313 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
315 ac_prev
=sharedstatedir
;;
316 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
317 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
318 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
320 sharedstatedir
="$ac_optarg" ;;
322 -site |
--site |
--sit)
324 -site=* |
--site=* |
--sit=*)
327 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
329 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
330 srcdir
="$ac_optarg" ;;
332 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
333 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
334 ac_prev
=sysconfdir
;;
335 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
336 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
337 sysconfdir
="$ac_optarg" ;;
339 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
341 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
342 target
="$ac_optarg" ;;
344 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
347 -version |
--version |
--versio |
--versi |
--vers)
348 echo "configure generated by autoconf version 2.12"
352 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* |
--without-*)
365 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
378 |
--x-incl |
--x-inc |
--x-in |
--x-i)
379 ac_prev
=x_includes
;;
380 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
381 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
382 x_includes
="$ac_optarg" ;;
384 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
385 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
386 ac_prev
=x_libraries
;;
387 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
388 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
389 x_libraries
="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE
; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
440 |
--no-cr |
--no-c) ;;
441 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
442 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
443 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest
* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted
=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted
=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE
; then
494 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file
in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp
='$CPP $CPPFLAGS'
517 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling
=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
530 ac_n
= ac_c
='\c' ac_t
=
536 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
537 if test -f $ac_dir/install-sh
; then
539 ac_install_sh
="$ac_aux_dir/install-sh -c"
541 elif test -f $ac_dir/install.sh
; then
543 ac_install_sh
="$ac_aux_dir/install.sh -c"
547 if test -z "$ac_aux_dir"; then
548 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
550 ac_config_guess
=$ac_aux_dir/config.guess
551 ac_config_sub
=$ac_aux_dir/config.sub
552 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
555 # Do some error checking and defaulting for the host and target type.
557 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
560 # 1. You are not allowed to specify --host, --target, and nonopt at the
562 # 2. Host defaults to nonopt.
563 # 3. If nonopt is not specified, then host defaults to the current host,
564 # as determined by config.guess.
565 # 4. Target and build default to nonopt.
566 # 5. If nonopt is not specified, then target and build default to host.
568 # The aliases save the names the user supplied, while $host etc.
569 # will get canonicalized.
570 case $host---$target---$nonopt in
571 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
572 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
576 # Make sure we can run config.sub.
577 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
578 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
581 echo $ac_n "checking host system type""... $ac_c" 1>&6
582 echo "configure:583: checking host system type" >&5
585 case "$host_alias" in
589 if host_alias
=`$ac_config_guess`; then :
590 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592 *) host_alias
=$nonopt ;;
596 host=`$ac_config_sub $host_alias`
597 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
598 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
599 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
600 echo "$ac_t""$host" 1>&6
602 echo $ac_n "checking target system type""... $ac_c" 1>&6
603 echo "configure:604: checking target system type" >&5
606 case "$target_alias" in
609 NONE
) target_alias
=$host_alias ;;
610 *) target_alias
=$nonopt ;;
614 target
=`$ac_config_sub $target_alias`
615 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
616 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
617 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
618 echo "$ac_t""$target" 1>&6
620 echo $ac_n "checking build system type""... $ac_c" 1>&6
621 echo "configure:622: checking build system type" >&5
624 case "$build_alias" in
627 NONE
) build_alias
=$host_alias ;;
628 *) build_alias
=$nonopt ;;
632 build
=`$ac_config_sub $build_alias`
633 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636 echo "$ac_t""$build" 1>&6
638 test "$host_alias" != "$target_alias" &&
639 test "$program_prefix$program_suffix$program_transform_name" = \
641 program_prefix
=${target_alias}-
644 # Find a good install program. We prefer a C program (faster),
645 # so one script is as good as another. But avoid the broken or
646 # incompatible versions:
647 # SysV /etc/install, /usr/sbin/install
648 # SunOS /usr/etc/install
651 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
652 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
653 # ./install, which can be erroneously created by make from ./install.sh.
654 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
655 echo "configure:656: checking for a BSD compatible install" >&5
656 if test -z "$INSTALL"; then
657 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
658 echo $ac_n "(cached) $ac_c" 1>&6
660 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
661 for ac_dir
in $PATH; do
662 # Account for people who put trailing slashes in PATH elements.
664 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
666 # OSF1 and SCO ODT 3.0 have their own names for install.
667 for ac_prog
in ginstall installbsd scoinst
install; do
668 if test -f $ac_dir/$ac_prog; then
669 if test $ac_prog = install &&
670 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
671 # AIX install. It has an incompatible calling convention.
672 # OSF/1 installbsd also uses dspmsg, but is usable.
675 ac_cv_path_install
="$ac_dir/$ac_prog -c"
686 if test "${ac_cv_path_install+set}" = set; then
687 INSTALL
="$ac_cv_path_install"
689 # As a last resort, use the slow shell script. We don't cache a
690 # path for INSTALL within a source directory, because that will
691 # break other packages using the cache if that directory is
692 # removed, or if the path is relative.
693 INSTALL
="$ac_install_sh"
696 echo "$ac_t""$INSTALL" 1>&6
698 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
699 # It thinks the first close brace ends the variable substitution.
700 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
702 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
705 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
712 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
713 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
715 cat >> confdefs.h
<<EOF
716 #define PACKAGE "$PACKAGE"
719 cat >> confdefs.h
<<EOF
720 #define VERSION "$VERSION"
723 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
724 echo "configure:725: checking whether build environment is sane" >&5
727 echo timestamp
> conftestfile
728 # Do `set' in a subshell so we don't clobber the current shell's
729 # arguments. Must try -L first in case configure is actually a
730 # symlink; some systems play weird games with the mod time of symlinks
731 # (eg FreeBSD returns the mod time of the symlink's containing
734 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
735 if test "" = "X"; then
737 set X
`ls -t $srcdir/configure conftestfile`
739 test "$2" = conftestfile
745 { echo "configure: error: newly created file is older than distributed files!
746 Check your system clock" 1>&2; exit 1; }
749 echo "$ac_t""yes" 1>&6
750 if test "$program_transform_name" = s
,x
,x
,; then
751 program_transform_name
=
753 # Double any \ or $. echo might interpret backslashes.
754 cat <<\EOF_SED
> conftestsed
755 s
,\\,\\\\,g
; s
,\$
,$$
,g
757 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
760 test "$program_prefix" != NONE
&&
761 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
762 # Use a double $ so make ignores it.
763 test "$program_suffix" != NONE
&&
764 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
766 # sed with no file args requires a program.
767 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
769 missing_dir
=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
777 echo "$ac_t""found" 1>&6
779 ACLOCAL
="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
790 echo "$ac_t""found" 1>&6
792 AUTOCONF
="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
803 echo "$ac_t""found" 1>&6
805 AUTOMAKE
="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
815 AUTOHEADER
=autoheader
816 echo "$ac_t""found" 1>&6
818 AUTOHEADER
="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
829 echo "$ac_t""found" 1>&6
831 MAKEINFO
="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
835 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
836 echo "configure:837: checking whether ${MAKE-make} sets \${MAKE}" >&5
837 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
838 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
841 cat > conftestmake
<<\EOF
843 @
echo 'ac_maketemp="${MAKE}"'
845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
846 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
847 if test -n "$ac_maketemp"; then
848 eval ac_cv_prog_make_
${ac_make}_set
=yes
850 eval ac_cv_prog_make_
${ac_make}_set
=no
854 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
855 echo "$ac_t""yes" 1>&6
858 echo "$ac_t""no" 1>&6
859 SET_MAKE
="MAKE=${MAKE-make}"
863 # Extract the first word of "gcc", so it can be a program name with args.
864 set dummy gcc
; ac_word
=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$CC"; then
871 ac_cv_prog_CC
="$CC" # Let the user override the test.
873 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
874 for ac_dir
in $PATH; do
875 test -z "$ac_dir" && ac_dir
=.
876 if test -f $ac_dir/$ac_word; then
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
888 echo "$ac_t""no" 1>&6
891 if test -z "$CC"; then
892 # Extract the first word of "cc", so it can be a program name with args.
893 set dummy cc
; ac_word
=$2
894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
895 echo "configure:896: checking for $ac_word" >&5
896 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
897 echo $ac_n "(cached) $ac_c" 1>&6
899 if test -n "$CC"; then
900 ac_cv_prog_CC
="$CC" # Let the user override the test.
902 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
904 for ac_dir
in $PATH; do
905 test -z "$ac_dir" && ac_dir
=.
906 if test -f $ac_dir/$ac_word; then
907 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
916 if test $ac_prog_rejected = yes; then
917 # We found a bogon in the path, so make sure we never use it.
918 set dummy
$ac_cv_prog_CC
920 if test $# -gt 0; then
921 # We chose a different compiler from the bogus one.
922 # However, it has the same basename, so the bogon will be chosen
923 # first if we set CC to just the basename; use the full file name.
925 set dummy
"$ac_dir/$ac_word" "$@"
933 if test -n "$CC"; then
934 echo "$ac_t""$CC" 1>&6
936 echo "$ac_t""no" 1>&6
939 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
942 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
943 echo "configure:944: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
946 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
947 ac_cpp
='$CPP $CPPFLAGS'
948 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
949 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
950 cross_compiling
=$ac_cv_prog_cc_cross
952 cat > conftest.
$ac_ext <<EOF
953 #line 954 "configure"
954 #include "confdefs.h"
957 if { (eval echo configure
:958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
958 ac_cv_prog_cc_works
=yes
959 # If we can't run a trivial program, we are probably using a cross compiler.
960 if (.
/conftest
; exit) 2>/dev
/null
; then
961 ac_cv_prog_cc_cross
=no
963 ac_cv_prog_cc_cross
=yes
966 echo "configure: failed program was:" >&5
967 cat conftest.
$ac_ext >&5
968 ac_cv_prog_cc_works
=no
972 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
973 if test $ac_cv_prog_cc_works = no
; then
974 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
976 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
977 echo "configure:978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
978 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
979 cross_compiling
=$ac_cv_prog_cc_cross
981 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
982 echo "configure:983: checking whether we are using GNU C" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 cat > conftest.c
<<EOF
991 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
998 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1000 if test $ac_cv_prog_gcc = yes; then
1002 ac_test_CFLAGS
="${CFLAGS+set}"
1003 ac_save_CFLAGS
="$CFLAGS"
1005 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1006 echo "configure:1007: checking whether ${CC-cc} accepts -g" >&5
1007 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1008 echo $ac_n "(cached) $ac_c" 1>&6
1010 echo 'void f(){}' > conftest.c
1011 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1020 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1021 if test "$ac_test_CFLAGS" = set; then
1022 CFLAGS
="$ac_save_CFLAGS"
1023 elif test $ac_cv_prog_cc_g = yes; then
1030 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1033 # Extract the first word of "ranlib", so it can be a program name with args.
1034 set dummy ranlib
; ac_word
=$2
1035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1036 echo "configure:1037: checking for $ac_word" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1040 if test -n "$RANLIB"; then
1041 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1043 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1044 for ac_dir
in $PATH; do
1045 test -z "$ac_dir" && ac_dir
=.
1046 if test -f $ac_dir/$ac_word; then
1047 ac_cv_prog_RANLIB
="ranlib"
1052 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1055 RANLIB
="$ac_cv_prog_RANLIB"
1056 if test -n "$RANLIB"; then
1057 echo "$ac_t""$RANLIB" 1>&6
1059 echo "$ac_t""no" 1>&6
1062 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1063 if test "${with_gnu_ld+set}" = set; then
1064 withval
="$with_gnu_ld"
1065 test "$withval" = no || with_gnu_ld
=yes
1070 if test "$with_gnu_ld" = yes; then
1071 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1072 echo "configure:1073: checking for GNU ld" >&5
1074 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1075 echo "configure:1076: checking for non-GNU ld" >&5
1077 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1078 echo $ac_n "(cached) $ac_c" 1>&6
1082 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1086 for ac_dir
in $PATH; do
1087 test -z "$ac_dir" && ac_dir
=.
1088 if test -f "$ac_dir/ld"; then
1089 ac_cv_path_LD
="$ac_dir/ld"
1090 # Check to see if the program is GNU ld. I'd rather use --version,
1091 # but apparently some GNU ld's only accept -v.
1092 # Break only if it was the GNU/non-GNU ld that we prefer.
1093 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1094 test "$with_gnu_ld" = yes && break
1096 test "$with_gnu_ld" != yes && break
1106 if test -n "$LD"; then
1107 echo "$ac_t""$LD" 1>&6
1109 echo "$ac_t""no" 1>&6
1111 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1113 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1114 echo "configure:1115: checking whether we are using GNU ld" >&5
1115 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1118 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1119 if $LD -v 2>&1 </dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1120 ac_cv_prog_gnu_ld
=yes
1122 ac_cv_prog_gnu_ld
=no
1126 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1129 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1130 echo "configure:1131: checking whether ln -s works" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1135 if ln -s X conftestdata
2>/dev
/null
1138 ac_cv_prog_LN_S
="ln -s"
1143 LN_S
="$ac_cv_prog_LN_S"
1144 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1145 echo "$ac_t""yes" 1>&6
1147 echo "$ac_t""no" 1>&6
1156 # Always use our own libtool.
1157 LIBTOOL
='$(top_builddir)/libtool'
1160 # Check whether --enable-shared or --disable-shared was given.
1161 if test "${enable_shared+set}" = set; then
1162 enableval
="$enable_shared"
1163 if test "$enableval" = no
; then
1171 test "$enable_shared" = no
&& libtool_shared
=" --disable-shared"
1173 # Check whether --enable-static or --disable-static was given.
1174 if test "${enable_static+set}" = set; then
1175 enableval
="$enable_static"
1176 if test "$enableval" = no
; then
1184 test "$enable_static" = no
&& libtool_static
=" --disable-static"
1186 libtool_flags
="$libtool_shared$libtool_static"
1187 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1188 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1189 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1191 # Some flags need to be propagated to the compiler or linker for good
1195 ac_save_CFLAGS
="$CFLAGS"
1196 # -n32 always needs to be added to the linker when using GCC.
1197 test "$ac_cv_prog_gcc" = yes && CFLAGS
="$CFLAGS -n32"
1198 for f
in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1199 if echo " $CC $CFLAGS " |
egrep -e "[ ]$f[ ]" > /dev
/null
; then
1203 CFLAGS
="$ac_save_CFLAGS"
1207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1208 CFLAGS
="$CFLAGS -belf"
1212 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1213 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1214 LD
="$LD" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1215 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1216 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1217 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1220 # Check whether --enable-targets or --disable-targets was given.
1221 if test "${enable_targets+set}" = set; then
1222 enableval
="$enable_targets"
1223 case "${enableval}" in
1224 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1226 no
) enable_targets
= ;;
1227 *) enable_targets
=$enableval ;;
1230 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1231 if test "${enable_commonbfdlib+set}" = set; then
1232 enableval
="$enable_commonbfdlib"
1233 case "${enableval}" in
1234 yes) commonbfdlib
=true
;;
1235 no
) commonbfdlib
=false
;;
1236 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1244 if test -z "$target" ; then
1245 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
1247 if test -z "$host" ; then
1248 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
1251 # Extract the first word of "gcc", so it can be a program name with args.
1252 set dummy gcc
; ac_word
=$2
1253 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1254 echo "configure:1255: checking for $ac_word" >&5
1255 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1256 echo $ac_n "(cached) $ac_c" 1>&6
1258 if test -n "$CC"; then
1259 ac_cv_prog_CC
="$CC" # Let the user override the test.
1261 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1262 for ac_dir
in $PATH; do
1263 test -z "$ac_dir" && ac_dir
=.
1264 if test -f $ac_dir/$ac_word; then
1273 if test -n "$CC"; then
1274 echo "$ac_t""$CC" 1>&6
1276 echo "$ac_t""no" 1>&6
1279 if test -z "$CC"; then
1280 # Extract the first word of "cc", so it can be a program name with args.
1281 set dummy cc
; ac_word
=$2
1282 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1283 echo "configure:1284: checking for $ac_word" >&5
1284 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1287 if test -n "$CC"; then
1288 ac_cv_prog_CC
="$CC" # Let the user override the test.
1290 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1292 for ac_dir
in $PATH; do
1293 test -z "$ac_dir" && ac_dir
=.
1294 if test -f $ac_dir/$ac_word; then
1295 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1296 ac_prog_rejected
=yes
1304 if test $ac_prog_rejected = yes; then
1305 # We found a bogon in the path, so make sure we never use it.
1306 set dummy
$ac_cv_prog_CC
1308 if test $# -gt 0; then
1309 # We chose a different compiler from the bogus one.
1310 # However, it has the same basename, so the bogon will be chosen
1311 # first if we set CC to just the basename; use the full file name.
1313 set dummy
"$ac_dir/$ac_word" "$@"
1321 if test -n "$CC"; then
1322 echo "$ac_t""$CC" 1>&6
1324 echo "$ac_t""no" 1>&6
1327 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1330 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1331 echo "configure:1332: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1335 ac_cpp
='$CPP $CPPFLAGS'
1336 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1337 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1338 cross_compiling
=$ac_cv_prog_cc_cross
1340 cat > conftest.
$ac_ext <<EOF
1341 #line 1342 "configure"
1342 #include "confdefs.h"
1345 if { (eval echo configure
:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1346 ac_cv_prog_cc_works
=yes
1347 # If we can't run a trivial program, we are probably using a cross compiler.
1348 if (.
/conftest
; exit) 2>/dev
/null
; then
1349 ac_cv_prog_cc_cross
=no
1351 ac_cv_prog_cc_cross
=yes
1354 echo "configure: failed program was:" >&5
1355 cat conftest.
$ac_ext >&5
1356 ac_cv_prog_cc_works
=no
1360 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1361 if test $ac_cv_prog_cc_works = no
; then
1362 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1364 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1365 echo "configure:1366: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1366 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1367 cross_compiling
=$ac_cv_prog_cc_cross
1369 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1370 echo "configure:1371: checking whether we are using GNU C" >&5
1371 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 cat > conftest.c
<<EOF
1379 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1386 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1388 if test $ac_cv_prog_gcc = yes; then
1390 ac_test_CFLAGS
="${CFLAGS+set}"
1391 ac_save_CFLAGS
="$CFLAGS"
1393 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1394 echo "configure:1395: checking whether ${CC-cc} accepts -g" >&5
1395 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1398 echo 'void f(){}' > conftest.c
1399 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1408 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1409 if test "$ac_test_CFLAGS" = set; then
1410 CFLAGS
="$ac_save_CFLAGS"
1411 elif test $ac_cv_prog_cc_g = yes; then
1418 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1422 for ac_prog
in 'bison -y' byacc
1424 # Extract the first word of "$ac_prog", so it can be a program name with args.
1425 set dummy
$ac_prog; ac_word
=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 if test -n "$YACC"; then
1432 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
1434 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1435 for ac_dir
in $PATH; do
1436 test -z "$ac_dir" && ac_dir
=.
1437 if test -f $ac_dir/$ac_word; then
1438 ac_cv_prog_YACC
="$ac_prog"
1445 YACC
="$ac_cv_prog_YACC"
1446 if test -n "$YACC"; then
1447 echo "$ac_t""$YACC" 1>&6
1449 echo "$ac_t""no" 1>&6
1452 test -n "$YACC" && break
1454 test -n "$YACC" || YACC
="yacc"
1456 # Extract the first word of "flex", so it can be a program name with args.
1457 set dummy flex
; ac_word
=$2
1458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1459 echo "configure:1460: checking for $ac_word" >&5
1460 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1461 echo $ac_n "(cached) $ac_c" 1>&6
1463 if test -n "$LEX"; then
1464 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
1466 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1467 for ac_dir
in $PATH; do
1468 test -z "$ac_dir" && ac_dir
=.
1469 if test -f $ac_dir/$ac_word; then
1470 ac_cv_prog_LEX
="flex"
1475 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
1478 LEX
="$ac_cv_prog_LEX"
1479 if test -n "$LEX"; then
1480 echo "$ac_t""$LEX" 1>&6
1482 echo "$ac_t""no" 1>&6
1485 if test -z "$LEXLIB"
1491 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1492 echo "configure:1493: checking for yywrap in -l$ac_lib" >&5
1493 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 ac_save_LIBS
="$LIBS"
1498 LIBS
="-l$ac_lib $LIBS"
1499 cat > conftest.
$ac_ext <<EOF
1500 #line 1501 "configure"
1501 #include "confdefs.h"
1502 /* Override any gcc2 internal prototype to avoid an error. */
1503 /* We use char because int might match the return type of a gcc2
1504 builtin and then its argument prototype would still apply. */
1511 if { (eval echo configure
:1512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1513 eval "ac_cv_lib_$ac_lib_var=yes"
1515 echo "configure: failed program was:" >&5
1516 cat conftest.
$ac_ext >&5
1518 eval "ac_cv_lib_$ac_lib_var=no"
1521 LIBS
="$ac_save_LIBS"
1524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1525 echo "$ac_t""yes" 1>&6
1528 echo "$ac_t""no" 1>&6
1533 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1534 echo "configure:1535: checking how to run the C preprocessor" >&5
1535 # On Suns, sometimes $CPP names a directory.
1536 if test -n "$CPP" && test -d "$CPP"; then
1539 if test -z "$CPP"; then
1540 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 # This must be in double quotes, not single quotes, because CPP may get
1544 # substituted into the Makefile and "${CC-cc}" will confuse make.
1546 # On the NeXT, cc -E runs the code through the compiler's parser,
1547 # not just through cpp.
1548 cat > conftest.
$ac_ext <<EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1554 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1555 { (eval echo configure
:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1556 ac_err
=`grep -v '^ *+' conftest.out`
1557 if test -z "$ac_err"; then
1561 echo "configure: failed program was:" >&5
1562 cat conftest.
$ac_ext >&5
1564 CPP
="${CC-cc} -E -traditional-cpp"
1565 cat > conftest.
$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1571 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1572 { (eval echo configure
:1573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1573 ac_err
=`grep -v '^ *+' conftest.out`
1574 if test -z "$ac_err"; then
1578 echo "configure: failed program was:" >&5
1579 cat conftest.
$ac_ext >&5
1586 ac_cv_prog_CPP
="$CPP"
1588 CPP
="$ac_cv_prog_CPP"
1590 ac_cv_prog_CPP
="$CPP"
1592 echo "$ac_t""$CPP" 1>&6
1594 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
1595 echo "configure:1596: checking lex output file root" >&5
1596 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 # The minimal lex program is just a single line: %%. But some broken lexes
1600 # (Solaris, I think it was) want two %% lines, so accommodate them.
1603 if test -f lex.yy.c
; then
1604 ac_cv_prog_lex_root
=lex.yy
1605 elif test -f lexyy.c
; then
1606 ac_cv_prog_lex_root
=lexyy
1608 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
1612 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
1613 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
1615 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether yytext is a pointer" >&5
1617 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 # POSIX says lex can declare yytext either as a pointer or an array; the
1621 # default is implementation-dependent. Figure out which it is, since
1622 # not all implementations provide the %pointer and %array declarations.
1623 ac_cv_prog_lex_yytext_pointer
=no
1624 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
1625 ac_save_LIBS
="$LIBS"
1626 LIBS
="$LIBS $LEXLIB"
1627 cat > conftest.
$ac_ext <<EOF
1628 #line 1629 "configure"
1629 #include "confdefs.h"
1630 `cat $LEX_OUTPUT_ROOT.c`
1635 if { (eval echo configure
:1636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1637 ac_cv_prog_lex_yytext_pointer
=yes
1639 echo "configure: failed program was:" >&5
1640 cat conftest.
$ac_ext >&5
1643 LIBS
="$ac_save_LIBS"
1644 rm -f "${LEX_OUTPUT_ROOT}.c"
1648 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
1649 if test $ac_cv_prog_lex_yytext_pointer = yes; then
1650 cat >> confdefs.h
<<\EOF
1651 #define YYTEXT_POINTER 1
1657 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1658 echo "configure:1659: checking whether to enable maintainer-specific portions of Makefiles" >&5
1659 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1660 if test "${enable_maintainer_mode+set}" = set; then
1661 enableval
="$enable_maintainer_mode"
1662 USE_MAINTAINER_MODE
=$enableval
1664 USE_MAINTAINER_MODE
=no
1667 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1668 if test $USE_MAINTAINER_MODE = yes; then
1675 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
1676 echo "configure:1677: checking for Cygwin32 environment" >&5
1677 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1685 int main () { return __CYGWIN32__; }
1688 if { (eval echo configure
:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1692 echo "configure: failed program was:" >&5
1693 cat conftest.
$ac_ext >&5
1701 echo "$ac_t""$am_cv_cygwin32" 1>&6
1703 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
1705 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1706 echo "configure:1707: checking for executable suffix" >&5
1707 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 if test "$CYGWIN32" = yes; then
1713 cat > am_c_test.c
<< 'EOF'
1715 /* Nothing needed here
*/
1718 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
1719 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
1723 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
1726 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
1727 echo "$ac_t""${am_cv_exeext}" 1>&6
1730 # host-specific stuff:
1734 .
${srcdir}/..
/bfd
/configure.
host
1739 # Extract the first word of "ranlib", so it can be a program name with args.
1740 set dummy ranlib
; ac_word
=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$RANLIB"; then
1747 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1750 for ac_dir
in $PATH; do
1751 test -z "$ac_dir" && ac_dir
=.
1752 if test -f $ac_dir/$ac_word; then
1753 ac_cv_prog_RANLIB
="ranlib"
1758 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1761 RANLIB
="$ac_cv_prog_RANLIB"
1762 if test -n "$RANLIB"; then
1763 echo "$ac_t""$RANLIB" 1>&6
1765 echo "$ac_t""no" 1>&6
1769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1772 # Put a plausible default for CC_FOR_BUILD in Makefile.
1773 if test -z "$CC_FOR_BUILD"; then
1774 if test "x$cross_compiling" = "xno"; then
1775 CC_FOR_BUILD
='$(CC)'
1782 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
1784 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1786 echo "configure:1787: checking for $ac_hdr" >&5
1787 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 cat > conftest.
$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1795 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1796 { (eval echo configure
:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1797 ac_err
=`grep -v '^ *+' conftest.out`
1798 if test -z "$ac_err"; then
1800 eval "ac_cv_header_$ac_safe=yes"
1803 echo "configure: failed program was:" >&5
1804 cat conftest.
$ac_ext >&5
1806 eval "ac_cv_header_$ac_safe=no"
1810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1811 echo "$ac_t""yes" 1>&6
1812 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1813 cat >> confdefs.h
<<EOF
1814 #define $ac_tr_hdr 1
1818 echo "$ac_t""no" 1>&6
1822 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1823 echo "configure:1824: checking for sys/wait.h that is POSIX.1 compatible" >&5
1824 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1825 echo $ac_n "(cached) $ac_c" 1>&6
1827 cat > conftest.
$ac_ext <<EOF
1828 #line 1829 "configure"
1829 #include "confdefs.h"
1830 #include <sys/types.h>
1831 #include <sys/wait.h>
1833 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1836 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1841 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1844 if { (eval echo configure
:1845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1846 ac_cv_header_sys_wait_h
=yes
1848 echo "configure: failed program was:" >&5
1849 cat conftest.
$ac_ext >&5
1851 ac_cv_header_sys_wait_h
=no
1856 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1857 if test $ac_cv_header_sys_wait_h = yes; then
1858 cat >> confdefs.h
<<\EOF
1859 #define HAVE_SYS_WAIT_H 1
1864 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1865 # for constant arguments. Useless!
1866 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1867 echo "configure:1868: checking for working alloca.h" >&5
1868 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1869 echo $ac_n "(cached) $ac_c" 1>&6
1871 cat > conftest.
$ac_ext <<EOF
1872 #line 1873 "configure"
1873 #include "confdefs.h"
1876 char *p = alloca(2 * sizeof(int));
1879 if { (eval echo configure
:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1881 ac_cv_header_alloca_h
=yes
1883 echo "configure: failed program was:" >&5
1884 cat conftest.
$ac_ext >&5
1886 ac_cv_header_alloca_h
=no
1891 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1892 if test $ac_cv_header_alloca_h = yes; then
1893 cat >> confdefs.h
<<\EOF
1894 #define HAVE_ALLOCA_H 1
1899 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1900 echo "configure:1901: checking for alloca" >&5
1901 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1904 cat > conftest.
$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1909 # define alloca __builtin_alloca
1912 # include <alloca.h>
1917 # ifndef alloca /* predefined by HP cc +Olibcalls */
1925 char *p = (char *) alloca(1);
1928 if { (eval echo configure
:1929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1930 ac_cv_func_alloca_works
=yes
1932 echo "configure: failed program was:" >&5
1933 cat conftest.
$ac_ext >&5
1935 ac_cv_func_alloca_works
=no
1940 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1941 if test $ac_cv_func_alloca_works = yes; then
1942 cat >> confdefs.h
<<\EOF
1943 #define HAVE_ALLOCA 1
1948 if test $ac_cv_func_alloca_works = no
; then
1949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1950 # that cause trouble. Some versions do not even contain alloca or
1951 # contain a buggy version. If you still want to use their alloca,
1952 # use ar to extract alloca.o from them instead of compiling alloca.c.
1954 cat >> confdefs.h
<<\EOF
1959 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether alloca needs Cray hooks" >&5
1961 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1962 echo $ac_n "(cached) $ac_c" 1>&6
1964 cat > conftest.
$ac_ext <<EOF
1965 #line 1966 "configure"
1966 #include "confdefs.h"
1967 #if defined(CRAY) && ! defined(CRAY2)
1974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1975 egrep "webecray" >/dev
/null
2>&1; then
1986 echo "$ac_t""$ac_cv_os_cray" 1>&6
1987 if test $ac_cv_os_cray = yes; then
1988 for ac_func
in _getb67 GETB67 getb67
; do
1989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1990 echo "configure:1991: checking for $ac_func" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char $ac_func(); below. */
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2018 if { (eval echo configure
:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2020 eval "ac_cv_func_$ac_func=yes"
2022 echo "configure: failed program was:" >&5
2023 cat conftest.
$ac_ext >&5
2025 eval "ac_cv_func_$ac_func=no"
2030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 cat >> confdefs.h
<<EOF
2033 #define CRAY_STACKSEG_END $ac_func
2038 echo "$ac_t""no" 1>&6
2044 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2045 echo "configure:2046: checking stack direction for C alloca" >&5
2046 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2049 if test "$cross_compiling" = yes; then
2050 ac_cv_c_stack_direction
=0
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2055 find_stack_direction ()
2057 static char *addr = 0;
2062 return find_stack_direction ();
2065 return (&dummy > addr) ? 1 : -1;
2069 exit (find_stack_direction() < 0);
2072 if { (eval echo configure
:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2074 ac_cv_c_stack_direction
=1
2076 echo "configure: failed program was:" >&5
2077 cat conftest.
$ac_ext >&5
2079 ac_cv_c_stack_direction
=-1
2086 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2087 cat >> confdefs.h
<<EOF
2088 #define STACK_DIRECTION $ac_cv_c_stack_direction
2093 for ac_func
in sbrk utimes
2095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2096 echo "configure:2097: checking for $ac_func" >&5
2097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2098 echo $ac_n "(cached) $ac_c" 1>&6
2100 cat > conftest.
$ac_ext <<EOF
2101 #line 2102 "configure"
2102 #include "confdefs.h"
2103 /* System header to define __stub macros and hopefully few prototypes,
2104 which can conflict with char $ac_func(); below. */
2106 /* Override any gcc2 internal prototype to avoid an error. */
2107 /* We use char because int might match the return type of a gcc2
2108 builtin and then its argument prototype would still apply. */
2113 /* The GNU C library defines this for functions which it implements
2114 to always fail with ENOSYS. Some functions are actually named
2115 something starting with __ and the normal name is an alias. */
2116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2124 if { (eval echo configure
:2125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2126 eval "ac_cv_func_$ac_func=yes"
2128 echo "configure: failed program was:" >&5
2129 cat conftest.
$ac_ext >&5
2131 eval "ac_cv_func_$ac_func=no"
2136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2138 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2139 cat >> confdefs.h
<<EOF
2140 #define $ac_tr_func 1
2144 echo "$ac_t""no" 1>&6
2148 if test "x$cross_compiling" = "xno"; then
2149 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2150 echo "configure:2151: checking for ANSI C header files" >&5
2151 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2154 cat > conftest.
$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2162 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2163 { (eval echo configure
:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2164 ac_err
=`grep -v '^ *+' conftest.out`
2165 if test -z "$ac_err"; then
2167 ac_cv_header_stdc
=yes
2170 echo "configure: failed program was:" >&5
2171 cat conftest.
$ac_ext >&5
2173 ac_cv_header_stdc
=no
2177 if test $ac_cv_header_stdc = yes; then
2178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2179 cat > conftest.
$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2185 egrep "memchr" >/dev
/null
2>&1; then
2189 ac_cv_header_stdc
=no
2195 if test $ac_cv_header_stdc = yes; then
2196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2197 cat > conftest.
$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2203 egrep "free" >/dev
/null
2>&1; then
2207 ac_cv_header_stdc
=no
2213 if test $ac_cv_header_stdc = yes; then
2214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2215 if test "$cross_compiling" = yes; then
2218 cat > conftest.
$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2222 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2223 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2225 int main () { int i; for (i = 0; i < 256; i++)
2226 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2230 if { (eval echo configure
:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 ac_cv_header_stdc
=no
2245 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2246 if test $ac_cv_header_stdc = yes; then
2247 cat >> confdefs.h
<<\EOF
2248 #define STDC_HEADERS 1
2253 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2254 echo "configure:2255: checking for pid_t" >&5
2255 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 #include <sys/types.h>
2267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2268 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2270 ac_cv_type_pid_t
=yes
2278 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2279 if test $ac_cv_type_pid_t = no
; then
2280 cat >> confdefs.h
<<\EOF
2286 ac_safe
=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2287 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2288 echo "configure:2289: checking for vfork.h" >&5
2289 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 cat > conftest.
$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2297 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2298 { (eval echo configure
:2299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2299 ac_err
=`grep -v '^ *+' conftest.out`
2300 if test -z "$ac_err"; then
2302 eval "ac_cv_header_$ac_safe=yes"
2305 echo "configure: failed program was:" >&5
2306 cat conftest.
$ac_ext >&5
2308 eval "ac_cv_header_$ac_safe=no"
2312 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2313 echo "$ac_t""yes" 1>&6
2314 cat >> confdefs.h
<<\EOF
2315 #define HAVE_VFORK_H 1
2319 echo "$ac_t""no" 1>&6
2322 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2323 echo "configure:2324: checking for working vfork" >&5
2324 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2325 echo $ac_n "(cached) $ac_c" 1>&6
2327 if test "$cross_compiling" = yes; then
2328 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2329 echo "configure:2330: checking for vfork" >&5
2330 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2336 /* System header to define __stub macros and hopefully few prototypes,
2337 which can conflict with char vfork(); below. */
2339 /* Override any gcc2 internal prototype to avoid an error. */
2340 /* We use char because int might match the return type of a gcc2
2341 builtin and then its argument prototype would still apply. */
2346 /* The GNU C library defines this for functions which it implements
2347 to always fail with ENOSYS. Some functions are actually named
2348 something starting with __ and the normal name is an alias. */
2349 #if defined (__stub_vfork) || defined (__stub___vfork)
2357 if { (eval echo configure
:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2359 eval "ac_cv_func_vfork=yes"
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 eval "ac_cv_func_vfork=no"
2369 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2370 echo "$ac_t""yes" 1>&6
2373 echo "$ac_t""no" 1>&6
2377 cat > conftest.
$ac_ext <<EOF
2378 #line 2379 "configure"
2379 #include "confdefs.h"
2380 /* Thanks to Paul Eggert for this test. */
2382 #include <sys/types.h>
2383 #include <sys/stat.h>
2384 #ifdef HAVE_UNISTD_H
2390 /* On some sparc systems, changes by the child to local and incoming
2391 argument registers are propagated back to the parent.
2392 The compiler is told about this with #include <vfork.h>,
2393 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2394 Test for this by using a static variable whose address
2395 is put into a register that is clobbered by the vfork. */
2398 sparc_address_test (int arg)
2400 sparc_address_test (arg) int arg;
2418 pid_t parent = getpid ();
2421 sparc_address_test ();
2426 /* Here is another test for sparc vfork register problems.
2427 This test uses lots of local variables, at least
2428 as many local variables as main has allocated so far
2429 including compiler temporaries. 4 locals are enough for
2430 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2431 A buggy compiler should reuse the register of parent
2432 for one of the local variables, since it will think that
2433 parent can't possibly be used any more in this routine.
2434 Assigning to the local variable will thus munge parent
2435 in the parent process. */
2437 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2438 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2439 /* Convince the compiler that p..p7 are live; otherwise, it might
2440 use the same hardware register for all 8 local variables. */
2441 if (p != p1 || p != p2 || p != p3 || p != p4
2442 || p != p5 || p != p6 || p != p7)
2445 /* On some systems (e.g. IRIX 3.3),
2446 vfork doesn't separate parent from child file descriptors.
2447 If the child closes a descriptor before it execs or exits,
2448 this munges the parent's descriptor as well.
2449 Test for this by closing stdout in the child. */
2450 _exit(close(fileno(stdout)) != 0);
2455 while (wait(&status) != child)
2458 /* Was there some problem with vforking? */
2461 /* Did the child fail? (This shouldn't happen.) */
2464 /* Did the vfork/compiler bug occur? */
2465 || parent != getpid()
2467 /* Did the file descriptor bug occur? */
2468 || fstat(fileno(stdout), &st) != 0
2473 if { (eval echo configure
:2474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2475 ac_cv_func_vfork_works
=yes
2477 echo "configure: failed program was:" >&5
2478 cat conftest.
$ac_ext >&5
2480 ac_cv_func_vfork_works
=no
2487 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2488 if test $ac_cv_func_vfork_works = no
; then
2489 cat >> confdefs.h
<<\EOF
2496 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2497 echo "configure:2498: checking for vfork" >&5
2498 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 cat > conftest.
$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 /* System header to define __stub macros and hopefully few prototypes,
2505 which can conflict with char vfork(); below. */
2507 /* Override any gcc2 internal prototype to avoid an error. */
2508 /* We use char because int might match the return type of a gcc2
2509 builtin and then its argument prototype would still apply. */
2514 /* The GNU C library defines this for functions which it implements
2515 to always fail with ENOSYS. Some functions are actually named
2516 something starting with __ and the normal name is an alias. */
2517 #if defined (__stub_vfork) || defined (__stub___vfork)
2525 if { (eval echo configure
:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2527 eval "ac_cv_func_vfork=yes"
2529 echo "configure: failed program was:" >&5
2530 cat conftest.
$ac_ext >&5
2532 eval "ac_cv_func_vfork=no"
2537 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2538 echo "$ac_t""yes" 1>&6
2541 echo "$ac_t""no" 1>&6
2542 cat >> confdefs.h
<<\EOF
2550 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
2551 echo "configure:2552: checking for time_t in time.h" >&5
2552 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
2553 echo $ac_n "(cached) $ac_c" 1>&6
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2563 if { (eval echo configure
:2564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2565 bu_cv_decl_time_t_time_h
=yes
2567 echo "configure: failed program was:" >&5
2568 cat conftest.
$ac_ext >&5
2570 bu_cv_decl_time_t_time_h
=no
2575 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
2576 if test $bu_cv_decl_time_t_time_h = yes; then
2577 cat >> confdefs.h
<<\EOF
2578 #define HAVE_TIME_T_IN_TIME_H 1
2583 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
2584 echo "configure:2585: checking for time_t in sys/types.h" >&5
2585 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 cat > conftest.
$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2591 #include <sys/types.h>
2596 if { (eval echo configure
:2597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2598 bu_cv_decl_time_t_types_h
=yes
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2603 bu_cv_decl_time_t_types_h
=no
2608 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
2609 if test $bu_cv_decl_time_t_types_h = yes; then
2610 cat >> confdefs.h
<<\EOF
2611 #define HAVE_TIME_T_IN_TYPES_H 1
2616 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
2618 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
2619 echo "configure:2620: checking for utime.h" >&5
2620 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 #include <sys/types.h>
2635 if { (eval echo configure
:2636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2637 bu_cv_header_utime_h
=yes
2639 echo "configure: failed program was:" >&5
2640 cat conftest.
$ac_ext >&5
2642 bu_cv_header_utime_h
=no
2647 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
2648 if test $bu_cv_header_utime_h = yes; then
2649 cat >> confdefs.h
<<\EOF
2650 #define HAVE_GOOD_UTIME_H 1
2655 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
2656 echo "configure:2657: checking whether fprintf must be declared" >&5
2657 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
2658 echo $ac_n "(cached) $ac_c" 1>&6
2660 cat > conftest.
$ac_ext <<EOF
2661 #line 2662 "configure"
2662 #include "confdefs.h"
2665 #ifdef HAVE_STRING_H
2668 #ifdef HAVE_STRINGS_H
2669 #include <strings.h>
2672 #ifdef HAVE_STDLIB_H
2675 #ifdef HAVE_UNISTD_H
2679 char *(*pfn) = (char *(*)) fprintf
2682 if { (eval echo configure
:2683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2684 bfd_cv_decl_needed_fprintf
=no
2686 echo "configure: failed program was:" >&5
2687 cat conftest.
$ac_ext >&5
2689 bfd_cv_decl_needed_fprintf
=yes
2694 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
2695 if test $bfd_cv_decl_needed_fprintf = yes; then
2696 bfd_tr_decl
=NEED_DECLARATION_
`echo fprintf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2697 cat >> confdefs.h
<<EOF
2698 #define $bfd_tr_decl 1
2703 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
2704 echo "configure:2705: checking whether strstr must be declared" >&5
2705 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 cat > conftest.
$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2713 #ifdef HAVE_STRING_H
2716 #ifdef HAVE_STRINGS_H
2717 #include <strings.h>
2720 #ifdef HAVE_STDLIB_H
2723 #ifdef HAVE_UNISTD_H
2727 char *(*pfn) = (char *(*)) strstr
2730 if { (eval echo configure
:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 bfd_cv_decl_needed_strstr
=no
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 bfd_cv_decl_needed_strstr
=yes
2742 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
2743 if test $bfd_cv_decl_needed_strstr = yes; then
2744 bfd_tr_decl
=NEED_DECLARATION_
`echo strstr | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2745 cat >> confdefs.h
<<EOF
2746 #define $bfd_tr_decl 1
2751 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
2752 echo "configure:2753: checking whether sbrk must be declared" >&5
2753 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2761 #ifdef HAVE_STRING_H
2764 #ifdef HAVE_STRINGS_H
2765 #include <strings.h>
2768 #ifdef HAVE_STDLIB_H
2771 #ifdef HAVE_UNISTD_H
2775 char *(*pfn) = (char *(*)) sbrk
2778 if { (eval echo configure
:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 bfd_cv_decl_needed_sbrk
=no
2782 echo "configure: failed program was:" >&5
2783 cat conftest.
$ac_ext >&5
2785 bfd_cv_decl_needed_sbrk
=yes
2790 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
2791 if test $bfd_cv_decl_needed_sbrk = yes; then
2792 bfd_tr_decl
=NEED_DECLARATION_
`echo sbrk | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2793 cat >> confdefs.h
<<EOF
2794 #define $bfd_tr_decl 1
2799 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
2800 echo "configure:2801: checking whether getenv must be declared" >&5
2801 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 #ifdef HAVE_STRING_H
2812 #ifdef HAVE_STRINGS_H
2813 #include <strings.h>
2816 #ifdef HAVE_STDLIB_H
2819 #ifdef HAVE_UNISTD_H
2823 char *(*pfn) = (char *(*)) getenv
2826 if { (eval echo configure
:2827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2828 bfd_cv_decl_needed_getenv
=no
2830 echo "configure: failed program was:" >&5
2831 cat conftest.
$ac_ext >&5
2833 bfd_cv_decl_needed_getenv
=yes
2838 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
2839 if test $bfd_cv_decl_needed_getenv = yes; then
2840 bfd_tr_decl
=NEED_DECLARATION_
`echo getenv | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2841 cat >> confdefs.h
<<EOF
2842 #define $bfd_tr_decl 1
2850 i
[345]86-*-msdos* | i
[345]86-*-go32* |
*-*-cygwin32 |
*-*-windows)
2851 cat >> confdefs.h
<<\EOF
2852 #define USE_BINARY_FOPEN 1
2857 # target-specific stuff:
2859 # Canonicalize the secondary target names.
2860 if test -n "$enable_targets"; then
2861 for targ
in `echo $enable_targets | sed 's/,/ /g'`
2863 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
2864 if test -n "$result"; then
2865 canon_targets
="$canon_targets $result"
2867 # Allow targets that config.sub doesn't recognize, like "all".
2868 canon_targets
="$canon_targets $targ"
2881 for targ
in $target $canon_targets
2883 if test "x$targ" = "xall"; then
2885 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
2886 BUILD_SRCONV
='$(SRCONV_PROG)$(EXEEXT)'
2887 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
2890 i
[3456]86*-*-netware*)
2891 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
2892 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
2895 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
2896 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
2898 powerpc
*-*-netware*)
2899 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
2900 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
2903 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
2904 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
2908 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)$(EXEEXT)' ;;
2912 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
2913 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
2914 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
2916 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin32)
2917 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
2918 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
2919 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
2921 powerpc
*-*-*pe
* | powerpc
*-*-cygwin32)
2922 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
2923 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
2924 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
2938 .
$srcdir/..
/bfd
/config.bfd
2939 if test "x$targ_underscore" = "xyes"; then
2947 cat > confcache
<<\EOF
2948 # This file is a shell script that caches the results of configure
2949 # tests run on this system so they can be shared between configure
2950 # scripts and configure runs. It is not useful on other systems.
2951 # If it contains results you don't want to keep, you may remove or edit it.
2953 # By default, configure uses ./config.cache as the cache file,
2954 # creating it if it does not exist already. You can give configure
2955 # the --cache-file=FILE option to use a different cache file; that is
2956 # what configure does when it calls configure scripts in
2957 # subdirectories, so they share the cache.
2958 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2959 # config.status only pays attention to the cache file if you give it the
2960 # --recheck option to rerun configure.
2963 # The following way of writing the cache mishandles newlines in values,
2964 # but we know of no workaround that is simple, portable, and efficient.
2965 # So, don't put newlines in cache variables' values.
2966 # Ultrix sh set writes to stderr and can't be redirected directly,
2967 # and sets the high bit in the cache file unless we assign to the vars.
2969 case `(ac_space=' '; set) 2>&1` in
2971 # `set' does not quote correctly, so add quotes (double-quote substitution
2972 # turns \\\\ into \\, and sed turns \\ into \).
2974 -e "s/'/'\\\\''/g" \
2975 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2978 # `set' quotes correctly as required by POSIX, so do not add quotes.
2979 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2982 if cmp -s $cache_file confcache
; then
2985 if test -w $cache_file; then
2986 echo "updating cache $cache_file"
2987 cat confcache
> $cache_file
2989 echo "not updating unwritable cache $cache_file"
2994 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2996 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2997 # Let make expand exec_prefix.
2998 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3000 # Any assignment to VPATH causes Sun make to only execute
3001 # the first set of double-colon rules, so remove it if not needed.
3002 # If there is a colon in the path, we need to keep it.
3003 if test "x$srcdir" = x.
; then
3004 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3007 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3009 DEFS
=-DHAVE_CONFIG_H
3011 # Without the "./", some shells look in PATH for config.status.
3012 : ${CONFIG_STATUS=./config.status}
3014 echo creating
$CONFIG_STATUS
3015 rm -f $CONFIG_STATUS
3016 cat > $CONFIG_STATUS <<EOF
3018 # Generated automatically by configure.
3019 # Run this file to recreate the current configuration.
3020 # This directory was configured as follows,
3021 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3023 # $0 $ac_configure_args
3025 # Compiler output produced by configure, useful for debugging
3026 # configure, is in ./config.log if it exists.
3028 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3031 case "\$ac_option" in
3032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3033 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3034 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3035 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3036 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3038 -help | --help | --hel | --he | --h)
3039 echo "\$ac_cs_usage"; exit 0 ;;
3040 *) echo "\$ac_cs_usage"; exit 1 ;;
3044 ac_given_srcdir=$srcdir
3045 ac_given_INSTALL="$INSTALL"
3047 trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3049 cat >> $CONFIG_STATUS <<EOF
3051 # Protect against being on the right side of a sed subst in config.status.
3052 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3053 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3056 s%@CFLAGS@%$CFLAGS%g
3057 s%@CPPFLAGS@%$CPPFLAGS%g
3058 s%@CXXFLAGS@%$CXXFLAGS%g
3060 s%@LDFLAGS@%$LDFLAGS%g
3062 s%@exec_prefix@%$exec_prefix%g
3063 s%@prefix@%$prefix%g
3064 s%@program_transform_name@%$program_transform_name%g
3065 s%@bindir@%$bindir%g
3066 s%@sbindir@%$sbindir%g
3067 s%@libexecdir@%$libexecdir%g
3068 s%@datadir@%$datadir%g
3069 s%@sysconfdir@%$sysconfdir%g
3070 s%@sharedstatedir@%$sharedstatedir%g
3071 s%@localstatedir@%$localstatedir%g
3072 s%@libdir@%$libdir%g
3073 s%@includedir@%$includedir%g
3074 s%@oldincludedir@%$oldincludedir%g
3075 s%@infodir@%$infodir%g
3076 s%@mandir@%$mandir%g
3078 s%@host_alias@%$host_alias%g
3079 s%@host_cpu@%$host_cpu%g
3080 s%@host_vendor@%$host_vendor%g
3081 s%@host_os@%$host_os%g
3082 s%@target@%$target%g
3083 s%@target_alias@%$target_alias%g
3084 s%@target_cpu@%$target_cpu%g
3085 s%@target_vendor@%$target_vendor%g
3086 s%@target_os@%$target_os%g
3088 s%@build_alias@%$build_alias%g
3089 s%@build_cpu@%$build_cpu%g
3090 s%@build_vendor@%$build_vendor%g
3091 s%@build_os@%$build_os%g
3092 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3093 s%@INSTALL_DATA@%$INSTALL_DATA%g
3094 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3095 s%@PACKAGE@%$PACKAGE%g
3096 s%@VERSION@%$VERSION%g
3097 s%@ACLOCAL@%$ACLOCAL%g
3098 s%@AUTOCONF@%$AUTOCONF%g
3099 s%@AUTOMAKE@%$AUTOMAKE%g
3100 s%@AUTOHEADER@%$AUTOHEADER%g
3101 s%@MAKEINFO@%$MAKEINFO%g
3102 s%@SET_MAKE@%$SET_MAKE%g
3104 s%@RANLIB@%$RANLIB%g
3107 s%@LIBTOOL@%$LIBTOOL%g
3110 s%@LEXLIB@%$LEXLIB%g
3112 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3114 s%@EXEEXT@%$EXEEXT%g
3115 s%@HDEFINES@%$HDEFINES%g
3117 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
3118 s%@ALLOCA@%$ALLOCA%g
3119 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
3120 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
3121 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
3122 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
3123 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
3124 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
3125 s%@UNDERSCORE@%$UNDERSCORE%g
3130 cat >> $CONFIG_STATUS <<\EOF
3132 # Split the substitutions into bite-sized pieces for seds with
3133 # small command number limits, like on Digital OSF/1 and HP-UX.
3134 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3135 ac_file
=1 # Number of current file.
3136 ac_beg
=1 # First line for current file.
3137 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3140 while $ac_more_lines; do
3141 if test $ac_beg -gt 1; then
3142 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3144 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3146 if test ! -s conftest.s
$ac_file; then
3148 rm -f conftest.s
$ac_file
3150 if test -z "$ac_sed_cmds"; then
3151 ac_sed_cmds
="sed -f conftest.s$ac_file"
3153 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3155 ac_file
=`expr $ac_file + 1`
3157 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3160 if test -z "$ac_sed_cmds"; then
3165 cat >> $CONFIG_STATUS <<EOF
3167 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3169 cat >> $CONFIG_STATUS <<\EOF
3170 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3173 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3174 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3175 *) ac_file_in
="${ac_file}.in" ;;
3178 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3180 # Remove last slash and all that follows it. Not all systems have dirname.
3181 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3183 # The file is in a subdirectory.
3184 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3185 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3186 # A "../" for each directory in $ac_dir_suffix.
3187 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3189 ac_dir_suffix
= ac_dots
=
3192 case "$ac_given_srcdir" in
3194 if test -z "$ac_dots"; then top_srcdir
=.
3195 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3196 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3198 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3199 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3202 case "$ac_given_INSTALL" in
3203 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3204 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3207 echo creating
"$ac_file"
3209 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3211 *Makefile
*) ac_comsub
="1i\\
3212 # $configure_input" ;;
3216 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3218 s%@configure_input@%$configure_input%g
3219 s%@srcdir@%$srcdir%g
3220 s%@top_srcdir@%$top_srcdir%g
3221 s%@INSTALL@%$INSTALL%g
3222 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3226 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3227 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3229 # ac_d sets the value in "#define NAME VALUE" lines.
3230 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3231 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3234 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3235 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3236 ac_uB
='\([ ]\)%\1#\2define\3'
3239 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3240 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3241 ac_eB
='$%\1#\2define\3'
3245 if test "${CONFIG_HEADERS+set}" != set; then
3247 cat >> $CONFIG_STATUS <<EOF
3248 CONFIG_HEADERS="config.h:config.in"
3250 cat >> $CONFIG_STATUS <<\EOF
3252 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3253 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3255 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3256 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3257 *) ac_file_in
="${ac_file}.in" ;;
3260 echo creating
$ac_file
3262 rm -f conftest.frag conftest.
in conftest.out
3263 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3264 cat $ac_file_inputs > conftest.
in
3268 # Transform confdefs.h into a sed script conftest.vals that substitutes
3269 # the proper values into config.h.in to produce config.h. And first:
3270 # Protect against being on the right side of a sed subst in config.status.
3271 # Protect against being in an unquoted here document in config.status.
3273 cat > conftest.hdr
<<\EOF
3276 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3280 sed -n -f conftest.hdr confdefs.h > conftest.vals
3283 # This sed command replaces #undef with comments. This is necessary, for
3284 # example, in the case of _POSIX_SOURCE, which is predefined and required
3285 # on some systems where configure will not decide to define it.
3286 cat >> conftest.vals <<\EOF
3287 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3290 # Break up conftest.vals because some shells have a limit on
3291 # the size of here documents, and old seds have small limits too.
3296 ac_lines=`grep -c . conftest.vals
`
3297 # grep -c gives empty output for an empty file on some AIX systems.
3298 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3299 # Write a limited-size here document to conftest.frag.
3300 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3301 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3303 sed -f conftest.frag conftest.in > conftest.out
3305 mv conftest.out conftest.in
3307 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3309 mv conftest.tail conftest.vals
3313 cat >> $CONFIG_STATUS <<\EOF
3314 rm -f conftest.frag conftest.h
3315 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3316 cat conftest.in >> conftest.h
3318 if cmp -s $ac_file conftest.h 2>/dev/null; then
3319 echo "$ac_file is unchanged"
3322 # Remove last slash and all that follows it. Not all systems have dirname.
3323 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3324 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3325 # The file is in a subdirectory.
3326 test ! -d "$ac_dir" && mkdir "$ac_dir"
3329 mv conftest.h $ac_file
3334 cat >> $CONFIG_STATUS <<EOF
3338 cat >> $CONFIG_STATUS <<\EOF
3339 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3343 chmod +x $CONFIG_STATUS
3344 rm -fr confdefs* $ac_clean_files
3345 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1