3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.7
5 # Copyright (C) 1992, 1993, 1994 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 # Initialize some variables set by options.
20 # The variables have the same names as the options, with
21 # dashes changed to underlines.
23 cache_file
=.
/config.cache
32 program_transform_name
=s
,x
,x
,
40 bindir
='${exec_prefix}/bin'
41 sbindir
='${exec_prefix}/sbin'
42 libexecdir
='${exec_prefix}/libexec'
43 datadir
='${prefix}/share'
44 sysconfdir
='${prefix}/etc'
45 sharedstatedir
='${prefix}/com'
46 localstatedir
='${prefix}/var'
47 libdir
='${exec_prefix}/lib'
48 includedir
='${prefix}/include'
49 oldincludedir
='/usr/include'
50 infodir
='${prefix}/info'
51 mandir
='${prefix}/man'
53 # Initialize some other variables.
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
69 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 # Accept the important Cygnus configure options, so we can diagnose typos.
77 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
79 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
80 bindir
="$ac_optarg" ;;
82 -build |
--build |
--buil |
--bui |
--bu)
84 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
87 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
88 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
90 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
91 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
92 cache_file
="$ac_optarg" ;;
94 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
96 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
98 datadir
="$ac_optarg" ;;
100 -disable-* |
--disable-*)
101 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
109 -enable-* |
--enable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
122 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
123 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
124 |
--exec |
--exe |
--ex)
125 ac_prev
=exec_prefix
;;
126 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
127 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
128 |
--exec=* |
--exe=* |
--ex=*)
129 exec_prefix
="$ac_optarg" ;;
131 -gas |
--gas |
--ga |
--g)
132 # Obsolete; use --with-gas.
135 -help |
--help |
--hel |
--he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
190 -host |
--host |
--hos |
--ho)
192 -host=* |
--host=* |
--hos=* |
--ho=*)
195 -includedir |
--includedir |
--includedi |
--included |
--include \
196 |
--includ |
--inclu |
--incl |
--inc)
197 ac_prev
=includedir
;;
198 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
199 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
200 includedir
="$ac_optarg" ;;
202 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
204 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
205 infodir
="$ac_optarg" ;;
207 -libdir |
--libdir |
--libdi |
--libd)
209 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
210 libdir
="$ac_optarg" ;;
212 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
213 |
--libexe |
--libex |
--libe)
214 ac_prev
=libexecdir
;;
215 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
216 |
--libexe=* |
--libex=* |
--libe=*)
217 libexecdir
="$ac_optarg" ;;
219 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
220 |
--localstate |
--localstat |
--localsta |
--localst \
221 |
--locals |
--local |
--loca |
--loc |
--lo)
222 ac_prev
=localstatedir
;;
223 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
224 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
225 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
226 localstatedir
="$ac_optarg" ;;
228 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
230 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
231 mandir
="$ac_optarg" ;;
234 # Obsolete; use --without-fp.
237 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
241 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
242 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
245 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
246 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
247 |
--oldin |
--oldi |
--old |
--ol |
--o)
248 ac_prev
=oldincludedir
;;
249 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
250 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
251 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
252 oldincludedir
="$ac_optarg" ;;
254 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
256 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
257 prefix
="$ac_optarg" ;;
259 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
260 |
--program-pre |
--program-pr |
--program-p)
261 ac_prev
=program_prefix
;;
262 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
263 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
264 program_prefix
="$ac_optarg" ;;
266 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
267 |
--program-suf |
--program-su |
--program-s)
268 ac_prev
=program_suffix
;;
269 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
270 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
271 program_suffix
="$ac_optarg" ;;
273 -program-transform-name |
--program-transform-name \
274 |
--program-transform-nam |
--program-transform-na \
275 |
--program-transform-n |
--program-transform- \
276 |
--program-transform |
--program-transfor \
277 |
--program-transfo |
--program-transf \
278 |
--program-trans |
--program-tran \
279 |
--progr-tra |
--program-tr |
--program-t)
280 ac_prev
=program_transform_name
;;
281 -program-transform-name=* |
--program-transform-name=* \
282 |
--program-transform-nam=* |
--program-transform-na=* \
283 |
--program-transform-n=* |
--program-transform-=* \
284 |
--program-transform=* |
--program-transfor=* \
285 |
--program-transfo=* |
--program-transf=* \
286 |
--program-trans=* |
--program-tran=* \
287 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
288 program_transform_name
="$ac_optarg" ;;
290 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
291 |
-silent |
--silent |
--silen |
--sile |
--sil)
294 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
296 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
298 sbindir
="$ac_optarg" ;;
300 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
301 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
302 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
304 ac_prev
=sharedstatedir
;;
305 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
306 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
307 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
309 sharedstatedir
="$ac_optarg" ;;
311 -site |
--site |
--sit)
313 -site=* |
--site=* |
--sit=*)
316 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
318 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
319 srcdir
="$ac_optarg" ;;
321 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
322 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
323 ac_prev
=sysconfdir
;;
324 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
325 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
326 sysconfdir
="$ac_optarg" ;;
328 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
330 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
331 target
="$ac_optarg" ;;
333 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
336 -version |
--version |
--versio |
--versi |
--vers)
337 echo "configure generated by autoconf version 2.7"
341 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 ac_package
=`echo $ac_package| sed 's/-/_/g'`
351 eval "with_${ac_package}='$ac_optarg'" ;;
353 -without-* |
--without-*)
354 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
363 # Obsolete; use --with-x.
366 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
367 |
--x-incl |
--x-inc |
--x-in |
--x-i)
368 ac_prev
=x_includes
;;
369 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
370 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
371 x_includes
="$ac_optarg" ;;
373 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
374 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
375 ac_prev
=x_libraries
;;
376 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
377 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
378 x_libraries
="$ac_optarg" ;;
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 if test "x$nonopt" != xNONE
; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402 # File descriptor usage:
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
428 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
429 |
--no-cr |
--no-c) ;;
430 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
431 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
432 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
439 # Only set LANG and LC_ALL to C if already set.
440 # These must not be set unconditionally because not all systems understand
441 # e.g. LANG=C (notably SCO).
442 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
443 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
445 # confdefs.h avoids OS command line length limits that DEFS can exceed.
446 rm -rf conftest
* confdefs.h
447 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 # A filename unique to this package, relative to the directory that
451 # configure is in, which we can look for to find out if srcdir is correct.
454 # Find the source files, if location was not specified.
455 if test -z "$srcdir"; then
456 ac_srcdir_defaulted
=yes
457 # Try the directory containing this script, then its parent.
459 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
460 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
462 if test ! -r $srcdir/$ac_unique_file; then
466 ac_srcdir_defaulted
=no
468 if test ! -r $srcdir/$ac_unique_file; then
469 if test "$ac_srcdir_defaulted" = yes; then
470 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
472 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
477 # Prefer explicitly selected file to automatically selected ones.
478 if test -z "$CONFIG_SITE"; then
479 if test "x$prefix" != xNONE
; then
480 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
482 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 for ac_site_file
in $CONFIG_SITE; do
486 if test -r "$ac_site_file"; then
487 echo "loading site script $ac_site_file"
492 if test -r "$cache_file"; then
493 echo "loading cache $cache_file"
496 echo "creating cache $cache_file"
501 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
502 ac_cpp
='echo $CPP $CPPFLAGS 1>&5;
504 ac_compile
='echo ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5;
505 ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
506 ac_link
='echo ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5;
507 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
509 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
510 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
511 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
518 ac_n
= ac_c
='\c' ac_t
=
522 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
523 if test "${enable_bfd_assembler+set}" = set; then
524 enableval
="$enable_bfd_assembler"
525 case "${enableval}" in
526 yes) need_bfd
=yes user_bfd_gas
=yes ;;
527 no
) user_bfd_gas
=no
;;
528 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
531 # Check whether --enable-targets or --disable-targets was given.
532 if test "${enable_targets+set}" = set; then
533 enableval
="$enable_targets"
534 case "${enableval}" in
535 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
537 no
) enable_targets
= ;;
538 *) enable_targets
=$enableval ;;
542 # Generate a header file -- gets more post-processing by Makefile later.
546 for ac_dir
in `cd $srcdir;pwd`/..
$srcdir/`cd $srcdir;pwd`/..
; do
547 if test -f $ac_dir/install-sh
; then
549 ac_install_sh
="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh
; then
553 ac_install_sh
="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
560 ac_config_guess
=$ac_aux_dir/config.guess
561 ac_config_sub
=$ac_aux_dir/config.sub
562 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
565 # Do some error checking and defaulting for the host and target type.
567 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
570 # 1. You are not allowed to specify --host, --target, and nonopt at the
572 # 2. Host defaults to nonopt.
573 # 3. If nonopt is not specified, then host defaults to the current host,
574 # as determined by config.guess.
575 # 4. Target and build default to nonopt.
576 # 5. If nonopt is not specified, then target and build default to host.
578 # The aliases save the names the user supplied, while $host etc.
579 # will get canonicalized.
580 case $host---$target---$nonopt in
581 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
582 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
586 # Make sure we can run config.sub.
587 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
594 case "$host_alias" in
598 if host_alias
=`$ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`$ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
614 case "$target_alias" in
617 NONE
) target_alias
=$host_alias ;;
618 *) target_alias
=$nonopt ;;
622 target
=`$ac_config_sub $target_alias`
623 target_cpu
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
624 target_vendor
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
625 target_os
=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
631 case "$build_alias" in
634 NONE
) build_alias
=$host_alias ;;
635 *) build_alias
=$nonopt ;;
639 build
=`$ac_config_sub $build_alias`
640 build_cpu
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
641 build_vendor
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
642 build_os
=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
643 echo "$ac_t""$build" 1>&6
645 test "$host_alias" != "$target_alias" &&
646 test "$program_prefix$program_suffix$program_transform_name" = \
648 program_prefix
=${target_alias}-
650 if test "$program_transform_name" = s
,x
,x
,; then
651 program_transform_name
=
653 # Double any \ or $. echo might interpret backslashes.
654 cat <<\EOF_SED
> conftestsed
655 s
,\\,\\\\,g
; s
,\$
,$$
,g
657 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
660 test "$program_prefix" != NONE
&&
661 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
662 # Use a double $ so make ignores it.
663 test "$program_suffix" != NONE
&&
664 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
666 # sed with no file args requires a program.
667 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
674 # check for architecture variants
675 case ${target_cpu} in
676 armeb
) cpu_type
=arm endian
=big
;;
677 arm
*) cpu_type
=arm endian
=little
;;
678 hppa
*) cpu_type
=hppa
;;
679 i
[45]86) cpu_type
=i386
;;
680 m680
[012346]0) cpu_type
=m68k
;;
681 m68008
) cpu_type
=m68k
;;
682 m683??
) cpu_type
=m68k
;;
683 m8
*) cpu_type
=m88k
;;
684 mips
*el
) cpu_type
=mips endian
=little
;;
685 mips
*) cpu_type
=mips endian
=big
;;
686 powerpcle
*) cpu_type
=ppc endian
=little
;;
687 powerpc
*) cpu_type
=ppc endian
=big
;;
688 rs6000
*) cpu_type
=ppc
;;
689 sparc64
) cpu_type
=sparc obj_format
=elf
690 cat >> confdefs.h
<<\EOF
694 sparclite
*) cpu_type
=sparc
;;
695 *) cpu_type
=${target_cpu} ;;
698 # do we need the opcodes library?
703 OPCODES_LIB
="../opcodes/libopcodes.a"
708 gas_target
=${cpu_type}
709 this_target
=${generic_target}
712 if test -n "$enable_targets" ; then
713 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
714 result
=`$ac_config_sub $t 2>/dev/null`
715 if test -n "$result" ; then
716 canon_targets
="$canon_targets $result"
718 # # Permit "all", etc. We don't support it yet though.
719 # canon_targets="$canon_targets $t"
722 _gas_uniq_list
="$canon_targets"
724 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
727 *) case " $_gas_uniq_newlist " in
728 *" $_gas_uniq_i "*) ;;
729 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
733 canon_targets
=$_gas_uniq_newlist
739 for this_target
in $target $canon_targets ; do
741 eval `echo $this_target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
743 # check for architecture variants
745 hppa
*) cpu_type
=hppa
;;
746 i
[45]86) cpu_type
=i386
;;
747 m680
[012346]0) cpu_type
=m68k
;;
748 m68008
) cpu_type
=m68k
;;
749 m683??
) cpu_type
=m68k
;;
750 m8
*) cpu_type
=m88k
;;
751 mips
*el
) cpu_type
=mips endian
=little
;;
752 mips
*) cpu_type
=mips endian
=big
;;
753 powerpcle
*) cpu_type
=ppc endian
=little
;;
754 powerpc
*) cpu_type
=ppc endian
=big
;;
755 rs6000
*) cpu_type
=ppc
;;
756 sparc64
) cpu_type
=sparc obj_format
=elf want_sparcv9
=true
;;
757 sparclite
*) cpu_type
=sparc
;;
758 *) cpu_type
=${cpu} ;;
761 if test ${this_target} = $target ; then
762 target_cpu_type
=${cpu_type}
763 elif test ${target_cpu_type} != ${cpu_type} ; then
768 generic_target
=${cpu_type}-$vendor-$os
773 # assign object format
774 case ${generic_target} in
775 a29k-amd-udi
) fmt=coff targ
=ebmon29k
;;
776 a29k-amd-ebmon
) fmt=coff targ
=ebmon29k
;;
777 a29k-nyu-sym1
) fmt=coff targ
=ebmon29k
;;
778 a29k-
*-vxworks*) fmt=coff
;;
780 alpha-
*-netware*) fmt=ecoff
;;
781 alpha-
*-osf*) fmt=ecoff
;;
782 alpha-
*-linux*) fmt=ecoff
;;
785 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
788 arm-
*-riscix*) fmt=aout targ
=arm-lit
;;
795 arm-
*-coff) fmt=coff
;;
796 arm-
*-riscix*) fmt=aout
;;
797 arm-
*-pe) fmt=coff targ
=armcoff em
=pe
;;
799 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
800 hppa-
*-lites*) fmt=elf em
=hppa
;;
801 hppa-
*-osf*) fmt=som em
=hppa
;;
802 hppa-
*-hpux*) fmt=som em
=hppa
;;
803 hppa-
*-bsd*) fmt=som em
=hppa
;;
804 hppa-
*-hiux*) fmt=som em
=hppa
;;
806 h8300-
*-coff) fmt=coff
;;
808 i386-ibm-aix
*) fmt=coff targ
=i386coff
810 i386-
*-bsd*) fmt=aout em
=386bsd
;;
811 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
812 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
813 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
814 i386-
*-linux*coff
*) fmt=coff em
=linux
816 i386-
*-linux*) fmt=elf em
=linux
;;
817 i386-
*-lynxos*) fmt=coff targ
=i386coff
819 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
821 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
822 fmt=coff targ
=i386coff
;;
823 i386-
*-vsta) fmt=aout
;;
824 i386-
*-go32) fmt=coff targ
=i386coff
;;
825 i386-
*-gnu*) fmt=elf
;;
827 fmt=aout em
=mach bfd_gas
=yes ;;
828 i386-
*-msdos*) fmt=aout
;;
829 i386-
*-moss*) fmt=elf
;;
830 i386-
*-pe) fmt=coff targ
=i386coff em
=pe
;;
831 i386-
*-win32) fmt=coff targ
=i386coff em
=pe
;;
832 i386-
*-*nt
) fmt=coff targ
=i386coff em
=pe
;;
833 i960-
*-bout) fmt=bout
;;
834 i960-
*-coff) fmt=coff em
=ic960 targ
=ic960coff
;;
835 i960-
*-nindy*) fmt=bout
;;
836 i960-
*-vxworks4*) fmt=bout
;;
837 i960-
*-vxworks5.0
) fmt=bout
;;
838 i960-
*-vxworks5.
*) fmt=coff em
=ic960 targ
=ic960coff
;;
839 i960-
*-vxworks*) fmt=bout
;;
841 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
843 m68k-motorola-sysv
*) fmt=coff targ
=m68kcoff em
=delta
;;
844 m68k-bull-sysv3
*) fmt=coff targ
=m68kcoff em
=dpx2
;;
845 m68k-apollo-
*) fmt=coff targ
=apollo em
=apollo
;;
846 m68k-
*-sysv4 | m68k-
*-elf) # must be before -sysv*
848 m68k-
*-coff | m68k-
*-sysv*)
849 fmt=coff targ
=m68kcoff
;;
850 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
851 m68k-
*-lynxos*) fmt=coff targ
=m68kcoff
853 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
855 m88k-motorola-sysv3
*) fmt=coff targ
=m88kcoff em
=delt88
;;
856 m88k-
*-coff*) fmt=coff targ
=m88kcoff
;;
858 # don't change em like *-*-bsd does
859 mips-dec-netbsd
*) fmt=elf targ
=mips-lit endian
=little
;;
860 mips-dec-bsd
*) fmt=aout targ
=mips-lit
;;
861 mips-sony-bsd
*) fmt=ecoff targ
=mips-big
;;
862 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
863 mips-
*-ultrix*) fmt=ecoff targ
=mips-lit endian
=little
;;
864 mips-
*-ecoff*) fmt=ecoff
866 big
) targ
=mips-big
;;
870 mips-
*-ecoff*) fmt=ecoff targ
=mips-big
;;
871 mips-
*-gnu*) fmt=aout
873 big
) targ
=mips-big
;;
877 mips-
*-irix5*) fmt=elf targ
=mips-big
;;
878 mips-
*-irix*) fmt=ecoff targ
=mips-big
;;
879 mips-
*-riscos*) fmt=ecoff targ
=mips-big
;;
880 mips-
*-sysv*) fmt=ecoff targ
=mips-big
;;
883 big
) targ
=mips-big
;;
887 ppc-
*-pe) fmt=coff em
=pe
893 ppc-
*-winnt*) fmt=coff em
=pe
899 ppc-
*-aix*) fmt=coff
;;
900 ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
907 ppc-
*-macos* | ppc-
*-mpw*)
909 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
911 sh-
*-coff) fmt=coff
;;
914 rce-
*-aout) fmt=aout
;;
917 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
918 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
920 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
921 sparc-
*-aout | sparc
*-*-vxworks)
923 sparc-
*-coff) fmt=coff
;;
924 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
925 sparc-fujitsu-none
) fmt=aout
;;
926 sparc-
*-elf | sparc
*-*-solaris*)
928 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
930 vax-
*-bsd* | vax-
*-ultrix*)
932 vax-
*-vms) fmt=vms
;;
934 z8k-
*-coff | z8k-
*-sim)
939 *-*-aout |
*-*-scout)
945 *-*-generic) fmt=generic
;;
946 *-*-xray |
*-*-hms) fmt=coff
;;
948 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
949 echo "configure: warning: GAS support for ELF format is incomplete." 1>&2
951 *-*-vxworks) fmt=aout
;;
952 *-*-netware) fmt=elf
;;
955 case ${cpu_type}-${fmt} in
956 arm-
*) bfd_gas
=yes ;;
958 # i386-aout) bfd_gas=preferred ;;
959 mips-
*) bfd_gas
=yes ;;
960 ns32k-
*) bfd_gas
=yes ;;
961 ppc-
*) bfd_gas
=yes ;;
962 sparc-
*) bfd_gas
=yes ;;
963 *-elf) bfd_gas
=yes ;;
964 *-ecoff) bfd_gas
=yes ;;
965 *-som) bfd_gas
=yes ;;
969 # Other random stuff.
971 test -n "$want_sparcv9" && cat >> confdefs.h
<<\EOF
977 m68k
) extra_objects
="$extra_objects m68k-parse.o" ;;
980 # See if we really can support this configuration with the emulation code.
982 if test $this_target = $target ; then
983 primary_bfd_gas
=$bfd_gas
988 if test $bfd_gas = no
; then
989 # Can't support other configurations this way.
992 elif test $bfd_gas = no
; then
993 # Can't support this configuration.
997 # From target name and format, produce a list of supported emulations.
999 case ${generic_target}-${fmt} in
1000 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1001 mips-
*-*-ecoff) case "$endian" in
1002 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1003 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1005 mips-
*-*-elf) case "$endian" in
1006 big
) emulation
="mipsbelf mipslelf mipself" ;;
1007 *) emulation
="mipslelf mipsbelf mipself" ;;
1011 emulations
="$emulations $emulation"
1015 # Assign floating point type. Most processors with FP support
1016 # IEEE FP. On those that don't support FP at all, usually IEEE
1018 case ${target_cpu} in
1019 vax | tahoe
) atof
=${target_cpu} ;;
1023 case "${obj_format}" in
1024 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1028 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1029 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1032 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1033 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1036 # and target makefile frag
1038 target_frag
=${srcdir}/config
/${gas_target}.mt
1039 if test ! -r ${target_frag}; then
1040 target_frag
=/dev
/null
# ick! but subst_file can't be conditionalized
1044 case ${user_bfd_gas}-${primary_bfd_gas} in
1046 # We didn't override user's choice.
1049 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1061 # User specified nothing.
1065 # Some COFF configurations want these random other flags set.
1066 case ${obj_format} in
1068 case ${target_cpu_type} in
1069 i386
) cat >> confdefs.h
<<\EOF
1073 m68k
) cat >> confdefs.h
<<\EOF
1077 m88k
) cat >> confdefs.h
<<\EOF
1085 # Getting this done right is going to be a bitch. Each configuration specified
1086 # with --enable-targets=... should be checked for environment, format, cpu, and
1089 # For each configuration, the necessary object file support code must be linked
1090 # in. This might be only one, it might be up to four. The necessary emulation
1091 # code needs to be provided, too.
1093 # And then there's "--enable-targets=all"....
1095 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1097 formats
="${obj_format}"
1100 _gas_uniq_list
="$emulations"
1101 _gas_uniq_newlist
=""
1102 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1103 case $_gas_uniq_i in
1105 *) case " $_gas_uniq_newlist " in
1106 *" $_gas_uniq_i "*) ;;
1107 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1111 emulations
=$_gas_uniq_newlist
1113 for em
in .
$emulations ; do
1116 mipsbelf | mipslelf
)
1117 fmt=elf
file=mipself
;;
1118 mipsbecoff | mipslecoff
)
1119 fmt=ecoff
file=mipsecoff
;;
1121 formats
="$formats $fmt"
1122 emfiles
="$emfiles e-$file.o"
1123 EMULATIONS
="$EMULATIONS &$em,"
1125 _gas_uniq_list
="$formats"
1126 _gas_uniq_newlist
=""
1127 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1128 case $_gas_uniq_i in
1130 *) case " $_gas_uniq_newlist " in
1131 *" $_gas_uniq_i "*) ;;
1132 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1136 formats
=$_gas_uniq_newlist
1138 _gas_uniq_list
="$emfiles"
1139 _gas_uniq_newlist
=""
1140 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1141 case $_gas_uniq_i in
1143 *) case " $_gas_uniq_newlist " in
1144 *" $_gas_uniq_i "*) ;;
1145 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1149 emfiles
=$_gas_uniq_newlist
1151 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1152 for fmt in $formats ; do
1154 aout
) cat >> confdefs.h
<<\EOF
1155 #define OBJ_MAYBE_AOUT 1
1158 bout
) cat >> confdefs.h
<<\EOF
1159 #define OBJ_MAYBE_BOUT 1
1162 coff
) cat >> confdefs.h
<<\EOF
1163 #define OBJ_MAYBE_COFF 1
1166 ecoff
) cat >> confdefs.h
<<\EOF
1167 #define OBJ_MAYBE_ECOFF 1
1170 elf
) cat >> confdefs.h
<<\EOF
1171 #define OBJ_MAYBE_ELF 1
1174 generic
) cat >> confdefs.h
<<\EOF
1175 #define OBJ_MAYBE_GENERIC 1
1178 hp300
) cat >> confdefs.h
<<\EOF
1179 #define OBJ_MAYBE_HP300 1
1182 ieee
) cat >> confdefs.h
<<\EOF
1183 #define OBJ_MAYBE_IEEE 1
1186 som
) cat >> confdefs.h
<<\EOF
1187 #define OBJ_MAYBE_SOM 1
1190 vms
) cat >> confdefs.h
<<\EOF
1191 #define OBJ_MAYBE_VMS 1
1195 extra_objects
="$extra_objects obj-$fmt.o"
1199 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1201 extra_objects
="$extra_objects $emfiles"
1202 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1203 cat >> confdefs.h
<<\EOF
1204 #define USE_EMULATIONS 1
1209 cat >> confdefs.h
<<EOF
1210 #define EMULATIONS $EMULATIONS
1213 cat >> confdefs.h
<<EOF
1214 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1218 files
="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
1219 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1220 config/te-${te_file}.h config/atof-${atof}.c \
1222 links
="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
1225 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1226 yes-
*-coff) need_bfd
=yes ;;
1227 no-
*-coff) need_bfd
=yes
1228 cat >> confdefs.h
<<\EOF
1229 #define MANY_SEGMENTS 1
1234 reject_dev_configs
=yes
1236 case ${reject_dev_configs}-${dev} in
1238 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1248 case "${primary_bfd_gas}" in
1249 yes) cat >> confdefs.h
<<\EOF
1250 #define BFD_ASSEMBLER 1
1256 case "${need_bfd}" in
1257 yes) BFDLIB
=..
/bfd
/libbfd.a
1258 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1264 cat >> confdefs.h
<<EOF
1265 #define TARGET_ALIAS "${target_alias}"
1268 cat >> confdefs.h
<<EOF
1269 #define TARGET_CANONICAL "${target}"
1272 cat >> confdefs.h
<<EOF
1273 #define TARGET_CPU "${target_cpu}"
1276 cat >> confdefs.h
<<EOF
1277 #define TARGET_VENDOR "${target_vendor}"
1280 cat >> confdefs.h
<<EOF
1281 #define TARGET_OS "${target_os}"
1285 # Extract the first word of "gcc", so it can be a program name with args.
1286 set dummy gcc
; ac_word
=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 if test -n "$CC"; then
1292 ac_cv_prog_CC
="$CC" # Let the user override the test.
1294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1295 for ac_dir
in $PATH; do
1296 test -z "$ac_dir" && ac_dir
=.
1297 if test -f $ac_dir/$ac_word; then
1303 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC
="cc"
1307 if test -n "$CC"; then
1308 echo "$ac_t""$CC" 1>&6
1310 echo "$ac_t""no" 1>&6
1314 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1315 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 cat > conftest.c
<<EOF
1323 if ${CC-cc} -E conftest.c
2>&5 |
egrep yes >/dev
/null
2>&1; then
1330 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1331 if test $ac_cv_prog_gcc = yes; then
1333 if test "${CFLAGS+set}" != set; then
1334 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1335 if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
1336 echo $ac_n "(cached) $ac_c" 1>&6
1338 echo 'void f(){}' > conftest.c
1339 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1340 ac_cv_prog_gcc_g
=yes
1348 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
1349 if test $ac_cv_prog_gcc_g = yes; then
1357 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1360 # Find a good install program. We prefer a C program (faster),
1361 # so one script is as good as another. But avoid the broken or
1362 # incompatible versions:
1363 # SysV /etc/install, /usr/sbin/install
1364 # SunOS /usr/etc/install
1365 # IRIX /sbin/install
1367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369 # ./install, which can be erroneously created by make from ./install.sh.
1370 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1371 if test -z "$INSTALL"; then
1372 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1375 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1376 for ac_dir
in $PATH; do
1377 # Account for people who put trailing slashes in PATH elements.
1379 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1381 # OSF1 and SCO ODT 3.0 have their own names for install.
1382 for ac_prog
in ginstall installbsd scoinst
install; do
1383 if test -f $ac_dir/$ac_prog; then
1384 if test $ac_prog = install &&
1385 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1386 # AIX install. It has an incompatible calling convention.
1387 # OSF/1 installbsd also uses dspmsg, but is usable.
1390 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1401 if test "${ac_cv_path_install+set}" = set; then
1402 INSTALL
="$ac_cv_path_install"
1404 # As a last resort, use the slow shell script. We don't cache a
1405 # path for INSTALL within a source directory, because that will
1406 # break other packages using the cache if that directory is
1407 # removed, or if the path is relative.
1408 INSTALL
="$ac_install_sh"
1411 echo "$ac_t""$INSTALL" 1>&6
1413 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1414 # It thinks the first close brace ends the variable substitution.
1415 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1417 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1420 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1421 # On Suns, sometimes $CPP names a directory.
1422 if test -n "$CPP" && test -d "$CPP"; then
1425 if test -z "$CPP"; then
1426 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1429 # This must be in double quotes, not single quotes, because CPP may get
1430 # substituted into the Makefile and "${CC-cc}" will confuse make.
1432 # On the NeXT, cc -E runs the code through the compiler's parser,
1433 # not just through cpp.
1434 cat > conftest.
$ac_ext <<EOF
1435 #line 1436 "configure"
1436 #include "confdefs.h"
1440 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1441 ac_err
=`grep -v '^ *+' conftest.out`
1442 if test -z "$ac_err"; then
1447 CPP
="${CC-cc} -E -traditional-cpp"
1448 cat > conftest.
$ac_ext <<EOF
1449 #line 1450 "configure"
1450 #include "confdefs.h"
1454 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1455 ac_err
=`grep -v '^ *+' conftest.out`
1456 if test -z "$ac_err"; then
1466 ac_cv_prog_CPP
="$CPP"
1468 CPP
="$ac_cv_prog_CPP"
1470 ac_cv_prog_CPP
="$CPP"
1472 echo "$ac_t""$CPP" 1>&6
1474 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
1476 ac_safe
=`echo "$ac_hdr" | tr './\055' '___'`
1477 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1478 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1486 eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1487 ac_err
=`grep -v '^ *+' conftest.out`
1488 if test -z "$ac_err"; then
1490 eval "ac_cv_header_$ac_safe=yes"
1494 eval "ac_cv_header_$ac_safe=no"
1498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1499 echo "$ac_t""yes" 1>&6
1500 ac_tr_hdr
=HAVE_
`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1501 cat >> confdefs.h
<<EOF
1502 #define $ac_tr_hdr 1
1506 echo "$ac_t""no" 1>&6
1511 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1512 # people who are not cross-compiling but are compiling cross-assemblers.
1513 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1514 if test "${host}" = "${target}"; then
1518 cat >> confdefs.h
<<\EOF
1519 #define CROSS_COMPILE 1
1523 echo "$ac_t""$cross_gas" 1>&6
1525 # If we cannot run a trivial program, we must be cross compiling.
1526 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1527 if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1528 echo $ac_n "(cached) $ac_c" 1>&6
1530 if test "$cross_compiling" = yes; then
1533 cat > conftest.
$ac_ext <<EOF
1534 #line 1535 "configure"
1535 #include "confdefs.h"
1539 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1548 echo "$ac_t""$ac_cv_c_cross" 1>&6
1549 cross_compiling
=$ac_cv_c_cross
1551 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1552 # for constant arguments. Useless!
1553 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1554 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1557 cat > conftest.
$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1561 int main() { return 0; }
1563 char *p = alloca(2 * sizeof(int));
1566 if eval $ac_link; then
1568 ac_cv_header_alloca_h
=yes
1571 ac_cv_header_alloca_h
=no
1577 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1578 if test $ac_cv_header_alloca_h = yes; then
1579 cat >> confdefs.h
<<\EOF
1580 #define HAVE_ALLOCA_H 1
1585 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1586 if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 cat > conftest.
$ac_ext <<EOF
1590 #line 1591 "configure"
1591 #include "confdefs.h"
1594 # define alloca __builtin_alloca
1597 # include <alloca.h>
1602 # ifndef alloca /* predefined by HP cc +Olibcalls */
1609 int main() { return 0; }
1611 char *p = (char *) alloca(1);
1614 if eval $ac_link; then
1616 ac_cv_func_alloca
=yes
1619 ac_cv_func_alloca
=no
1625 echo "$ac_t""$ac_cv_func_alloca" 1>&6
1626 if test $ac_cv_func_alloca = yes; then
1627 cat >> confdefs.h
<<\EOF
1628 #define HAVE_ALLOCA 1
1633 if test $ac_cv_func_alloca = no
; then
1634 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1635 # that cause trouble. Some versions do not even contain alloca or
1636 # contain a buggy version. If you still want to use their alloca,
1637 # use ar to extract alloca.o from them instead of compiling alloca.c.
1639 cat >> confdefs.h
<<\EOF
1644 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1645 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1646 echo $ac_n "(cached) $ac_c" 1>&6
1648 cat > conftest.
$ac_ext <<EOF
1649 #line 1650 "configure"
1650 #include "confdefs.h"
1651 #if defined(CRAY) && ! defined(CRAY2)
1658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1659 egrep "webecray" >/dev
/null
2>&1; then
1670 echo "$ac_t""$ac_cv_os_cray" 1>&6
1671 if test $ac_cv_os_cray = yes; then
1672 for ac_func
in _getb67 GETB67 getb67
; do
1673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 cat > conftest.
$ac_ext <<EOF
1678 #line 1679 "configure"
1679 #include "confdefs.h"
1680 /* System header to define __stub macros and hopefully few prototypes,
1681 which can conflict with char $ac_func(); below. */
1683 /* Override any gcc2 internal prototype to avoid an error. */
1686 int main() { return 0; }
1689 /* The GNU C library defines this for functions which it implements
1690 to always fail with ENOSYS. Some functions are actually named
1691 something starting with __ and the normal name is an alias. */
1692 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1700 if eval $ac_link; then
1702 eval "ac_cv_func_$ac_func=yes"
1705 eval "ac_cv_func_$ac_func=no"
1710 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1711 echo "$ac_t""yes" 1>&6
1712 cat >> confdefs.h
<<EOF
1713 #define CRAY_STACKSEG_END $ac_func
1718 echo "$ac_t""no" 1>&6
1724 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1725 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test "$cross_compiling" = yes; then
1729 ac_cv_c_stack_direction
=0
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1734 find_stack_direction ()
1736 static char *addr = 0;
1741 return find_stack_direction ();
1744 return (&dummy > addr) ? 1 : -1;
1748 exit (find_stack_direction() < 0);
1752 if test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
; then
1753 ac_cv_c_stack_direction
=1
1755 ac_cv_c_stack_direction
=-1
1761 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1762 cat >> confdefs.h
<<EOF
1763 #define STACK_DIRECTION $ac_cv_c_stack_direction
1768 echo $ac_n "checking for inline""... $ac_c" 1>&6
1769 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1770 echo $ac_n "(cached) $ac_c" 1>&6
1773 for ac_kw
in inline __inline__ __inline
; do
1774 cat > conftest.
$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1778 int main() { return 0; }
1783 if eval $ac_compile; then
1785 ac_cv_c_inline
=$ac_kw; break
1793 echo "$ac_t""$ac_cv_c_inline" 1>&6
1794 case "$ac_cv_c_inline" in
1796 no
) cat >> confdefs.h
<<\EOF
1800 *) cat >> confdefs.h
<<EOF
1801 #define inline $ac_cv_c_inline
1807 # VMS doesn't have unlink.
1808 for ac_func
in unlink remove
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. */
1823 int main() { return 0; }
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1837 if eval $ac_link; then
1839 eval "ac_cv_func_$ac_func=yes"
1842 eval "ac_cv_func_$ac_func=no"
1847 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1848 echo "$ac_t""yes" 1>&6
1849 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1850 cat >> confdefs.h
<<EOF
1851 #define $ac_tr_func 1
1855 echo "$ac_t""no" 1>&6
1860 # Some systems don't have sbrk().
1863 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1865 echo $ac_n "(cached) $ac_c" 1>&6
1867 cat > conftest.
$ac_ext <<EOF
1868 #line 1869 "configure"
1869 #include "confdefs.h"
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $ac_func(); below. */
1873 /* Override any gcc2 internal prototype to avoid an error. */
1876 int main() { return 0; }
1879 /* The GNU C library defines this for functions which it implements
1880 to always fail with ENOSYS. Some functions are actually named
1881 something starting with __ and the normal name is an alias. */
1882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1890 if eval $ac_link; then
1892 eval "ac_cv_func_$ac_func=yes"
1895 eval "ac_cv_func_$ac_func=no"
1900 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1901 echo "$ac_t""yes" 1>&6
1902 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1903 cat >> confdefs.h
<<EOF
1904 #define $ac_tr_func 1
1908 echo "$ac_t""no" 1>&6
1913 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
1914 # enough, but on some of those systems, the assert macro relies on requoting
1916 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
1917 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 cat > conftest.
$ac_ext <<EOF
1921 #line 1922 "configure"
1922 #include "confdefs.h"
1925 int main() { return 0; }
1928 /* check for requoting problems */
1929 static int a, b, c, d;
1931 assert (!strcmp(s, "foo bar baz quux"));
1932 /* check for newline handling */
1938 if eval $ac_link; then
1940 gas_cv_assert_ok
=yes
1948 echo "$ac_t""$gas_cv_assert_ok" 1>&6
1949 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
1950 #define BROKEN_ASSERT 1
1955 # On some systems, the system header files may not declare malloc, realloc,
1956 # and free. There are places where gas needs these functions to have been
1957 # declared -- such as when taking their addresses.
1959 #ifdef HAVE_MEMORY_H
1962 #ifdef HAVE_STRING_H
1965 #ifdef HAVE_STDLIB_H
1968 #ifdef HAVE_UNISTD_H
1973 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
1974 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.
$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1981 int main() { return 0; }
1984 typedef char *(*f)();
1990 if eval $ac_link; then
1992 gas_cv_decl_needed_malloc
=no
1995 gas_cv_decl_needed_malloc
=yes
2000 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2001 test $gas_cv_decl_needed_malloc = no ||
{
2002 cat >> confdefs.h
<<\EOF
2003 #define NEED_DECLARATION_MALLOC 1
2009 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
2010 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2017 int main() { return 0; }
2020 typedef void (*f)();
2026 if eval $ac_link; then
2028 gas_cv_decl_needed_free
=no
2031 gas_cv_decl_needed_free
=yes
2036 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
2037 test $gas_cv_decl_needed_free = no ||
{
2038 cat >> confdefs.h
<<\EOF
2039 #define NEED_DECLARATION_FREE 1
2045 # Does errno.h declare errno, or do we have to add a separate declaration
2048 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
2049 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2052 cat > conftest.
$ac_ext <<EOF
2053 #line 2054 "configure"
2054 #include "confdefs.h"
2060 int main() { return 0; }
2069 if eval $ac_link; then
2071 gas_cv_decl_needed_errno
=no
2074 gas_cv_decl_needed_errno
=yes
2079 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
2080 test $gas_cv_decl_needed_errno = no ||
{
2081 cat >> confdefs.h
<<\EOF
2082 #define NEED_DECLARATION_ERRNO 1
2089 cat > confcache
<<\EOF
2090 # This file is a shell script that caches the results of configure
2091 # tests run on this system so they can be shared between configure
2092 # scripts and configure runs. It is not useful on other systems.
2093 # If it contains results you don't want to keep, you may remove or edit it.
2095 # By default, configure uses ./config.cache as the cache file,
2096 # creating it if it does not exist already. You can give configure
2097 # the --cache-file=FILE option to use a different cache file; that is
2098 # what configure does when it calls configure scripts in
2099 # subdirectories, so they share the cache.
2100 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2101 # config.status only pays attention to the cache file if you give it the
2102 # --recheck option to rerun configure.
2105 # Ultrix sh set writes to stderr and can't be redirected directly,
2106 # and sets the high bit in the cache file unless we assign to the vars.
2108 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2110 if cmp -s $cache_file confcache
; then
2113 if test -w $cache_file; then
2114 echo "updating cache $cache_file"
2115 cat confcache
> $cache_file
2117 echo "not updating unwritable cache $cache_file"
2122 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2124 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2125 # Let make expand exec_prefix.
2126 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2128 # Any assignment to VPATH causes Sun make to only execute
2129 # the first set of double-colon rules, so remove it if not needed.
2130 # If there is a colon in the path, we need to keep it.
2131 if test "x$srcdir" = x.
; then
2132 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2135 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2137 DEFS
=-DHAVE_CONFIG_H
2139 # Without the "./", some shells look in PATH for config.status.
2140 : ${CONFIG_STATUS=./config.status}
2142 echo creating
$CONFIG_STATUS
2143 rm -f $CONFIG_STATUS
2144 cat > $CONFIG_STATUS <<EOF
2146 # Generated automatically by configure.
2147 # Run this file to recreate the current configuration.
2148 # This directory was configured as follows,
2149 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2151 # $0 $ac_configure_args
2153 # Compiler output produced by configure, useful for debugging
2154 # configure, is in ./config.log if it exists.
2156 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2159 case "\$ac_option" in
2160 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2161 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2162 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2163 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2164 echo "$CONFIG_STATUS generated by autoconf version 2.7"
2166 -help | --help | --hel | --he | --h)
2167 echo "\$ac_cs_usage"; exit 0 ;;
2168 *) echo "\$ac_cs_usage"; exit 1 ;;
2172 ac_given_srcdir=$srcdir
2173 ac_given_INSTALL="$INSTALL"
2175 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2177 cat >> $CONFIG_STATUS <<EOF
2179 # Protect against being on the right side of a sed subst in config.status.
2180 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2181 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2184 s%@CFLAGS@%$CFLAGS%g
2185 s%@CPPFLAGS@%$CPPFLAGS%g
2186 s%@CXXFLAGS@%$CXXFLAGS%g
2188 s%@LDFLAGS@%$LDFLAGS%g
2190 s%@exec_prefix@%$exec_prefix%g
2191 s%@prefix@%$prefix%g
2192 s%@program_transform_name@%$program_transform_name%g
2193 s%@bindir@%$bindir%g
2194 s%@sbindir@%$sbindir%g
2195 s%@libexecdir@%$libexecdir%g
2196 s%@datadir@%$datadir%g
2197 s%@sysconfdir@%$sysconfdir%g
2198 s%@sharedstatedir@%$sharedstatedir%g
2199 s%@localstatedir@%$localstatedir%g
2200 s%@libdir@%$libdir%g
2201 s%@includedir@%$includedir%g
2202 s%@oldincludedir@%$oldincludedir%g
2203 s%@infodir@%$infodir%g
2204 s%@mandir@%$mandir%g
2206 s%@host_alias@%$host_alias%g
2207 s%@host_cpu@%$host_cpu%g
2208 s%@host_vendor@%$host_vendor%g
2209 s%@host_os@%$host_os%g
2210 s%@target@%$target%g
2211 s%@target_alias@%$target_alias%g
2212 s%@target_cpu@%$target_cpu%g
2213 s%@target_vendor@%$target_vendor%g
2214 s%@target_os@%$target_os%g
2216 s%@build_alias@%$build_alias%g
2217 s%@build_cpu@%$build_cpu%g
2218 s%@build_vendor@%$build_vendor%g
2219 s%@build_os@%$build_os%g
2220 s%@OPCODES_LIB@%$OPCODES_LIB%g
2221 /@target_frag@/r $target_frag
2223 s%@extra_objects@%$extra_objects%g
2224 s%@target_cpu_type@%$target_cpu_type%g
2225 s%@obj_format@%$obj_format%g
2227 s%@BFDLIB@%$BFDLIB%g
2228 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2230 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2231 s%@INSTALL_DATA@%$INSTALL_DATA%g
2233 s%@ALLOCA@%$ALLOCA%g
2237 cat >> $CONFIG_STATUS <<EOF
2239 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2241 cat >> $CONFIG_STATUS <<\EOF
2242 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2243 # Support "outfile[:infile]", defaulting infile="outfile.in".
2245 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2246 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2247 *) ac_file_in
="${ac_file}.in" ;;
2250 # Adjust relative srcdir, etc. for subdirectories.
2252 # Remove last slash and all that follows it. Not all systems have dirname.
2253 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2254 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2255 # The file is in a subdirectory.
2256 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2257 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2258 # A "../" for each directory in $ac_dir_suffix.
2259 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2261 ac_dir_suffix
= ac_dots
=
2264 case "$ac_given_srcdir" in
2266 if test -z "$ac_dots"; then top_srcdir
=.
2267 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2268 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2270 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2271 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2274 case "$ac_given_INSTALL" in
2275 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
2276 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
2278 echo creating
"$ac_file"
2280 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2282 *Makefile
*) ac_comsub
="1i\\
2283 # $configure_input" ;;
2287 s%@configure_input@%$configure_input%g
2288 s%@srcdir@%$srcdir%g
2289 s%@top_srcdir@%$top_srcdir%g
2290 s%@INSTALL@%$INSTALL%g
2291 " -f conftest.subs
$ac_given_srcdir/$ac_file_in > $ac_file
2295 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2296 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2298 # ac_d sets the value in "#define NAME VALUE" lines.
2299 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2300 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
2303 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2304 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2305 ac_uB
='\([ ]\)%\1#\2define\3'
2308 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2309 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2310 ac_eB
='$%\1#\2define\3'
2314 CONFIG_HEADERS
=${CONFIG_HEADERS-"conf"}
2315 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
2316 # Support "outfile[:infile]", defaulting infile="outfile.in".
2318 *:*) ac_file_in
=`echo "$ac_file"|sed 's%.*:%%'`
2319 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2320 *) ac_file_in
="${ac_file}.in" ;;
2323 echo creating
$ac_file
2325 rm -f conftest.frag conftest.
in conftest.out
2326 cp $ac_given_srcdir/$ac_file_in conftest.
in
2330 # Transform confdefs.h into a sed script conftest.vals that substitutes
2331 # the proper values into config.h.in to produce config.h. And first:
2332 # Protect against being on the right side of a sed subst in config.status.
2333 # Protect against being in an unquoted here document in config.status.
2335 cat > conftest.hdr
<<\EOF
2338 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2342 sed -n -f conftest.hdr confdefs.h > conftest.vals
2345 # This sed command replaces #undef with comments. This is necessary, for
2346 # example, in the case of _POSIX_SOURCE, which is predefined and required
2347 # on some systems where configure will not decide to define it.
2348 cat >> conftest.vals <<\EOF
2349 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2352 # Break up conftest.vals because some shells have a limit on
2353 # the size of here documents, and old seds have small limits too.
2354 # Maximum number of lines to put in a single here document.
2355 ac_max_here_lines=12
2360 ac_lines=`grep -c . conftest.vals
`
2361 # grep -c gives empty output for an empty file on some AIX systems.
2362 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2363 # Write a limited-size here document to conftest.frag.
2364 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2365 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2367 sed -f conftest.frag conftest.in > conftest.out
2369 mv conftest.out conftest.in
2371 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2373 mv conftest.tail conftest.vals
2377 cat >> $CONFIG_STATUS <<\EOF
2378 rm -f conftest.frag conftest.h
2379 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2380 cat conftest.in >> conftest.h
2382 if cmp -s $ac_file conftest.h 2>/dev/null; then
2383 echo "$ac_file is unchanged"
2387 mv conftest.h $ac_file
2393 cat >> $CONFIG_STATUS <<EOF
2398 cat >> $CONFIG_STATUS <<\EOF
2399 srcdir=$ac_given_srcdir
2400 while test -n "$ac_sources"; do
2401 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
2402 set $ac_sources; ac_source=$1; shift; ac_sources=$*
2404 echo "linking $srcdir/$ac_source to $ac_dest"
2406 if test ! -r $srcdir/$ac_source; then
2407 { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
2411 # Make relative symlinks.
2412 # Remove last slash and all that follows it. Not all systems have dirname.
2413 ac_dest_dir=`echo $ac_dest|
sed 's%/[^/][^/]*$%%'`
2414 if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
2415 # The dest file is in a subdirectory.
2416 test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
2417 ac_dest_dir_suffix="/`echo $ac_dest_dir|
sed 's%^\./%%'`"
2418 # A "../" for each directory in $ac_dest_dir_suffix.
2419 ac_dots=`echo $ac_dest_dir_suffix|
sed 's%/[^/]*%../%g'`
2421 ac_dest_dir_suffix= ac_dots=
2425 [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
2426 *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
2429 # Make a symlink if possible; otherwise try a hard link.
2430 if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
2431 ln $srcdir/$ac_source $ac_dest; then :
2433 { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
2440 chmod +x $CONFIG_STATUS
2441 rm -fr confdefs* $ac_clean_files
2442 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1