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