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