3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.10
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-bfd-assembler use BFD back end for writing object files"
17 targets alternative target configurations besides the primary"
19 --enable-shared build shared BFD library"
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
25 cache_file
=.
/config.cache
34 program_transform_name
=s
,x
,x
,
42 bindir
='${exec_prefix}/bin'
43 sbindir
='${exec_prefix}/sbin'
44 libexecdir
='${exec_prefix}/libexec'
45 datadir
='${prefix}/share'
46 sysconfdir
='${prefix}/etc'
47 sharedstatedir
='${prefix}/com'
48 localstatedir
='${prefix}/var'
49 libdir
='${exec_prefix}/lib'
50 includedir
='${prefix}/include'
51 oldincludedir
='/usr/include'
52 infodir
='${prefix}/info'
53 mandir
='${prefix}/man'
55 # Initialize some other variables.
63 # If the previous option needs an argument, assign it.
64 if test -n "$ac_prev"; then
65 eval "$ac_prev=\$ac_option"
71 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 # Accept the important Cygnus configure options, so we can diagnose typos.
79 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
81 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
82 bindir
="$ac_optarg" ;;
84 -build |
--build |
--buil |
--bui |
--bu)
86 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
89 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
90 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
92 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
93 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
94 cache_file
="$ac_optarg" ;;
96 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
98 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
100 datadir
="$ac_optarg" ;;
102 -disable-* |
--disable-*)
103 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
104 # Reject names that are not valid shell variable names.
105 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
108 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
109 eval "enable_${ac_feature}=no" ;;
111 -enable-* |
--enable-*)
112 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
122 eval "enable_${ac_feature}='$ac_optarg'" ;;
124 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
125 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
126 |
--exec |
--exe |
--ex)
127 ac_prev
=exec_prefix
;;
128 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
129 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
130 |
--exec=* |
--exe=* |
--ex=*)
131 exec_prefix
="$ac_optarg" ;;
133 -gas |
--gas |
--ga |
--g)
134 # Obsolete; use --with-gas.
137 -help |
--help |
--hel |
--he)
138 # Omit some internal or obsolete options to make the list less imposing.
139 # This message is too long to be a string in the A/UX 3.1 sh.
141 Usage: configure [options] [host]
142 Options: [defaults in brackets after descriptions]
144 --cache-file=FILE cache test results in FILE
145 --help print this message
146 --no-create do not create output files
147 --quiet, --silent do not print \`checking...' messages
148 --version print the version of autoconf that created configure
149 Directory and file names:
150 --prefix=PREFIX install architecture-independent files in PREFIX
152 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
154 --bindir=DIR user executables in DIR [EPREFIX/bin]
155 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157 --datadir=DIR read-only architecture-independent data in DIR
159 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160 --sharedstatedir=DIR modifiable architecture-independent data in DIR
162 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164 --includedir=DIR C header files in DIR [PREFIX/include]
165 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166 --infodir=DIR info documentation in DIR [PREFIX/info]
167 --mandir=DIR man documentation in DIR [PREFIX/man]
168 --srcdir=DIR find the sources in DIR [configure dir or ..]
169 --program-prefix=PREFIX prepend PREFIX to installed program names
170 --program-suffix=SUFFIX append SUFFIX to installed program names
171 --program-transform-name=PROGRAM
172 run sed PROGRAM on installed program names
176 --build=BUILD configure for building on BUILD [BUILD=HOST]
177 --host=HOST configure for HOST [guessed]
178 --target=TARGET configure for TARGET [TARGET=HOST]
179 Features and packages:
180 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184 --x-includes=DIR X include files are in DIR
185 --x-libraries=DIR X library files are in DIR
187 if test -n "$ac_help"; then
188 echo "--enable and --with options recognized:$ac_help"
192 -host |
--host |
--hos |
--ho)
194 -host=* |
--host=* |
--hos=* |
--ho=*)
197 -includedir |
--includedir |
--includedi |
--included |
--include \
198 |
--includ |
--inclu |
--incl |
--inc)
199 ac_prev
=includedir
;;
200 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
201 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
202 includedir
="$ac_optarg" ;;
204 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
206 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
207 infodir
="$ac_optarg" ;;
209 -libdir |
--libdir |
--libdi |
--libd)
211 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
212 libdir
="$ac_optarg" ;;
214 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
215 |
--libexe |
--libex |
--libe)
216 ac_prev
=libexecdir
;;
217 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
218 |
--libexe=* |
--libex=* |
--libe=*)
219 libexecdir
="$ac_optarg" ;;
221 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
222 |
--localstate |
--localstat |
--localsta |
--localst \
223 |
--locals |
--local |
--loca |
--loc |
--lo)
224 ac_prev
=localstatedir
;;
225 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
226 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
227 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
228 localstatedir
="$ac_optarg" ;;
230 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
232 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
233 mandir
="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
243 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
244 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
247 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
248 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
249 |
--oldin |
--oldi |
--old |
--ol |
--o)
250 ac_prev
=oldincludedir
;;
251 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
252 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
253 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
254 oldincludedir
="$ac_optarg" ;;
256 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
258 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
259 prefix
="$ac_optarg" ;;
261 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
262 |
--program-pre |
--program-pr |
--program-p)
263 ac_prev
=program_prefix
;;
264 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
265 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
266 program_prefix
="$ac_optarg" ;;
268 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
269 |
--program-suf |
--program-su |
--program-s)
270 ac_prev
=program_suffix
;;
271 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
272 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
273 program_suffix
="$ac_optarg" ;;
275 -program-transform-name |
--program-transform-name \
276 |
--program-transform-nam |
--program-transform-na \
277 |
--program-transform-n |
--program-transform- \
278 |
--program-transform |
--program-transfor \
279 |
--program-transfo |
--program-transf \
280 |
--program-trans |
--program-tran \
281 |
--progr-tra |
--program-tr |
--program-t)
282 ac_prev
=program_transform_name
;;
283 -program-transform-name=* |
--program-transform-name=* \
284 |
--program-transform-nam=* |
--program-transform-na=* \
285 |
--program-transform-n=* |
--program-transform-=* \
286 |
--program-transform=* |
--program-transfor=* \
287 |
--program-transfo=* |
--program-transf=* \
288 |
--program-trans=* |
--program-tran=* \
289 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
290 program_transform_name
="$ac_optarg" ;;
292 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
293 |
-silent |
--silent |
--silen |
--sile |
--sil)
296 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
298 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
300 sbindir
="$ac_optarg" ;;
302 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
303 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
304 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
306 ac_prev
=sharedstatedir
;;
307 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
308 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
309 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
311 sharedstatedir
="$ac_optarg" ;;
313 -site |
--site |
--sit)
315 -site=* |
--site=* |
--sit=*)
318 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
320 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
321 srcdir
="$ac_optarg" ;;
323 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
324 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
325 ac_prev
=sysconfdir
;;
326 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
327 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
328 sysconfdir
="$ac_optarg" ;;
330 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
332 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
333 target
="$ac_optarg" ;;
335 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
338 -version |
--version |
--versio |
--versi |
--vers)
339 echo "configure generated by autoconf version 2.10"
343 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package
=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* |
--without-*)
356 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package
=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
369 |
--x-incl |
--x-inc |
--x-in |
--x-i)
370 ac_prev
=x_includes
;;
371 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
372 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
373 x_includes
="$ac_optarg" ;;
375 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
376 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
377 ac_prev
=x_libraries
;;
378 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
379 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
380 x_libraries
="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE
; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
431 |
--no-cr |
--no-c) ;;
432 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
433 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
434 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
441 # Only set LANG and LC_ALL to C if already set.
442 # These must not be set unconditionally because not all systems understand
443 # e.g. LANG=C (notably SCO).
444 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
445 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
447 # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 rm -rf conftest
* confdefs.h
449 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 # A filename unique to this package, relative to the directory that
453 # configure is in, which we can look for to find out if srcdir is correct.
456 # Find the source files, if location was not specified.
457 if test -z "$srcdir"; then
458 ac_srcdir_defaulted
=yes
459 # Try the directory containing this script, then its parent.
461 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
464 if test ! -r $srcdir/$ac_unique_file; then
468 ac_srcdir_defaulted
=no
470 if test ! -r $srcdir/$ac_unique_file; then
471 if test "$ac_srcdir_defaulted" = yes; then
472 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479 # Prefer explicitly selected file to automatically selected ones.
480 if test -z "$CONFIG_SITE"; then
481 if test "x$prefix" != xNONE
; then
482 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
484 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 for ac_site_file
in $CONFIG_SITE; do
488 if test -r "$ac_site_file"; then
489 echo "loading site script $ac_site_file"
494 if test -r "$cache_file"; then
495 echo "loading cache $cache_file"
498 echo "creating cache $cache_file"
503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 ac_cpp
='$CPP $CPPFLAGS'
505 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
509 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
510 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
517 ac_n
= ac_c
='\c' ac_t
=
521 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
522 if test "${enable_bfd_assembler+set}" = set; then
523 enableval
="$enable_bfd_assembler"
524 case "${enableval}" in
525 yes) need_bfd
=yes user_bfd_gas
=yes ;;
526 no
) user_bfd_gas
=no
;;
527 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
530 # Check whether --enable-targets or --disable-targets was given.
531 if test "${enable_targets+set}" = set; then
532 enableval
="$enable_targets"
533 case "${enableval}" in
534 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
536 no
) enable_targets
= ;;
537 *) enable_targets
=$enableval ;;
540 # Check whether --enable-shared or --disable-shared was given.
541 if test "${enable_shared+set}" = set; then
542 enableval
="$enable_shared"
543 case "${enableval}" in
544 yes) shared
=true shared_bfd
=true shared_opcodes
=true
;;
546 *bfd
*opcodes
*) shared
=true shared_bfd
=true shared_opcodes
=true
;;
547 *opcodes
*bfd
*) shared
=true shared_bfd
=true shared_opcodes
=true
;;
548 *bfd
*) shared
=true shared_bfd
=true
;;
549 *opcodes
*) shared
=true shared_opcodes
=true
;;
554 # Generate a header file -- gets more post-processing by Makefile later.
558 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
559 if test -f $ac_dir/install-sh
; then
561 ac_install_sh
="$ac_aux_dir/install-sh -c"
563 elif test -f $ac_dir/install.sh
; then
565 ac_install_sh
="$ac_aux_dir/install.sh -c"
569 if test -z "$ac_aux_dir"; then
570 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
572 ac_config_guess
=$ac_aux_dir/config.guess
573 ac_config_sub
=$ac_aux_dir/config.sub
574 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
577 # Do some error checking and defaulting for the host and target type.
579 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
582 # 1. You are not allowed to specify --host, --target, and nonopt at the
584 # 2. Host defaults to nonopt.
585 # 3. If nonopt is not specified, then host defaults to the current host,
586 # as determined by config.guess.
587 # 4. Target and build default to nonopt.
588 # 5. If nonopt is not specified, then target and build default to host.
590 # The aliases save the names the user supplied, while $host etc.
591 # will get canonicalized.
592 case $host---$target---$nonopt in
593 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
594 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598 # Make sure we can run config.sub.
599 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
600 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
603 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 case "$host_alias" in
610 if host_alias
=`$ac_config_guess`; then :
611 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
613 *) host_alias
=$nonopt ;;
617 host=`$ac_config_sub $host_alias`
618 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
619 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
620 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
621 echo "$ac_t""$host" 1>&6
623 echo $ac_n "checking target system type""... $ac_c" 1>&6
626 case "$target_alias" in
629 NONE
) target_alias
=$host_alias ;;
630 *) target_alias
=$nonopt ;;
634 target
=`$ac_config_sub $target_alias`
635 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
636 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
637 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$target" 1>&6
640 echo $ac_n "checking build system type""... $ac_c" 1>&6
643 case "$build_alias" in
646 NONE
) build_alias
=$host_alias ;;
647 *) build_alias
=$nonopt ;;
651 build
=`$ac_config_sub $build_alias`
652 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
653 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
654 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
655 echo "$ac_t""$build" 1>&6
657 test "$host_alias" != "$target_alias" &&
658 test "$program_prefix$program_suffix$program_transform_name" = \
660 program_prefix
=${target_alias}-
662 if test "$program_transform_name" = s
,x
,x
,; then
663 program_transform_name
=
665 # Double any \ or $. echo might interpret backslashes.
666 cat <<\EOF_SED
> conftestsed
667 s
,\\,\\\\,g
; s
,\$
,$$
,g
669 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
672 test "$program_prefix" != NONE
&&
673 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
674 # Use a double $ so make ignores it.
675 test "$program_suffix" != NONE
&&
676 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
678 # sed with no file args requires a program.
679 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
685 if test -n "$enable_targets" ; then
686 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
687 result
=`$ac_config_sub $t 2>/dev/null`
688 if test -n "$result" ; then
689 canon_targets
="$canon_targets $result"
691 # # Permit "all", etc. We don't support it yet though.
692 # canon_targets="$canon_targets $t"
695 _gas_uniq_list
="$canon_targets"
697 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
700 *) case " $_gas_uniq_newlist " in
701 *" $_gas_uniq_i "*) ;;
702 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
706 canon_targets
=$_gas_uniq_newlist
712 for this_target
in $target $canon_targets ; do
714 eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
716 # check for architecture variants
718 armeb
) cpu_type
=arm endian
=big
;;
719 arm
*) cpu_type
=arm endian
=little
;;
720 hppa
*) cpu_type
=hppa
;;
721 i
[456]86) cpu_type
=i386
;;
722 m680
[012346]0) cpu_type
=m68k
;;
723 m68008
) cpu_type
=m68k
;;
724 m683??
) cpu_type
=m68k
;;
725 m8
*) cpu_type
=m88k
;;
726 mips
*el
) cpu_type
=mips endian
=little
;;
727 mips
*) cpu_type
=mips endian
=big
;;
728 powerpcle
*) cpu_type
=ppc endian
=little
;;
729 powerpc
*) cpu_type
=ppc endian
=big
;;
730 rs6000
*) cpu_type
=ppc
;;
731 sparc64
) cpu_type
=sparc want_sparc_v9
=true
;;
732 sparc
*) cpu_type
=sparc
;;
733 *) cpu_type
=${cpu} ;;
736 if test ${this_target} = $target ; then
737 target_cpu_type
=${cpu_type}
738 elif test ${target_cpu_type} != ${cpu_type} ; then
743 generic_target
=${cpu_type}-$vendor-$os
748 # assign object format
749 case ${generic_target} in
750 a29k-
*-coff) fmt=coff targ
=ebmon29k
;;
751 a29k-amd-udi
) fmt=coff targ
=ebmon29k
;;
752 a29k-amd-ebmon
) fmt=coff targ
=ebmon29k
;;
753 a29k-nyu-sym1
) fmt=coff targ
=ebmon29k
;;
754 a29k-
*-vxworks*) fmt=coff
;;
756 alpha-
*-netware*) fmt=ecoff
;;
757 alpha-
*-osf*) fmt=ecoff
;;
758 alpha-
*-linuxecoff*) fmt=ecoff
;;
759 alpha-
*-linux*) fmt=elf em
=linux
;;
762 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
765 arm-
*-riscix*) fmt=aout targ
=arm-lit em
=riscix
;;
772 arm-
*-coff) fmt=coff
;;
773 arm-
*-riscix*) fmt=aout
;;
774 arm-
*-pe) fmt=coff targ
=armcoff em
=pe
;;
776 # start-sanitize-d10v
777 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
780 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
781 hppa-
*-lites*) fmt=elf em
=hppa
;;
782 hppa-
*-osf*) fmt=som em
=hppa
;;
783 hppa-
*-hpux*) fmt=som em
=hppa
;;
784 hppa-
*-bsd*) fmt=som em
=hppa
;;
785 hppa-
*-hiux*) fmt=som em
=hppa
;;
787 h8300-
*-coff) fmt=coff
;;
789 i386-ibm-aix
*) fmt=coff targ
=i386coff
791 i386-
*-bsd*) fmt=aout em
=386bsd
;;
792 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
793 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
794 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
795 i386-
*-linux*coff
*) fmt=coff em
=linux
797 i386-
*-linux*) fmt=elf em
=linux
;;
798 i386-
*-lynxos*) fmt=coff targ
=i386coff
800 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf | i386-
*-freebsdelf*)
802 i386-
*-sco*elf
*) fmt=elf targ
=sco5
;;
803 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
804 fmt=coff targ
=i386coff
;;
805 i386-
*-vsta) fmt=aout
;;
806 i386-
*-go32) fmt=coff targ
=i386coff
;;
807 i386-
*-rtems*) fmt=coff targ
=i386coff
;;
808 i386-
*-gnu*) fmt=elf
;;
810 fmt=aout em
=mach bfd_gas
=yes ;;
811 i386-
*-msdos*) fmt=aout
;;
812 i386-
*-moss*) fmt=elf
;;
813 i386-
*-pe) fmt=coff targ
=i386coff em
=pe
;;
814 i386-
*-cygwin32) fmt=coff targ
=i386coff em
=pe
;;
815 i386-
*-*nt
) fmt=coff targ
=i386coff em
=pe
;;
816 i960-
*-bout) fmt=bout
;;
817 i960-
*-coff) fmt=coff em
=ic960 targ
=ic960coff
;;
818 i960-
*-rtems*) fmt=coff em
=ic960 targ
=ic960coff
;;
819 i960-
*-nindy*) fmt=bout
;;
820 i960-
*-vxworks4*) fmt=bout
;;
821 i960-
*-vxworks5.0
) fmt=bout
;;
822 i960-
*-vxworks5.
*) fmt=coff em
=ic960 targ
=ic960coff
;;
823 i960-
*-vxworks*) fmt=bout
;;
825 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
827 m68k-motorola-sysv
*) fmt=coff targ
=m68kcoff em
=delta
;;
828 m68k-bull-sysv3
*) fmt=coff targ
=m68kcoff em
=dpx2
;;
829 m68k-apollo-
*) fmt=coff targ
=apollo em
=apollo
;;
830 m68k-
*-sysv4 | m68k-
*-elf) # must be before -sysv*
832 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
833 fmt=coff targ
=m68kcoff
;;
834 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
835 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
836 m68k-
*-linux*) fmt=elf em
=linux
;;
837 m68k-
*-lynxos*) fmt=coff targ
=m68kcoff
839 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
840 m68k-apple-aux
*) fmt=coff targ
=m68kcoff em
=aux
;;
841 m68k-
*-psos*) fmt=elf em
=psos
;;
843 m88k-motorola-sysv3
*) fmt=coff targ
=m88kcoff em
=delt88
;;
844 m88k-
*-coff*) fmt=coff targ
=m88kcoff
;;
846 # don't change em like *-*-bsd does
847 mips-dec-netbsd
*) fmt=elf targ
=mips-lit endian
=little
;;
848 mips-dec-bsd
*) fmt=aout targ
=mips-lit
;;
849 mips-sony-bsd
*) fmt=ecoff targ
=mips-big
;;
850 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
851 mips-
*-ultrix*) fmt=ecoff targ
=mips-lit endian
=little
;;
852 mips-
*-osf*) fmt=ecoff targ
=mips-lit endian
=little
;;
853 mips-
*-ecoff*) fmt=ecoff
855 big
) targ
=mips-big
;;
859 mips-
*-ecoff*) fmt=ecoff targ
=mips-big
;;
860 mips-
*-gnu*) fmt=aout
862 big
) targ
=mips-big
;;
866 mips-
*-irix6*) fmt=elf targ
=mips-big
;;
867 mips-
*-irix5*) fmt=elf targ
=mips-big
;;
868 mips-
*-irix*) fmt=ecoff targ
=mips-big
;;
869 mips-
*-riscos*) fmt=ecoff targ
=mips-big
;;
870 mips-
*-sysv*) fmt=ecoff targ
=mips-big
;;
873 big
) targ
=mips-big
;;
877 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
884 ppc-
*-aix*) fmt=coff
;;
885 ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
892 ppc-
*-linux*) fmt=elf
895 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
898 ppc-
*-solaris*) fmt=elf
900 big
) { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } ;;
911 ppc-
*-macos* | ppc-
*-mpw*)
913 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
915 sh-
*-coff) fmt=coff
;;
917 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
918 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
920 sparc-
*-rtems*) fmt=aout
;;
921 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
922 sparc-
*-aout | sparc
*-*-vxworks*)
924 sparc-
*-coff) fmt=coff
;;
925 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
926 sparc-fujitsu-none
) fmt=aout
;;
927 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
929 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
931 vax-
*-bsd* | vax-
*-ultrix*)
933 vax-
*-vms) fmt=vms
;;
935 z8k-
*-coff | z8k-
*-sim)
940 *-*-aout |
*-*-scout)
946 *-*-generic) fmt=generic
;;
947 *-*-xray |
*-*-hms) fmt=coff
;;
949 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
950 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
952 *-*-vxworks) fmt=aout
;;
953 *-*-netware) fmt=elf
;;
956 case ${cpu_type}-${fmt} in
957 alpha-
*) bfd_gas
=yes ;;
958 arm-
*) bfd_gas
=yes ;;
960 # i386-aout) bfd_gas=preferred ;;
961 mips-
*) bfd_gas
=yes ;;
962 ns32k-
*) bfd_gas
=yes ;;
963 ppc-
*) bfd_gas
=yes ;;
964 sparc-
*) bfd_gas
=yes ;;
965 *-elf) bfd_gas
=yes ;;
966 *-ecoff) bfd_gas
=yes ;;
967 *-som) bfd_gas
=yes ;;
971 # Other random stuff.
973 # do we need the opcodes library?
979 if test "${shared_opcodes}" = "true"; then
980 # A shared libopcodes must be linked against libbfd.
986 test -n "$want_sparc_v9" && cat >> confdefs.h
<<\EOF
991 case ${cpu}-${vendor}-${os} in
992 sparc64-
*-elf*) cat >> confdefs.h
<<\EOF
993 #define SPARC_ARCH64 1
1000 case ${extra_objects} in
1002 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1007 # See if we really can support this configuration with the emulation code.
1009 if test $this_target = $target ; then
1010 primary_bfd_gas
=$bfd_gas
1015 if test $bfd_gas = no
; then
1016 # Can't support other configurations this way.
1019 elif test $bfd_gas = no
; then
1020 # Can't support this configuration.
1024 # From target name and format, produce a list of supported emulations.
1026 case ${generic_target}-${fmt} in
1027 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1028 mips-
*-*-ecoff) case "$endian" in
1029 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1030 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1032 mips-
*-*-elf) case "$endian" in
1033 big
) emulation
="mipsbelf mipslelf mipself" ;;
1034 *) emulation
="mipslelf mipsbelf mipself" ;;
1038 emulations
="$emulations $emulation"
1042 # Assign floating point type. Most processors with FP support
1043 # IEEE FP. On those that don't support FP at all, usually IEEE
1045 case ${target_cpu} in
1046 vax | tahoe
) atof
=${target_cpu} ;;
1050 case "${obj_format}" in
1051 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1055 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1056 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1059 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1060 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1063 # and target makefile frag
1065 target_frag
=${srcdir}/config
/${gas_target}.mt
1066 if test ! -r ${target_frag}; then
1067 target_frag
=/dev
/null
# ick! but subst_file can't be conditionalized
1071 case ${user_bfd_gas}-${primary_bfd_gas} in
1073 # We didn't override user's choice.
1076 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1088 # User specified nothing.
1092 # Some COFF configurations want these random other flags set.
1093 case ${obj_format} in
1095 case ${target_cpu_type} in
1096 i386
) cat >> confdefs.h
<<\EOF
1100 m68k
) cat >> confdefs.h
<<\EOF
1104 m88k
) cat >> confdefs.h
<<\EOF
1112 # Getting this done right is going to be a bitch. Each configuration specified
1113 # with --enable-targets=... should be checked for environment, format, cpu, and
1116 # For each configuration, the necessary object file support code must be linked
1117 # in. This might be only one, it might be up to four. The necessary emulation
1118 # code needs to be provided, too.
1120 # And then there's "--enable-targets=all"....
1122 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1124 formats
="${obj_format}"
1127 _gas_uniq_list
="$emulations"
1128 _gas_uniq_newlist
=""
1129 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1130 case $_gas_uniq_i in
1132 *) case " $_gas_uniq_newlist " in
1133 *" $_gas_uniq_i "*) ;;
1134 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1138 emulations
=$_gas_uniq_newlist
1140 for em
in .
$emulations ; do
1143 mipsbelf | mipslelf
)
1144 fmt=elf
file=mipself
;;
1145 mipsbecoff | mipslecoff
)
1146 fmt=ecoff
file=mipsecoff
;;
1148 formats
="$formats $fmt"
1149 emfiles
="$emfiles e-$file.o"
1150 EMULATIONS
="$EMULATIONS &$em,"
1152 _gas_uniq_list
="$formats"
1153 _gas_uniq_newlist
=""
1154 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1155 case $_gas_uniq_i in
1157 *) case " $_gas_uniq_newlist " in
1158 *" $_gas_uniq_i "*) ;;
1159 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1163 formats
=$_gas_uniq_newlist
1165 _gas_uniq_list
="$emfiles"
1166 _gas_uniq_newlist
=""
1167 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1168 case $_gas_uniq_i in
1170 *) case " $_gas_uniq_newlist " in
1171 *" $_gas_uniq_i "*) ;;
1172 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1176 emfiles
=$_gas_uniq_newlist
1178 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1179 for fmt in $formats ; do
1181 aout
) cat >> confdefs.h
<<\EOF
1182 #define OBJ_MAYBE_AOUT 1
1185 bout
) cat >> confdefs.h
<<\EOF
1186 #define OBJ_MAYBE_BOUT 1
1189 coff
) cat >> confdefs.h
<<\EOF
1190 #define OBJ_MAYBE_COFF 1
1193 ecoff
) cat >> confdefs.h
<<\EOF
1194 #define OBJ_MAYBE_ECOFF 1
1197 elf
) cat >> confdefs.h
<<\EOF
1198 #define OBJ_MAYBE_ELF 1
1201 generic
) cat >> confdefs.h
<<\EOF
1202 #define OBJ_MAYBE_GENERIC 1
1205 hp300
) cat >> confdefs.h
<<\EOF
1206 #define OBJ_MAYBE_HP300 1
1209 ieee
) cat >> confdefs.h
<<\EOF
1210 #define OBJ_MAYBE_IEEE 1
1213 som
) cat >> confdefs.h
<<\EOF
1214 #define OBJ_MAYBE_SOM 1
1217 vms
) cat >> confdefs.h
<<\EOF
1218 #define OBJ_MAYBE_VMS 1
1222 extra_objects
="$extra_objects obj-$fmt.o"
1226 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1228 extra_objects
="$extra_objects $emfiles"
1229 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1230 cat >> confdefs.h
<<\EOF
1231 #define USE_EMULATIONS 1
1236 cat >> confdefs.h
<<EOF
1237 #define EMULATIONS $EMULATIONS
1240 cat >> confdefs.h
<<EOF
1241 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1245 files
="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
1246 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1247 config/te-${te_file}.h config/atof-${atof}.c \
1249 links
="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
1252 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1253 yes-
*-coff) need_bfd
=yes ;;
1254 no-
*-coff) need_bfd
=yes
1255 cat >> confdefs.h
<<\EOF
1256 #define MANY_SEGMENTS 1
1261 reject_dev_configs
=yes
1263 case ${reject_dev_configs}-${dev} in
1265 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1275 case "${primary_bfd_gas}" in
1276 yes) cat >> confdefs.h
<<\EOF
1277 #define BFD_ASSEMBLER 1
1283 # do we need the opcodes library?
1284 case "${need_opcodes}" in
1286 OPCODES_DEP
=..
/opcodes
/libopcodes.a
1287 OPCODES_LIB
='-L../opcodes -lopcodes'
1289 # We need to handle some special cases for shared libraries.
1292 # On SunOS, we must link against the name we are going to install,
1293 # not -lbfd, since SunOS does not support SONAME.
1294 if test "${shared_opcodes}" = "true"; then
1295 OPCODES_LIB
='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
1299 # On Alpha OSF/1, the native linker searches all the -L
1300 # directories for any LIB.so files, and only then searches for any
1301 # LIB.a files. That means that if there is an installed
1302 # libbfd.so, but this build is not done with --enable-shared, the
1303 # link will wind up being against the install libbfd.so rather
1304 # than the newly built libbfd. To avoid this, we must explicitly
1305 # link against libbfd.a when --enable-shared is not used.
1306 if test "${shared_opcodes}" != "true"; then
1307 OPCODES_LIB
='../opcodes/libopcodes.a'
1316 case "${need_bfd}" in
1318 BFDDEP
=..
/bfd
/libbfd.a
1319 BFDLIB
='-L../bfd -lbfd'
1320 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1322 # We need to handle some special cases for shared libraries
1325 # On SunOS, we must link against the name we are going to install,
1326 # not -lbfd, since SunOS does not support SONAME.
1327 if test "${shared_bfd}" = "true"; then
1328 BFDLIB
='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1332 # On Alpha OSF/1, the native linker searches all the -L
1333 # directories for any LIB.so files, and only then searches for any
1334 # LIB.a files. That means that if there is an installed
1335 # libbfd.so, but this build is not done with --enable-shared, the
1336 # link will wind up being against the install libbfd.so rather
1337 # than the newly built libbfd. To avoid this, we must explicitly
1338 # link against libbfd.a when --enable-shared is not used.
1339 if test "${shared_bfd}" != "true"; then
1340 BFDLIB
='../bfd/libbfd.a'
1350 cat >> confdefs.h
<<EOF
1351 #define TARGET_ALIAS "${target_alias}"
1354 cat >> confdefs.h
<<EOF
1355 #define TARGET_CANONICAL "${target}"
1358 cat >> confdefs.h
<<EOF
1359 #define TARGET_CPU "${target_cpu}"
1362 cat >> confdefs.h
<<EOF
1363 #define TARGET_VENDOR "${target_vendor}"
1366 cat >> confdefs.h
<<EOF
1367 #define TARGET_OS "${target_os}"
1371 # Extract the first word of "gcc", so it can be a program name with args.
1372 set dummy gcc
; ac_word
=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 if test -n "$CC"; then
1378 ac_cv_prog_CC
="$CC" # Let the user override the test.
1380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1381 for ac_dir
in $PATH; do
1382 test -z "$ac_dir" && ac_dir
=.
1383 if test -f $ac_dir/$ac_word; then
1392 if test -n "$CC"; then
1393 echo "$ac_t""$CC" 1>&6
1395 echo "$ac_t""no" 1>&6
1398 if test -z "$CC"; then
1399 # Extract the first word of "cc", so it can be a program name with args.
1400 set dummy cc
; ac_word
=$2
1401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 if test -n "$CC"; then
1406 ac_cv_prog_CC
="$CC" # Let the user override the test.
1408 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1410 for ac_dir
in $PATH; do
1411 test -z "$ac_dir" && ac_dir
=.
1412 if test -f $ac_dir/$ac_word; then
1413 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1414 ac_prog_rejected
=yes
1422 if test $ac_prog_rejected = yes; then
1423 # We found a bogon in the path, so make sure we never use it.
1424 set dummy
$ac_cv_prog_CC
1426 if test $# -gt 0; then
1427 # We chose a different compiler from the bogus one.
1428 # However, it has the same basename, so the bogon will be chosen
1429 # first if we set CC to just the basename; use the full file name.
1431 set dummy
"$ac_dir/$ac_word" "$@"
1439 if test -n "$CC"; then
1440 echo "$ac_t""$CC" 1>&6
1442 echo "$ac_t""no" 1>&6
1445 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1448 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1449 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 cat > conftest.c
<<EOF
1457 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1464 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1465 if test $ac_cv_prog_gcc = yes; then
1467 if test "${CFLAGS+set}" != set; then
1468 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1469 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 echo 'void f(){}' > conftest.c
1473 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1474 ac_cv_prog_gcc_g
=yes
1482 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1483 if test $ac_cv_prog_gcc_g = yes; then
1491 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1494 # Find a good install program. We prefer a C program (faster),
1495 # so one script is as good as another. But avoid the broken or
1496 # incompatible versions:
1497 # SysV /etc/install, /usr/sbin/install
1498 # SunOS /usr/etc/install
1499 # IRIX /sbin/install
1501 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1502 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1503 # ./install, which can be erroneously created by make from ./install.sh.
1504 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1505 if test -z "$INSTALL"; then
1506 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1510 for ac_dir
in $PATH; do
1511 # Account for people who put trailing slashes in PATH elements.
1513 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1515 # OSF1 and SCO ODT 3.0 have their own names for install.
1516 for ac_prog
in ginstall installbsd scoinst
install; do
1517 if test -f $ac_dir/$ac_prog; then
1518 if test $ac_prog = install &&
1519 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1520 # AIX install. It has an incompatible calling convention.
1521 # OSF/1 installbsd also uses dspmsg, but is usable.
1524 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1535 if test "${ac_cv_path_install+set}" = set; then
1536 INSTALL
="$ac_cv_path_install"
1538 # As a last resort, use the slow shell script. We don't cache a
1539 # path for INSTALL within a source directory, because that will
1540 # break other packages using the cache if that directory is
1541 # removed, or if the path is relative.
1542 INSTALL
="$ac_install_sh"
1545 echo "$ac_t""$INSTALL" 1>&6
1547 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1548 # It thinks the first close brace ends the variable substitution.
1549 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1551 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1554 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1555 # On Suns, sometimes $CPP names a directory.
1556 if test -n "$CPP" && test -d "$CPP"; then
1559 if test -z "$CPP"; then
1560 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 # This must be in double quotes, not single quotes, because CPP may get
1564 # substituted into the Makefile and "${CC-cc}" will confuse make.
1566 # On the NeXT, cc -E runs the code through the compiler's parser,
1567 # not just through cpp.
1568 cat > conftest.
$ac_ext <<EOF
1569 #line 1570 "configure"
1570 #include "confdefs.h"
1574 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure
:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err
=`grep -v '^ *+' conftest.out`
1577 if test -z "$ac_err"; then
1582 CPP
="${CC-cc} -E -traditional-cpp"
1583 cat > conftest.
$ac_ext <<EOF
1584 #line 1585 "configure"
1585 #include "confdefs.h"
1589 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1590 { (eval echo configure
:1591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1591 ac_err
=`grep -v '^ *+' conftest.out`
1592 if test -z "$ac_err"; then
1602 ac_cv_prog_CPP
="$CPP"
1604 CPP
="$ac_cv_prog_CPP"
1606 ac_cv_prog_CPP
="$CPP"
1608 echo "$ac_t""$CPP" 1>&6
1610 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
1612 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 cat > conftest.
$ac_ext <<EOF
1618 #line 1619 "configure"
1619 #include "confdefs.h"
1622 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1623 { (eval echo configure
:1624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1624 ac_err
=`grep -v '^ *+' conftest.out`
1625 if test -z "$ac_err"; then
1627 eval "ac_cv_header_$ac_safe=yes"
1631 eval "ac_cv_header_$ac_safe=no"
1635 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1636 echo "$ac_t""yes" 1>&6
1637 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1638 cat >> confdefs.h
<<EOF
1639 #define $ac_tr_hdr 1
1643 echo "$ac_t""no" 1>&6
1648 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1649 # people who are not cross-compiling but are compiling cross-assemblers.
1650 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1651 if test "${host}" = "${target}"; then
1655 cat >> confdefs.h
<<\EOF
1656 #define CROSS_COMPILE 1
1660 echo "$ac_t""$cross_gas" 1>&6
1662 # If we cannot run a trivial program, we must be cross compiling.
1663 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1664 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 if test "$cross_compiling" = yes; then
1670 cat > conftest.
$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1675 { (eval echo configure
:1676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1676 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1685 echo "$ac_t""$ac_cv_c_cross" 1>&6
1686 cross_compiling
=$ac_cv_c_cross
1688 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1689 # for constant arguments. Useless!
1690 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1691 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1694 cat > conftest.
$ac_ext <<EOF
1695 #line 1696 "configure"
1696 #include "confdefs.h"
1698 int main() { return 0; }
1700 char *p = alloca(2 * sizeof(int));
1703 if { (eval echo configure
:1704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1705 ac_cv_header_alloca_h
=yes
1708 ac_cv_header_alloca_h
=no
1714 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1715 if test $ac_cv_header_alloca_h = yes; then
1716 cat >> confdefs.h
<<\EOF
1717 #define HAVE_ALLOCA_H 1
1722 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1723 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 cat > conftest.
$ac_ext <<EOF
1727 #line 1728 "configure"
1728 #include "confdefs.h"
1731 # define alloca __builtin_alloca
1734 # include <alloca.h>
1739 # ifndef alloca /* predefined by HP cc +Olibcalls */
1746 int main() { return 0; }
1748 char *p = (char *) alloca(1);
1751 if { (eval echo configure
:1752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1753 ac_cv_func_alloca
=yes
1756 ac_cv_func_alloca
=no
1762 echo "$ac_t""$ac_cv_func_alloca" 1>&6
1763 if test $ac_cv_func_alloca = yes; then
1764 cat >> confdefs.h
<<\EOF
1765 #define HAVE_ALLOCA 1
1770 if test $ac_cv_func_alloca = no
; then
1771 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1772 # that cause trouble. Some versions do not even contain alloca or
1773 # contain a buggy version. If you still want to use their alloca,
1774 # use ar to extract alloca.o from them instead of compiling alloca.c.
1776 cat >> confdefs.h
<<\EOF
1781 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1782 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1783 echo $ac_n "(cached) $ac_c" 1>&6
1785 cat > conftest.
$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 #if defined(CRAY) && ! defined(CRAY2)
1795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1796 egrep "webecray" >/dev
/null
2>&1; then
1807 echo "$ac_t""$ac_cv_os_cray" 1>&6
1808 if test $ac_cv_os_cray = yes; then
1809 for ac_func
in _getb67 GETB67 getb67
; do
1810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1811 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* System header to define __stub macros and hopefully few prototypes,
1818 which can conflict with char $ac_func(); below. */
1820 /* Override any gcc2 internal prototype to avoid an error. */
1821 /* We use char because int might match the return type of a gcc2
1822 builtin and then its argument prototype would still apply. */
1825 int main() { return 0; }
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1839 if { (eval echo configure
:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1841 eval "ac_cv_func_$ac_func=yes"
1844 eval "ac_cv_func_$ac_func=no"
1849 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 cat >> confdefs.h
<<EOF
1852 #define CRAY_STACKSEG_END $ac_func
1857 echo "$ac_t""no" 1>&6
1863 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1864 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 if test "$cross_compiling" = yes; then
1868 ac_cv_c_stack_direction
=0
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 find_stack_direction ()
1875 static char *addr = 0;
1880 return find_stack_direction ();
1883 return (&dummy > addr) ? 1 : -1;
1887 exit (find_stack_direction() < 0);
1890 { (eval echo configure
:1891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1891 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1892 ac_cv_c_stack_direction
=1
1894 ac_cv_c_stack_direction
=-1
1900 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1901 cat >> confdefs.h
<<EOF
1902 #define STACK_DIRECTION $ac_cv_c_stack_direction
1907 echo $ac_n "checking for inline""... $ac_c" 1>&6
1908 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1912 for ac_kw
in inline __inline__ __inline
; do
1913 cat > conftest.
$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1917 int main() { return 0; }
1922 if { (eval echo configure
:1923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1924 ac_cv_c_inline
=$ac_kw; break
1932 echo "$ac_t""$ac_cv_c_inline" 1>&6
1933 case "$ac_cv_c_inline" in
1935 no
) cat >> confdefs.h
<<\EOF
1939 *) cat >> confdefs.h
<<EOF
1940 #define inline $ac_cv_c_inline
1946 # VMS doesn't have unlink.
1947 for ac_func
in unlink remove
1949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1951 echo $ac_n "(cached) $ac_c" 1>&6
1953 cat > conftest.
$ac_ext <<EOF
1954 #line 1955 "configure"
1955 #include "confdefs.h"
1956 /* System header to define __stub macros and hopefully few prototypes,
1957 which can conflict with char $ac_func(); below. */
1959 /* Override any gcc2 internal prototype to avoid an error. */
1960 /* We use char because int might match the return type of a gcc2
1961 builtin and then its argument prototype would still apply. */
1964 int main() { return 0; }
1967 /* The GNU C library defines this for functions which it implements
1968 to always fail with ENOSYS. Some functions are actually named
1969 something starting with __ and the normal name is an alias. */
1970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1978 if { (eval echo configure
:1979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1980 eval "ac_cv_func_$ac_func=yes"
1983 eval "ac_cv_func_$ac_func=no"
1988 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1989 echo "$ac_t""yes" 1>&6
1990 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1991 cat >> confdefs.h
<<EOF
1992 #define $ac_tr_func 1
1996 echo "$ac_t""no" 1>&6
2001 # Some systems don't have sbrk().
2004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
2008 cat > conftest.
$ac_ext <<EOF
2009 #line 2010 "configure"
2010 #include "confdefs.h"
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $ac_func(); below. */
2014 /* Override any gcc2 internal prototype to avoid an error. */
2015 /* We use char because int might match the return type of a gcc2
2016 builtin and then its argument prototype would still apply. */
2019 int main() { return 0; }
2022 /* The GNU C library defines this for functions which it implements
2023 to always fail with ENOSYS. Some functions are actually named
2024 something starting with __ and the normal name is an alias. */
2025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2033 if { (eval echo configure
:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2035 eval "ac_cv_func_$ac_func=yes"
2038 eval "ac_cv_func_$ac_func=no"
2043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2046 cat >> confdefs.h
<<EOF
2047 #define $ac_tr_func 1
2051 echo "$ac_t""no" 1>&6
2056 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
2057 # enough, but on some of those systems, the assert macro relies on requoting
2059 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
2060 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2063 cat > conftest.
$ac_ext <<EOF
2064 #line 2065 "configure"
2065 #include "confdefs.h"
2068 int main() { return 0; }
2071 /* check for requoting problems */
2072 static int a, b, c, d;
2074 assert (!strcmp(s, "foo bar baz quux"));
2075 /* check for newline handling */
2081 if { (eval echo configure
:2082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2083 gas_cv_assert_ok
=yes
2091 echo "$ac_t""$gas_cv_assert_ok" 1>&6
2092 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
2093 #define BROKEN_ASSERT 1
2098 # On some systems, the system header files may not declare malloc, realloc,
2099 # and free. There are places where gas needs these functions to have been
2100 # declared -- such as when taking their addresses.
2102 #ifdef HAVE_MEMORY_H
2105 #ifdef HAVE_STRING_H
2108 #ifdef HAVE_STRINGS_H
2109 #include <strings.h>
2112 #ifdef HAVE_STDLIB_H
2115 #ifdef HAVE_UNISTD_H
2120 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
2121 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 cat > conftest.
$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2128 int main() { return 0; }
2131 typedef char *(*f)();
2137 if { (eval echo configure
:2138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2139 gas_cv_decl_needed_strstr
=no
2142 gas_cv_decl_needed_strstr
=yes
2147 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
2148 test $gas_cv_decl_needed_strstr = no ||
{
2149 cat >> confdefs.h
<<\EOF
2150 #define NEED_DECLARATION_STRSTR 1
2156 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
2157 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
2158 echo $ac_n "(cached) $ac_c" 1>&6
2160 cat > conftest.
$ac_ext <<EOF
2161 #line 2162 "configure"
2162 #include "confdefs.h"
2164 int main() { return 0; }
2167 typedef char *(*f)();
2173 if { (eval echo configure
:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2175 gas_cv_decl_needed_malloc
=no
2178 gas_cv_decl_needed_malloc
=yes
2183 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2184 test $gas_cv_decl_needed_malloc = no ||
{
2185 cat >> confdefs.h
<<\EOF
2186 #define NEED_DECLARATION_MALLOC 1
2192 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
2193 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
2194 echo $ac_n "(cached) $ac_c" 1>&6
2196 cat > conftest.
$ac_ext <<EOF
2197 #line 2198 "configure"
2198 #include "confdefs.h"
2200 int main() { return 0; }
2203 typedef void (*f)();
2209 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2211 gas_cv_decl_needed_free
=no
2214 gas_cv_decl_needed_free
=yes
2219 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
2220 test $gas_cv_decl_needed_free = no ||
{
2221 cat >> confdefs.h
<<\EOF
2222 #define NEED_DECLARATION_FREE 1
2228 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
2229 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.
$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2236 int main() { return 0; }
2239 typedef char *(*f)();
2245 if { (eval echo configure
:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2247 gas_cv_decl_needed_sbrk
=no
2250 gas_cv_decl_needed_sbrk
=yes
2255 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
2256 test $gas_cv_decl_needed_sbrk = no ||
{
2257 cat >> confdefs.h
<<\EOF
2258 #define NEED_DECLARATION_SBRK 1
2264 # Does errno.h declare errno, or do we have to add a separate declaration
2267 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
2268 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.
$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2279 int main() { return 0; }
2288 if { (eval echo configure
:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2290 gas_cv_decl_needed_errno
=no
2293 gas_cv_decl_needed_errno
=yes
2298 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
2299 test $gas_cv_decl_needed_errno = no ||
{
2300 cat >> confdefs.h
<<\EOF
2301 #define NEED_DECLARATION_ERRNO 1
2308 RPATH_ENVVAR
=LD_LIBRARY_PATH
2309 # If we have shared libraries, try to set rpath reasonably.
2310 if test "${shared}" = "true"; then
2313 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
2314 RPATH_ENVVAR
=SHLIB_PATH
2316 *-*-irix5* |
*-*-irix6*)
2317 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2322 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2324 *-*-sysv4* |
*-*-solaris*)
2325 HLDFLAGS
='-R $(libdir)'
2330 # On SunOS, if the linker supports the -rpath option, use it to
2331 # prevent ../bfd and ../opcodes from being included in the run time
2335 echo 'main () { }' > conftest.c
2336 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
2337 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
2339 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
2341 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
2343 elif test "${shared}" = "true"; then
2344 HLDFLAGS
='-Wl,-rpath=$(libdir)'
2346 HLDFLAGS
='-Wl,-rpath='
2348 rm -f conftest.t conftest.c conftest
2355 cat > confcache
<<\EOF
2356 # This file is a shell script that caches the results of configure
2357 # tests run on this system so they can be shared between configure
2358 # scripts and configure runs. It is not useful on other systems.
2359 # If it contains results you don't want to keep, you may remove or edit it.
2361 # By default, configure uses ./config.cache as the cache file,
2362 # creating it if it does not exist already. You can give configure
2363 # the --cache-file=FILE option to use a different cache file; that is
2364 # what configure does when it calls configure scripts in
2365 # subdirectories, so they share the cache.
2366 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2367 # config.status only pays attention to the cache file if you give it the
2368 # --recheck option to rerun configure.
2371 # Ultrix sh set writes to stderr and can't be redirected directly,
2372 # and sets the high bit in the cache file unless we assign to the vars.
2374 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2376 if cmp -s $cache_file confcache
; then
2379 if test -w $cache_file; then
2380 echo "updating cache $cache_file"
2381 cat confcache
> $cache_file
2383 echo "not updating unwritable cache $cache_file"
2388 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2390 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2391 # Let make expand exec_prefix.
2392 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2394 # Any assignment to VPATH causes Sun make to only execute
2395 # the first set of double-colon rules, so remove it if not needed.
2396 # If there is a colon in the path, we need to keep it.
2397 if test "x$srcdir" = x.
; then
2398 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2401 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2403 DEFS
=-DHAVE_CONFIG_H
2405 # Without the "./", some shells look in PATH for config.status.
2406 : ${CONFIG_STATUS=./config.status}
2408 echo creating
$CONFIG_STATUS
2409 rm -f $CONFIG_STATUS
2410 cat > $CONFIG_STATUS <<EOF
2412 # Generated automatically by configure.
2413 # Run this file to recreate the current configuration.
2414 # This directory was configured as follows,
2415 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2417 # $0 $ac_configure_args
2419 # Compiler output produced by configure, useful for debugging
2420 # configure, is in ./config.log if it exists.
2422 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2425 case "\$ac_option" in
2426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2427 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2428 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2429 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2430 echo "$CONFIG_STATUS generated by autoconf version 2.10"
2432 -help | --help | --hel | --he | --h)
2433 echo "\$ac_cs_usage"; exit 0 ;;
2434 *) echo "\$ac_cs_usage"; exit 1 ;;
2438 ac_given_srcdir=$srcdir
2439 ac_given_INSTALL="$INSTALL"
2441 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2443 cat >> $CONFIG_STATUS <<EOF
2445 # Protect against being on the right side of a sed subst in config.status.
2446 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2447 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2450 s%@CFLAGS@%$CFLAGS%g
2451 s%@CPPFLAGS@%$CPPFLAGS%g
2452 s%@CXXFLAGS@%$CXXFLAGS%g
2454 s%@LDFLAGS@%$LDFLAGS%g
2456 s%@exec_prefix@%$exec_prefix%g
2457 s%@prefix@%$prefix%g
2458 s%@program_transform_name@%$program_transform_name%g
2459 s%@bindir@%$bindir%g
2460 s%@sbindir@%$sbindir%g
2461 s%@libexecdir@%$libexecdir%g
2462 s%@datadir@%$datadir%g
2463 s%@sysconfdir@%$sysconfdir%g
2464 s%@sharedstatedir@%$sharedstatedir%g
2465 s%@localstatedir@%$localstatedir%g
2466 s%@libdir@%$libdir%g
2467 s%@includedir@%$includedir%g
2468 s%@oldincludedir@%$oldincludedir%g
2469 s%@infodir@%$infodir%g
2470 s%@mandir@%$mandir%g
2472 s%@host_alias@%$host_alias%g
2473 s%@host_cpu@%$host_cpu%g
2474 s%@host_vendor@%$host_vendor%g
2475 s%@host_os@%$host_os%g
2476 s%@target@%$target%g
2477 s%@target_alias@%$target_alias%g
2478 s%@target_cpu@%$target_cpu%g
2479 s%@target_vendor@%$target_vendor%g
2480 s%@target_os@%$target_os%g
2482 s%@build_alias@%$build_alias%g
2483 s%@build_cpu@%$build_cpu%g
2484 s%@build_vendor@%$build_vendor%g
2485 s%@build_os@%$build_os%g
2486 /@target_frag@/r $target_frag
2488 s%@extra_objects@%$extra_objects%g
2489 s%@target_cpu_type@%$target_cpu_type%g
2490 s%@obj_format@%$obj_format%g
2492 s%@OPCODES_DEP@%$OPCODES_DEP%g
2493 s%@OPCODES_LIB@%$OPCODES_LIB%g
2494 s%@BFDDEP@%$BFDDEP%g
2495 s%@BFDLIB@%$BFDLIB%g
2496 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2498 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2499 s%@INSTALL_DATA@%$INSTALL_DATA%g
2501 s%@ALLOCA@%$ALLOCA%g
2502 s%@HLDFLAGS@%$HLDFLAGS%g
2503 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2507 cat >> $CONFIG_STATUS <<EOF
2509 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2511 cat >> $CONFIG_STATUS <<\EOF
2512 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2513 # Support "outfile[:infile]", defaulting infile="outfile.in".
2515 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2516 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2517 *) ac_file_in
="${ac_file}.in" ;;
2520 # Adjust relative srcdir, etc. for subdirectories.
2522 # Remove last slash and all that follows it. Not all systems have dirname.
2523 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2525 # The file is in a subdirectory.
2526 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2527 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2528 # A "../" for each directory in $ac_dir_suffix.
2529 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2531 ac_dir_suffix
= ac_dots
=
2534 case "$ac_given_srcdir" in
2536 if test -z "$ac_dots"; then top_srcdir
=.
2537 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2538 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2540 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2541 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2544 case "$ac_given_INSTALL" in
2545 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2546 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2548 echo creating
"$ac_file"
2550 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2552 *Makefile
*) ac_comsub
="1i\\
2553 # $configure_input" ;;
2557 s%@configure_input@%$configure_input%g
2558 s%@srcdir@%$srcdir%g
2559 s%@top_srcdir@%$top_srcdir%g
2560 s%@INSTALL@%$INSTALL%g
2561 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2565 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2566 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2568 # ac_d sets the value in "#define NAME VALUE" lines.
2569 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2570 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2573 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2574 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2575 ac_uB
='\([ ]\)%\1#\2define\3'
2578 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2579 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2580 ac_eB
='$%\1#\2define\3'
2584 CONFIG_HEADERS
=${CONFIG_HEADERS-"conf"}
2585 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2586 # Support "outfile[:infile]", defaulting infile="outfile.in".
2588 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2589 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2590 *) ac_file_in
="${ac_file}.in" ;;
2593 echo creating
$ac_file
2595 rm -f conftest.frag conftest.
in conftest.out
2596 cp $ac_given_srcdir/$ac_file_in conftest.
in
2600 # Transform confdefs.h into a sed script conftest.vals that substitutes
2601 # the proper values into config.h.in to produce config.h. And first:
2602 # Protect against being on the right side of a sed subst in config.status.
2603 # Protect against being in an unquoted here document in config.status.
2605 cat > conftest.hdr
<<\EOF
2608 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2612 sed -n -f conftest.hdr confdefs.h > conftest.vals
2615 # This sed command replaces #undef with comments. This is necessary, for
2616 # example, in the case of _POSIX_SOURCE, which is predefined and required
2617 # on some systems where configure will not decide to define it.
2618 cat >> conftest.vals <<\EOF
2619 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2622 # Break up conftest.vals because some shells have a limit on
2623 # the size of here documents, and old seds have small limits too.
2624 # Maximum number of lines to put in a single here document.
2625 ac_max_here_lines=12
2630 ac_lines=`grep -c . conftest.vals
`
2631 # grep -c gives empty output for an empty file on some AIX systems.
2632 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2633 # Write a limited-size here document to conftest.frag.
2634 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2635 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2637 sed -f conftest.frag conftest.in > conftest.out
2639 mv conftest.out conftest.in
2641 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2643 mv conftest.tail conftest.vals
2647 cat >> $CONFIG_STATUS <<\EOF
2648 rm -f conftest.frag conftest.h
2649 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2650 cat conftest.in >> conftest.h
2652 if cmp -s $ac_file conftest.h 2>/dev/null; then
2653 echo "$ac_file is unchanged"
2656 # Remove last slash and all that follows it. Not all systems have dirname.
2657 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2658 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2659 # The file is in a subdirectory.
2660 test ! -d "$ac_dir" && mkdir "$ac_dir"
2663 mv conftest.h $ac_file
2669 cat >> $CONFIG_STATUS <<EOF
2674 cat >> $CONFIG_STATUS <<\EOF
2675 srcdir=$ac_given_srcdir
2676 while test -n "$ac_sources"; do
2677 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2678 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2680 echo "linking $srcdir/$ac_source to $ac_dest"
2682 if test ! -r $srcdir/$ac_source; then
2683 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2687 # Make relative symlinks.
2688 # Remove last slash and all that follows it. Not all systems have dirname.
2689 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2690 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2691 # The dest file is in a subdirectory.
2692 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2693 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2694 # A "../" for each directory in $ac_dest_dir_suffix.
2695 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2697 ac_dest_dir_suffix= ac_dots=
2701 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2702 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2705 # Make a symlink if possible; otherwise try a hard link.
2706 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2707 ln $srcdir/$ac_source $ac_dest; then :
2709 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2716 chmod +x $CONFIG_STATUS
2717 rm -fr confdefs* $ac_clean_files
2718 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1