56ccb5352926a320b526b039b3d3d1590adf2c05
[deliverable/binutils-gdb.git] / gas / configure
1 #!/bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 1.109
5 # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License as published
9 # by the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11 #
12 # This script is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15 # Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
21 ac_help=
22 ac_help="${ac_help}
23 bfd-assembler use BFD back end for writing object files"
24 # Save the original args to write them into config.status later.
25 configure_args="$@"
26
27 # Omit some internal, obsolete, or unimplemented options to make the
28 # list less imposing.
29 ac_usage="Usage: configure [options] [host]
30 Options: [defaults in brackets after descriptions]
31 Configuration:
32 --cache-file=FILE cache test results in FILE
33 --help print this message
34 --no-create do not create output files
35 --quiet, --silent do not print \`checking...' messages
36 --version print the version of autoconf that created configure
37 Directories:
38 --exec-prefix=PREFIX install host dependent files in PREFIX [/usr/local]
39 --prefix=PREFIX install host independent files in PREFIX [/usr/local]
40 --srcdir=DIR find the sources in DIR [configure dir or ..]
41 Host type:
42 --build=BUILD configure for building on BUILD [BUILD=HOST]
43 --host=HOST configure for HOST [guessed]
44 --target=TARGET configure for TARGET [TARGET=HOST]
45 Features and packages:
46 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
47 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
48 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
49 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
50 --x-includes=DIR X include files are in DIR
51 --x-libraries=DIR X library files are in DIR
52 --enable and --with options recognized:$ac_help"
53
54 # Initialize some variables set by options.
55 # The variables have the same names as the options, with
56 # dashes changed to underlines.
57 build=NONE
58 cache_file=./config.cache
59 exec_prefix=NONE
60 host=NONE
61 no_create=
62 nonopt=NONE
63 norecursion=
64 prefix=NONE
65 program_prefix=
66 program_suffix=
67 program_transform_name=
68 silent=
69 srcdir=
70 target=NONE
71 verbose=
72 x_includes=NONE
73 x_libraries=NONE
74
75 # Initialize some other variables.
76 subdirs=
77
78 ac_prev=
79 for ac_option
80 do
81
82 # If the previous option needs an argument, assign it.
83 if test -n "$ac_prev"; then
84 eval "$ac_prev=\$ac_option"
85 ac_prev=
86 continue
87 fi
88
89 case "$ac_option" in
90 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 *) ac_optarg= ;;
92 esac
93
94 # Accept (but ignore some of) the important Cygnus configure
95 # options, so we can diagnose typos.
96
97 case "$ac_option" in
98
99 -build | --build | --buil | --bui | --bu | --b)
100 ac_prev=build ;;
101 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
102 build="$ac_optarg" ;;
103
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
110
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: $ac_feature: invalid feature name" 1>&2; exit 1; }
116 fi
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
119
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 case "$ac_option" in
128 *=*) ;;
129 *) ac_optarg=yes ;;
130 esac
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
132
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
141
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
144 with_gas=yes ;;
145
146 -help | --help | --hel | --he)
147 cat << EOF
148 $ac_usage
149 EOF
150 exit 0 ;;
151
152 -host | --host | --hos | --ho)
153 ac_prev=host ;;
154 -host=* | --host=* | --hos=* | --ho=*)
155 host="$ac_optarg" ;;
156
157 -nfp | --nfp | --nf)
158 # Obsolete; use --without-fp.
159 with_fp=no ;;
160
161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
162 | --no-cr | --no-c)
163 no_create=yes ;;
164
165 -norecursion | --norecursion | --norecursio | --norecursi \
166 | --norecurs | --norecur | --norecu | --norec | --nore | --nor)
167 norecursion=yes ;;
168
169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
170 ac_prev=prefix ;;
171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
172 prefix="$ac_optarg" ;;
173
174 # The program_*_given variables are so we can distinguish between
175 # unspecified and empty-string-valued options.
176 -program-prefix | --program-prefix | --program-prefi | --program-pref \
177 | --program-pre | --program-pr | --program-p)
178 ac_prev=program_prefix ;;
179 -program-prefix=* | --program-prefix=* | --program-prefi=* \
180 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
181 program_prefix_given=yes
182 program_prefix="$ac_optarg" ;;
183
184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
185 | --program-suf | --program-su | --program-s)
186 ac_prev=program_suffix ;;
187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
189 program_suffix_given=yes
190 program_suffix="$ac_optarg" ;;
191
192 -program-transform-name | --program-transform-name \
193 | --program-transform-nam | --program-transform-na \
194 | --program-transform-n | --program-transform- \
195 | --program-transform | --program-transfor \
196 | --program-transfo | --program-transf \
197 | --program-trans | --program-tran \
198 | --progr-tra | --program-tr | --program-t)
199 ac_prev=program_transform_name ;;
200 -program-transform-name=* | --program-transform-name=* \
201 | --program-transform-nam=* | --program-transform-na=* \
202 | --program-transform-n=* | --program-transform-=* \
203 | --program-transform=* | --program-transfor=* \
204 | --program-transfo=* | --program-transf=* \
205 | --program-trans=* | --program-tran=* \
206 | --progr-tra=* | --program-tr=* | --program-t=*)
207 # Double any backslashes or dollar signs in the argument
208 program_transform_name_given=yes
209 program_transform_name="${program_transform_name} -e `echo ${ac_optarg} | sed -e 's/\\\\/\\\\\\\\/g' -e 's/\\\$/$$/g'`"
210 ;;
211
212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
213 | -silent | --silent | --silen | --sile | --sil)
214 silent=yes ;;
215
216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
217 ac_prev=srcdir ;;
218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
219 srcdir="$ac_optarg" ;;
220
221 -target | --target | --targe | --targ | --tar | --ta | --t)
222 ac_prev=target ;;
223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
224 target="$ac_optarg" ;;
225
226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
227 verbose=yes ;;
228
229 -version | --version | --versio | --versi | --vers)
230 echo "configure generated by autoconf version 1.109"
231 exit 0 ;;
232
233 -with-* | --with-*)
234 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
235 # Reject names that are not valid shell variable names.
236 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
237 { echo "configure: $ac_package: invalid package name" 1>&2; exit 1; }
238 fi
239 ac_package=`echo $ac_package| sed 's/-/_/g'`
240 case "$ac_option" in
241 *=*) ;;
242 *) ac_optarg=yes ;;
243 esac
244 eval "with_${ac_package}='$ac_optarg'" ;;
245
246 -without-* | --without-*)
247 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
248 # Reject names that are not valid shell variable names.
249 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
250 { echo "configure: $ac_package: invalid package name" 1>&2; exit 1; }
251 fi
252 ac_package=`echo $ac_package| sed 's/-/_/g'`
253 eval "with_${ac_package}=no" ;;
254
255 --x)
256 # Obsolete; use --with-x.
257 with_x=yes ;;
258
259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
260 | --x-incl | --x-inc | --x-in | --x-i)
261 ac_prev=x_includes ;;
262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
264 x_includes="$ac_optarg" ;;
265
266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
268 ac_prev=x_libraries ;;
269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
271 x_libraries="$ac_optarg" ;;
272
273 -*) { echo "configure: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
274 ;;
275
276 *)
277 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
278 echo "configure: warning: $ac_option: invalid host type" 1>&2
279 fi
280 if test "x$nonopt" != xNONE; then
281 { echo "configure: can only configure for one host and one target at a time" 1>&2; exit 1; }
282 fi
283 nonopt="$ac_option"
284 ;;
285
286 esac
287 done
288
289 if test -n "$ac_prev"; then
290 { echo "configure: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
291 fi
292
293 trap 'rm -fr conftest* confdefs* core $ac_clean_files; exit 1' 1 2 15
294 trap 'rm -fr confdefs* $ac_clean_files' 0
295
296 # File descriptor usage:
297 # 0 unused; standard input
298 # 1 file creation
299 # 2 errors and warnings
300 # 3 unused; some systems may open it to /dev/tty
301 # 4 checking for... messages and results
302 # 5 compiler messages saved in config.log
303 if test "$silent" = yes; then
304 exec 4>/dev/null
305 else
306 exec 4>&1
307 fi
308 exec 5>./config.log
309
310 echo "\
311 This file contains any messages produced by compilers while
312 running configure, to aid debugging if configure makes a mistake.
313 " 1>&5
314
315 # Save the original args if we used an alternate arg parser.
316 ac_configure_temp="${configure_args-$@}"
317 # Strip out --no-create and --norecursion so they do not pile up.
318 # Also quote any args containing spaces.
319 configure_args=
320 for ac_arg in $ac_configure_temp; do
321 case "$ac_arg" in
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c) ;;
324 -norecursion | --norecursion | --norecursio | --norecursi \
325 | --norecurs | --norecur | --norecu | --norec | --nore | --nor) ;;
326 *[" "]*) configure_args="$configure_args '$ac_arg'" ;;
327 *) configure_args="$configure_args $ac_arg" ;;
328 esac
329 done
330
331 # NLS nuisances.
332 # Only set LANG and LC_ALL to C if already set.
333 # These must not be set unconditionally because not all systems understand
334 # e.g. LANG=C (notably SCO).
335 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
336 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
337
338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
339 rm -rf conftest* confdefs.h
340 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
341 echo > confdefs.h
342
343 # A filename unique to this package, relative to the directory that
344 # configure is in, which we can look for to find out if srcdir is correct.
345 ac_unique_file=as.h
346
347 # Find the source files, if location was not specified.
348 if test -z "$srcdir"; then
349 ac_srcdir_defaulted=yes
350 # Try the directory containing this script, then its parent.
351 ac_prog=$0
352 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
353 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
354 srcdir=$ac_confdir
355 if test ! -r $srcdir/$ac_unique_file; then
356 srcdir=..
357 fi
358 else
359 ac_srcdir_defaulted=no
360 fi
361 if test ! -r $srcdir/$ac_unique_file; then
362 if test "$ac_srcdir_defaulted" = yes; then
363 { echo "configure: can not find sources in ${ac_confdir} or .." 1>&2; exit 1; }
364 else
365 { echo "configure: can not find sources in ${srcdir}" 1>&2; exit 1; }
366 fi
367 fi
368
369 # Prefer explicitly selected file to automatically selected ones.
370 if test ! -r "$CONFIG_SITE"; then
371 if test "x$prefix" != xNONE; then
372 CONFIG_SITE=$prefix/lib/config.site
373 else
374 CONFIG_SITE=/usr/local/lib/config.site
375 fi
376 # System dependent files override system independent ones.
377 if test "x$exec_prefix" != xNONE && test "x$exec_prefix" != "x$prefix"; then
378 CONFIG_SITE="$CONFIG_SITE $exec_prefix/lib/config.site"
379 fi
380 fi
381 for ac_site_file in $CONFIG_SITE; do
382 if test -r "$ac_site_file"; then
383 echo "loading site script $ac_site_file"
384 . "$ac_site_file"
385 fi
386 done
387
388 if test -r "$cache_file"; then
389 echo "loading cache $cache_file"
390 . $cache_file
391 else
392 echo "creating cache $cache_file"
393 > $cache_file
394 fi
395
396 ac_ext=c
397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
398 ac_cpp='${CPP} $CPPFLAGS'
399 ac_compile='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS conftest.${ac_ext} -o conftest $LIBS 1>&5 2>&5'
400
401
402 bfd_gas=no
403 user_bfd_gas=
404 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
405 enableval="$enable_bfd_assembler"
406 if test -n "$enableval"; then
407 case "${enableval}" in
408 yes) need_bfd=yes user_bfd_gas=yes ;;
409 no) user_bfd_gas=no ;;
410 *) { echo "configure: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
411 esac
412 fi
413
414 # Generate a header file -- gets more post-processing by Makefile later.
415
416
417 ac_aux_dir=
418 for ac_dir in `cd $srcdir;pwd`/.. ${srcdir}/`cd $srcdir;pwd`/..; do
419 if test -f $ac_dir/install.sh; then
420 ac_aux_dir=$ac_dir; break
421 fi
422 done
423 if test -z "$ac_aux_dir"; then
424 { echo "configure: can not find install.sh in `cd $srcdir;pwd`/.. ${srcdir}/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
425 fi
426 ac_config_guess=${ac_aux_dir}/config.guess
427 ac_config_sub=${ac_aux_dir}/config.sub
428 ac_configure=${ac_aux_dir}/configure # This should be Cygnus configure.
429 ac_install_sh="${ac_aux_dir}/install.sh -c"
430
431 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
432 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
433 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
434 ac_n= ac_c='
435 ' ac_t=' '
436 else
437 ac_n=-n ac_c= ac_t=
438 fi
439 else
440 ac_n= ac_c='\c' ac_t=
441 fi
442
443 # Do some error checking and defaulting for the host and target type.
444 # The inputs are:
445 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
446 #
447 # The rules are:
448 # 1. You are not allowed to specify --host, --target, and nonopt at the
449 # same time.
450 # 2. Host defaults to nonopt.
451 # 3. If nonopt is not specified, then host defaults to the current host,
452 # as determined by config.guess.
453 # 4. Target defaults to nonopt.
454 # 5. If nonopt is not specified, then target defaults to host.
455 # 6. build defaults to empty (but implicitly to host).
456
457 # The aliases save the names the user supplied, while $host etc.
458 # will get canonicalized.
459 case $host---$target---$nonopt in
460 NONE---*---* | *---NONE---* | *---*---NONE) ;;
461 *) { echo "configure: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
462 esac
463
464 # Make sure we can run config.sub.
465 if ${ac_config_sub} sun4 >/dev/null 2>&1; then :
466 else { echo "configure: can not run ${ac_config_sub}" 1>&2; exit 1; }
467 fi
468
469 echo $ac_n "checking host system type""... $ac_c" 1>&4
470
471 host_alias=$host
472 case "${host_alias}" in
473 NONE)
474 case $nonopt in
475 NONE)
476 if host_alias=`${ac_config_guess}`; then :
477 else { echo "configure: can not guess host type; you must specify one" 1>&2; exit 1; }
478 fi ;;
479 *) host_alias=$nonopt ;;
480 esac ;;
481 esac
482
483 host=`${ac_config_sub} ${host_alias}`
484 host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
485 host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
486 host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
487 echo "$ac_t""$host" 1>&4
488
489 echo $ac_n "checking target system type""... $ac_c" 1>&4
490
491 target_alias=$target
492 case "${target_alias}" in
493 NONE)
494 case $nonopt in
495 NONE) target_alias=$host_alias ;;
496 *) target_alias=$nonopt ;;
497 esac ;;
498 esac
499
500 target=`${ac_config_sub} ${target_alias}`
501 target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
502 target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
503 target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
504 echo "$ac_t""$target" 1>&4
505
506 echo $ac_n "checking build system type""... $ac_c" 1>&4
507
508 build_alias=$build
509 case "${build_alias}" in
510 NONE) build= build_alias= ;;
511 *)
512 build=`${ac_config_sub} ${build_alias}`
513 build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'`
514 build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'`
515 build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'`
516 ;;
517 esac
518 echo "$ac_t""$build" 1>&4
519
520
521 if [ "${host_alias}" != "${target_alias}" ] ; then
522 if [ "${program_prefix_given}${program_suffix_given}${program_transform_name_given}" = "" ] ; then
523 program_prefix=${target_alias}- ;
524 fi
525 fi
526
527 # Merge program_prefix and program_suffix onto program_transform_name
528 # Use a double $ so that make ignores it
529 if [ "${program_suffix}" != "" ] ; then
530 program_transform_name="-e s,\$\$,${program_suffix}, ${program_transform_name}"
531 fi
532
533 if [ "${program_prefix}" != "" ] ; then
534 program_transform_name="-e s,^,${program_prefix}, ${program_transform_name}"
535 fi
536
537
538 emulation=generic
539
540 # assign cpu type
541
542 # check for architecture variants
543 case ${target_cpu} in
544 hppa*) cpu_type=hppa ;;
545 i[45]86) cpu_type=i386 ;;
546 m680[012346]0) cpu_type=m68k ;;
547 m68008) cpu_type=m68k ;;
548 m683??) cpu_type=m68k ;;
549 m8*) cpu_type=m88k ;;
550 mips*el) cpu_type=mips endian=little;;
551 mips*) cpu_type=mips endian=big ;;
552 powerpc*) cpu_type=ppc ;;
553 rs6000*) cpu_type=ppc ;;
554 sparc64) cpu_type=sparc obj_format=elf cat >> confdefs.h <<\EOF
555 #define sparcv9 1
556 EOF
557 ;;
558 sparclite*) cpu_type=sparc ;;
559 *) cpu_type=${target_cpu} ;;
560 esac
561
562 # do we need the opcodes library?
563 case ${cpu_type} in
564 alpha | vax)
565 ;;
566 *)
567 OPCODES_LIB="../opcodes/libopcodes.a"
568 ;;
569 esac
570
571
572 gas_target=${cpu_type}
573 generic_target=${cpu_type}-${target_vendor}-${target_os}
574 dev=no
575
576 # assign object format
577 case ${generic_target} in
578 a29k-amd-udi) obj_format=coff gas_target=ebmon29k ;;
579 a29k-amd-ebmon) obj_format=coff gas_target=ebmon29k ;;
580
581 alpha-*-netware*) obj_format=ecoff ;;
582 alpha-*-osf*) obj_format=ecoff ;;
583
584 arm-*-riscix*) obj_format=aout bfd_gas=yes ;;
585
586 hppa-*-*elf*) obj_format=elf emulation=hppa ;;
587 hppa-*-osf*) obj_format=som emulation=hppa ;;
588 hppa-*-hpux*) obj_format=som emulation=hppa ;;
589 hppa-*-bsd*) obj_format=som emulation=hppa ;;
590 hppa-*-hiux*) obj_format=som emulation=hppa ;;
591
592 h8300-*-coff) obj_format=coff ;;
593
594 i386-ibm-aix*) obj_format=coff gas_target=i386coff
595 emulation=i386aix ;;
596 i386-*-bsd*) obj_format=aout emulation=386bsd ;;
597 i386-*-netbsd0.8) obj_format=aout emulation=386bsd ;;
598 i386-*-netbsd*) obj_format=aout emulation=netbsd ;;
599 i386-*-linux*elf*) obj_format=elf emulation=linux ;;
600 i386-*-linux*coff*) obj_format=coff emulation=linux
601 gas_target=i386coff ;;
602 i386-*-linux*) obj_format=aout emulation=linux bfd_gas=preferred ;;
603 i386-*-lynxos*) obj_format=coff gas_target=i386coff
604 emulation=lynx ;;
605 i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
606 obj_format=elf ;;
607 i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
608 obj_format=coff gas_target=i386coff ;;
609 i386-*-vsta) obj_format=aout ;;
610 i386-*-go32) obj_format=coff gas_target=i386coff ;;
611 i386-*-mach* | i386-*-gnu*)
612 obj_format=aout emulation=mach bfd_gas=yes ;;
613
614 i960-*-bout) obj_format=bout ;;
615 i960-*-coff) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
616 i960-*-nindy*) obj_format=bout ;;
617 i960-*-vxworks4*) obj_format=bout ;;
618 i960-*-vxworks5.0) obj_format=bout ;;
619 i960-*-vxworks5.*) obj_format=coff emulation=ic960 gas_target=ic960coff ;;
620 i960-*-vxworks*) obj_format=bout ;;
621
622 m68k-wrs-vxworks | m68k-ericsson-ose | m68k-*-sunos*)
623 obj_format=aout emulation=sun3 ;;
624 m68k-motorola-sysv) obj_format=coff gas_target=m68kcoff emulation=delta ;;
625 m68k-bull-sysv3*) obj_format=coff gas_target=m68kcoff emulation=dpx2 ;;
626 m68k-apollo-*) obj_format=coff gas_target=apollo emulation=apollo ;;
627 m68k-*-coff | m68k-*-sysv*)
628 obj_format=coff gas_target=m68kcoff ;;
629 m68k-*-hpux) obj_format=hp300 emulation=hp300 ;;
630 m68k-*-lynxos*) obj_format=coff gas_target=m68kcoff
631 emulation=lynx ;;
632
633 m88k-*-coff*) obj_format=coff gas_target=m88kcoff ;;
634
635 # don't change emulation like *-*-bsd does
636 mips-*-bsd*) bfd_gas=yes obj_format=aout gas_target=mips-lit ;;
637 mips-*-ultrix*) obj_format=ecoff gas_target=mips-lit ;;
638 mips-*-ecoff*) obj_format=ecoff
639 case "$endian" in
640 big) gas_target=mips-big ;;
641 *) gas_target=mips-lit ;;
642 esac
643 ;;
644 mips-*-ecoff*) obj_format=ecoff gas_target=mips-big ;;
645 mips-*-irix5*) obj_format=elf gas_target=mips-big ;;
646 mips-*-irix*) obj_format=ecoff gas_target=mips-big ;;
647 mips-*-riscos*) obj_format=ecoff gas_target=mips-big ;;
648 mips-*-sysv*) obj_format=ecoff gas_target=mips-big ;;
649 mips-*-elf*) obj_format=elf
650 case "$endian" in
651 big) gas_target=mips-big ;;
652 *) gas_target=mips-lit ;;
653 esac
654 ;;
655 ppc-*-aix*) obj_format=coff bfd_gas=yes ;;
656 ppc-*-elf*) obj_format=elf bfd_gas=yes ;;
657 ppc-*-netware*) obj_format=elf emulation=ppcnw ;;
658 ppc-*-sysv4*) obj_format=elf bfd_gas=yes ;;
659
660 sh-*-coff) obj_format=coff ;;
661
662 ns32k-pc532-mach*) obj_format=aout emulation=pc532 bfd_gas=yes ;;
663 ns32k-pc532-netbsd*) obj_format=aout emulation=netbsd532 bfd_gas=yes ;;
664
665 sparc*-*-sunos4*) obj_format=aout emulation=sun3 bfd_gas=yes ;;
666 sparc*-*-aout | sparc*-*-vxworks)
667 obj_format=aout bfd_gas=yes ;;
668 sparc*-*-coff) obj_format=coff bfd_gas=yes ;;
669 sparc*-*-lynxos*) obj_format=coff bfd_gas=yes emulation=lynx ;;
670 sparc*-fujitsu-none) obj_format=aout bfd_gas=yes ;;
671 sparc*-*-elf | sparc*-*-solaris*)
672 obj_format=elf ;;
673
674 vax-*-bsd* | vax-*-ultrix*)
675 obj_format=aout ;;
676 vax-*-vms) obj_format=vms ;;
677
678 z8k-*-coff | z8k-*-sim)
679 obj_format=coff ;;
680
681 *-*-aout | *-*-scout)
682 obj_format=aout ;;
683 *-*-nindy*)
684 obj_format=bout ;;
685 *-*-bsd*)
686 obj_format=aout emulation=sun3 ;;
687 *-*-generic) obj_format=generic ;;
688 *-*-xray | *-*-hms) obj_format=coff ;;
689 *-*-sim) obj_format=coff ;;
690 *-*-elf | *-*-sysv4* | *-*-solaris*)
691 echo "configure: warning: GAS support for ELF format is incomplete" 1>&2
692 obj_format=elf dev=yes ;;
693 *-*-vxworks) obj_format=aout ;;
694 *-*-netware) obj_format=elf ;;
695 esac
696
697 # Assign floating point type. Most processors with FP support
698 # IEEE FP. On those that don't support FP at all, usually IEEE
699 # is emulated.
700 case ${target_cpu} in
701 vax | tahoe ) atof=${target_cpu} ;;
702 *) atof=ieee ;;
703 esac
704
705 case "${obj_format}" in
706 "") { echo "configure: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
707 esac
708
709
710 if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then
711 { echo "configure: GAS does not support target CPU ${cpu_type}" 1>&2; exit 1; }
712 fi
713
714 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
715 { echo "configure: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
716 fi
717
718 # and target makefile frag
719
720 target_frag=${srcdir}/config/${gas_target}.mt
721
722
723 case ${cpu_type}-${obj_format} in
724 # not yet
725 # i386-aout) bfd_gas=preferred ;;
726 *-elf) bfd_gas=yes ;;
727 *-ecoff) bfd_gas=yes ;;
728 *-som) bfd_gas=yes ;;
729 *) ;;
730 esac
731
732 case ${user_bfd_gas}-${bfd_gas} in
733 yes-yes | no-no)
734 # We didn't override user's choice.
735 ;;
736 no-yes)
737 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
738 ;;
739 no-preferred)
740 bfd_gas=no
741 ;;
742 *-preferred)
743 bfd_gas=yes
744 ;;
745 -*)
746 # User specified nothing.
747 ;;
748 esac
749
750 case ${bfd_gas}-${cpu_type}-${obj_format} in
751 yes-*-coff) need_bfd=yes ;;
752 no-*-coff) need_bfd=yes
753 cat >> confdefs.h <<\EOF
754 #define MANY_SEGMENTS 1
755 EOF
756 ;;
757 esac
758
759 reject_dev_configs=yes
760
761 case ${reject_dev_configs}-${dev} in
762 yes-yes) # Oops.
763 { echo "configure: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
764 ;;
765 esac
766
767
768
769
770 case "${bfd_gas}" in
771 yes) cat >> confdefs.h <<\EOF
772 #define BFD_ASSEMBLER 1
773 EOF
774
775 need_bfd=yes ;;
776 esac
777
778 case "${need_bfd}" in
779 yes) BFDLIB=../bfd/libbfd.a
780 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
781 ;;
782 esac
783
784
785
786 case "x${host_canon}" in
787 x${target_canon}) ;;
788 *) cat >> confdefs.h <<\EOF
789 #define CROSS_COMPILE 1
790 EOF
791 ;;
792 esac
793
794 cat >> confdefs.h <<EOF
795 #define TARGET_ALIAS "${target_alias}"
796 EOF
797
798 cat >> confdefs.h <<EOF
799 #define TARGET_CANONICAL "${target}"
800 EOF
801
802 cat >> confdefs.h <<EOF
803 #define TARGET_CPU "${target_cpu}"
804 EOF
805
806 cat >> confdefs.h <<EOF
807 #define TARGET_VENDOR "${target_vendor}"
808 EOF
809
810 cat >> confdefs.h <<EOF
811 #define TARGET_OS "${target_os}"
812 EOF
813
814
815 case ${host} in
816 rs6000-*-*)
817 # The IBM compiler mis-compiles some expressions used in gas.
818 # This will tell gas to work around this lossage.
819 cat >> confdefs.h <<\EOF
820 #define IBM_COMPILER_SUX 1
821 EOF
822 ;;
823 i386-*-go32)
824 # Using fopen(..., "w") for a binary file breaks under DOS.
825 cat >> confdefs.h <<\EOF
826 #define WANT_FOPEN_BIN 1
827 EOF
828 ;;
829 esac
830
831 echo $ac_n "checking for CC""... $ac_c" 1>&4
832 test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'`
833 test -z "$CC" && CC=cc
834 echo "$ac_t""setting CC to $CC" 1>&4
835
836 # Find out if we are using GNU C, under whatever name.
837 cat > conftest.c <<EOF
838 #ifdef __GNUC__
839 yes
840 #endif
841 EOF
842 ${CC-cc} -E conftest.c > conftest.out 2>&1
843 if egrep yes conftest.out >/dev/null 2>&1; then
844 GCC=yes
845 else
846 GCC=
847 fi
848 rm -f conftest*
849
850 # Make sure to not get an incompatible install:
851 # SysV /etc/install, /usr/sbin/install
852 # SunOS /usr/etc/install
853 # IRIX /sbin/install
854 # AIX /bin/install
855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
857 # ./install, which can be erroneously created by make from ./install.sh.
858 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&4
859 if test -z "${INSTALL}"; then
860 if eval "test \"`echo '${'ac_cv_path_install'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&4
862 else
863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
864 for ac_dir in $PATH; do
865 case "$ac_dir" in
866 ''|.|/etc|/usr/sbin|/usr/etc|/sbin|/usr/afsws/bin|/usr/ucb) ;;
867 *)
868 # OSF1 and SCO ODT 3.0 have their own names for install.
869 for ac_prog in ginstall installbsd scoinst install; do
870 if test -f $ac_dir/$ac_prog; then
871 if test $ac_prog = install &&
872 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
873 # AIX install. It has an incompatible calling convention.
874 # OSF/1 installbsd also uses dspmsg, but is usable.
875 :
876 else
877 ac_cv_path_install="$ac_dir/$ac_prog -c"
878 break 2
879 fi
880 fi
881 done
882 ;;
883 esac
884 done
885 IFS="$ac_save_ifs"
886 # As a last resort, use the slow shell script.
887 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
888 fi
889 INSTALL="$ac_cv_path_install"
890 fi
891 echo "$ac_t""$INSTALL" 1>&4
892
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
896
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
898
899
900 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&4
901 # On Suns, sometimes $CPP names a directory.
902 if test -n "$CPP" && test -d "$CPP"; then
903 CPP=
904 fi
905 if test -z "$CPP"; then
906 if eval "test \"`echo '${'ac_cv_prog_CPP'+set}'`\" = set"; then
907 echo $ac_n "(cached) $ac_c" 1>&4
908 else
909 # This must be in double quotes, not single quotes, because CPP may get
910 # substituted into the Makefile and "${CC-cc}" will confuse make.
911 CPP="${CC-cc} -E"
912 # On the NeXT, cc -E runs the code through the compiler's parser,
913 # not just through cpp.
914 cat > conftest.${ac_ext} <<EOF
915 #line 914 "configure"
916 #include "confdefs.h"
917 #include <stdio.h>
918 Syntax Error
919 EOF
920 ac_err=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1`
921 if test -z "$ac_err"; then
922 :
923 else
924 echo "$ac_err" >&5
925 rm -rf conftest*
926 CPP="${CC-cc} -E -traditional-cpp"
927 cat > conftest.${ac_ext} <<EOF
928 #line 927 "configure"
929 #include "confdefs.h"
930 #include <stdio.h>
931 Syntax Error
932 EOF
933 ac_err=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1`
934 if test -z "$ac_err"; then
935 :
936 else
937 echo "$ac_err" >&5
938 rm -rf conftest*
939 CPP=/lib/cpp
940 fi
941 rm -f conftest*
942 fi
943 rm -f conftest*
944 ac_cv_prog_CPP="$CPP"
945 fi
946 fi
947 CPP="$ac_cv_prog_CPP"
948 echo "$ac_t""$CPP" 1>&4
949
950 for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
951 do
952 ac_safe=`echo "${ac_hdr}" | tr './' '__'`
953 echo $ac_n "checking for ${ac_hdr}""... $ac_c" 1>&4
954 if eval "test \"`echo '${'ac_cv_header_$ac_safe'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&4
956 else
957 cat > conftest.${ac_ext} <<EOF
958 #line 957 "configure"
959 #include "confdefs.h"
960 #include <${ac_hdr}>
961 EOF
962 ac_err=`eval "$ac_cpp conftest.${ac_ext} >/dev/null" 2>&1`
963 if test -z "$ac_err"; then
964 rm -rf conftest*
965 eval "ac_cv_header_$ac_safe=yes"
966 else
967 echo "$ac_err" >&5
968 rm -rf conftest*
969 eval "ac_cv_header_$ac_safe=no"
970 fi
971 rm -f conftest*
972 fi
973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
974 echo "$ac_t""yes" 1>&4
975 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./' '[A-Z]__'`
976 cat >> confdefs.h <<EOF
977 #define ${ac_tr_hdr} 1
978 EOF
979
980 else
981 echo "$ac_t""no" 1>&4
982 fi
983 done
984
985
986 # If we cannot run a trivial program, we must be cross compiling.
987 echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&4
988 if eval "test \"`echo '${'ac_cv_c_cross'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&4
990 else
991 if test "$cross_compiling" = yes; then
992 { echo "configure: can not run test program while cross compiling" 1>&2; exit 1; }
993 else
994 cat > conftest.${ac_ext} <<EOF
995 #line 994 "configure"
996 #include "confdefs.h"
997 main(){exit(0);}
998 EOF
999 eval $ac_compile
1000 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1001 ac_cv_c_cross=no
1002 else
1003 ac_cv_c_cross=yes
1004 fi
1005 fi
1006 rm -fr conftest*
1007 fi
1008 cross_compiling=$ac_cv_c_cross
1009 echo "$ac_t""$ac_cv_c_cross" 1>&4
1010
1011 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1012 # for constant arguments. Useless!
1013 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&4
1014 if eval "test \"`echo '${'ac_cv_header_alloca_h'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&4
1016 else
1017 cat > conftest.${ac_ext} <<EOF
1018 #line 1017 "configure"
1019 #include "confdefs.h"
1020 #include <alloca.h>
1021 int main() { return 0; }
1022 int t() {
1023 char *p = alloca(2 * sizeof(int));
1024 ; return 0; }
1025 EOF
1026 if eval $ac_compile; then
1027 rm -rf conftest*
1028 ac_cv_header_alloca_h=yes
1029 else
1030 rm -rf conftest*
1031 ac_cv_header_alloca_h=no
1032 fi
1033 rm -f conftest*
1034
1035 fi
1036 echo "$ac_t""$ac_cv_header_alloca_h" 1>&4
1037 if test $ac_cv_header_alloca_h = yes; then
1038 cat >> confdefs.h <<\EOF
1039 #define HAVE_ALLOCA_H 1
1040 EOF
1041
1042 fi
1043
1044 echo $ac_n "checking for alloca""... $ac_c" 1>&4
1045 if eval "test \"`echo '${'ac_cv_func_alloca'+set}'`\" = set"; then
1046 echo $ac_n "(cached) $ac_c" 1>&4
1047 else
1048 cat > conftest.${ac_ext} <<EOF
1049 #line 1048 "configure"
1050 #include "confdefs.h"
1051
1052 #ifdef __GNUC__
1053 # define alloca __builtin_alloca
1054 #else
1055 # if HAVE_ALLOCA_H
1056 # include <alloca.h>
1057 # else
1058 # ifdef _AIX
1059 #pragma alloca
1060 # else
1061 # ifndef alloca /* predefined by HP cc +Olibcalls */
1062 char *alloca ();
1063 # endif
1064 # endif
1065 # endif
1066 #endif
1067
1068 int main() { return 0; }
1069 int t() {
1070 char *p = (char *) alloca(1);
1071 ; return 0; }
1072 EOF
1073 if eval $ac_compile; then
1074 rm -rf conftest*
1075 ac_cv_func_alloca=yes
1076 else
1077 rm -rf conftest*
1078 ac_cv_func_alloca=no
1079 fi
1080 rm -f conftest*
1081
1082 fi
1083 echo "$ac_t""$ac_cv_func_alloca" 1>&4
1084 if test $ac_cv_func_alloca = yes; then
1085 cat >> confdefs.h <<\EOF
1086 #define HAVE_ALLOCA 1
1087 EOF
1088
1089 fi
1090
1091 if test $ac_cv_func_alloca = no; then
1092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1093 # that cause trouble. Some versions do not even contain alloca or
1094 # contain a buggy version. If you still want to use their alloca,
1095 # use ar to extract alloca.o from them instead of compiling alloca.c.
1096 ALLOCA=alloca.o
1097 cat >> confdefs.h <<\EOF
1098 #define C_ALLOCA 1
1099 EOF
1100
1101
1102 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&4
1103 if eval "test \"`echo '${'ac_cv_os_cray'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&4
1105 else
1106 cat > conftest.${ac_ext} <<EOF
1107 #line 1106 "configure"
1108 #include "confdefs.h"
1109 #if defined(CRAY) && ! defined(CRAY2)
1110 webecray
1111 #else
1112 wenotbecray
1113 #endif
1114
1115 EOF
1116 if eval "$ac_cpp conftest.${ac_ext}" 2>&5 |
1117 egrep "webecray" >/dev/null 2>&1; then
1118 rm -rf conftest*
1119 ac_cv_os_cray=yes
1120 else
1121 rm -rf conftest*
1122 ac_cv_os_cray=no
1123 fi
1124 rm -f conftest*
1125
1126 fi
1127 echo "$ac_t""$ac_cv_os_cray" 1>&4
1128 if test $ac_cv_os_cray = yes; then
1129 echo $ac_n "checking for _getb67""... $ac_c" 1>&4
1130 if eval "test \"`echo '${'ac_cv_func__getb67'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&4
1132 else
1133 cat > conftest.${ac_ext} <<EOF
1134 #line 1133 "configure"
1135 #include "confdefs.h"
1136 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1137 int main() { return 0; }
1138 int t() {
1139
1140 /* The GNU C library defines this for functions which it implements
1141 to always fail with ENOSYS. Some functions are actually named
1142 something starting with __ and the normal name is an alias. */
1143 #if defined (__stub__getb67) || defined (__stub____getb67)
1144 choke me
1145 #else
1146 /* Override any gcc2 internal prototype to avoid an error. */
1147 char _getb67(); _getb67();
1148 #endif
1149
1150 ; return 0; }
1151 EOF
1152 if eval $ac_compile; then
1153 rm -rf conftest*
1154 eval "ac_cv_func__getb67=yes"
1155 else
1156 rm -rf conftest*
1157 eval "ac_cv_func__getb67=no"
1158 fi
1159 rm -f conftest*
1160
1161 fi
1162 if eval "test \"`echo '$ac_cv_func_'_getb67`\" = yes"; then
1163 echo "$ac_t""yes" 1>&4
1164 cat >> confdefs.h <<\EOF
1165 #define CRAY_STACKSEG_END _getb67
1166 EOF
1167
1168 else
1169 echo "$ac_t""no" 1>&4
1170 echo $ac_n "checking for GETB67""... $ac_c" 1>&4
1171 if eval "test \"`echo '${'ac_cv_func_GETB67'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&4
1173 else
1174 cat > conftest.${ac_ext} <<EOF
1175 #line 1174 "configure"
1176 #include "confdefs.h"
1177 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1178 int main() { return 0; }
1179 int t() {
1180
1181 /* The GNU C library defines this for functions which it implements
1182 to always fail with ENOSYS. Some functions are actually named
1183 something starting with __ and the normal name is an alias. */
1184 #if defined (__stub_GETB67) || defined (__stub___GETB67)
1185 choke me
1186 #else
1187 /* Override any gcc2 internal prototype to avoid an error. */
1188 char GETB67(); GETB67();
1189 #endif
1190
1191 ; return 0; }
1192 EOF
1193 if eval $ac_compile; then
1194 rm -rf conftest*
1195 eval "ac_cv_func_GETB67=yes"
1196 else
1197 rm -rf conftest*
1198 eval "ac_cv_func_GETB67=no"
1199 fi
1200 rm -f conftest*
1201
1202 fi
1203 if eval "test \"`echo '$ac_cv_func_'GETB67`\" = yes"; then
1204 echo "$ac_t""yes" 1>&4
1205 cat >> confdefs.h <<\EOF
1206 #define CRAY_STACKSEG_END GETB67
1207 EOF
1208
1209 else
1210 echo "$ac_t""no" 1>&4
1211 echo $ac_n "checking for getb67""... $ac_c" 1>&4
1212 if eval "test \"`echo '${'ac_cv_func_getb67'+set}'`\" = set"; then
1213 echo $ac_n "(cached) $ac_c" 1>&4
1214 else
1215 cat > conftest.${ac_ext} <<EOF
1216 #line 1215 "configure"
1217 #include "confdefs.h"
1218 #include <ctype.h> /* Arbitrary system header to define __stub macros. */
1219 int main() { return 0; }
1220 int t() {
1221
1222 /* The GNU C library defines this for functions which it implements
1223 to always fail with ENOSYS. Some functions are actually named
1224 something starting with __ and the normal name is an alias. */
1225 #if defined (__stub_getb67) || defined (__stub___getb67)
1226 choke me
1227 #else
1228 /* Override any gcc2 internal prototype to avoid an error. */
1229 char getb67(); getb67();
1230 #endif
1231
1232 ; return 0; }
1233 EOF
1234 if eval $ac_compile; then
1235 rm -rf conftest*
1236 eval "ac_cv_func_getb67=yes"
1237 else
1238 rm -rf conftest*
1239 eval "ac_cv_func_getb67=no"
1240 fi
1241 rm -f conftest*
1242
1243 fi
1244 if eval "test \"`echo '$ac_cv_func_'getb67`\" = yes"; then
1245 echo "$ac_t""yes" 1>&4
1246 cat >> confdefs.h <<\EOF
1247 #define CRAY_STACKSEG_END getb67
1248 EOF
1249
1250 else
1251 echo "$ac_t""no" 1>&4
1252 fi
1253
1254 fi
1255
1256 fi
1257
1258 fi
1259
1260 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&4
1261 if eval "test \"`echo '${'ac_cv_c_stack_direction'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&4
1263 else
1264 if test "$cross_compiling" = yes; then
1265 echo "configure: warning: using default for cross-compiling" 1>&2
1266 ac_cv_c_stack_direction=0
1267
1268 else
1269 cat > conftest.${ac_ext} <<EOF
1270 #line 1269 "configure"
1271 #include "confdefs.h"
1272 find_stack_direction ()
1273 {
1274 static char *addr = 0;
1275 auto char dummy;
1276 if (addr == 0)
1277 {
1278 addr = &dummy;
1279 return find_stack_direction ();
1280 }
1281 else
1282 return (&dummy > addr) ? 1 : -1;
1283 }
1284 main ()
1285 {
1286 exit (find_stack_direction() < 0);
1287 }
1288 EOF
1289 eval $ac_compile
1290 if test -s conftest && (./conftest; exit) 2>/dev/null; then
1291 ac_cv_c_stack_direction=1
1292 else
1293 ac_cv_c_stack_direction=-1
1294 fi
1295 fi
1296 rm -fr conftest*
1297 fi
1298 echo "$ac_t""$ac_cv_c_stack_direction" 1>&4
1299 cat >> confdefs.h <<EOF
1300 #define STACK_DIRECTION $ac_cv_c_stack_direction
1301 EOF
1302
1303 fi
1304
1305 echo $ac_n "checking for inline""... $ac_c" 1>&4
1306 if eval "test \"`echo '${'ac_cv_c_inline'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&4
1308 else
1309 if test "$GCC" = yes; then
1310 cat > conftest.${ac_ext} <<EOF
1311 #line 1310 "configure"
1312 #include "confdefs.h"
1313
1314 int main() { return 0; }
1315 int t() {
1316 } inline foo() {
1317 ; return 0; }
1318 EOF
1319 if eval $ac_compile; then
1320 rm -rf conftest*
1321 ac_cv_c_inline=yes
1322 else
1323 rm -rf conftest*
1324 ac_cv_c_inline=no
1325 fi
1326 rm -f conftest*
1327
1328 else
1329 ac_cv_c_inline=no
1330 fi
1331 fi
1332 echo "$ac_t""$ac_cv_c_inline" 1>&4
1333 if test $ac_cv_c_inline = no; then
1334 cat >> confdefs.h <<\EOF
1335 #define inline __inline
1336 EOF
1337
1338 fi
1339
1340
1341 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
1342 # enough, but on some of those systems, the assert macro relies on requoting
1343 # working properly!
1344 echo $ac_n "checking for working assert macro""... $ac_c" 1>&4
1345 if eval "test \"`echo '${'gas_cv_assert_ok'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&4
1347 else
1348 cat > conftest.${ac_ext} <<EOF
1349 #line 1348 "configure"
1350 #include "confdefs.h"
1351 #include <assert.h>
1352 #include <stdio.h>
1353 int main() { return 0; }
1354 int t() {
1355
1356 /* check for requoting problems */
1357 static int a, b, c, d;
1358 static char *s;
1359 assert (!strcmp(s, "foo bar baz quux"));
1360 /* check for newline handling */
1361 assert (a == b
1362 || c == d);
1363
1364 ; return 0; }
1365 EOF
1366 if eval $ac_compile; then
1367 rm -rf conftest*
1368 gas_cv_assert_ok=yes
1369 else
1370 rm -rf conftest*
1371 gas_cv_assert_ok=no
1372 fi
1373 rm -f conftest*
1374
1375 fi
1376 echo "$ac_t""$gas_cv_assert_ok" 1>&4
1377 test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
1378 #define BROKEN_ASSERT 1
1379 EOF
1380
1381
1382 # On some systems, the system header files may not declare malloc, realloc,
1383 # and free. There are places where gas needs these functions to have been
1384 # declared -- such as when taking their addresses.
1385 echo $ac_n "checking whether a malloc declaration is required""... $ac_c" 1>&4
1386 if eval "test \"`echo '${'gas_cv_malloc_decl_needed'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&4
1388 else
1389 cat > conftest.${ac_ext} <<EOF
1390 #line 1389 "configure"
1391 #include "confdefs.h"
1392
1393 #ifdef HAVE_MEMORY_H
1394 #include <memory.h>
1395 #endif
1396 #ifdef HAVE_STRING_H
1397 #include <string.h>
1398 #endif
1399 #ifdef HAVE_STDLIB_H
1400 #include <stdlib.h>
1401 #endif
1402 #ifdef HAVE_UNISTD_H
1403 #include <unistd.h>
1404 #endif
1405
1406 int main() { return 0; }
1407 int t() {
1408
1409 char *(*f) ();
1410 f = (char *(*)()) malloc;
1411
1412 ; return 0; }
1413 EOF
1414 if eval $ac_compile; then
1415 rm -rf conftest*
1416 gas_cv_malloc_decl_needed=no
1417 else
1418 rm -rf conftest*
1419 gas_cv_malloc_decl_needed=yes
1420 fi
1421 rm -f conftest*
1422
1423 fi
1424 echo "$ac_t""$gas_cv_malloc_decl_needed" 1>&4
1425 test $gas_cv_malloc_decl_needed = no || cat >> confdefs.h <<\EOF
1426 #define NEED_MALLOC_DECLARATION 1
1427 EOF
1428
1429
1430 echo $ac_n "checking whether a free declaration is required""... $ac_c" 1>&4
1431 if eval "test \"`echo '${'gas_cv_free_decl_needed'+set}'`\" = set"; then
1432 echo $ac_n "(cached) $ac_c" 1>&4
1433 else
1434 cat > conftest.${ac_ext} <<EOF
1435 #line 1434 "configure"
1436 #include "confdefs.h"
1437
1438 #ifdef HAVE_MEMORY_H
1439 #include <memory.h>
1440 #endif
1441 #ifdef HAVE_STRING_H
1442 #include <string.h>
1443 #endif
1444 #ifdef HAVE_STDLIB_H
1445 #include <stdlib.h>
1446 #endif
1447 #ifdef HAVE_UNISTD_H
1448 #include <unistd.h>
1449 #endif
1450
1451 int main() { return 0; }
1452 int t() {
1453
1454 int (*f) ();
1455 f = (int (*)()) free;
1456
1457 ; return 0; }
1458 EOF
1459 if eval $ac_compile; then
1460 rm -rf conftest*
1461 gas_cv_free_decl_needed=no
1462 else
1463 rm -rf conftest*
1464 gas_cv_free_decl_needed=yes
1465 fi
1466 rm -f conftest*
1467
1468 fi
1469
1470 echo "$ac_t""$gas_cv_free_decl_needed" 1>&4
1471 test $gas_cv_free_decl_needed = no || cat >> confdefs.h <<\EOF
1472 #define NEED_FREE_DECLARATION 1
1473 EOF
1474
1475
1476 # Does errno.h declare errno, or do we have to add a separate declaration
1477 # for it?
1478 echo $ac_n "checking whether an errno declaration is required""... $ac_c" 1>&4
1479 if eval "test \"`echo '${'gas_cv_errno_decl_needed'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&4
1481 else
1482 cat > conftest.${ac_ext} <<EOF
1483 #line 1482 "configure"
1484 #include "confdefs.h"
1485
1486 #ifdef HAVE_ERRNO_H
1487 #include <errno.h>
1488 #endif
1489
1490 int main() { return 0; }
1491 int t() {
1492
1493 int x;
1494 x = errno;
1495
1496 ; return 0; }
1497 EOF
1498 if eval $ac_compile; then
1499 rm -rf conftest*
1500 gas_cv_errno_decl_needed=no
1501 else
1502 rm -rf conftest*
1503 gas_cv_errno_decl_needed=yes
1504 fi
1505 rm -f conftest*
1506
1507 fi
1508
1509 echo "$ac_t""$gas_cv_errno_decl_needed" 1>&4
1510 test $gas_cv_errno_decl_needed = no || cat >> confdefs.h <<\EOF
1511 #define NEED_ERRNO_DECLARATION 1
1512 EOF
1513
1514
1515 subdirs="testsuite"
1516
1517
1518 if test -w $cache_file; then
1519 echo "updating cache $cache_file"
1520 cat > $cache_file <<\EOF
1521 # This file is a shell script that caches the results of configure
1522 # tests run on this system so they can be shared between configure
1523 # scripts and configure runs. It is not useful on other systems.
1524 # If its contents are invalid for some reason, you may delete or edit it.
1525 #
1526 # By default, configure uses ./config.cache as the cache file,
1527 # creating it if it does not exist already. You can give configure
1528 # the --cache-file=FILE option to use a different cache file; that is
1529 # what configure does when it calls configure scripts in
1530 # subdirectories, so they share the cache.
1531 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1532 # config.status only pays attention to the cache file if you give it the
1533 # --recheck option to rerun configure.
1534 EOF
1535 # Ultrix sh set writes to stderr and can't be redirected directly.
1536 (set) 2>&1 | sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1-'\2'}/p" >> $cache_file
1537 else
1538 echo "not updating unwritable cache $cache_file"
1539 fi
1540
1541
1542 test "x$prefix" = xNONE && prefix=/usr/local
1543 # Let make expand exec_prefix.
1544 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1545
1546 # Any assignment to VPATH causes Sun make to only execute
1547 # the first set of double-colon rules, so remove it if not needed.
1548 # If there is a colon in the path, we need to keep it.
1549 if test "x$srcdir" = x.; then
1550 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1551 fi
1552
1553 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1554
1555 DEFS=-DHAVE_CONFIG_H
1556
1557 # Without the "./", some shells look in PATH for config.status.
1558 : ${CONFIG_STATUS=./config.status}
1559
1560 echo creating ${CONFIG_STATUS}
1561 rm -f ${CONFIG_STATUS}
1562 cat > ${CONFIG_STATUS} <<EOF
1563 #!/bin/sh
1564 # Generated automatically by configure.
1565 # Run this file to recreate the current configuration.
1566 # This directory was configured as follows,
1567 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1568 #
1569 # $0 $configure_args
1570 #
1571 # Compiler output produced by configure, useful for debugging
1572 # configure, is in ./config.log if it exists.
1573
1574 ac_cs_usage="Usage: ${CONFIG_STATUS} [--recheck] [--version] [--help]"
1575 for ac_option
1576 do
1577 case "\$ac_option" in
1578 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1579 echo running \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion
1580 exec \${CONFIG_SHELL-/bin/sh} $0 $configure_args --no-create --norecursion ;;
1581 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1582 echo "${CONFIG_STATUS} generated by autoconf version 1.109"
1583 exit 0 ;;
1584 -help | --help | --hel | --he | --h)
1585 echo "\$ac_cs_usage"; exit 0 ;;
1586 *) echo "\$ac_cs_usage"; exit 1 ;;
1587 esac
1588 done
1589
1590 ac_given_srcdir=$srcdir
1591 ac_given_INSTALL="$INSTALL"
1592
1593 trap 'rm -fr doc/Makefile Makefile conf conftest*; exit 1' 1 2 15
1594
1595 # Protect against being on the right side of a sed subst in config.status.
1596 sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
1597 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
1598 $ac_vpsub
1599 $extrasub
1600 s%@LIBS@%$LIBS%g
1601 s%@prefix@%$prefix%g
1602 s%@exec_prefix@%$exec_prefix%g
1603 s%@DEFS@%$DEFS%g
1604 s%@CFLAGS@%$CFLAGS%g
1605 s%@CXXFLAGS@%$CXXFLAGS%g
1606 s%@CPPFLAGS@%$CPPFLAGS%g
1607 s%@LDFLAGS@%$LDFLAGS%g
1608 s%@host@%$host%g
1609 s%@host_alias@%$host_alias%g
1610 s%@host_cpu@%$host_cpu%g
1611 s%@host_vendor@%$host_vendor%g
1612 s%@host_os@%$host_os%g
1613 s%@target@%$target%g
1614 s%@target_alias@%$target_alias%g
1615 s%@target_cpu@%$target_cpu%g
1616 s%@target_vendor@%$target_vendor%g
1617 s%@target_os@%$target_os%g
1618 s%@build@%$build%g
1619 s%@build_alias@%$build_alias%g
1620 s%@build_cpu@%$build_cpu%g
1621 s%@build_vendor@%$build_vendor%g
1622 s%@build_os@%$build_os%g
1623 s%@program_prefix@%$program_prefix%g
1624 s%@program_suffix@%$program_suffix%g
1625 s%@program_transform_name@%$program_transform_name%g
1626 s%@OPCODES_LIB@%$OPCODES_LIB%g
1627 /@target_frag@/r $target_frag
1628 s%@target_frag@%%g
1629 s%@cpu_type@%$cpu_type%g
1630 s%@obj_format@%$obj_format%g
1631 s%@emulation@%$emulation%g
1632 s%@atof@%$atof%g
1633 s%@BFDLIB@%$BFDLIB%g
1634 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
1635 s%@CC@%$CC%g
1636 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1637 s%@INSTALL_DATA@%$INSTALL_DATA%g
1638 s%@CPP@%$CPP%g
1639 s%@ALLOCA@%$ALLOCA%g
1640 s%@subdirs@%$subdirs%g
1641
1642 CEOF
1643 EOF
1644 cat >> ${CONFIG_STATUS} <<\EOF
1645
1646 CONFIG_FILES=${CONFIG_FILES-"doc/Makefile Makefile"}
1647 for ac_file in .. ${CONFIG_FILES}; do if test "x$ac_file" != x..; then
1648 # Support "outfile[:infile]", defaulting infile="outfile.in".
1649 case "$ac_file" in
1650 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1651 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1652 *) ac_file_in="${ac_file}.in" ;;
1653 esac
1654
1655 # Adjust relative srcdir, etc. for subdirectories.
1656
1657 # Remove last slash and all that follows it. Not all systems have dirname.
1658 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1659 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1660 # The file is in a subdirectory.
1661 test ! -d "$ac_dir" && mkdir "$ac_dir"
1662 ac_dir_suffix="/$ac_dir"
1663 # A "../" for each directory in $ac_dir_suffix.
1664 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1665 else
1666 ac_dir_suffix= ac_dots=
1667 fi
1668
1669 case "$ac_given_srcdir" in
1670 .) srcdir=.
1671 if test -z "$ac_dots"; then top_srcdir=.
1672 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1673 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1674 *) # Relative path.
1675 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1676 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1677 esac
1678
1679 case "$ac_given_INSTALL" in
1680 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1681 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1682 esac
1683 echo creating "$ac_file"
1684 rm -f "$ac_file"
1685 comment_str="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1686 case "$ac_file" in
1687 *.c | *.h | *.C | *.cc | *.cpp | *.hpp | *.m )
1688 ac_comsub="1i\\
1689 /* $comment_str */" ;;
1690 * ) # Add the comment on the second line of scripts, first line of others.
1691 ac_comsub="
1692 1{
1693 s/^#!/&/
1694 t script
1695 i\\
1696 # $comment_str
1697 b done
1698 : script
1699 a\\
1700 # $comment_str
1701 : done
1702 }
1703 " ;;
1704 esac
1705 sed -e "$ac_comsub
1706 s%@srcdir@%$srcdir%g
1707 s%@top_srcdir@%$top_srcdir%g
1708 s%@INSTALL@%$INSTALL%g
1709 " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
1710 fi; done
1711 rm -f conftest.subs
1712
1713 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1714 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1715 #
1716 # ac_d sets the value in "#define NAME VALUE" lines.
1717 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1718 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1719 ac_dC='\3'
1720 ac_dD='%g'
1721 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1722 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1723 ac_uB='\([ ]\)%\1#\2define\3'
1724 ac_uC=' '
1725 ac_uD='\4%g'
1726 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1727 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1728 ac_eB='$%\1#\2define\3'
1729 ac_eC=' '
1730 ac_eD='%g'
1731
1732 CONFIG_HEADERS=${CONFIG_HEADERS-"conf"}
1733 for ac_file in .. ${CONFIG_HEADERS}; do if test "x$ac_file" != x..; then
1734 # Support "outfile[:infile]", defaulting infile="outfile.in".
1735 case "$ac_file" in
1736 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
1737 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1738 *) ac_file_in="${ac_file}.in" ;;
1739 esac
1740
1741 echo creating $ac_file
1742
1743 rm -f conftest.frag conftest.in conftest.out
1744 cp $ac_given_srcdir/$ac_file_in conftest.in
1745
1746 EOF
1747
1748 # Transform confdefs.h into a sed script conftest.vals that substitutes
1749 # the proper values into config.h.in to produce config.h. And first:
1750 # Protect against being on the right side of a sed subst in config.status.
1751 # Protect against being in an unquoted here document in config.status.
1752 rm -f conftest.vals
1753 cat > conftest.hdr <<\EOF
1754 s/[\\&%]/\\&/g
1755 s%[\\$`]%\\&%g
1756 s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1757 s%ac_d%ac_u%gp
1758 s%ac_u%ac_e%gp
1759 EOF
1760 sed -n -f conftest.hdr confdefs.h > conftest.vals
1761 rm -f conftest.hdr
1762
1763 # This sed command replaces #undef with comments. This is necessary, for
1764 # example, in the case of _POSIX_SOURCE, which is predefined and required
1765 # on some systems where configure will not decide to define it.
1766 cat >> conftest.vals <<\EOF
1767 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1768 EOF
1769
1770 # Break up conftest.vals because some shells have a limit on
1771 # the size of here documents, and old seds have small limits too.
1772 # Maximum number of lines to put in a single here document.
1773 ac_max_here_lines=12
1774
1775 rm -f conftest.tail
1776 while :
1777 do
1778 ac_lines=`grep -c . conftest.vals`
1779 # grep -c gives empty output for an empty file on some AIX systems.
1780 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1781 # Write a limited-size here document to conftest.frag.
1782 echo ' cat > conftest.frag <<CEOF' >> ${CONFIG_STATUS}
1783 sed ${ac_max_here_lines}q conftest.vals >> ${CONFIG_STATUS}
1784 echo 'CEOF
1785 sed -f conftest.frag conftest.in > conftest.out
1786 rm -f conftest.in
1787 mv conftest.out conftest.in
1788 ' >> ${CONFIG_STATUS}
1789 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1790 rm -f conftest.vals
1791 mv conftest.tail conftest.vals
1792 done
1793 rm -f conftest.vals
1794
1795 # Now back to your regularly scheduled config.status.
1796 cat >> ${CONFIG_STATUS} <<\EOF
1797 rm -f conftest.frag conftest.h
1798 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1799 cat conftest.in >> conftest.h
1800 rm -f conftest.in
1801 if cmp -s $ac_file conftest.h 2>/dev/null; then
1802 echo "$ac_file is unchanged"
1803 rm -f conftest.h
1804 else
1805 rm -f $ac_file
1806 mv conftest.h $ac_file
1807 fi
1808 fi; done
1809
1810 EOF
1811
1812 cat >> ${CONFIG_STATUS} <<EOF
1813 ac_links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c"
1814 ac_files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
1815 config/obj-${obj_format}.h config/obj-${obj_format}.c \
1816 config/te-${emulation}.h config/atof-${atof}.c"
1817 EOF
1818
1819 cat >> ${CONFIG_STATUS} <<\EOF
1820 while test -n "${ac_files}"; do
1821 set ${ac_links}; ac_link=$1; shift; ac_links=$*
1822 set ${ac_files}; ac_file=$1; shift; ac_files=$*
1823
1824 echo "linking ${ac_link} to ${srcdir}/${ac_file}"
1825
1826 if test ! -r ${srcdir}/${ac_file}; then
1827 { echo "configure: ${srcdir}/${ac_file}: File not found" 1>&2; exit 1; }
1828 fi
1829 rm -f ${ac_link}
1830 # Make a symlink if possible; otherwise try a hard link.
1831 if ln -s ${srcdir}/${ac_file} ${ac_link} 2>/dev/null ||
1832 ln ${srcdir}/${ac_file} ${ac_link}; then :
1833 else
1834 { echo "configure: can not link ${ac_link} to ${srcdir}/${ac_file}" 1>&2; exit 1; }
1835 fi
1836 done
1837
1838 exit 0
1839 EOF
1840 chmod +x ${CONFIG_STATUS}
1841 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} ${CONFIG_STATUS}
1842
1843 if test "${norecursion}" != yes; then
1844
1845 # Remove --cache-file and --srcdir arguments so they do not pile up.
1846 ac_sub_configure_args=
1847 ac_prev=
1848 for ac_arg in $configure_args; do
1849 if test -n "$ac_prev"; then
1850 ac_prev=
1851 continue
1852 fi
1853 case "$ac_arg" in
1854 -cache-file | --cache-file | --cache-fil | --cache-fi \
1855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1856 ac_prev=cache_file ;;
1857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1859 ;;
1860 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1861 ac_prev=srcdir ;;
1862 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1863 ;;
1864 *[" "]*) ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
1865 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
1866 esac
1867 done
1868
1869 for ac_config_dir in testsuite; do
1870
1871 # Do not complain, so a configure script can configure whichever
1872 # parts of a large source tree are present.
1873 if test ! -d ${srcdir}/${ac_config_dir}; then
1874 continue
1875 fi
1876
1877 echo configuring in ${ac_config_dir}
1878
1879 case "${srcdir}" in
1880 .) ;;
1881 *)
1882 if test -d ./${ac_config_dir} || mkdir ./${ac_config_dir}; then :;
1883 else
1884 { echo "configure: can not create `pwd`/${ac_config_dir}" 1>&2; exit 1; }
1885 fi
1886 ;;
1887 esac
1888
1889 ac_popdir=`pwd`
1890 cd ${ac_config_dir}
1891
1892 case "${srcdir}" in
1893 .) # No --srcdir option. We are building in place.
1894 ac_sub_srcdir=${srcdir} ;;
1895 /*) # Absolute path.
1896 ac_sub_srcdir=${srcdir}/${ac_config_dir} ;;
1897 *) # Relative path.
1898 ac_sub_srcdir=../${srcdir}/${ac_config_dir} ;;
1899 esac
1900
1901 # Check for guested configure; otherwise get Cygnus style configure.
1902 if test -f ${ac_sub_srcdir}/configure; then
1903 ac_sub_configure=${ac_sub_srcdir}/configure
1904 elif test -f ${ac_sub_srcdir}/configure.in; then
1905 ac_sub_configure=${ac_configure}
1906 else
1907 echo "configure: warning: no configuration information is in ${ac_config_dir}" 1>&2
1908 ac_sub_configure=
1909 fi
1910
1911 # The recursion is here.
1912 if test -n "${ac_sub_configure}"; then
1913
1914 # Make the cache file name correct relative to the subdirectory.
1915 # A "../" for each directory in /${ac_config_dir}.
1916 ac_dots=`echo /${ac_config_dir}|sed 's%/[^/]*%../%g'`
1917 case "$cache_file" in
1918 /*) ac_sub_cache_file=$cache_file ;;
1919 *) # Relative path.
1920 ac_sub_cache_file="$ac_dots$cache_file" ;;
1921 esac
1922
1923 echo "running ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}"
1924 if ${CONFIG_SHELL-/bin/sh} ${ac_sub_configure} ${ac_sub_configure_args} --cache-file=$ac_sub_cache_file --srcdir=${ac_sub_srcdir}
1925 then :
1926 else
1927 { echo "configure: ${ac_sub_configure} failed for ${ac_config_dir}" 1>&2; exit 1; }
1928 fi
1929 fi
1930
1931 cd ${ac_popdir}
1932 done
1933 fi
1934
This page took 0.071391 seconds and 4 git commands to generate.