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 --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 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
27 cache_file
=.
/config.cache
36 program_transform_name
=s
,x
,x
,
44 bindir
='${exec_prefix}/bin'
45 sbindir
='${exec_prefix}/sbin'
46 libexecdir
='${exec_prefix}/libexec'
47 datadir
='${prefix}/share'
48 sysconfdir
='${prefix}/etc'
49 sharedstatedir
='${prefix}/com'
50 localstatedir
='${prefix}/var'
51 libdir
='${exec_prefix}/lib'
52 includedir
='${prefix}/include'
53 oldincludedir
='/usr/include'
54 infodir
='${prefix}/info'
55 mandir
='${prefix}/man'
57 # Initialize some other variables.
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.12"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest
* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted
=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted
=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE
; then
489 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file
in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp
='$CPP $CPPFLAGS'
512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling
=$ac_cv_prog_cc_cross
516 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
525 ac_n
= ac_c
='\c' ac_t
=
529 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
530 if test "${enable_bfd_assembler+set}" = set; then
531 enableval
="$enable_bfd_assembler"
532 case "${enableval}" in
533 yes) need_bfd
=yes user_bfd_gas
=yes ;;
534 no
) user_bfd_gas
=no
;;
535 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
538 # Check whether --enable-targets or --disable-targets was given.
539 if test "${enable_targets+set}" = set; then
540 enableval
="$enable_targets"
541 case "${enableval}" in
542 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
544 no
) enable_targets
= ;;
545 *) enable_targets
=$enableval ;;
548 # Check whether --enable-shared or --disable-shared was given.
549 if test "${enable_shared+set}" = set; then
550 enableval
="$enable_shared"
551 case "${enableval}" in
552 yes) shared
=true shared_bfd
=true shared_opcodes
=true
;;
554 *bfd
*opcodes
*) shared
=true shared_bfd
=true shared_opcodes
=true
;;
555 *opcodes
*bfd
*) shared
=true shared_bfd
=true shared_opcodes
=true
;;
556 *bfd
*) shared
=true shared_bfd
=true
;;
557 *opcodes
*) shared
=true shared_opcodes
=true
;;
561 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
562 if test "${enable_commonbfdlib+set}" = set; then
563 enableval
="$enable_commonbfdlib"
564 case "${enableval}" in
565 yes) commonbfdlib
=true
;;
566 no
) commonbfdlib
=false
;;
567 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
571 # Generate a header file -- gets more post-processing by Makefile later.
575 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
576 if test -f $ac_dir/install-sh
; then
578 ac_install_sh
="$ac_aux_dir/install-sh -c"
580 elif test -f $ac_dir/install.sh
; then
582 ac_install_sh
="$ac_aux_dir/install.sh -c"
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
589 ac_config_guess
=$ac_aux_dir/config.guess
590 ac_config_sub
=$ac_aux_dir/config.sub
591 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
594 # Do some error checking and defaulting for the host and target type.
596 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
599 # 1. You are not allowed to specify --host, --target, and nonopt at the
601 # 2. Host defaults to nonopt.
602 # 3. If nonopt is not specified, then host defaults to the current host,
603 # as determined by config.guess.
604 # 4. Target and build default to nonopt.
605 # 5. If nonopt is not specified, then target and build default to host.
607 # The aliases save the names the user supplied, while $host etc.
608 # will get canonicalized.
609 case $host---$target---$nonopt in
610 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
611 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
615 # Make sure we can run config.sub.
616 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
617 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
620 echo $ac_n "checking host system type""... $ac_c" 1>&6
621 echo "configure:622: checking host system type" >&5
624 case "$host_alias" in
628 if host_alias
=`$ac_config_guess`; then :
629 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
631 *) host_alias
=$nonopt ;;
635 host=`$ac_config_sub $host_alias`
636 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639 echo "$ac_t""$host" 1>&6
641 echo $ac_n "checking target system type""... $ac_c" 1>&6
642 echo "configure:643: checking target system type" >&5
645 case "$target_alias" in
648 NONE
) target_alias
=$host_alias ;;
649 *) target_alias
=$nonopt ;;
653 target
=`$ac_config_sub $target_alias`
654 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
655 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
656 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
657 echo "$ac_t""$target" 1>&6
659 echo $ac_n "checking build system type""... $ac_c" 1>&6
660 echo "configure:661: checking build system type" >&5
663 case "$build_alias" in
666 NONE
) build_alias
=$host_alias ;;
667 *) build_alias
=$nonopt ;;
671 build
=`$ac_config_sub $build_alias`
672 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
675 echo "$ac_t""$build" 1>&6
677 test "$host_alias" != "$target_alias" &&
678 test "$program_prefix$program_suffix$program_transform_name" = \
680 program_prefix
=${target_alias}-
682 if test "$program_transform_name" = s
,x
,x
,; then
683 program_transform_name
=
685 # Double any \ or $. echo might interpret backslashes.
686 cat <<\EOF_SED
> conftestsed
687 s
,\\,\\\\,g
; s
,\$
,$$
,g
689 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
692 test "$program_prefix" != NONE
&&
693 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
694 # Use a double $ so make ignores it.
695 test "$program_suffix" != NONE
&&
696 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
698 # sed with no file args requires a program.
699 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
705 if test -n "$enable_targets" ; then
706 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
707 result
=`$ac_config_sub $t 2>/dev/null`
708 if test -n "$result" ; then
709 canon_targets
="$canon_targets $result"
711 # # Permit "all", etc. We don't support it yet though.
712 # canon_targets="$canon_targets $t"
715 _gas_uniq_list
="$canon_targets"
717 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
720 *) case " $_gas_uniq_newlist " in
721 *" $_gas_uniq_i "*) ;;
722 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
726 canon_targets
=$_gas_uniq_newlist
732 for this_target
in $target $canon_targets ; do
734 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
736 # check for architecture variants
738 armeb
) cpu_type
=arm endian
=big
;;
739 arm
*) cpu_type
=arm endian
=little
;;
740 hppa
*) cpu_type
=hppa
;;
741 i
[456]86) cpu_type
=i386
;;
742 m680
[012346]0) cpu_type
=m68k
;;
743 m68008
) cpu_type
=m68k
;;
744 m683??
) cpu_type
=m68k
;;
745 m8
*) cpu_type
=m88k
;;
746 mips
*el
) cpu_type
=mips endian
=little
;;
747 mips
*) cpu_type
=mips endian
=big
;;
748 powerpcle
*) cpu_type
=ppc endian
=little
;;
749 powerpc
*) cpu_type
=ppc endian
=big
;;
750 rs6000
*) cpu_type
=ppc
;;
751 sparc64
) cpu_type
=sparc want_sparc_v9
=true
;;
752 sparc
*) cpu_type
=sparc
;;
753 *) cpu_type
=${cpu} ;;
756 if test ${this_target} = $target ; then
757 target_cpu_type
=${cpu_type}
758 elif test ${target_cpu_type} != ${cpu_type} ; then
763 generic_target
=${cpu_type}-$vendor-$os
768 # assign object format
769 case ${generic_target} in
770 a29k-
*-coff) fmt=coff targ
=ebmon29k
;;
771 a29k-amd-udi
) fmt=coff targ
=ebmon29k
;;
772 a29k-amd-ebmon
) fmt=coff targ
=ebmon29k
;;
773 a29k-nyu-sym1
) fmt=coff targ
=ebmon29k
;;
774 a29k-
*-vxworks*) fmt=coff
;;
776 alpha-
*-*vms
*) fmt=evax
;;
777 alpha-
*-netware*) fmt=ecoff
;;
778 alpha-
*-osf*) fmt=ecoff
;;
779 alpha-
*-linuxecoff*) fmt=ecoff
;;
780 alpha-
*-linux*) fmt=elf em
=linux
;;
783 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
786 arm-
*-riscix*) fmt=aout targ
=arm-lit em
=riscix
;;
793 arm-
*-coff) fmt=coff
;;
794 arm-
*-riscix*) fmt=aout
;;
795 arm-
*-pe) fmt=coff targ
=armcoff em
=pe
;;
797 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
798 # start-sanitize-d30v
799 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
802 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
803 hppa-
*-lites*) fmt=elf em
=hppa
;;
804 hppa-
*-osf*) fmt=som em
=hppa
;;
805 hppa-
*-rtems*) fmt=elf em
=hppa
;;
806 hppa-
*-hpux*) fmt=som em
=hppa
;;
807 hppa-
*-bsd*) fmt=som em
=hppa
;;
808 hppa-
*-hiux*) fmt=som em
=hppa
;;
810 h8300-
*-coff) fmt=coff
;;
812 i386-ibm-aix
*) fmt=coff targ
=i386coff
814 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
815 i386-
*-bsd*) fmt=aout em
=386bsd
;;
816 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
817 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
818 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
819 i386-
*-linux*coff
*) fmt=coff em
=linux
821 i386-
*-linux*) fmt=elf em
=linux
;;
822 i386-
*-lynxos*) fmt=coff targ
=i386coff
824 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf | i386-
*-freebsdelf*)
826 i386-
*-sco*elf
*) fmt=elf targ
=sco5
;;
827 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
828 fmt=coff targ
=i386coff
;;
829 i386-
*-vsta) fmt=aout
;;
830 i386-
*-go32) fmt=coff targ
=i386coff
;;
831 i386-
*-rtems*) fmt=coff targ
=i386coff
;;
832 i386-
*-gnu*) fmt=elf
;;
834 fmt=aout em
=mach bfd_gas
=yes ;;
835 i386-
*-msdos*) fmt=aout
;;
836 i386-
*-moss*) fmt=elf
;;
837 i386-
*-pe) fmt=coff targ
=i386coff em
=pe
;;
838 i386-
*-cygwin32) fmt=coff targ
=i386coff em
=pe
;;
839 i386-
*-*nt
) fmt=coff targ
=i386coff em
=pe
;;
840 i960-
*-bout) fmt=bout
;;
841 i960-
*-coff) fmt=coff em
=ic960 targ
=ic960coff
;;
842 i960-
*-rtems*) fmt=coff em
=ic960 targ
=ic960coff
;;
843 i960-
*-nindy*) fmt=bout
;;
844 i960-
*-vxworks4*) fmt=bout
;;
845 i960-
*-vxworks5.0
) fmt=bout
;;
846 i960-
*-vxworks5.
*) fmt=coff em
=ic960 targ
=ic960coff
;;
847 i960-
*-vxworks*) fmt=bout
;;
849 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
851 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
853 m68k-motorola-sysv
*) fmt=coff targ
=m68kcoff em
=delta
;;
854 m68k-bull-sysv3
*) fmt=coff targ
=m68kcoff em
=dpx2
;;
855 m68k-apollo-
*) fmt=coff targ
=apollo em
=apollo
;;
856 m68k-
*-sysv4*) # must be before -sysv*
858 m68k-
*-elf*) fmt=elf
;;
859 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
860 fmt=coff targ
=m68kcoff
;;
861 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
862 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
863 m68k-
*-linux*) fmt=elf em
=linux
;;
864 m68k-
*-lynxos*) fmt=coff targ
=m68kcoff
866 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
867 m68k-apple-aux
*) fmt=coff targ
=m68kcoff em
=aux
;;
868 m68k-
*-psos*) fmt=elf em
=psos
;;
870 m88k-motorola-sysv3
*) fmt=coff targ
=m88kcoff em
=delt88
;;
871 m88k-
*-coff*) fmt=coff targ
=m88kcoff
;;
873 # don't change em like *-*-bsd does
874 mips-dec-netbsd
*) fmt=elf targ
=mips-lit endian
=little
;;
875 mips-dec-bsd
*) fmt=aout targ
=mips-lit
;;
876 mips-sony-bsd
*) fmt=ecoff targ
=mips-big
;;
877 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
878 mips-
*-ultrix*) fmt=ecoff targ
=mips-lit endian
=little
;;
879 mips-
*-osf*) fmt=ecoff targ
=mips-lit endian
=little
;;
880 mips-
*-ecoff*) fmt=ecoff
882 big
) targ
=mips-big
;;
886 mips-
*-ecoff*) fmt=ecoff targ
=mips-big
;;
887 mips-
*-irix6*) fmt=elf targ
=mips-big
;;
888 mips-
*-irix5*) fmt=elf targ
=mips-big
;;
889 mips-
*-irix*) fmt=ecoff targ
=mips-big
;;
890 mips-
*-lnews*) fmt=ecoff targ
=mips-lit em
=lnews
;;
891 mips-
*-riscos*) fmt=ecoff targ
=mips-big
;;
892 mips-
*-sysv*) fmt=ecoff targ
=mips-big
;;
893 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux* | mips-
*-gnu*)
896 big
) targ
=mips-big
;;
900 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
901 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
902 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
909 ppc-
*-aix*) fmt=coff
;;
910 ppc-
*-beos*) fmt=coff
;;
911 ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
918 ppc-
*-linux*) fmt=elf
921 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
924 ppc-
*-solaris*) fmt=elf
926 big
) { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } ;;
937 ppc-
*-macos* | ppc-
*-mpw*)
939 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
941 sh-
*-elf*) fmt=elf
;;
942 sh-
*-coff*) fmt=coff
;;
944 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
945 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
947 sparc-
*-rtems*) fmt=aout
;;
948 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
949 sparc-
*-aout | sparc
*-*-vxworks*)
950 fmt=aout em
=sparcaout
;;
951 sparc-
*-coff) fmt=coff
;;
952 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
953 sparc-
*-linux*) fmt=elf em
=linux
;;
954 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
955 sparc-fujitsu-none
) fmt=aout
;;
956 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
958 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
960 # start-sanitize-tic80
961 tic80-
*-*) fmt=coff targ
=tic80coff
;;
963 v850-
*-*) fmt=elf bfd_gas
=yes ;;
965 vax-
*-bsd* | vax-
*-ultrix*)
967 vax-
*-vms) fmt=vms
;;
969 z8k-
*-coff | z8k-
*-sim)
974 *-*-aout |
*-*-scout)
980 *-*-generic) fmt=generic
;;
981 *-*-xray |
*-*-hms) fmt=coff
;;
983 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
984 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
986 *-*-vxworks) fmt=aout
;;
987 *-*-netware) fmt=elf
;;
990 case ${cpu_type}-${fmt} in
991 alpha-
*) bfd_gas
=yes ;;
992 arm-
*) bfd_gas
=yes ;;
994 # i386-aout) bfd_gas=preferred ;;
995 mips-
*) bfd_gas
=yes ;;
996 ns32k-
*) bfd_gas
=yes ;;
997 ppc-
*) bfd_gas
=yes ;;
998 sparc-
*) bfd_gas
=yes ;;
999 *-elf) bfd_gas
=yes ;;
1000 *-ecoff) bfd_gas
=yes ;;
1001 *-som) bfd_gas
=yes ;;
1005 # Other random stuff.
1007 # do we need the opcodes library?
1013 if test "${shared_opcodes}" = "true"; then
1014 # A shared libopcodes must be linked against libbfd.
1020 test -n "$want_sparc_v9" && cat >> confdefs.h
<<\EOF
1025 case ${cpu}-${vendor}-${os} in
1026 sparc64-
*-elf*) cat >> confdefs.h
<<\EOF
1027 #define SPARC_ARCH64 1
1034 case ${extra_objects} in
1036 *) extra_objects
="$extra_objects cgen.o"
1037 extra_files
=..
/opcodes
/${cpu_type}-opc.h
1038 extra_links
=cgen-opc.h
1039 cat >> confdefs.h
<<\EOF
1040 #define USING_CGEN 1
1048 case ${extra_objects} in
1050 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1055 echo ${extra_objects} |
grep -s "itbl-parse.o"
1056 if test $?
-ne 0 ; then
1057 extra_objects
="$extra_objects itbl-parse.o"
1060 echo ${extra_objects} |
grep -s "itbl-lex.o"
1061 if test $?
-ne 0 ; then
1062 extra_objects
="$extra_objects itbl-lex.o"
1065 echo ${extra_objects} |
grep -s "itbl-ops.o"
1066 if test $?
-ne 0 ; then
1067 extra_objects
="$extra_objects itbl-ops.o"
1075 # See if we really can support this configuration with the emulation code.
1077 if test $this_target = $target ; then
1078 primary_bfd_gas
=$bfd_gas
1083 if test $bfd_gas = no
; then
1084 # Can't support other configurations this way.
1087 elif test $bfd_gas = no
; then
1088 # Can't support this configuration.
1092 # From target name and format, produce a list of supported emulations.
1094 case ${generic_target}-${fmt} in
1095 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1096 mips-
*-linux*-*) case "$endian" in
1097 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1098 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1100 mips-
*-lnews*-ecoff) ;;
1101 mips-
*-*-ecoff) case "$endian" in
1102 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1103 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1105 mips-
*-*-elf) case "$endian" in
1106 big
) emulation
="mipsbelf mipslelf mipself" ;;
1107 *) emulation
="mipslelf mipsbelf mipself" ;;
1108 # Uncommenting the next line will turn on support for i386 COFF
1109 # in any i386 ELF configuration. This probably doesn't work
1111 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1115 emulations
="$emulations $emulation"
1119 # Assign floating point type. Most processors with FP support
1120 # IEEE FP. On those that don't support FP at all, usually IEEE
1122 case ${target_cpu} in
1123 vax | tahoe
) atof
=${target_cpu} ;;
1127 case "${obj_format}" in
1128 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1132 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1133 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1136 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1137 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1140 # and target makefile frag
1142 target_frag
=${srcdir}/config
/${gas_target}.mt
1143 if test ! -r ${target_frag}; then
1144 target_frag
=/dev
/null
# ick! but subst_file can't be conditionalized
1148 case ${user_bfd_gas}-${primary_bfd_gas} in
1150 # We didn't override user's choice.
1153 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1165 # User specified nothing.
1169 # Some COFF configurations want these random other flags set.
1170 case ${obj_format} in
1172 case ${target_cpu_type} in
1173 i386
) cat >> confdefs.h
<<\EOF
1177 m68k
) cat >> confdefs.h
<<\EOF
1181 m88k
) cat >> confdefs.h
<<\EOF
1189 # Getting this done right is going to be a bitch. Each configuration specified
1190 # with --enable-targets=... should be checked for environment, format, cpu, and
1193 # For each configuration, the necessary object file support code must be linked
1194 # in. This might be only one, it might be up to four. The necessary emulation
1195 # code needs to be provided, too.
1197 # And then there's "--enable-targets=all"....
1199 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1201 formats
="${obj_format}"
1204 _gas_uniq_list
="$emulations"
1205 _gas_uniq_newlist
=""
1206 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1207 case $_gas_uniq_i in
1209 *) case " $_gas_uniq_newlist " in
1210 *" $_gas_uniq_i "*) ;;
1211 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1215 emulations
=$_gas_uniq_newlist
1217 for em
in .
$emulations ; do
1220 mipsbelf | mipslelf
)
1221 fmt=elf
file=mipself
;;
1222 mipsbecoff | mipslecoff
)
1223 fmt=ecoff
file=mipsecoff
;;
1225 fmt=coff
file=i386coff
;;
1227 fmt=elf
file=i386elf
;;
1229 formats
="$formats $fmt"
1230 emfiles
="$emfiles e-$file.o"
1231 EMULATIONS
="$EMULATIONS &$em,"
1233 _gas_uniq_list
="$formats"
1234 _gas_uniq_newlist
=""
1235 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1236 case $_gas_uniq_i in
1238 *) case " $_gas_uniq_newlist " in
1239 *" $_gas_uniq_i "*) ;;
1240 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1244 formats
=$_gas_uniq_newlist
1246 _gas_uniq_list
="$emfiles"
1247 _gas_uniq_newlist
=""
1248 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1249 case $_gas_uniq_i in
1251 *) case " $_gas_uniq_newlist " in
1252 *" $_gas_uniq_i "*) ;;
1253 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1257 emfiles
=$_gas_uniq_newlist
1259 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1260 for fmt in $formats ; do
1262 aout
) cat >> confdefs.h
<<\EOF
1263 #define OBJ_MAYBE_AOUT 1
1266 bout
) cat >> confdefs.h
<<\EOF
1267 #define OBJ_MAYBE_BOUT 1
1270 coff
) cat >> confdefs.h
<<\EOF
1271 #define OBJ_MAYBE_COFF 1
1274 ecoff
) cat >> confdefs.h
<<\EOF
1275 #define OBJ_MAYBE_ECOFF 1
1278 elf
) cat >> confdefs.h
<<\EOF
1279 #define OBJ_MAYBE_ELF 1
1282 generic
) cat >> confdefs.h
<<\EOF
1283 #define OBJ_MAYBE_GENERIC 1
1286 hp300
) cat >> confdefs.h
<<\EOF
1287 #define OBJ_MAYBE_HP300 1
1290 ieee
) cat >> confdefs.h
<<\EOF
1291 #define OBJ_MAYBE_IEEE 1
1294 som
) cat >> confdefs.h
<<\EOF
1295 #define OBJ_MAYBE_SOM 1
1298 vms
) cat >> confdefs.h
<<\EOF
1299 #define OBJ_MAYBE_VMS 1
1303 extra_objects
="$extra_objects obj-$fmt.o"
1307 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1309 extra_objects
="$extra_objects $emfiles"
1310 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1311 cat >> confdefs.h
<<\EOF
1312 #define USE_EMULATIONS 1
1317 cat >> confdefs.h
<<EOF
1318 #define EMULATIONS $EMULATIONS
1321 cat >> confdefs.h
<<EOF
1322 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1326 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1327 yes-
*-coff) need_bfd
=yes ;;
1328 no-
*-coff) need_bfd
=yes
1329 cat >> confdefs.h
<<\EOF
1330 #define MANY_SEGMENTS 1
1335 reject_dev_configs
=yes
1337 case ${reject_dev_configs}-${dev} in
1339 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1348 case "${primary_bfd_gas}" in
1349 yes) cat >> confdefs.h
<<\EOF
1350 #define BFD_ASSEMBLER 1
1356 # do we need the opcodes library?
1357 case "${need_opcodes}" in
1359 OPCODES_DEP
=..
/opcodes
/libopcodes.a
1360 OPCODES_LIB
='-L../opcodes -lopcodes'
1362 # We need to handle some special cases for shared libraries.
1365 # On SunOS, we must link against the name we are going to install,
1366 # not -lbfd, since SunOS does not support SONAME.
1367 if test "${shared_opcodes}" = "true"; then
1368 OPCODES_LIB
='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
1372 # On Alpha OSF/1, the native linker searches all the -L
1373 # directories for any LIB.so files, and only then searches for any
1374 # LIB.a files. That means that if there is an installed
1375 # libbfd.so, but this build is not done with --enable-shared, the
1376 # link will wind up being against the install libbfd.so rather
1377 # than the newly built libbfd. To avoid this, we must explicitly
1378 # link against libbfd.a when --enable-shared is not used.
1379 if test "${shared_opcodes}" != "true"; then
1380 OPCODES_LIB
='../opcodes/libopcodes.a'
1387 case "${need_bfd}" in
1389 BFDDEP
=..
/bfd
/libbfd.a
1390 BFDLIB
='-L../bfd -lbfd'
1391 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1393 # We need to handle some special cases for shared libraries
1396 # On SunOS, we must link against the name we are going to install,
1397 # not -lbfd, since SunOS does not support SONAME.
1398 if test "${shared_bfd}" = "true"; then
1399 BFDLIB
='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1403 # On Alpha OSF/1, the native linker searches all the -L
1404 # directories for any LIB.so files, and only then searches for any
1405 # LIB.a files. That means that if there is an installed
1406 # libbfd.so, but this build is not done with --enable-shared, the
1407 # link will wind up being against the install libbfd.so rather
1408 # than the newly built libbfd. To avoid this, we must explicitly
1409 # link against libbfd.a when --enable-shared is not used.
1410 if test "${shared_bfd}" != "true"; then
1411 BFDLIB
='../bfd/libbfd.a'
1416 if test "${commonbfdlib}" = "true"; then
1417 # when a shared libbfd is built with --enable-commonbfdlib,
1418 # all of libopcodes is available in libbfd.so
1431 cat >> confdefs.h
<<EOF
1432 #define TARGET_ALIAS "${target_alias}"
1435 cat >> confdefs.h
<<EOF
1436 #define TARGET_CANONICAL "${target}"
1439 cat >> confdefs.h
<<EOF
1440 #define TARGET_CPU "${target_cpu}"
1443 cat >> confdefs.h
<<EOF
1444 #define TARGET_VENDOR "${target_vendor}"
1447 cat >> confdefs.h
<<EOF
1448 #define TARGET_OS "${target_os}"
1452 # Extract the first word of "gcc", so it can be a program name with args.
1453 set dummy gcc
; ac_word
=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC
="$CC" # Let the user override the test.
1462 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1463 for ac_dir
in $PATH; do
1464 test -z "$ac_dir" && ac_dir
=.
1465 if test -f $ac_dir/$ac_word; then
1474 if test -n "$CC"; then
1475 echo "$ac_t""$CC" 1>&6
1477 echo "$ac_t""no" 1>&6
1480 if test -z "$CC"; then
1481 # Extract the first word of "cc", so it can be a program name with args.
1482 set dummy cc
; ac_word
=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC
="$CC" # Let the user override the test.
1491 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1493 for ac_dir
in $PATH; do
1494 test -z "$ac_dir" && ac_dir
=.
1495 if test -f $ac_dir/$ac_word; then
1496 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1497 ac_prog_rejected
=yes
1505 if test $ac_prog_rejected = yes; then
1506 # We found a bogon in the path, so make sure we never use it.
1507 set dummy
$ac_cv_prog_CC
1509 if test $# -gt 0; then
1510 # We chose a different compiler from the bogus one.
1511 # However, it has the same basename, so the bogon will be chosen
1512 # first if we set CC to just the basename; use the full file name.
1514 set dummy
"$ac_dir/$ac_word" "$@"
1522 if test -n "$CC"; then
1523 echo "$ac_t""$CC" 1>&6
1525 echo "$ac_t""no" 1>&6
1528 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1531 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1532 echo "configure:1533: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1536 ac_cpp
='$CPP $CPPFLAGS'
1537 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1538 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1539 cross_compiling
=$ac_cv_prog_cc_cross
1541 cat > conftest.
$ac_ext <<EOF
1542 #line 1543 "configure"
1543 #include "confdefs.h"
1546 if { (eval echo configure
:1547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1547 ac_cv_prog_cc_works
=yes
1548 # If we can't run a trivial program, we are probably using a cross compiler.
1549 if (.
/conftest
; exit) 2>/dev
/null
; then
1550 ac_cv_prog_cc_cross
=no
1552 ac_cv_prog_cc_cross
=yes
1555 echo "configure: failed program was:" >&5
1556 cat conftest.
$ac_ext >&5
1557 ac_cv_prog_cc_works
=no
1561 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1562 if test $ac_cv_prog_cc_works = no
; then
1563 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1565 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1566 echo "configure:1567: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1567 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1568 cross_compiling
=$ac_cv_prog_cc_cross
1570 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1571 echo "configure:1572: checking whether we are using GNU C" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1575 cat > conftest.c
<<EOF
1580 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1587 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1589 if test $ac_cv_prog_gcc = yes; then
1591 ac_test_CFLAGS
="${CFLAGS+set}"
1592 ac_save_CFLAGS
="$CFLAGS"
1594 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1595 echo "configure:1596: checking whether ${CC-cc} accepts -g" >&5
1596 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1597 echo $ac_n "(cached) $ac_c" 1>&6
1599 echo 'void f(){}' > conftest.c
1600 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1609 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1610 if test "$ac_test_CFLAGS" = set; then
1611 CFLAGS
="$ac_save_CFLAGS"
1612 elif test $ac_cv_prog_cc_g = yes; then
1619 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1622 # Find a good install program. We prefer a C program (faster),
1623 # so one script is as good as another. But avoid the broken or
1624 # incompatible versions:
1625 # SysV /etc/install, /usr/sbin/install
1626 # SunOS /usr/etc/install
1627 # IRIX /sbin/install
1629 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1630 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1631 # ./install, which can be erroneously created by make from ./install.sh.
1632 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1633 echo "configure:1634: checking for a BSD compatible install" >&5
1634 if test -z "$INSTALL"; then
1635 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1638 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1639 for ac_dir
in $PATH; do
1640 # Account for people who put trailing slashes in PATH elements.
1642 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1644 # OSF1 and SCO ODT 3.0 have their own names for install.
1645 for ac_prog
in ginstall installbsd scoinst
install; do
1646 if test -f $ac_dir/$ac_prog; then
1647 if test $ac_prog = install &&
1648 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1649 # AIX install. It has an incompatible calling convention.
1650 # OSF/1 installbsd also uses dspmsg, but is usable.
1653 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1664 if test "${ac_cv_path_install+set}" = set; then
1665 INSTALL
="$ac_cv_path_install"
1667 # As a last resort, use the slow shell script. We don't cache a
1668 # path for INSTALL within a source directory, because that will
1669 # break other packages using the cache if that directory is
1670 # removed, or if the path is relative.
1671 INSTALL
="$ac_install_sh"
1674 echo "$ac_t""$INSTALL" 1>&6
1676 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1677 # It thinks the first close brace ends the variable substitution.
1678 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1680 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1683 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1684 echo "configure:1685: checking how to run the C preprocessor" >&5
1685 # On Suns, sometimes $CPP names a directory.
1686 if test -n "$CPP" && test -d "$CPP"; then
1689 if test -z "$CPP"; then
1690 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 # This must be in double quotes, not single quotes, because CPP may get
1694 # substituted into the Makefile and "${CC-cc}" will confuse make.
1696 # On the NeXT, cc -E runs the code through the compiler's parser,
1697 # not just through cpp.
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1704 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure
:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err
=`grep -v '^ *+' conftest.out`
1707 if test -z "$ac_err"; then
1711 echo "configure: failed program was:" >&5
1712 cat conftest.
$ac_ext >&5
1714 CPP
="${CC-cc} -E -traditional-cpp"
1715 cat > conftest.
$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure
:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err
=`grep -v '^ *+' conftest.out`
1724 if test -z "$ac_err"; then
1728 echo "configure: failed program was:" >&5
1729 cat conftest.
$ac_ext >&5
1736 ac_cv_prog_CPP
="$CPP"
1738 CPP
="$ac_cv_prog_CPP"
1740 ac_cv_prog_CPP
="$CPP"
1742 echo "$ac_t""$CPP" 1>&6
1744 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
1746 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_hdr" >&5
1749 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 cat > conftest.
$ac_ext <<EOF
1753 #line 1754 "configure"
1754 #include "confdefs.h"
1757 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1758 { (eval echo configure
:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1759 ac_err
=`grep -v '^ *+' conftest.out`
1760 if test -z "$ac_err"; then
1762 eval "ac_cv_header_$ac_safe=yes"
1765 echo "configure: failed program was:" >&5
1766 cat conftest.
$ac_ext >&5
1768 eval "ac_cv_header_$ac_safe=no"
1772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1773 echo "$ac_t""yes" 1>&6
1774 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1775 cat >> confdefs.h
<<EOF
1776 #define $ac_tr_hdr 1
1780 echo "$ac_t""no" 1>&6
1785 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1786 # people who are not cross-compiling but are compiling cross-assemblers.
1787 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1788 echo "configure:1789: checking whether compiling a cross-assembler" >&5
1789 if test "${host}" = "${target}"; then
1793 cat >> confdefs.h
<<\EOF
1794 #define CROSS_COMPILE 1
1798 echo "$ac_t""$cross_gas" 1>&6
1800 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1801 # for constant arguments. Useless!
1802 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1803 echo "configure:1804: checking for working alloca.h" >&5
1804 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1805 echo $ac_n "(cached) $ac_c" 1>&6
1807 cat > conftest.
$ac_ext <<EOF
1808 #line 1809 "configure"
1809 #include "confdefs.h"
1812 char *p = alloca(2 * sizeof(int));
1815 if { (eval echo configure
:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1817 ac_cv_header_alloca_h
=yes
1819 echo "configure: failed program was:" >&5
1820 cat conftest.
$ac_ext >&5
1822 ac_cv_header_alloca_h
=no
1827 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1828 if test $ac_cv_header_alloca_h = yes; then
1829 cat >> confdefs.h
<<\EOF
1830 #define HAVE_ALLOCA_H 1
1835 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1836 echo "configure:1837: checking for alloca" >&5
1837 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 cat > conftest.
$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1845 # define alloca __builtin_alloca
1848 # include <alloca.h>
1853 # ifndef alloca /* predefined by HP cc +Olibcalls */
1861 char *p = (char *) alloca(1);
1864 if { (eval echo configure
:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1866 ac_cv_func_alloca_works
=yes
1868 echo "configure: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1871 ac_cv_func_alloca_works
=no
1876 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1877 if test $ac_cv_func_alloca_works = yes; then
1878 cat >> confdefs.h
<<\EOF
1879 #define HAVE_ALLOCA 1
1884 if test $ac_cv_func_alloca_works = no
; then
1885 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1886 # that cause trouble. Some versions do not even contain alloca or
1887 # contain a buggy version. If you still want to use their alloca,
1888 # use ar to extract alloca.o from them instead of compiling alloca.c.
1890 cat >> confdefs.h
<<\EOF
1895 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1896 echo "configure:1897: checking whether alloca needs Cray hooks" >&5
1897 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1898 echo $ac_n "(cached) $ac_c" 1>&6
1900 cat > conftest.
$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 #if defined(CRAY) && ! defined(CRAY2)
1910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1911 egrep "webecray" >/dev
/null
2>&1; then
1922 echo "$ac_t""$ac_cv_os_cray" 1>&6
1923 if test $ac_cv_os_cray = yes; then
1924 for ac_func
in _getb67 GETB67 getb67
; do
1925 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1926 echo "configure:1927: checking for $ac_func" >&5
1927 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 cat > conftest.
$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 /* System header to define __stub macros and hopefully few prototypes,
1934 which can conflict with char $ac_func(); below. */
1936 /* Override any gcc2 internal prototype to avoid an error. */
1937 /* We use char because int might match the return type of a gcc2
1938 builtin and then its argument prototype would still apply. */
1943 /* The GNU C library defines this for functions which it implements
1944 to always fail with ENOSYS. Some functions are actually named
1945 something starting with __ and the normal name is an alias. */
1946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1954 if { (eval echo configure
:1955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1956 eval "ac_cv_func_$ac_func=yes"
1958 echo "configure: failed program was:" >&5
1959 cat conftest.
$ac_ext >&5
1961 eval "ac_cv_func_$ac_func=no"
1966 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1967 echo "$ac_t""yes" 1>&6
1968 cat >> confdefs.h
<<EOF
1969 #define CRAY_STACKSEG_END $ac_func
1974 echo "$ac_t""no" 1>&6
1980 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1981 echo "configure:1982: checking stack direction for C alloca" >&5
1982 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1983 echo $ac_n "(cached) $ac_c" 1>&6
1985 if test "$cross_compiling" = yes; then
1986 ac_cv_c_stack_direction
=0
1988 cat > conftest.
$ac_ext <<EOF
1989 #line 1990 "configure"
1990 #include "confdefs.h"
1991 find_stack_direction ()
1993 static char *addr = 0;
1998 return find_stack_direction ();
2001 return (&dummy > addr) ? 1 : -1;
2005 exit (find_stack_direction() < 0);
2008 if { (eval echo configure
:2009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2010 ac_cv_c_stack_direction
=1
2012 echo "configure: failed program was:" >&5
2013 cat conftest.
$ac_ext >&5
2015 ac_cv_c_stack_direction
=-1
2022 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2023 cat >> confdefs.h
<<EOF
2024 #define STACK_DIRECTION $ac_cv_c_stack_direction
2029 echo $ac_n "checking for inline""... $ac_c" 1>&6
2030 echo "configure:2031: checking for inline" >&5
2031 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2035 for ac_kw
in inline __inline__ __inline
; do
2036 cat > conftest.
$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2044 if { (eval echo configure
:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 ac_cv_c_inline
=$ac_kw; break
2048 echo "configure: failed program was:" >&5
2049 cat conftest.
$ac_ext >&5
2056 echo "$ac_t""$ac_cv_c_inline" 1>&6
2057 case "$ac_cv_c_inline" in
2059 no
) cat >> confdefs.h
<<\EOF
2063 *) cat >> confdefs.h
<<EOF
2064 #define inline $ac_cv_c_inline
2070 # VMS doesn't have unlink.
2071 for ac_func
in unlink remove
2073 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2074 echo "configure:2075: checking for $ac_func" >&5
2075 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 /* System header to define __stub macros and hopefully few prototypes,
2082 which can conflict with char $ac_func(); below. */
2084 /* Override any gcc2 internal prototype to avoid an error. */
2085 /* We use char because int might match the return type of a gcc2
2086 builtin and then its argument prototype would still apply. */
2091 /* The GNU C library defines this for functions which it implements
2092 to always fail with ENOSYS. Some functions are actually named
2093 something starting with __ and the normal name is an alias. */
2094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2102 if { (eval echo configure
:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2104 eval "ac_cv_func_$ac_func=yes"
2106 echo "configure: failed program was:" >&5
2107 cat conftest.
$ac_ext >&5
2109 eval "ac_cv_func_$ac_func=no"
2114 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2117 cat >> confdefs.h
<<EOF
2118 #define $ac_tr_func 1
2122 echo "$ac_t""no" 1>&6
2127 # Some systems don't have sbrk().
2130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2131 echo "configure:2132: checking for $ac_func" >&5
2132 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.
$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char $ac_func(); below. */
2141 /* Override any gcc2 internal prototype to avoid an error. */
2142 /* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2148 /* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2159 if { (eval echo configure
:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2161 eval "ac_cv_func_$ac_func=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.
$ac_ext >&5
2166 eval "ac_cv_func_$ac_func=no"
2171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2174 cat >> confdefs.h
<<EOF
2175 #define $ac_tr_func 1
2179 echo "$ac_t""no" 1>&6
2184 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
2185 # enough, but on some of those systems, the assert macro relies on requoting
2187 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
2188 echo "configure:2189: checking for working assert macro" >&5
2189 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 cat > conftest.
$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2199 /* check for requoting problems */
2200 static int a, b, c, d;
2202 assert (!strcmp(s, "foo bar baz quux"));
2203 /* check for newline handling */
2209 if { (eval echo configure
:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2211 gas_cv_assert_ok
=yes
2213 echo "configure: failed program was:" >&5
2214 cat conftest.
$ac_ext >&5
2220 echo "$ac_t""$gas_cv_assert_ok" 1>&6
2221 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
2222 #define BROKEN_ASSERT 1
2227 # On some systems, the system header files may not declare malloc, realloc,
2228 # and free. There are places where gas needs these functions to have been
2229 # declared -- such as when taking their addresses.
2231 #ifdef HAVE_MEMORY_H
2234 #ifdef HAVE_STRING_H
2237 #ifdef HAVE_STRINGS_H
2238 #include <strings.h>
2241 #ifdef HAVE_STDLIB_H
2244 #ifdef HAVE_UNISTD_H
2249 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
2250 echo "configure:2251: checking whether declaration is required for strstr" >&5
2251 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2254 cat > conftest.
$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2260 typedef char *(*f)();
2266 if { (eval echo configure
:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2268 gas_cv_decl_needed_strstr
=no
2270 echo "configure: failed program was:" >&5
2271 cat conftest.
$ac_ext >&5
2273 gas_cv_decl_needed_strstr
=yes
2277 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
2278 test $gas_cv_decl_needed_strstr = no ||
{
2279 cat >> confdefs.h
<<\EOF
2280 #define NEED_DECLARATION_STRSTR 1
2286 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
2287 echo "configure:2288: checking whether declaration is required for malloc" >&5
2288 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2291 cat > conftest.
$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2297 typedef char *(*f)();
2303 if { (eval echo configure
:2304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2305 gas_cv_decl_needed_malloc
=no
2307 echo "configure: failed program was:" >&5
2308 cat conftest.
$ac_ext >&5
2310 gas_cv_decl_needed_malloc
=yes
2314 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2315 test $gas_cv_decl_needed_malloc = no ||
{
2316 cat >> confdefs.h
<<\EOF
2317 #define NEED_DECLARATION_MALLOC 1
2323 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
2324 echo "configure:2325: checking whether declaration is required for free" >&5
2325 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2334 typedef void (*f)();
2340 if { (eval echo configure
:2341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2342 gas_cv_decl_needed_free
=no
2344 echo "configure: failed program was:" >&5
2345 cat conftest.
$ac_ext >&5
2347 gas_cv_decl_needed_free
=yes
2351 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
2352 test $gas_cv_decl_needed_free = no ||
{
2353 cat >> confdefs.h
<<\EOF
2354 #define NEED_DECLARATION_FREE 1
2360 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
2361 echo "configure:2362: checking whether declaration is required for sbrk" >&5
2362 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2365 cat > conftest.
$ac_ext <<EOF
2366 #line 2367 "configure"
2367 #include "confdefs.h"
2371 typedef char *(*f)();
2377 if { (eval echo configure
:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2379 gas_cv_decl_needed_sbrk
=no
2381 echo "configure: failed program was:" >&5
2382 cat conftest.
$ac_ext >&5
2384 gas_cv_decl_needed_sbrk
=yes
2388 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
2389 test $gas_cv_decl_needed_sbrk = no ||
{
2390 cat >> confdefs.h
<<\EOF
2391 #define NEED_DECLARATION_SBRK 1
2397 # Does errno.h declare errno, or do we have to add a separate declaration
2400 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
2401 echo "configure:2402: checking whether declaration is required for errno" >&5
2402 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.
$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2421 if { (eval echo configure
:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2423 gas_cv_decl_needed_errno
=no
2425 echo "configure: failed program was:" >&5
2426 cat conftest.
$ac_ext >&5
2428 gas_cv_decl_needed_errno
=yes
2432 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
2433 test $gas_cv_decl_needed_errno = no ||
{
2434 cat >> confdefs.h
<<\EOF
2435 #define NEED_DECLARATION_ERRNO 1
2443 RPATH_ENVVAR
=LD_LIBRARY_PATH
2444 # If we have shared libraries, try to set rpath reasonably.
2445 if test "${shared}" = "true"; then
2448 HLDFLAGS
='-Wl,+s,+b,$(libdir)'
2449 RPATH_ENVVAR
=SHLIB_PATH
2451 *-*-irix5* |
*-*-irix6*)
2452 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2457 HLDFLAGS
='-Wl,-rpath,$(libdir)'
2460 HLDFLAGS
='-R $(libdir)'
2463 HLDENV
='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
2468 # On SunOS, if the linker supports the -rpath option, use it to
2469 # prevent ../bfd and ../opcodes from being included in the run time
2473 echo 'main () { }' > conftest.c
2474 ${CC} -o conftest
-Wl,-rpath= conftest.c
>/dev
/null
2>conftest.t
2475 if grep 'unrecognized' conftest.t
>/dev
/null
2>&1; then
2477 elif grep 'No such file' conftest.t
>/dev
/null
2>&1; then
2479 elif grep 'do not mix' conftest.t
>/dev
/null
2>&1; then
2481 elif test "${shared}" = "true"; then
2482 HLDFLAGS
='-Wl,-rpath=$(libdir)'
2484 HLDFLAGS
='-Wl,-rpath='
2486 rm -f conftest.t conftest.c conftest
2496 cat > confcache
<<\EOF
2497 # This file is a shell script that caches the results of configure
2498 # tests run on this system so they can be shared between configure
2499 # scripts and configure runs. It is not useful on other systems.
2500 # If it contains results you don't want to keep, you may remove or edit it.
2502 # By default, configure uses ./config.cache as the cache file,
2503 # creating it if it does not exist already. You can give configure
2504 # the --cache-file=FILE option to use a different cache file; that is
2505 # what configure does when it calls configure scripts in
2506 # subdirectories, so they share the cache.
2507 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2508 # config.status only pays attention to the cache file if you give it the
2509 # --recheck option to rerun configure.
2512 # The following way of writing the cache mishandles newlines in values,
2513 # but we know of no workaround that is simple, portable, and efficient.
2514 # So, don't put newlines in cache variables' values.
2515 # Ultrix sh set writes to stderr and can't be redirected directly,
2516 # and sets the high bit in the cache file unless we assign to the vars.
2518 case `(ac_space=' '; set) 2>&1` in
2520 # `set' does not quote correctly, so add quotes (double-quote substitution
2521 # turns \\\\ into \\, and sed turns \\ into \).
2523 -e "s/'/'\\\\''/g" \
2524 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2527 # `set' quotes correctly as required by POSIX, so do not add quotes.
2528 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2531 if cmp -s $cache_file confcache
; then
2534 if test -w $cache_file; then
2535 echo "updating cache $cache_file"
2536 cat confcache
> $cache_file
2538 echo "not updating unwritable cache $cache_file"
2543 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2545 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2546 # Let make expand exec_prefix.
2547 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2549 # Any assignment to VPATH causes Sun make to only execute
2550 # the first set of double-colon rules, so remove it if not needed.
2551 # If there is a colon in the path, we need to keep it.
2552 if test "x$srcdir" = x.
; then
2553 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2556 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2558 DEFS
=-DHAVE_CONFIG_H
2560 # Without the "./", some shells look in PATH for config.status.
2561 : ${CONFIG_STATUS=./config.status}
2563 echo creating
$CONFIG_STATUS
2564 rm -f $CONFIG_STATUS
2565 cat > $CONFIG_STATUS <<EOF
2567 # Generated automatically by configure.
2568 # Run this file to recreate the current configuration.
2569 # This directory was configured as follows,
2570 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2572 # $0 $ac_configure_args
2574 # Compiler output produced by configure, useful for debugging
2575 # configure, is in ./config.log if it exists.
2577 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2580 case "\$ac_option" in
2581 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2582 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2583 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2584 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2585 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2587 -help | --help | --hel | --he | --h)
2588 echo "\$ac_cs_usage"; exit 0 ;;
2589 *) echo "\$ac_cs_usage"; exit 1 ;;
2593 ac_given_srcdir=$srcdir
2594 ac_given_INSTALL="$INSTALL"
2596 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2598 cat >> $CONFIG_STATUS <<EOF
2600 # Protect against being on the right side of a sed subst in config.status.
2601 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2602 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2605 s%@CFLAGS@%$CFLAGS%g
2606 s%@CPPFLAGS@%$CPPFLAGS%g
2607 s%@CXXFLAGS@%$CXXFLAGS%g
2609 s%@LDFLAGS@%$LDFLAGS%g
2611 s%@exec_prefix@%$exec_prefix%g
2612 s%@prefix@%$prefix%g
2613 s%@program_transform_name@%$program_transform_name%g
2614 s%@bindir@%$bindir%g
2615 s%@sbindir@%$sbindir%g
2616 s%@libexecdir@%$libexecdir%g
2617 s%@datadir@%$datadir%g
2618 s%@sysconfdir@%$sysconfdir%g
2619 s%@sharedstatedir@%$sharedstatedir%g
2620 s%@localstatedir@%$localstatedir%g
2621 s%@libdir@%$libdir%g
2622 s%@includedir@%$includedir%g
2623 s%@oldincludedir@%$oldincludedir%g
2624 s%@infodir@%$infodir%g
2625 s%@mandir@%$mandir%g
2627 s%@host_alias@%$host_alias%g
2628 s%@host_cpu@%$host_cpu%g
2629 s%@host_vendor@%$host_vendor%g
2630 s%@host_os@%$host_os%g
2631 s%@target@%$target%g
2632 s%@target_alias@%$target_alias%g
2633 s%@target_cpu@%$target_cpu%g
2634 s%@target_vendor@%$target_vendor%g
2635 s%@target_os@%$target_os%g
2637 s%@build_alias@%$build_alias%g
2638 s%@build_cpu@%$build_cpu%g
2639 s%@build_vendor@%$build_vendor%g
2640 s%@build_os@%$build_os%g
2641 /@target_frag@/r $target_frag
2643 s%@extra_objects@%$extra_objects%g
2644 s%@target_cpu_type@%$target_cpu_type%g
2645 s%@obj_format@%$obj_format%g
2646 s%@te_file@%$te_file%g
2648 s%@BFDDEP@%$BFDDEP%g
2649 s%@BFDLIB@%$BFDLIB%g
2650 s%@OPCODES_DEP@%$OPCODES_DEP%g
2651 s%@OPCODES_LIB@%$OPCODES_LIB%g
2652 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2654 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2655 s%@INSTALL_DATA@%$INSTALL_DATA%g
2657 s%@ALLOCA@%$ALLOCA%g
2658 s%@HLDFLAGS@%$HLDFLAGS%g
2659 s%@HLDENV@%$HLDENV%g
2660 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2665 cat >> $CONFIG_STATUS <<\EOF
2667 # Split the substitutions into bite-sized pieces for seds with
2668 # small command number limits, like on Digital OSF/1 and HP-UX.
2669 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2670 ac_file
=1 # Number of current file.
2671 ac_beg
=1 # First line for current file.
2672 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2675 while $ac_more_lines; do
2676 if test $ac_beg -gt 1; then
2677 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2679 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2681 if test ! -s conftest.s
$ac_file; then
2683 rm -f conftest.s
$ac_file
2685 if test -z "$ac_sed_cmds"; then
2686 ac_sed_cmds
="sed -f conftest.s$ac_file"
2688 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2690 ac_file
=`expr $ac_file + 1`
2692 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2695 if test -z "$ac_sed_cmds"; then
2700 cat >> $CONFIG_STATUS <<EOF
2702 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2704 cat >> $CONFIG_STATUS <<\EOF
2705 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2708 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2709 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2710 *) ac_file_in
="${ac_file}.in" ;;
2713 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2715 # Remove last slash and all that follows it. Not all systems have dirname.
2716 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2717 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2718 # The file is in a subdirectory.
2719 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2720 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2721 # A "../" for each directory in $ac_dir_suffix.
2722 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2724 ac_dir_suffix
= ac_dots
=
2727 case "$ac_given_srcdir" in
2729 if test -z "$ac_dots"; then top_srcdir
=.
2730 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2731 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2733 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2734 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2737 case "$ac_given_INSTALL" in
2738 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2739 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2742 echo creating
"$ac_file"
2744 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2746 *Makefile
*) ac_comsub
="1i\\
2747 # $configure_input" ;;
2751 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2753 s%@configure_input@%$configure_input%g
2754 s%@srcdir@%$srcdir%g
2755 s%@top_srcdir@%$top_srcdir%g
2756 s%@INSTALL@%$INSTALL%g
2757 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
2761 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2762 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2764 # ac_d sets the value in "#define NAME VALUE" lines.
2765 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2766 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2769 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2770 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2771 ac_uB
='\([ ]\)%\1#\2define\3'
2774 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2775 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2776 ac_eB
='$%\1#\2define\3'
2780 if test "${CONFIG_HEADERS+set}" != set; then
2782 cat >> $CONFIG_STATUS <<EOF
2783 CONFIG_HEADERS="conf"
2785 cat >> $CONFIG_STATUS <<\EOF
2787 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2790 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2791 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2792 *) ac_file_in
="${ac_file}.in" ;;
2795 echo creating
$ac_file
2797 rm -f conftest.frag conftest.
in conftest.out
2798 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2799 cat $ac_file_inputs > conftest.
in
2803 # Transform confdefs.h into a sed script conftest.vals that substitutes
2804 # the proper values into config.h.in to produce config.h. And first:
2805 # Protect against being on the right side of a sed subst in config.status.
2806 # Protect against being in an unquoted here document in config.status.
2808 cat > conftest.hdr
<<\EOF
2811 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2815 sed -n -f conftest.hdr confdefs.h > conftest.vals
2818 # This sed command replaces #undef with comments. This is necessary, for
2819 # example, in the case of _POSIX_SOURCE, which is predefined and required
2820 # on some systems where configure will not decide to define it.
2821 cat >> conftest.vals <<\EOF
2822 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2825 # Break up conftest.vals because some shells have a limit on
2826 # the size of here documents, and old seds have small limits too.
2831 ac_lines=`grep -c . conftest.vals
`
2832 # grep -c gives empty output for an empty file on some AIX systems.
2833 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2834 # Write a limited-size here document to conftest.frag.
2835 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2836 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2838 sed -f conftest.frag conftest.in > conftest.out
2840 mv conftest.out conftest.in
2842 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2844 mv conftest.tail conftest.vals
2848 cat >> $CONFIG_STATUS <<\EOF
2849 rm -f conftest.frag conftest.h
2850 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2851 cat conftest.in >> conftest.h
2853 if cmp -s $ac_file conftest.h 2>/dev/null; then
2854 echo "$ac_file is unchanged"
2857 # Remove last slash and all that follows it. Not all systems have dirname.
2858 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2859 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2860 # The file is in a subdirectory.
2861 test ! -d "$ac_dir" && mkdir "$ac_dir"
2864 mv conftest.h $ac_file
2869 cat >> $CONFIG_STATUS <<EOF
2870 target_cpu_type=${target_cpu_type}
2871 obj_format=${obj_format}
2874 cat >> $CONFIG_STATUS <<\EOF
2875 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
2876 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
2877 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
2878 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
2879 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
2882 chmod +x $CONFIG_STATUS
2883 rm -fr confdefs* $ac_clean_files
2884 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1