* Makefile.in: Regenerate dependencies.
[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 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-bfd-assembler use BFD back end for writing object files"
16 ac_help="$ac_help
17 targets alternative target configurations besides the primary"
18 ac_help="$ac_help
19 --enable-shared build shared BFD library"
20 ac_help="$ac_help
21 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
22
23 # Initialize some variables set by options.
24 # The variables have the same names as the options, with
25 # dashes changed to underlines.
26 build=NONE
27 cache_file=./config.cache
28 exec_prefix=NONE
29 host=NONE
30 no_create=
31 nonopt=NONE
32 no_recursion=
33 prefix=NONE
34 program_prefix=NONE
35 program_suffix=NONE
36 program_transform_name=s,x,x,
37 silent=
38 site=
39 srcdir=
40 target=NONE
41 verbose=
42 x_includes=NONE
43 x_libraries=NONE
44 bindir='${exec_prefix}/bin'
45 sbindir='${exec_prefix}/sbin'
46 libexecdir='${exec_prefix}/libexec'
47 datadir='${prefix}/share'
48 sysconfdir='${prefix}/etc'
49 sharedstatedir='${prefix}/com'
50 localstatedir='${prefix}/var'
51 libdir='${exec_prefix}/lib'
52 includedir='${prefix}/include'
53 oldincludedir='/usr/include'
54 infodir='${prefix}/info'
55 mandir='${prefix}/man'
56
57 # Initialize some other variables.
58 subdirs=
59 MFLAGS= MAKEFLAGS=
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
70 ac_prev=
71 continue
72 fi
73
74 case "$ac_option" in
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76 *) ac_optarg= ;;
77 esac
78
79 # Accept the important Cygnus configure options, so we can diagnose typos.
80
81 case "$ac_option" in
82
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 ac_prev=bindir ;;
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
87
88 -build | --build | --buil | --bui | --bu)
89 ac_prev=build ;;
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91 build="$ac_optarg" ;;
92
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 ac_prev=cache_file ;;
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
99
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 ac_prev=datadir ;;
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 | --da=*)
104 datadir="$ac_optarg" ;;
105
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 fi
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
114
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 fi
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 case "$ac_option" in
123 *=*) ;;
124 *) ac_optarg=yes ;;
125 esac
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
127
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
136
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
139 with_gas=yes ;;
140
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
144 cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
155 [$ac_default_prefix]
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 [same as prefix]
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
162 [PREFIX/share]
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 [PREFIX/com]
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
177 EOF
178 cat << EOF
179 Host type:
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
190 EOF
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
193 fi
194 exit 0 ;;
195
196 -host | --host | --hos | --ho)
197 ac_prev=host ;;
198 -host=* | --host=* | --hos=* | --ho=*)
199 host="$ac_optarg" ;;
200
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
207
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 ac_prev=infodir ;;
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
212
213 -libdir | --libdir | --libdi | --libd)
214 ac_prev=libdir ;;
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
217
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
224
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
233
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 ac_prev=mandir ;;
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
238
239 -nfp | --nfp | --nf)
240 # Obsolete; use --without-fp.
241 with_fp=no ;;
242
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244 | --no-cr | --no-c)
245 no_create=yes ;;
246
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249 no_recursion=yes ;;
250
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
259
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 ac_prev=prefix ;;
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
264
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
271
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
278
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
295
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
298 silent=yes ;;
299
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 ac_prev=sbindir ;;
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 | --sbi=* | --sb=*)
304 sbindir="$ac_optarg" ;;
305
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
309 | --sha | --sh)
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 | --sha=* | --sh=*)
315 sharedstatedir="$ac_optarg" ;;
316
317 -site | --site | --sit)
318 ac_prev=site ;;
319 -site=* | --site=* | --sit=*)
320 site="$ac_optarg" ;;
321
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 ac_prev=srcdir ;;
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
326
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
333
334 -target | --target | --targe | --targ | --tar | --ta | --t)
335 ac_prev=target ;;
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
338
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
340 verbose=yes ;;
341
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.12"
344 exit 0 ;;
345
346 -with-* | --with-*)
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 fi
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 case "$ac_option" in
354 *=*) ;;
355 *) ac_optarg=yes ;;
356 esac
357 eval "with_${ac_package}='$ac_optarg'" ;;
358
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 fi
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
367
368 --x)
369 # Obsolete; use --with-x.
370 with_x=yes ;;
371
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
378
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
385
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387 ;;
388
389 *)
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 fi
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 fi
396 nonopt="$ac_option"
397 ;;
398
399 esac
400 done
401
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
417 exec 6>/dev/null
418 else
419 exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433 case "$ac_arg" in
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 esac
442 done
443
444 # NLS nuisances.
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
457 echo > confdefs.h
458
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=as.h
462
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
467 ac_prog=$0
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 srcdir=$ac_confdir
471 if test ! -r $srcdir/$ac_unique_file; then
472 srcdir=..
473 fi
474 else
475 ac_srcdir_defaulted=no
476 fi
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 else
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482 fi
483 fi
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 else
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492 fi
493 fi
494 for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
497 . "$ac_site_file"
498 fi
499 done
500
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
503 . $cache_file
504 else
505 echo "creating cache $cache_file"
506 > $cache_file
507 fi
508
509 ac_ext=c
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
515
516 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
517 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
518 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
519 ac_n= ac_c='
520 ' ac_t=' '
521 else
522 ac_n=-n ac_c= ac_t=
523 fi
524 else
525 ac_n= ac_c='\c' ac_t=
526 fi
527
528 user_bfd_gas=
529 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
530 if test "${enable_bfd_assembler+set}" = set; then
531 enableval="$enable_bfd_assembler"
532 case "${enableval}" in
533 yes) need_bfd=yes user_bfd_gas=yes ;;
534 no) user_bfd_gas=no ;;
535 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
536 esac
537 fi
538 # Check whether --enable-targets or --disable-targets was given.
539 if test "${enable_targets+set}" = set; then
540 enableval="$enable_targets"
541 case "${enableval}" in
542 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
543 ;;
544 no) enable_targets= ;;
545 *) enable_targets=$enableval ;;
546 esac
547 fi
548 # Check whether --enable-shared or --disable-shared was given.
549 if test "${enable_shared+set}" = set; then
550 enableval="$enable_shared"
551 case "${enableval}" in
552 yes) shared=true shared_bfd=true shared_opcodes=true ;;
553 no) shared=false ;;
554 *bfd*opcodes*) shared=true shared_bfd=true shared_opcodes=true ;;
555 *opcodes*bfd*) shared=true shared_bfd=true shared_opcodes=true ;;
556 *bfd*) shared=true shared_bfd=true ;;
557 *opcodes*) shared=true shared_opcodes=true ;;
558 *) shared=false ;;
559 esac
560 fi
561 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
562 if test "${enable_commonbfdlib+set}" = set; then
563 enableval="$enable_commonbfdlib"
564 case "${enableval}" in
565 yes) commonbfdlib=true ;;
566 no) commonbfdlib=false ;;
567 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
568 esac
569 fi
570
571 # Generate a header file -- gets more post-processing by Makefile later.
572
573
574 ac_aux_dir=
575 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
576 if test -f $ac_dir/install-sh; then
577 ac_aux_dir=$ac_dir
578 ac_install_sh="$ac_aux_dir/install-sh -c"
579 break
580 elif test -f $ac_dir/install.sh; then
581 ac_aux_dir=$ac_dir
582 ac_install_sh="$ac_aux_dir/install.sh -c"
583 break
584 fi
585 done
586 if test -z "$ac_aux_dir"; then
587 { echo "configure: error: can not find install-sh or install.sh in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/.." 1>&2; exit 1; }
588 fi
589 ac_config_guess=$ac_aux_dir/config.guess
590 ac_config_sub=$ac_aux_dir/config.sub
591 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
592
593
594 # Do some error checking and defaulting for the host and target type.
595 # The inputs are:
596 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
597 #
598 # The rules are:
599 # 1. You are not allowed to specify --host, --target, and nonopt at the
600 # same time.
601 # 2. Host defaults to nonopt.
602 # 3. If nonopt is not specified, then host defaults to the current host,
603 # as determined by config.guess.
604 # 4. Target and build default to nonopt.
605 # 5. If nonopt is not specified, then target and build default to host.
606
607 # The aliases save the names the user supplied, while $host etc.
608 # will get canonicalized.
609 case $host---$target---$nonopt in
610 NONE---*---* | *---NONE---* | *---*---NONE) ;;
611 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
612 esac
613
614
615 # Make sure we can run config.sub.
616 if $ac_config_sub sun4 >/dev/null 2>&1; then :
617 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 fi
619
620 echo $ac_n "checking host system type""... $ac_c" 1>&6
621 echo "configure:622: checking host system type" >&5
622
623 host_alias=$host
624 case "$host_alias" in
625 NONE)
626 case $nonopt in
627 NONE)
628 if host_alias=`$ac_config_guess`; then :
629 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
630 fi ;;
631 *) host_alias=$nonopt ;;
632 esac ;;
633 esac
634
635 host=`$ac_config_sub $host_alias`
636 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
637 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
638 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
639 echo "$ac_t""$host" 1>&6
640
641 echo $ac_n "checking target system type""... $ac_c" 1>&6
642 echo "configure:643: checking target system type" >&5
643
644 target_alias=$target
645 case "$target_alias" in
646 NONE)
647 case $nonopt in
648 NONE) target_alias=$host_alias ;;
649 *) target_alias=$nonopt ;;
650 esac ;;
651 esac
652
653 target=`$ac_config_sub $target_alias`
654 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
655 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
656 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
657 echo "$ac_t""$target" 1>&6
658
659 echo $ac_n "checking build system type""... $ac_c" 1>&6
660 echo "configure:661: checking build system type" >&5
661
662 build_alias=$build
663 case "$build_alias" in
664 NONE)
665 case $nonopt in
666 NONE) build_alias=$host_alias ;;
667 *) build_alias=$nonopt ;;
668 esac ;;
669 esac
670
671 build=`$ac_config_sub $build_alias`
672 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
673 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
674 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
675 echo "$ac_t""$build" 1>&6
676
677 test "$host_alias" != "$target_alias" &&
678 test "$program_prefix$program_suffix$program_transform_name" = \
679 NONENONEs,x,x, &&
680 program_prefix=${target_alias}-
681
682 if test "$program_transform_name" = s,x,x,; then
683 program_transform_name=
684 else
685 # Double any \ or $. echo might interpret backslashes.
686 cat <<\EOF_SED > conftestsed
687 s,\\,\\\\,g; s,\$,$$,g
688 EOF_SED
689 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
690 rm -f conftestsed
691 fi
692 test "$program_prefix" != NONE &&
693 program_transform_name="s,^,${program_prefix},; $program_transform_name"
694 # Use a double $ so make ignores it.
695 test "$program_suffix" != NONE &&
696 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
697
698 # sed with no file args requires a program.
699 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
700
701
702 te_file=generic
703
704 canon_targets=""
705 if test -n "$enable_targets" ; then
706 for t in `echo $enable_targets | sed 's/,/ /g'`; do
707 result=`$ac_config_sub $t 2>/dev/null`
708 if test -n "$result" ; then
709 canon_targets="$canon_targets $result"
710 # else
711 # # Permit "all", etc. We don't support it yet though.
712 # canon_targets="$canon_targets $t"
713 fi
714 done
715 _gas_uniq_list="$canon_targets"
716 _gas_uniq_newlist=""
717 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
718 case $_gas_uniq_i in
719 _gas_uniq_dummy) ;;
720 *) case " $_gas_uniq_newlist " in
721 *" $_gas_uniq_i "*) ;;
722 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
723 esac ;;
724 esac
725 done
726 canon_targets=$_gas_uniq_newlist
727
728 fi
729
730 emulations=""
731
732 for this_target in $target $canon_targets ; do
733
734 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
735
736 # check for architecture variants
737 case ${cpu} in
738 armeb) cpu_type=arm endian=big ;;
739 arm*) cpu_type=arm endian=little ;;
740 hppa*) cpu_type=hppa ;;
741 i[456]86) cpu_type=i386 ;;
742 m680[012346]0) cpu_type=m68k ;;
743 m68008) cpu_type=m68k ;;
744 m683??) cpu_type=m68k ;;
745 m8*) cpu_type=m88k ;;
746 mips*el) cpu_type=mips endian=little ;;
747 mips*) cpu_type=mips endian=big ;;
748 powerpcle*) cpu_type=ppc endian=little ;;
749 powerpc*) cpu_type=ppc endian=big ;;
750 rs6000*) cpu_type=ppc ;;
751 sparc64) cpu_type=sparc want_sparc_v9=true ;;
752 sparc*) cpu_type=sparc ;;
753 *) cpu_type=${cpu} ;;
754 esac
755
756 if test ${this_target} = $target ; then
757 target_cpu_type=${cpu_type}
758 elif test ${target_cpu_type} != ${cpu_type} ; then
759 continue
760 fi
761
762 targ=${cpu_type}
763 generic_target=${cpu_type}-$vendor-$os
764 dev=no
765 bfd_gas=no
766 em=generic
767
768 # assign object format
769 case ${generic_target} in
770 a29k-*-coff) fmt=coff targ=ebmon29k ;;
771 a29k-amd-udi) fmt=coff targ=ebmon29k ;;
772 a29k-amd-ebmon) fmt=coff targ=ebmon29k ;;
773 a29k-nyu-sym1) fmt=coff targ=ebmon29k ;;
774 a29k-*-vxworks*) fmt=coff ;;
775
776 alpha-*-*vms*) fmt=evax ;;
777 alpha-*-netware*) fmt=ecoff ;;
778 alpha-*-osf*) fmt=ecoff ;;
779 alpha-*-linuxecoff*) fmt=ecoff ;;
780 alpha-*-linux*) fmt=elf em=linux ;;
781
782 # start-sanitize-arc
783 arc-*-elf*) fmt=elf bfd_gas=yes ;;
784 # end-sanitize-arc
785
786 arm-*-riscix*) fmt=aout targ=arm-lit em=riscix ;;
787 arm-*-aout) fmt=aout
788 case "$endian" in
789 big) targ=arm-big ;;
790 *) targ=arm-lit ;;
791 esac
792 ;;
793 arm-*-coff) fmt=coff ;;
794 arm-*-riscix*) fmt=aout ;;
795 arm-*-pe) fmt=coff targ=armcoff em=pe ;;
796
797 d10v-*-*) fmt=elf bfd_gas=yes ;;
798 # start-sanitize-d30v
799 d30v-*-*) fmt=elf bfd_gas=yes ;;
800 # end-sanitize-d30v
801
802 hppa-*-*elf*) fmt=elf em=hppa ;;
803 hppa-*-lites*) fmt=elf em=hppa ;;
804 hppa-*-osf*) fmt=som em=hppa ;;
805 hppa-*-rtems*) fmt=elf em=hppa ;;
806 hppa-*-hpux*) fmt=som em=hppa ;;
807 hppa-*-bsd*) fmt=som em=hppa ;;
808 hppa-*-hiux*) fmt=som em=hppa ;;
809
810 h8300-*-coff) fmt=coff ;;
811
812 i386-ibm-aix*) fmt=coff targ=i386coff
813 em=i386aix ;;
814 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
815 i386-*-bsd*) fmt=aout em=386bsd ;;
816 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
817 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
818 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
819 i386-*-linux*coff*) fmt=coff em=linux
820 targ=i386coff ;;
821 i386-*-linux*) fmt=elf em=linux ;;
822 i386-*-lynxos*) fmt=coff targ=i386coff
823 em=lynx ;;
824 i386-*-sysv4* | i386-*-solaris* | i386-*-elf | i386-*-freebsdelf*)
825 fmt=elf ;;
826 i386-*-sco*elf*) fmt=elf targ=sco5 ;;
827 i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
828 fmt=coff targ=i386coff ;;
829 i386-*-vsta) fmt=aout ;;
830 i386-*-go32) fmt=coff targ=i386coff ;;
831 i386-*-rtems*) fmt=coff targ=i386coff ;;
832 i386-*-gnu*) fmt=elf ;;
833 i386-*-mach*)
834 fmt=aout em=mach bfd_gas=yes ;;
835 i386-*-msdos*) fmt=aout ;;
836 i386-*-moss*) fmt=elf ;;
837 i386-*-pe) fmt=coff targ=i386coff em=pe ;;
838 i386-*-cygwin32) fmt=coff targ=i386coff em=pe ;;
839 i386-*-*nt) fmt=coff targ=i386coff em=pe ;;
840 i960-*-bout) fmt=bout ;;
841 i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;;
842 i960-*-rtems*) fmt=coff em=ic960 targ=ic960coff ;;
843 i960-*-nindy*) fmt=bout ;;
844 i960-*-vxworks4*) fmt=bout ;;
845 i960-*-vxworks5.0) fmt=bout ;;
846 i960-*-vxworks5.*) fmt=coff em=ic960 targ=ic960coff ;;
847 i960-*-vxworks*) fmt=bout ;;
848
849 m32r-*-*) fmt=elf bfd_gas=yes ;;
850
851 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
852 fmt=aout em=sun3 ;;
853 m68k-motorola-sysv*) fmt=coff targ=m68kcoff em=delta ;;
854 m68k-bull-sysv3*) fmt=coff targ=m68kcoff em=dpx2 ;;
855 m68k-apollo-*) fmt=coff targ=apollo em=apollo ;;
856 m68k-*-sysv4*) # must be before -sysv*
857 fmt=elf em=svr4 ;;
858 m68k-*-elf*) fmt=elf ;;
859 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
860 fmt=coff targ=m68kcoff ;;
861 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
862 m68k-*-linux*aout*) fmt=aout em=linux ;;
863 m68k-*-linux*) fmt=elf em=linux ;;
864 m68k-*-lynxos*) fmt=coff targ=m68kcoff
865 em=lynx ;;
866 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
867 m68k-apple-aux*) fmt=coff targ=m68kcoff em=aux ;;
868 m68k-*-psos*) fmt=elf em=psos;;
869
870 m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;;
871 m88k-*-coff*) fmt=coff targ=m88kcoff ;;
872
873 # don't change em like *-*-bsd does
874 mips-dec-netbsd*) fmt=elf targ=mips-lit endian=little ;;
875 mips-dec-bsd*) fmt=aout targ=mips-lit ;;
876 mips-sony-bsd*) fmt=ecoff targ=mips-big ;;
877 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
878 mips-*-ultrix*) fmt=ecoff targ=mips-lit endian=little ;;
879 mips-*-osf*) fmt=ecoff targ=mips-lit endian=little ;;
880 mips-*-ecoff*) fmt=ecoff
881 case "$endian" in
882 big) targ=mips-big ;;
883 *) targ=mips-lit ;;
884 esac
885 ;;
886 mips-*-ecoff*) fmt=ecoff targ=mips-big ;;
887 mips-*-irix6*) fmt=elf targ=mips-big ;;
888 mips-*-irix5*) fmt=elf targ=mips-big ;;
889 mips-*-irix*) fmt=ecoff targ=mips-big ;;
890 mips-*-lnews*) fmt=ecoff targ=mips-lit em=lnews ;;
891 mips-*-riscos*) fmt=ecoff targ=mips-big ;;
892 mips-*-sysv*) fmt=ecoff targ=mips-big ;;
893 mips-*-elf* | mips-*-rtems* | mips-*-linux* | mips-*-gnu*)
894 fmt=elf
895 case "$endian" in
896 big) targ=mips-big ;;
897 *) targ=mips-lit ;;
898 esac
899 ;;
900 mn10200-*-*) fmt=elf bfd_gas=yes ;;
901 mn10300-*-*) fmt=elf bfd_gas=yes ;;
902 ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*)
903 fmt=coff em=pe
904 case "$endian" in
905 big) targ=ppc-big ;;
906 *) targ=ppc-lit ;;
907 esac
908 ;;
909 ppc-*-aix*) fmt=coff ;;
910 ppc-*-beos*) fmt=coff ;;
911 ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
912 fmt=elf
913 case "$endian" in
914 big) targ=ppc-big ;;
915 *) targ=ppc-lit ;;
916 esac
917 ;;
918 ppc-*-linux*) fmt=elf
919 case "$endian" in
920 big) targ=ppc-big ;;
921 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
922 esac
923 ;;
924 ppc-*-solaris*) fmt=elf
925 case "$endian" in
926 big) { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } ;;
927 *) targ=ppc-sol ;;
928 esac
929 ;;
930 ppc-*-rtems*)
931 fmt=elf
932 case "$endian" in
933 big) targ=ppc-big ;;
934 *) targ=ppc-lit ;;
935 esac
936 ;;
937 ppc-*-macos* | ppc-*-mpw*)
938 fmt=coff em=macos ;;
939 ppc-*-netware*) fmt=elf em=ppcnw ;;
940
941 sh-*-elf*) fmt=elf ;;
942 sh-*-coff*) fmt=coff ;;
943
944 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
945 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
946
947 sparc-*-rtems*) fmt=aout ;;
948 sparc-*-sunos4*) fmt=aout em=sun3 ;;
949 sparc-*-aout | sparc*-*-vxworks*)
950 fmt=aout em=sparcaout ;;
951 sparc-*-coff) fmt=coff ;;
952 sparc-*-linux*aout*) fmt=aout em=linux ;;
953 sparc-*-linux*) fmt=elf em=linux ;;
954 sparc-*-lynxos*) fmt=coff em=lynx ;;
955 sparc-fujitsu-none) fmt=aout ;;
956 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
957 fmt=elf ;;
958 sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
959
960 # start-sanitize-tic80
961 tic80-*-*) fmt=coff targ=tic80coff;;
962 # end-sanitize-tic80
963 v850-*-*) fmt=elf bfd_gas=yes ;;
964
965 vax-*-bsd* | vax-*-ultrix*)
966 fmt=aout ;;
967 vax-*-vms) fmt=vms ;;
968
969 z8k-*-coff | z8k-*-sim)
970 fmt=coff ;;
971
972 w65-*-*) fmt=coff ;;
973
974 *-*-aout | *-*-scout)
975 fmt=aout ;;
976 *-*-nindy*)
977 fmt=bout ;;
978 *-*-bsd*)
979 fmt=aout em=sun3 ;;
980 *-*-generic) fmt=generic ;;
981 *-*-xray | *-*-hms) fmt=coff ;;
982 *-*-sim) fmt=coff ;;
983 *-*-elf | *-*-sysv4* | *-*-solaris*)
984 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
985 fmt=elf dev=yes ;;
986 *-*-vxworks) fmt=aout ;;
987 *-*-netware) fmt=elf ;;
988 esac
989
990 case ${cpu_type}-${fmt} in
991 alpha-*) bfd_gas=yes ;;
992 arm-*) bfd_gas=yes ;;
993 # not yet
994 # i386-aout) bfd_gas=preferred ;;
995 mips-*) bfd_gas=yes ;;
996 ns32k-*) bfd_gas=yes ;;
997 ppc-*) bfd_gas=yes ;;
998 sparc-*) bfd_gas=yes ;;
999 *-elf) bfd_gas=yes ;;
1000 *-ecoff) bfd_gas=yes ;;
1001 *-som) bfd_gas=yes ;;
1002 *) ;;
1003 esac
1004
1005 # Other random stuff.
1006
1007 # do we need the opcodes library?
1008 case ${cpu_type} in
1009 vax | i386)
1010 ;;
1011 *)
1012 need_opcodes=yes
1013 if test "${shared_opcodes}" = "true"; then
1014 # A shared libopcodes must be linked against libbfd.
1015 need_bfd=yes
1016 fi
1017 ;;
1018 esac
1019
1020 test -n "$want_sparc_v9" && cat >> confdefs.h <<\EOF
1021 #define SPARC_V9 1
1022 EOF
1023
1024
1025 case ${cpu}-${vendor}-${os} in
1026 sparc64-*-elf*) cat >> confdefs.h <<\EOF
1027 #define SPARC_ARCH64 1
1028 EOF
1029 ;;
1030 esac
1031
1032 case ${cpu_type} in
1033 m32r)
1034 case ${extra_objects} in
1035 *cgen.o*) ;;
1036 *) extra_objects="$extra_objects cgen.o"
1037 cat >> confdefs.h <<\EOF
1038 #define USING_CGEN 1
1039 EOF
1040
1041 ;;
1042 esac
1043 ;;
1044
1045 m68k)
1046 case ${extra_objects} in
1047 *m68k-parse.o*) ;;
1048 *) extra_objects="$extra_objects m68k-parse.o" ;;
1049 esac
1050 ;;
1051
1052 mips)
1053 echo ${extra_objects} | grep -s "itbl-parse.o"
1054 if test $? -ne 0 ; then
1055 extra_objects="$extra_objects itbl-parse.o"
1056 fi
1057
1058 echo ${extra_objects} | grep -s "itbl-lex.o"
1059 if test $? -ne 0 ; then
1060 extra_objects="$extra_objects itbl-lex.o"
1061 fi
1062
1063 echo ${extra_objects} | grep -s "itbl-ops.o"
1064 if test $? -ne 0 ; then
1065 extra_objects="$extra_objects itbl-ops.o"
1066 fi
1067 ;;
1068
1069 *)
1070 ;;
1071 esac
1072
1073 # See if we really can support this configuration with the emulation code.
1074
1075 if test $this_target = $target ; then
1076 primary_bfd_gas=$bfd_gas
1077 obj_format=$fmt
1078 gas_target=$targ
1079 te_file=$em
1080
1081 if test $bfd_gas = no ; then
1082 # Can't support other configurations this way.
1083 break
1084 fi
1085 elif test $bfd_gas = no ; then
1086 # Can't support this configuration.
1087 break
1088 fi
1089
1090 # From target name and format, produce a list of supported emulations.
1091
1092 case ${generic_target}-${fmt} in
1093 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1094 mips-*-linux*-*) case "$endian" in
1095 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1096 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1097 esac ;;
1098 mips-*-lnews*-ecoff) ;;
1099 mips-*-*-ecoff) case "$endian" in
1100 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
1101 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
1102 esac ;;
1103 mips-*-*-elf) case "$endian" in
1104 big) emulation="mipsbelf mipslelf mipself" ;;
1105 *) emulation="mipslelf mipsbelf mipself" ;;
1106 # Uncommenting the next line will turn on support for i386 COFF
1107 # in any i386 ELF configuration. This probably doesn't work
1108 # correctly.
1109 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1110 esac ;;
1111 esac
1112
1113 emulations="$emulations $emulation"
1114
1115 done
1116
1117 # Assign floating point type. Most processors with FP support
1118 # IEEE FP. On those that don't support FP at all, usually IEEE
1119 # is emulated.
1120 case ${target_cpu} in
1121 vax | tahoe ) atof=${target_cpu} ;;
1122 *) atof=ieee ;;
1123 esac
1124
1125 case "${obj_format}" in
1126 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1127 esac
1128
1129
1130 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
1131 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1132 fi
1133
1134 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
1135 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1136 fi
1137
1138 # and target makefile frag
1139
1140 target_frag=${srcdir}/config/${gas_target}.mt
1141 if test ! -r ${target_frag}; then
1142 target_frag=/dev/null # ick! but subst_file can't be conditionalized
1143 fi
1144
1145
1146 case ${user_bfd_gas}-${primary_bfd_gas} in
1147 yes-yes | no-no)
1148 # We didn't override user's choice.
1149 ;;
1150 no-yes)
1151 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1152 ;;
1153 no-preferred)
1154 primary_bfd_gas=no
1155 ;;
1156 *-preferred)
1157 primary_bfd_gas=yes
1158 ;;
1159 yes-*)
1160 primary_bfd_gas=yes
1161 ;;
1162 -*)
1163 # User specified nothing.
1164 ;;
1165 esac
1166
1167 # Some COFF configurations want these random other flags set.
1168 case ${obj_format} in
1169 coff)
1170 case ${target_cpu_type} in
1171 i386) cat >> confdefs.h <<\EOF
1172 #define I386COFF 1
1173 EOF
1174 ;;
1175 m68k) cat >> confdefs.h <<\EOF
1176 #define M68KCOFF 1
1177 EOF
1178 ;;
1179 m88k) cat >> confdefs.h <<\EOF
1180 #define M88KCOFF 1
1181 EOF
1182 ;;
1183 esac
1184 ;;
1185 esac
1186
1187 # Getting this done right is going to be a bitch. Each configuration specified
1188 # with --enable-targets=... should be checked for environment, format, cpu, and
1189 # bfd_gas setting.
1190 #
1191 # For each configuration, the necessary object file support code must be linked
1192 # in. This might be only one, it might be up to four. The necessary emulation
1193 # code needs to be provided, too.
1194 #
1195 # And then there's "--enable-targets=all"....
1196 #
1197 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1198
1199 formats="${obj_format}"
1200 emfiles=""
1201 EMULATIONS=""
1202 _gas_uniq_list="$emulations"
1203 _gas_uniq_newlist=""
1204 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1205 case $_gas_uniq_i in
1206 _gas_uniq_dummy) ;;
1207 *) case " $_gas_uniq_newlist " in
1208 *" $_gas_uniq_i "*) ;;
1209 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1210 esac ;;
1211 esac
1212 done
1213 emulations=$_gas_uniq_newlist
1214
1215 for em in . $emulations ; do
1216 case $em in
1217 .) continue ;;
1218 mipsbelf | mipslelf)
1219 fmt=elf file=mipself ;;
1220 mipsbecoff | mipslecoff)
1221 fmt=ecoff file=mipsecoff ;;
1222 i386coff)
1223 fmt=coff file=i386coff ;;
1224 i386elf)
1225 fmt=elf file=i386elf ;;
1226 esac
1227 formats="$formats $fmt"
1228 emfiles="$emfiles e-$file.o"
1229 EMULATIONS="$EMULATIONS &$em,"
1230 done
1231 _gas_uniq_list="$formats"
1232 _gas_uniq_newlist=""
1233 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1234 case $_gas_uniq_i in
1235 _gas_uniq_dummy) ;;
1236 *) case " $_gas_uniq_newlist " in
1237 *" $_gas_uniq_i "*) ;;
1238 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1239 esac ;;
1240 esac
1241 done
1242 formats=$_gas_uniq_newlist
1243
1244 _gas_uniq_list="$emfiles"
1245 _gas_uniq_newlist=""
1246 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
1247 case $_gas_uniq_i in
1248 _gas_uniq_dummy) ;;
1249 *) case " $_gas_uniq_newlist " in
1250 *" $_gas_uniq_i "*) ;;
1251 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
1252 esac ;;
1253 esac
1254 done
1255 emfiles=$_gas_uniq_newlist
1256
1257 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1258 for fmt in $formats ; do
1259 case $fmt in
1260 aout) cat >> confdefs.h <<\EOF
1261 #define OBJ_MAYBE_AOUT 1
1262 EOF
1263 ;;
1264 bout) cat >> confdefs.h <<\EOF
1265 #define OBJ_MAYBE_BOUT 1
1266 EOF
1267 ;;
1268 coff) cat >> confdefs.h <<\EOF
1269 #define OBJ_MAYBE_COFF 1
1270 EOF
1271 ;;
1272 ecoff) cat >> confdefs.h <<\EOF
1273 #define OBJ_MAYBE_ECOFF 1
1274 EOF
1275 ;;
1276 elf) cat >> confdefs.h <<\EOF
1277 #define OBJ_MAYBE_ELF 1
1278 EOF
1279 ;;
1280 generic) cat >> confdefs.h <<\EOF
1281 #define OBJ_MAYBE_GENERIC 1
1282 EOF
1283 ;;
1284 hp300) cat >> confdefs.h <<\EOF
1285 #define OBJ_MAYBE_HP300 1
1286 EOF
1287 ;;
1288 ieee) cat >> confdefs.h <<\EOF
1289 #define OBJ_MAYBE_IEEE 1
1290 EOF
1291 ;;
1292 som) cat >> confdefs.h <<\EOF
1293 #define OBJ_MAYBE_SOM 1
1294 EOF
1295 ;;
1296 vms) cat >> confdefs.h <<\EOF
1297 #define OBJ_MAYBE_VMS 1
1298 EOF
1299 ;;
1300 esac
1301 extra_objects="$extra_objects obj-$fmt.o"
1302 done
1303 obj_format=multi
1304 fi
1305 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1306 te_file=multi
1307 extra_objects="$extra_objects $emfiles"
1308 DEFAULT_EMULATION=`set . $emulations ; echo $2`
1309 cat >> confdefs.h <<\EOF
1310 #define USE_EMULATIONS 1
1311 EOF
1312
1313 fi
1314
1315 cat >> confdefs.h <<EOF
1316 #define EMULATIONS $EMULATIONS
1317 EOF
1318
1319 cat >> confdefs.h <<EOF
1320 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1321 EOF
1322
1323
1324 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1325 yes-*-coff) need_bfd=yes ;;
1326 no-*-coff) need_bfd=yes
1327 cat >> confdefs.h <<\EOF
1328 #define MANY_SEGMENTS 1
1329 EOF
1330 ;;
1331 esac
1332
1333 reject_dev_configs=yes
1334
1335 case ${reject_dev_configs}-${dev} in
1336 yes-yes) # Oops.
1337 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1338 ;;
1339 esac
1340
1341
1342
1343
1344
1345
1346 case "${primary_bfd_gas}" in
1347 yes) cat >> confdefs.h <<\EOF
1348 #define BFD_ASSEMBLER 1
1349 EOF
1350
1351 need_bfd=yes ;;
1352 esac
1353
1354 # do we need the opcodes library?
1355 case "${need_opcodes}" in
1356 yes)
1357 OPCODES_DEP=../opcodes/libopcodes.a
1358 OPCODES_LIB='-L../opcodes -lopcodes'
1359
1360 # We need to handle some special cases for shared libraries.
1361 case "${host}" in
1362 *-*-sunos*)
1363 # On SunOS, we must link against the name we are going to install,
1364 # not -lbfd, since SunOS does not support SONAME.
1365 if test "${shared_opcodes}" = "true"; then
1366 OPCODES_LIB='-L../opcodes -l`echo opcodes | sed '"'"'$(program_transform_name)'"'"'`'
1367 fi
1368 ;;
1369 alpha*-*-osf*)
1370 # On Alpha OSF/1, the native linker searches all the -L
1371 # directories for any LIB.so files, and only then searches for any
1372 # LIB.a files. That means that if there is an installed
1373 # libbfd.so, but this build is not done with --enable-shared, the
1374 # link will wind up being against the install libbfd.so rather
1375 # than the newly built libbfd. To avoid this, we must explicitly
1376 # link against libbfd.a when --enable-shared is not used.
1377 if test "${shared_opcodes}" != "true"; then
1378 OPCODES_LIB='../opcodes/libopcodes.a'
1379 fi
1380 ;;
1381 esac
1382 ;;
1383 esac
1384
1385 case "${need_bfd}" in
1386 yes)
1387 BFDDEP=../bfd/libbfd.a
1388 BFDLIB='-L../bfd -lbfd'
1389 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
1390
1391 # We need to handle some special cases for shared libraries
1392 case "${host}" in
1393 *-*-sunos*)
1394 # On SunOS, we must link against the name we are going to install,
1395 # not -lbfd, since SunOS does not support SONAME.
1396 if test "${shared_bfd}" = "true"; then
1397 BFDLIB='-L../bfd -l`echo bfd | sed '"'"'$(program_transform_name)'"'"'`'
1398 fi
1399 ;;
1400 alpha*-*-osf*)
1401 # On Alpha OSF/1, the native linker searches all the -L
1402 # directories for any LIB.so files, and only then searches for any
1403 # LIB.a files. That means that if there is an installed
1404 # libbfd.so, but this build is not done with --enable-shared, the
1405 # link will wind up being against the install libbfd.so rather
1406 # than the newly built libbfd. To avoid this, we must explicitly
1407 # link against libbfd.a when --enable-shared is not used.
1408 if test "${shared_bfd}" != "true"; then
1409 BFDLIB='../bfd/libbfd.a'
1410 fi
1411 ;;
1412 esac
1413
1414 if test "${commonbfdlib}" = "true"; then
1415 # when a shared libbfd is built with --enable-commonbfdlib,
1416 # all of libopcodes is available in libbfd.so
1417 OPCODES_LIB=
1418 fi
1419 ;;
1420 esac
1421
1422
1423
1424
1425
1426
1427
1428
1429 cat >> confdefs.h <<EOF
1430 #define TARGET_ALIAS "${target_alias}"
1431 EOF
1432
1433 cat >> confdefs.h <<EOF
1434 #define TARGET_CANONICAL "${target}"
1435 EOF
1436
1437 cat >> confdefs.h <<EOF
1438 #define TARGET_CPU "${target_cpu}"
1439 EOF
1440
1441 cat >> confdefs.h <<EOF
1442 #define TARGET_VENDOR "${target_vendor}"
1443 EOF
1444
1445 cat >> confdefs.h <<EOF
1446 #define TARGET_OS "${target_os}"
1447 EOF
1448
1449
1450 # Extract the first word of "gcc", so it can be a program name with args.
1451 set dummy gcc; ac_word=$2
1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1453 echo "configure:1454: checking for $ac_word" >&5
1454 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1455 echo $ac_n "(cached) $ac_c" 1>&6
1456 else
1457 if test -n "$CC"; then
1458 ac_cv_prog_CC="$CC" # Let the user override the test.
1459 else
1460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1461 for ac_dir in $PATH; do
1462 test -z "$ac_dir" && ac_dir=.
1463 if test -f $ac_dir/$ac_word; then
1464 ac_cv_prog_CC="gcc"
1465 break
1466 fi
1467 done
1468 IFS="$ac_save_ifs"
1469 fi
1470 fi
1471 CC="$ac_cv_prog_CC"
1472 if test -n "$CC"; then
1473 echo "$ac_t""$CC" 1>&6
1474 else
1475 echo "$ac_t""no" 1>&6
1476 fi
1477
1478 if test -z "$CC"; then
1479 # Extract the first word of "cc", so it can be a program name with args.
1480 set dummy cc; ac_word=$2
1481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1482 echo "configure:1483: checking for $ac_word" >&5
1483 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 else
1489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1490 ac_prog_rejected=no
1491 for ac_dir in $PATH; do
1492 test -z "$ac_dir" && ac_dir=.
1493 if test -f $ac_dir/$ac_word; then
1494 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1495 ac_prog_rejected=yes
1496 continue
1497 fi
1498 ac_cv_prog_CC="cc"
1499 break
1500 fi
1501 done
1502 IFS="$ac_save_ifs"
1503 if test $ac_prog_rejected = yes; then
1504 # We found a bogon in the path, so make sure we never use it.
1505 set dummy $ac_cv_prog_CC
1506 shift
1507 if test $# -gt 0; then
1508 # We chose a different compiler from the bogus one.
1509 # However, it has the same basename, so the bogon will be chosen
1510 # first if we set CC to just the basename; use the full file name.
1511 shift
1512 set dummy "$ac_dir/$ac_word" "$@"
1513 shift
1514 ac_cv_prog_CC="$@"
1515 fi
1516 fi
1517 fi
1518 fi
1519 CC="$ac_cv_prog_CC"
1520 if test -n "$CC"; then
1521 echo "$ac_t""$CC" 1>&6
1522 else
1523 echo "$ac_t""no" 1>&6
1524 fi
1525
1526 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1527 fi
1528
1529 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1530 echo "configure:1531: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1531
1532 ac_ext=c
1533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1536 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1537 cross_compiling=$ac_cv_prog_cc_cross
1538
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1542 main(){return(0);}
1543 EOF
1544 if { (eval echo configure:1545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1545 ac_cv_prog_cc_works=yes
1546 # If we can't run a trivial program, we are probably using a cross compiler.
1547 if (./conftest; exit) 2>/dev/null; then
1548 ac_cv_prog_cc_cross=no
1549 else
1550 ac_cv_prog_cc_cross=yes
1551 fi
1552 else
1553 echo "configure: failed program was:" >&5
1554 cat conftest.$ac_ext >&5
1555 ac_cv_prog_cc_works=no
1556 fi
1557 rm -fr conftest*
1558
1559 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1560 if test $ac_cv_prog_cc_works = no; then
1561 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1562 fi
1563 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1564 echo "configure:1565: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1565 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1566 cross_compiling=$ac_cv_prog_cc_cross
1567
1568 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether we are using GNU C" >&5
1570 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1572 else
1573 cat > conftest.c <<EOF
1574 #ifdef __GNUC__
1575 yes;
1576 #endif
1577 EOF
1578 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1579 ac_cv_prog_gcc=yes
1580 else
1581 ac_cv_prog_gcc=no
1582 fi
1583 fi
1584
1585 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1586
1587 if test $ac_cv_prog_gcc = yes; then
1588 GCC=yes
1589 ac_test_CFLAGS="${CFLAGS+set}"
1590 ac_save_CFLAGS="$CFLAGS"
1591 CFLAGS=
1592 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1593 echo "configure:1594: checking whether ${CC-cc} accepts -g" >&5
1594 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1596 else
1597 echo 'void f(){}' > conftest.c
1598 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1599 ac_cv_prog_cc_g=yes
1600 else
1601 ac_cv_prog_cc_g=no
1602 fi
1603 rm -f conftest*
1604
1605 fi
1606
1607 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1608 if test "$ac_test_CFLAGS" = set; then
1609 CFLAGS="$ac_save_CFLAGS"
1610 elif test $ac_cv_prog_cc_g = yes; then
1611 CFLAGS="-g -O2"
1612 else
1613 CFLAGS="-O2"
1614 fi
1615 else
1616 GCC=
1617 test "${CFLAGS+set}" = set || CFLAGS="-g"
1618 fi
1619
1620 # Find a good install program. We prefer a C program (faster),
1621 # so one script is as good as another. But avoid the broken or
1622 # incompatible versions:
1623 # SysV /etc/install, /usr/sbin/install
1624 # SunOS /usr/etc/install
1625 # IRIX /sbin/install
1626 # AIX /bin/install
1627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1629 # ./install, which can be erroneously created by make from ./install.sh.
1630 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1631 echo "configure:1632: checking for a BSD compatible install" >&5
1632 if test -z "$INSTALL"; then
1633 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1634 echo $ac_n "(cached) $ac_c" 1>&6
1635 else
1636 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1637 for ac_dir in $PATH; do
1638 # Account for people who put trailing slashes in PATH elements.
1639 case "$ac_dir/" in
1640 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1641 *)
1642 # OSF1 and SCO ODT 3.0 have their own names for install.
1643 for ac_prog in ginstall installbsd scoinst install; do
1644 if test -f $ac_dir/$ac_prog; then
1645 if test $ac_prog = install &&
1646 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1647 # AIX install. It has an incompatible calling convention.
1648 # OSF/1 installbsd also uses dspmsg, but is usable.
1649 :
1650 else
1651 ac_cv_path_install="$ac_dir/$ac_prog -c"
1652 break 2
1653 fi
1654 fi
1655 done
1656 ;;
1657 esac
1658 done
1659 IFS="$ac_save_IFS"
1660
1661 fi
1662 if test "${ac_cv_path_install+set}" = set; then
1663 INSTALL="$ac_cv_path_install"
1664 else
1665 # As a last resort, use the slow shell script. We don't cache a
1666 # path for INSTALL within a source directory, because that will
1667 # break other packages using the cache if that directory is
1668 # removed, or if the path is relative.
1669 INSTALL="$ac_install_sh"
1670 fi
1671 fi
1672 echo "$ac_t""$INSTALL" 1>&6
1673
1674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1675 # It thinks the first close brace ends the variable substitution.
1676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1677
1678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1679
1680
1681 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1682 echo "configure:1683: checking how to run the C preprocessor" >&5
1683 # On Suns, sometimes $CPP names a directory.
1684 if test -n "$CPP" && test -d "$CPP"; then
1685 CPP=
1686 fi
1687 if test -z "$CPP"; then
1688 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 # This must be in double quotes, not single quotes, because CPP may get
1692 # substituted into the Makefile and "${CC-cc}" will confuse make.
1693 CPP="${CC-cc} -E"
1694 # On the NeXT, cc -E runs the code through the compiler's parser,
1695 # not just through cpp.
1696 cat > conftest.$ac_ext <<EOF
1697 #line 1698 "configure"
1698 #include "confdefs.h"
1699 #include <assert.h>
1700 Syntax Error
1701 EOF
1702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1703 { (eval echo configure:1704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1704 ac_err=`grep -v '^ *+' conftest.out`
1705 if test -z "$ac_err"; then
1706 :
1707 else
1708 echo "$ac_err" >&5
1709 echo "configure: failed program was:" >&5
1710 cat conftest.$ac_ext >&5
1711 rm -rf conftest*
1712 CPP="${CC-cc} -E -traditional-cpp"
1713 cat > conftest.$ac_ext <<EOF
1714 #line 1715 "configure"
1715 #include "confdefs.h"
1716 #include <assert.h>
1717 Syntax Error
1718 EOF
1719 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1720 { (eval echo configure:1721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1721 ac_err=`grep -v '^ *+' conftest.out`
1722 if test -z "$ac_err"; then
1723 :
1724 else
1725 echo "$ac_err" >&5
1726 echo "configure: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1728 rm -rf conftest*
1729 CPP=/lib/cpp
1730 fi
1731 rm -f conftest*
1732 fi
1733 rm -f conftest*
1734 ac_cv_prog_CPP="$CPP"
1735 fi
1736 CPP="$ac_cv_prog_CPP"
1737 else
1738 ac_cv_prog_CPP="$CPP"
1739 fi
1740 echo "$ac_t""$CPP" 1>&6
1741
1742 for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
1743 do
1744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_hdr" >&5
1747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1749 else
1750 cat > conftest.$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 #include <$ac_hdr>
1754 EOF
1755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1756 { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1757 ac_err=`grep -v '^ *+' conftest.out`
1758 if test -z "$ac_err"; then
1759 rm -rf conftest*
1760 eval "ac_cv_header_$ac_safe=yes"
1761 else
1762 echo "$ac_err" >&5
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 rm -rf conftest*
1766 eval "ac_cv_header_$ac_safe=no"
1767 fi
1768 rm -f conftest*
1769 fi
1770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1771 echo "$ac_t""yes" 1>&6
1772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1773 cat >> confdefs.h <<EOF
1774 #define $ac_tr_hdr 1
1775 EOF
1776
1777 else
1778 echo "$ac_t""no" 1>&6
1779 fi
1780 done
1781
1782
1783 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
1784 # people who are not cross-compiling but are compiling cross-assemblers.
1785 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
1786 echo "configure:1787: checking whether compiling a cross-assembler" >&5
1787 if test "${host}" = "${target}"; then
1788 cross_gas=no
1789 else
1790 cross_gas=yes
1791 cat >> confdefs.h <<\EOF
1792 #define CROSS_COMPILE 1
1793 EOF
1794
1795 fi
1796 echo "$ac_t""$cross_gas" 1>&6
1797
1798 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1799 # for constant arguments. Useless!
1800 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1801 echo "configure:1802: checking for working alloca.h" >&5
1802 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1804 else
1805 cat > conftest.$ac_ext <<EOF
1806 #line 1807 "configure"
1807 #include "confdefs.h"
1808 #include <alloca.h>
1809 int main() {
1810 char *p = alloca(2 * sizeof(int));
1811 ; return 0; }
1812 EOF
1813 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1814 rm -rf conftest*
1815 ac_cv_header_alloca_h=yes
1816 else
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 rm -rf conftest*
1820 ac_cv_header_alloca_h=no
1821 fi
1822 rm -f conftest*
1823 fi
1824
1825 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1826 if test $ac_cv_header_alloca_h = yes; then
1827 cat >> confdefs.h <<\EOF
1828 #define HAVE_ALLOCA_H 1
1829 EOF
1830
1831 fi
1832
1833 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1834 echo "configure:1835: checking for alloca" >&5
1835 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841
1842 #ifdef __GNUC__
1843 # define alloca __builtin_alloca
1844 #else
1845 # if HAVE_ALLOCA_H
1846 # include <alloca.h>
1847 # else
1848 # ifdef _AIX
1849 #pragma alloca
1850 # else
1851 # ifndef alloca /* predefined by HP cc +Olibcalls */
1852 char *alloca ();
1853 # endif
1854 # endif
1855 # endif
1856 #endif
1857
1858 int main() {
1859 char *p = (char *) alloca(1);
1860 ; return 0; }
1861 EOF
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1863 rm -rf conftest*
1864 ac_cv_func_alloca_works=yes
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 ac_cv_func_alloca_works=no
1870 fi
1871 rm -f conftest*
1872 fi
1873
1874 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1875 if test $ac_cv_func_alloca_works = yes; then
1876 cat >> confdefs.h <<\EOF
1877 #define HAVE_ALLOCA 1
1878 EOF
1879
1880 fi
1881
1882 if test $ac_cv_func_alloca_works = no; then
1883 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1884 # that cause trouble. Some versions do not even contain alloca or
1885 # contain a buggy version. If you still want to use their alloca,
1886 # use ar to extract alloca.o from them instead of compiling alloca.c.
1887 ALLOCA=alloca.o
1888 cat >> confdefs.h <<\EOF
1889 #define C_ALLOCA 1
1890 EOF
1891
1892
1893 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1894 echo "configure:1895: checking whether alloca needs Cray hooks" >&5
1895 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1901 #if defined(CRAY) && ! defined(CRAY2)
1902 webecray
1903 #else
1904 wenotbecray
1905 #endif
1906
1907 EOF
1908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1909 egrep "webecray" >/dev/null 2>&1; then
1910 rm -rf conftest*
1911 ac_cv_os_cray=yes
1912 else
1913 rm -rf conftest*
1914 ac_cv_os_cray=no
1915 fi
1916 rm -f conftest*
1917
1918 fi
1919
1920 echo "$ac_t""$ac_cv_os_cray" 1>&6
1921 if test $ac_cv_os_cray = yes; then
1922 for ac_func in _getb67 GETB67 getb67; do
1923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1924 echo "configure:1925: checking for $ac_func" >&5
1925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1926 echo $ac_n "(cached) $ac_c" 1>&6
1927 else
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* System header to define __stub macros and hopefully few prototypes,
1932 which can conflict with char $ac_func(); below. */
1933 #include <assert.h>
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1937 char $ac_func();
1938
1939 int main() {
1940
1941 /* The GNU C library defines this for functions which it implements
1942 to always fail with ENOSYS. Some functions are actually named
1943 something starting with __ and the normal name is an alias. */
1944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1945 choke me
1946 #else
1947 $ac_func();
1948 #endif
1949
1950 ; return 0; }
1951 EOF
1952 if { (eval echo configure:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1953 rm -rf conftest*
1954 eval "ac_cv_func_$ac_func=yes"
1955 else
1956 echo "configure: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1958 rm -rf conftest*
1959 eval "ac_cv_func_$ac_func=no"
1960 fi
1961 rm -f conftest*
1962 fi
1963
1964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1965 echo "$ac_t""yes" 1>&6
1966 cat >> confdefs.h <<EOF
1967 #define CRAY_STACKSEG_END $ac_func
1968 EOF
1969
1970 break
1971 else
1972 echo "$ac_t""no" 1>&6
1973 fi
1974
1975 done
1976 fi
1977
1978 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1979 echo "configure:1980: checking stack direction for C alloca" >&5
1980 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1981 echo $ac_n "(cached) $ac_c" 1>&6
1982 else
1983 if test "$cross_compiling" = yes; then
1984 ac_cv_c_stack_direction=0
1985 else
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 find_stack_direction ()
1990 {
1991 static char *addr = 0;
1992 auto char dummy;
1993 if (addr == 0)
1994 {
1995 addr = &dummy;
1996 return find_stack_direction ();
1997 }
1998 else
1999 return (&dummy > addr) ? 1 : -1;
2000 }
2001 main ()
2002 {
2003 exit (find_stack_direction() < 0);
2004 }
2005 EOF
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2007 then
2008 ac_cv_c_stack_direction=1
2009 else
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2012 rm -fr conftest*
2013 ac_cv_c_stack_direction=-1
2014 fi
2015 rm -fr conftest*
2016 fi
2017
2018 fi
2019
2020 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2021 cat >> confdefs.h <<EOF
2022 #define STACK_DIRECTION $ac_cv_c_stack_direction
2023 EOF
2024
2025 fi
2026
2027 echo $ac_n "checking for inline""... $ac_c" 1>&6
2028 echo "configure:2029: checking for inline" >&5
2029 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 ac_cv_c_inline=no
2033 for ac_kw in inline __inline__ __inline; do
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037
2038 int main() {
2039 } $ac_kw foo() {
2040 ; return 0; }
2041 EOF
2042 if { (eval echo configure:2043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2043 rm -rf conftest*
2044 ac_cv_c_inline=$ac_kw; break
2045 else
2046 echo "configure: failed program was:" >&5
2047 cat conftest.$ac_ext >&5
2048 fi
2049 rm -f conftest*
2050 done
2051
2052 fi
2053
2054 echo "$ac_t""$ac_cv_c_inline" 1>&6
2055 case "$ac_cv_c_inline" in
2056 inline | yes) ;;
2057 no) cat >> confdefs.h <<\EOF
2058 #define inline
2059 EOF
2060 ;;
2061 *) cat >> confdefs.h <<EOF
2062 #define inline $ac_cv_c_inline
2063 EOF
2064 ;;
2065 esac
2066
2067
2068 # VMS doesn't have unlink.
2069 for ac_func in unlink remove
2070 do
2071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_func" >&5
2073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 /* System header to define __stub macros and hopefully few prototypes,
2080 which can conflict with char $ac_func(); below. */
2081 #include <assert.h>
2082 /* Override any gcc2 internal prototype to avoid an error. */
2083 /* We use char because int might match the return type of a gcc2
2084 builtin and then its argument prototype would still apply. */
2085 char $ac_func();
2086
2087 int main() {
2088
2089 /* The GNU C library defines this for functions which it implements
2090 to always fail with ENOSYS. Some functions are actually named
2091 something starting with __ and the normal name is an alias. */
2092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2093 choke me
2094 #else
2095 $ac_func();
2096 #endif
2097
2098 ; return 0; }
2099 EOF
2100 if { (eval echo configure:2101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2101 rm -rf conftest*
2102 eval "ac_cv_func_$ac_func=yes"
2103 else
2104 echo "configure: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 rm -rf conftest*
2107 eval "ac_cv_func_$ac_func=no"
2108 fi
2109 rm -f conftest*
2110 fi
2111
2112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2113 echo "$ac_t""yes" 1>&6
2114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_func 1
2117 EOF
2118 break
2119 else
2120 echo "$ac_t""no" 1>&6
2121 fi
2122 done
2123
2124
2125 # Some systems don't have sbrk().
2126 for ac_func in sbrk
2127 do
2128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2129 echo "configure:2130: checking for $ac_func" >&5
2130 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2131 echo $ac_n "(cached) $ac_c" 1>&6
2132 else
2133 cat > conftest.$ac_ext <<EOF
2134 #line 2135 "configure"
2135 #include "confdefs.h"
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $ac_func(); below. */
2138 #include <assert.h>
2139 /* Override any gcc2 internal prototype to avoid an error. */
2140 /* We use char because int might match the return type of a gcc2
2141 builtin and then its argument prototype would still apply. */
2142 char $ac_func();
2143
2144 int main() {
2145
2146 /* The GNU C library defines this for functions which it implements
2147 to always fail with ENOSYS. Some functions are actually named
2148 something starting with __ and the normal name is an alias. */
2149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2150 choke me
2151 #else
2152 $ac_func();
2153 #endif
2154
2155 ; return 0; }
2156 EOF
2157 if { (eval echo configure:2158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2158 rm -rf conftest*
2159 eval "ac_cv_func_$ac_func=yes"
2160 else
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 rm -rf conftest*
2164 eval "ac_cv_func_$ac_func=no"
2165 fi
2166 rm -f conftest*
2167 fi
2168
2169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2170 echo "$ac_t""yes" 1>&6
2171 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2172 cat >> confdefs.h <<EOF
2173 #define $ac_tr_func 1
2174 EOF
2175
2176 else
2177 echo "$ac_t""no" 1>&6
2178 fi
2179 done
2180
2181
2182 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
2183 # enough, but on some of those systems, the assert macro relies on requoting
2184 # working properly!
2185 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
2186 echo "configure:2187: checking for working assert macro" >&5
2187 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2189 else
2190 cat > conftest.$ac_ext <<EOF
2191 #line 2192 "configure"
2192 #include "confdefs.h"
2193 #include <assert.h>
2194 #include <stdio.h>
2195 int main() {
2196
2197 /* check for requoting problems */
2198 static int a, b, c, d;
2199 static char *s;
2200 assert (!strcmp(s, "foo bar baz quux"));
2201 /* check for newline handling */
2202 assert (a == b
2203 || c == d);
2204
2205 ; return 0; }
2206 EOF
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2208 rm -rf conftest*
2209 gas_cv_assert_ok=yes
2210 else
2211 echo "configure: failed program was:" >&5
2212 cat conftest.$ac_ext >&5
2213 rm -rf conftest*
2214 gas_cv_assert_ok=no
2215 fi
2216 rm -f conftest*
2217 fi
2218 echo "$ac_t""$gas_cv_assert_ok" 1>&6
2219 test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
2220 #define BROKEN_ASSERT 1
2221 EOF
2222
2223
2224
2225 # On some systems, the system header files may not declare malloc, realloc,
2226 # and free. There are places where gas needs these functions to have been
2227 # declared -- such as when taking their addresses.
2228 gas_test_headers="
2229 #ifdef HAVE_MEMORY_H
2230 #include <memory.h>
2231 #endif
2232 #ifdef HAVE_STRING_H
2233 #include <string.h>
2234 #else
2235 #ifdef HAVE_STRINGS_H
2236 #include <strings.h>
2237 #endif
2238 #endif
2239 #ifdef HAVE_STDLIB_H
2240 #include <stdlib.h>
2241 #endif
2242 #ifdef HAVE_UNISTD_H
2243 #include <unistd.h>
2244 #endif
2245 "
2246
2247 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
2248 echo "configure:2249: checking whether declaration is required for strstr" >&5
2249 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251 else
2252 cat > conftest.$ac_ext <<EOF
2253 #line 2254 "configure"
2254 #include "confdefs.h"
2255 $gas_test_headers
2256 int main() {
2257
2258 typedef char *(*f)();
2259 f x;
2260 x = (f) strstr;
2261
2262 ; return 0; }
2263 EOF
2264 if { (eval echo configure:2265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2265 rm -rf conftest*
2266 gas_cv_decl_needed_strstr=no
2267 else
2268 echo "configure: failed program was:" >&5
2269 cat conftest.$ac_ext >&5
2270 rm -rf conftest*
2271 gas_cv_decl_needed_strstr=yes
2272 fi
2273 rm -f conftest*
2274 fi
2275 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
2276 test $gas_cv_decl_needed_strstr = no || {
2277 cat >> confdefs.h <<\EOF
2278 #define NEED_DECLARATION_STRSTR 1
2279 EOF
2280
2281 }
2282
2283
2284 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
2285 echo "configure:2286: checking whether declaration is required for malloc" >&5
2286 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2292 $gas_test_headers
2293 int main() {
2294
2295 typedef char *(*f)();
2296 f x;
2297 x = (f) malloc;
2298
2299 ; return 0; }
2300 EOF
2301 if { (eval echo configure:2302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2302 rm -rf conftest*
2303 gas_cv_decl_needed_malloc=no
2304 else
2305 echo "configure: failed program was:" >&5
2306 cat conftest.$ac_ext >&5
2307 rm -rf conftest*
2308 gas_cv_decl_needed_malloc=yes
2309 fi
2310 rm -f conftest*
2311 fi
2312 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
2313 test $gas_cv_decl_needed_malloc = no || {
2314 cat >> confdefs.h <<\EOF
2315 #define NEED_DECLARATION_MALLOC 1
2316 EOF
2317
2318 }
2319
2320
2321 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
2322 echo "configure:2323: checking whether declaration is required for free" >&5
2323 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
2324 echo $ac_n "(cached) $ac_c" 1>&6
2325 else
2326 cat > conftest.$ac_ext <<EOF
2327 #line 2328 "configure"
2328 #include "confdefs.h"
2329 $gas_test_headers
2330 int main() {
2331
2332 typedef void (*f)();
2333 f x;
2334 x = (f) free;
2335
2336 ; return 0; }
2337 EOF
2338 if { (eval echo configure:2339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2339 rm -rf conftest*
2340 gas_cv_decl_needed_free=no
2341 else
2342 echo "configure: failed program was:" >&5
2343 cat conftest.$ac_ext >&5
2344 rm -rf conftest*
2345 gas_cv_decl_needed_free=yes
2346 fi
2347 rm -f conftest*
2348 fi
2349 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
2350 test $gas_cv_decl_needed_free = no || {
2351 cat >> confdefs.h <<\EOF
2352 #define NEED_DECLARATION_FREE 1
2353 EOF
2354
2355 }
2356
2357
2358 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
2359 echo "configure:2360: checking whether declaration is required for sbrk" >&5
2360 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2362 else
2363 cat > conftest.$ac_ext <<EOF
2364 #line 2365 "configure"
2365 #include "confdefs.h"
2366 $gas_test_headers
2367 int main() {
2368
2369 typedef char *(*f)();
2370 f x;
2371 x = (f) sbrk;
2372
2373 ; return 0; }
2374 EOF
2375 if { (eval echo configure:2376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2376 rm -rf conftest*
2377 gas_cv_decl_needed_sbrk=no
2378 else
2379 echo "configure: failed program was:" >&5
2380 cat conftest.$ac_ext >&5
2381 rm -rf conftest*
2382 gas_cv_decl_needed_sbrk=yes
2383 fi
2384 rm -f conftest*
2385 fi
2386 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
2387 test $gas_cv_decl_needed_sbrk = no || {
2388 cat >> confdefs.h <<\EOF
2389 #define NEED_DECLARATION_SBRK 1
2390 EOF
2391
2392 }
2393
2394
2395 # Does errno.h declare errno, or do we have to add a separate declaration
2396 # for it?
2397
2398 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
2399 echo "configure:2400: checking whether declaration is required for errno" >&5
2400 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2402 else
2403 cat > conftest.$ac_ext <<EOF
2404 #line 2405 "configure"
2405 #include "confdefs.h"
2406
2407 #ifdef HAVE_ERRNO_H
2408 #include <errno.h>
2409 #endif
2410
2411 int main() {
2412
2413 typedef int f;
2414 f x;
2415 x = (f) errno;
2416
2417 ; return 0; }
2418 EOF
2419 if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2420 rm -rf conftest*
2421 gas_cv_decl_needed_errno=no
2422 else
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 gas_cv_decl_needed_errno=yes
2427 fi
2428 rm -f conftest*
2429 fi
2430 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
2431 test $gas_cv_decl_needed_errno = no || {
2432 cat >> confdefs.h <<\EOF
2433 #define NEED_DECLARATION_ERRNO 1
2434 EOF
2435
2436 }
2437
2438
2439 HLDFLAGS=
2440 HLDENV=
2441 RPATH_ENVVAR=LD_LIBRARY_PATH
2442 # If we have shared libraries, try to set rpath reasonably.
2443 if test "${shared}" = "true"; then
2444 case "${host}" in
2445 *-*-hpux*)
2446 HLDFLAGS='-Wl,+s,+b,$(libdir)'
2447 RPATH_ENVVAR=SHLIB_PATH
2448 ;;
2449 *-*-irix5* | *-*-irix6*)
2450 HLDFLAGS='-Wl,-rpath,$(libdir)'
2451 ;;
2452 *-*-linux*aout*)
2453 ;;
2454 *-*-linux*)
2455 HLDFLAGS='-Wl,-rpath,$(libdir)'
2456 ;;
2457 *-*-solaris*)
2458 HLDFLAGS='-R $(libdir)'
2459 ;;
2460 *-*-sysv4*)
2461 HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
2462 ;;
2463 esac
2464 fi
2465
2466 # On SunOS, if the linker supports the -rpath option, use it to
2467 # prevent ../bfd and ../opcodes from being included in the run time
2468 # search path.
2469 case "${host}" in
2470 *-*-sunos*)
2471 echo 'main () { }' > conftest.c
2472 ${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
2473 if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
2474 :
2475 elif grep 'No such file' conftest.t >/dev/null 2>&1; then
2476 :
2477 elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
2478 :
2479 elif test "${shared}" = "true"; then
2480 HLDFLAGS='-Wl,-rpath=$(libdir)'
2481 else
2482 HLDFLAGS='-Wl,-rpath='
2483 fi
2484 rm -f conftest.t conftest.c conftest
2485 ;;
2486 esac
2487
2488
2489
2490
2491
2492
2493 trap '' 1 2 15
2494 cat > confcache <<\EOF
2495 # This file is a shell script that caches the results of configure
2496 # tests run on this system so they can be shared between configure
2497 # scripts and configure runs. It is not useful on other systems.
2498 # If it contains results you don't want to keep, you may remove or edit it.
2499 #
2500 # By default, configure uses ./config.cache as the cache file,
2501 # creating it if it does not exist already. You can give configure
2502 # the --cache-file=FILE option to use a different cache file; that is
2503 # what configure does when it calls configure scripts in
2504 # subdirectories, so they share the cache.
2505 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2506 # config.status only pays attention to the cache file if you give it the
2507 # --recheck option to rerun configure.
2508 #
2509 EOF
2510 # The following way of writing the cache mishandles newlines in values,
2511 # but we know of no workaround that is simple, portable, and efficient.
2512 # So, don't put newlines in cache variables' values.
2513 # Ultrix sh set writes to stderr and can't be redirected directly,
2514 # and sets the high bit in the cache file unless we assign to the vars.
2515 (set) 2>&1 |
2516 case `(ac_space=' '; set) 2>&1` in
2517 *ac_space=\ *)
2518 # `set' does not quote correctly, so add quotes (double-quote substitution
2519 # turns \\\\ into \\, and sed turns \\ into \).
2520 sed -n \
2521 -e "s/'/'\\\\''/g" \
2522 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2523 ;;
2524 *)
2525 # `set' quotes correctly as required by POSIX, so do not add quotes.
2526 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2527 ;;
2528 esac >> confcache
2529 if cmp -s $cache_file confcache; then
2530 :
2531 else
2532 if test -w $cache_file; then
2533 echo "updating cache $cache_file"
2534 cat confcache > $cache_file
2535 else
2536 echo "not updating unwritable cache $cache_file"
2537 fi
2538 fi
2539 rm -f confcache
2540
2541 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2542
2543 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2544 # Let make expand exec_prefix.
2545 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2546
2547 # Any assignment to VPATH causes Sun make to only execute
2548 # the first set of double-colon rules, so remove it if not needed.
2549 # If there is a colon in the path, we need to keep it.
2550 if test "x$srcdir" = x.; then
2551 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2552 fi
2553
2554 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2555
2556 DEFS=-DHAVE_CONFIG_H
2557
2558 # Without the "./", some shells look in PATH for config.status.
2559 : ${CONFIG_STATUS=./config.status}
2560
2561 echo creating $CONFIG_STATUS
2562 rm -f $CONFIG_STATUS
2563 cat > $CONFIG_STATUS <<EOF
2564 #! /bin/sh
2565 # Generated automatically by configure.
2566 # Run this file to recreate the current configuration.
2567 # This directory was configured as follows,
2568 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2569 #
2570 # $0 $ac_configure_args
2571 #
2572 # Compiler output produced by configure, useful for debugging
2573 # configure, is in ./config.log if it exists.
2574
2575 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2576 for ac_option
2577 do
2578 case "\$ac_option" in
2579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2580 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2581 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2582 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2583 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2584 exit 0 ;;
2585 -help | --help | --hel | --he | --h)
2586 echo "\$ac_cs_usage"; exit 0 ;;
2587 *) echo "\$ac_cs_usage"; exit 1 ;;
2588 esac
2589 done
2590
2591 ac_given_srcdir=$srcdir
2592 ac_given_INSTALL="$INSTALL"
2593
2594 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in conf" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2595 EOF
2596 cat >> $CONFIG_STATUS <<EOF
2597
2598 # Protect against being on the right side of a sed subst in config.status.
2599 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2600 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2601 $ac_vpsub
2602 $extrasub
2603 s%@CFLAGS@%$CFLAGS%g
2604 s%@CPPFLAGS@%$CPPFLAGS%g
2605 s%@CXXFLAGS@%$CXXFLAGS%g
2606 s%@DEFS@%$DEFS%g
2607 s%@LDFLAGS@%$LDFLAGS%g
2608 s%@LIBS@%$LIBS%g
2609 s%@exec_prefix@%$exec_prefix%g
2610 s%@prefix@%$prefix%g
2611 s%@program_transform_name@%$program_transform_name%g
2612 s%@bindir@%$bindir%g
2613 s%@sbindir@%$sbindir%g
2614 s%@libexecdir@%$libexecdir%g
2615 s%@datadir@%$datadir%g
2616 s%@sysconfdir@%$sysconfdir%g
2617 s%@sharedstatedir@%$sharedstatedir%g
2618 s%@localstatedir@%$localstatedir%g
2619 s%@libdir@%$libdir%g
2620 s%@includedir@%$includedir%g
2621 s%@oldincludedir@%$oldincludedir%g
2622 s%@infodir@%$infodir%g
2623 s%@mandir@%$mandir%g
2624 s%@host@%$host%g
2625 s%@host_alias@%$host_alias%g
2626 s%@host_cpu@%$host_cpu%g
2627 s%@host_vendor@%$host_vendor%g
2628 s%@host_os@%$host_os%g
2629 s%@target@%$target%g
2630 s%@target_alias@%$target_alias%g
2631 s%@target_cpu@%$target_cpu%g
2632 s%@target_vendor@%$target_vendor%g
2633 s%@target_os@%$target_os%g
2634 s%@build@%$build%g
2635 s%@build_alias@%$build_alias%g
2636 s%@build_cpu@%$build_cpu%g
2637 s%@build_vendor@%$build_vendor%g
2638 s%@build_os@%$build_os%g
2639 /@target_frag@/r $target_frag
2640 s%@target_frag@%%g
2641 s%@extra_objects@%$extra_objects%g
2642 s%@target_cpu_type@%$target_cpu_type%g
2643 s%@obj_format@%$obj_format%g
2644 s%@te_file@%$te_file%g
2645 s%@atof@%$atof%g
2646 s%@BFDDEP@%$BFDDEP%g
2647 s%@BFDLIB@%$BFDLIB%g
2648 s%@OPCODES_DEP@%$OPCODES_DEP%g
2649 s%@OPCODES_LIB@%$OPCODES_LIB%g
2650 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
2651 s%@CC@%$CC%g
2652 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2653 s%@INSTALL_DATA@%$INSTALL_DATA%g
2654 s%@CPP@%$CPP%g
2655 s%@ALLOCA@%$ALLOCA%g
2656 s%@HLDFLAGS@%$HLDFLAGS%g
2657 s%@HLDENV@%$HLDENV%g
2658 s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g
2659
2660 CEOF
2661 EOF
2662
2663 cat >> $CONFIG_STATUS <<\EOF
2664
2665 # Split the substitutions into bite-sized pieces for seds with
2666 # small command number limits, like on Digital OSF/1 and HP-UX.
2667 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2668 ac_file=1 # Number of current file.
2669 ac_beg=1 # First line for current file.
2670 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2671 ac_more_lines=:
2672 ac_sed_cmds=""
2673 while $ac_more_lines; do
2674 if test $ac_beg -gt 1; then
2675 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2676 else
2677 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2678 fi
2679 if test ! -s conftest.s$ac_file; then
2680 ac_more_lines=false
2681 rm -f conftest.s$ac_file
2682 else
2683 if test -z "$ac_sed_cmds"; then
2684 ac_sed_cmds="sed -f conftest.s$ac_file"
2685 else
2686 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2687 fi
2688 ac_file=`expr $ac_file + 1`
2689 ac_beg=$ac_end
2690 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2691 fi
2692 done
2693 if test -z "$ac_sed_cmds"; then
2694 ac_sed_cmds=cat
2695 fi
2696 EOF
2697
2698 cat >> $CONFIG_STATUS <<EOF
2699
2700 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
2701 EOF
2702 cat >> $CONFIG_STATUS <<\EOF
2703 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2704 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2705 case "$ac_file" in
2706 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2707 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2708 *) ac_file_in="${ac_file}.in" ;;
2709 esac
2710
2711 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2712
2713 # Remove last slash and all that follows it. Not all systems have dirname.
2714 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2715 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2716 # The file is in a subdirectory.
2717 test ! -d "$ac_dir" && mkdir "$ac_dir"
2718 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2719 # A "../" for each directory in $ac_dir_suffix.
2720 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2721 else
2722 ac_dir_suffix= ac_dots=
2723 fi
2724
2725 case "$ac_given_srcdir" in
2726 .) srcdir=.
2727 if test -z "$ac_dots"; then top_srcdir=.
2728 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2729 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2730 *) # Relative path.
2731 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2732 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2733 esac
2734
2735 case "$ac_given_INSTALL" in
2736 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2737 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2738 esac
2739
2740 echo creating "$ac_file"
2741 rm -f "$ac_file"
2742 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2743 case "$ac_file" in
2744 *Makefile*) ac_comsub="1i\\
2745 # $configure_input" ;;
2746 *) ac_comsub= ;;
2747 esac
2748
2749 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2750 sed -e "$ac_comsub
2751 s%@configure_input@%$configure_input%g
2752 s%@srcdir@%$srcdir%g
2753 s%@top_srcdir@%$top_srcdir%g
2754 s%@INSTALL@%$INSTALL%g
2755 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2756 fi; done
2757 rm -f conftest.s*
2758
2759 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2760 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2761 #
2762 # ac_d sets the value in "#define NAME VALUE" lines.
2763 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2764 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2765 ac_dC='\3'
2766 ac_dD='%g'
2767 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2768 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2769 ac_uB='\([ ]\)%\1#\2define\3'
2770 ac_uC=' '
2771 ac_uD='\4%g'
2772 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2773 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2774 ac_eB='$%\1#\2define\3'
2775 ac_eC=' '
2776 ac_eD='%g'
2777
2778 if test "${CONFIG_HEADERS+set}" != set; then
2779 EOF
2780 cat >> $CONFIG_STATUS <<EOF
2781 CONFIG_HEADERS="conf"
2782 EOF
2783 cat >> $CONFIG_STATUS <<\EOF
2784 fi
2785 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2786 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2787 case "$ac_file" in
2788 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2789 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2790 *) ac_file_in="${ac_file}.in" ;;
2791 esac
2792
2793 echo creating $ac_file
2794
2795 rm -f conftest.frag conftest.in conftest.out
2796 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2797 cat $ac_file_inputs > conftest.in
2798
2799 EOF
2800
2801 # Transform confdefs.h into a sed script conftest.vals that substitutes
2802 # the proper values into config.h.in to produce config.h. And first:
2803 # Protect against being on the right side of a sed subst in config.status.
2804 # Protect against being in an unquoted here document in config.status.
2805 rm -f conftest.vals
2806 cat > conftest.hdr <<\EOF
2807 s/[\\&%]/\\&/g
2808 s%[\\$`]%\\&%g
2809 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2810 s%ac_d%ac_u%gp
2811 s%ac_u%ac_e%gp
2812 EOF
2813 sed -n -f conftest.hdr confdefs.h > conftest.vals
2814 rm -f conftest.hdr
2815
2816 # This sed command replaces #undef with comments. This is necessary, for
2817 # example, in the case of _POSIX_SOURCE, which is predefined and required
2818 # on some systems where configure will not decide to define it.
2819 cat >> conftest.vals <<\EOF
2820 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2821 EOF
2822
2823 # Break up conftest.vals because some shells have a limit on
2824 # the size of here documents, and old seds have small limits too.
2825
2826 rm -f conftest.tail
2827 while :
2828 do
2829 ac_lines=`grep -c . conftest.vals`
2830 # grep -c gives empty output for an empty file on some AIX systems.
2831 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2832 # Write a limited-size here document to conftest.frag.
2833 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2834 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2835 echo 'CEOF
2836 sed -f conftest.frag conftest.in > conftest.out
2837 rm -f conftest.in
2838 mv conftest.out conftest.in
2839 ' >> $CONFIG_STATUS
2840 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2841 rm -f conftest.vals
2842 mv conftest.tail conftest.vals
2843 done
2844 rm -f conftest.vals
2845
2846 cat >> $CONFIG_STATUS <<\EOF
2847 rm -f conftest.frag conftest.h
2848 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2849 cat conftest.in >> conftest.h
2850 rm -f conftest.in
2851 if cmp -s $ac_file conftest.h 2>/dev/null; then
2852 echo "$ac_file is unchanged"
2853 rm -f conftest.h
2854 else
2855 # Remove last slash and all that follows it. Not all systems have dirname.
2856 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2857 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2858 # The file is in a subdirectory.
2859 test ! -d "$ac_dir" && mkdir "$ac_dir"
2860 fi
2861 rm -f $ac_file
2862 mv conftest.h $ac_file
2863 fi
2864 fi; done
2865
2866 EOF
2867 cat >> $CONFIG_STATUS <<EOF
2868 target_cpu_type=${target_cpu_type}
2869 obj_format=${obj_format}
2870 te_file=${te_file}
2871 EOF
2872 cat >> $CONFIG_STATUS <<\EOF
2873 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
2874 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
2875 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
2876 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
2877 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
2878 case ${target_cpu_type} in
2879 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
2880 esac
2881 exit 0
2882 EOF
2883 chmod +x $CONFIG_STATUS
2884 rm -fr confdefs* $ac_clean_files
2885 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2886
This page took 0.151638 seconds and 5 git commands to generate.