]>
Commit | Line | Data |
---|---|---|
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 | 11 | ac_help= |
f2889110 KR |
12 | ac_default_prefix=/usr/local |
13 | # Any additions from configure.in: | |
28d3e4a3 | 14 | ac_help="$ac_help |
b11fb939 | 15 | bfd-assembler use BFD back end for writing object files" |
e7757ad0 KR |
16 | ac_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. | |
22 | build=NONE | |
23 | cache_file=./config.cache | |
24 | exec_prefix=NONE | |
25 | host=NONE | |
26 | no_create= | |
27 | nonopt=NONE | |
bf111c9f | 28 | no_recursion= |
b11fb939 | 29 | prefix=NONE |
bf111c9f KR |
30 | program_prefix=NONE |
31 | program_suffix=NONE | |
ba49e48d | 32 | program_transform_name=s,x,x, |
b11fb939 | 33 | silent= |
f2889110 | 34 | site= |
b11fb939 KR |
35 | srcdir= |
36 | target=NONE | |
37 | verbose= | |
38 | x_includes=NONE | |
39 | x_libraries=NONE | |
40 | ||
41 | # Initialize some other variables. | |
42 | subdirs= | |
43 | ||
44 | ac_prev= | |
45 | for ac_option | |
46 | do | |
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 |
115 | Usage: configure [options] [host] |
116 | Options: [defaults in brackets after descriptions] | |
117 | Configuration: | |
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 | |
123 | Directory 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 | |
132 | Host 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] | |
136 | Features 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 |
144 | EOF |
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 | |
280 | done | |
281 | ||
282 | if 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 |
284 | fi |
285 | ||
833c46e1 | 286 | trap '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 |
296 | if test "$silent" = yes; then | |
833c46e1 | 297 | exec 6>/dev/null |
b11fb939 | 298 | else |
833c46e1 | 299 | exec 6>&1 |
b11fb939 KR |
300 | fi |
301 | exec 5>./config.log | |
302 | ||
303 | echo "\ | |
304 | This file contains any messages produced by compilers while | |
305 | running 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. |
310 | ac_configure_args= | |
311 | for ac_arg | |
312 | do | |
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 |
322 | done | |
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). | |
328 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
329 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
330 | ||
331 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
332 | rm -rf conftest* confdefs.h | |
333 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
334 | echo > 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. | |
338 | ac_unique_file=as.h | |
339 | ||
340 | # Find the source files, if location was not specified. | |
341 | if 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 | |
351 | else | |
352 | ac_srcdir_defaulted=no | |
353 | fi | |
354 | if 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 |
360 | fi | |
f2889110 | 361 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
b11fb939 KR |
362 | |
363 | # Prefer explicitly selected file to automatically selected ones. | |
bf111c9f | 364 | if 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 |
370 | fi | |
371 | for 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 | |
376 | done | |
377 | ||
378 | if test -r "$cache_file"; then | |
379 | echo "loading cache $cache_file" | |
380 | . $cache_file | |
381 | else | |
382 | echo "creating cache $cache_file" | |
383 | > $cache_file | |
384 | fi | |
385 | ||
386 | ac_ext=c | |
387 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
28d3e4a3 | 388 | ac_cpp='$CPP $CPPFLAGS' |
833c46e1 KR |
389 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5' |
390 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5' | |
b11fb939 | 391 | |
bf111c9f KR |
392 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
393 | # Stardent Vistra SVR4 grep lacks -e, says [email protected]. | |
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 | |
400 | else | |
401 | ac_n= ac_c='\c' ac_t= | |
402 | fi | |
403 | ||
318b02b6 | 404 | user_bfd_gas= |
b11fb939 KR |
405 | # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given. |
406 | enableval="$enable_bfd_assembler" | |
407 | if 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 |
412 | esac |
413 | fi | |
e7757ad0 KR |
414 | # Check whether --enable-targets or --disable-targets was given. |
415 | enableval="$enable_targets" | |
416 | if 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 ;; | |
422 | esac | |
423 | fi | |
b11fb939 KR |
424 | |
425 | # Generate a header file -- gets more post-processing by Makefile later. | |
426 | ||
427 | ||
428 | ac_aux_dir= | |
28d3e4a3 | 429 | for 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 |
439 | done | |
440 | if 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 | 442 | fi |
28d3e4a3 KR |
443 | ac_config_guess=$ac_aux_dir/config.guess |
444 | ac_config_sub=$ac_aux_dir/config.sub | |
445 | ac_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. | |
463 | case $host---$target---$nonopt in | |
464 | NONE---*---* | *---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 |
466 | esac |
467 | ||
e23b25ec | 468 | |
b11fb939 | 469 | # Make sure we can run config.sub. |
28d3e4a3 | 470 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
ba49e48d | 471 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
b11fb939 KR |
472 | fi |
473 | ||
833c46e1 | 474 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
b11fb939 KR |
475 | |
476 | host_alias=$host | |
28d3e4a3 | 477 | case "$host_alias" in |
b11fb939 KR |
478 | NONE) |
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 ;; | |
486 | esac | |
487 | ||
28d3e4a3 | 488 | host=`$ac_config_sub $host_alias` |
b11fb939 KR |
489 | host_cpu=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
490 | host_vendor=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
491 | host_os=`echo $host | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
833c46e1 | 492 | echo "$ac_t""$host" 1>&6 |
b11fb939 | 493 | |
833c46e1 | 494 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
b11fb939 KR |
495 | |
496 | target_alias=$target | |
28d3e4a3 | 497 | case "$target_alias" in |
b11fb939 KR |
498 | NONE) |
499 | case $nonopt in | |
500 | NONE) target_alias=$host_alias ;; | |
501 | *) target_alias=$nonopt ;; | |
502 | esac ;; | |
503 | esac | |
504 | ||
28d3e4a3 | 505 | target=`$ac_config_sub $target_alias` |
b11fb939 KR |
506 | target_cpu=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
507 | target_vendor=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
508 | target_os=`echo $target | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
833c46e1 | 509 | echo "$ac_t""$target" 1>&6 |
b11fb939 | 510 | |
833c46e1 | 511 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
b11fb939 KR |
512 | |
513 | build_alias=$build | |
28d3e4a3 | 514 | case "$build_alias" in |
f2889110 KR |
515 | NONE) |
516 | case $nonopt in | |
517 | NONE) build_alias=$host_alias ;; | |
518 | *) build_alias=$nonopt ;; | |
519 | esac ;; | |
520 | esac | |
521 | ||
28d3e4a3 | 522 | build=`$ac_config_sub $build_alias` |
b11fb939 KR |
523 | build_cpu=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\1/'` |
524 | build_vendor=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\2/'` | |
525 | build_os=`echo $build | sed 's/^\(.*\)-\(.*\)-\(.*\)$/\3/'` | |
833c46e1 | 526 | echo "$ac_t""$build" 1>&6 |
b11fb939 | 527 | |
28d3e4a3 KR |
528 | test "$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 |
533 | if test "$program_transform_name" = s,x,x,; then |
534 | program_transform_name= | |
535 | else | |
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 | 540 | fi |
28d3e4a3 KR |
541 | test "$program_prefix" != NONE && |
542 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
bf111c9f | 543 | # Use a double $ so make ignores it. |
28d3e4a3 KR |
544 | test "$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 | 548 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
318b02b6 | 549 | |
b11fb939 | 550 | |
e7757ad0 | 551 | te_file=generic |
b11fb939 KR |
552 | |
553 | # assign cpu type | |
554 | ||
555 | # check for architecture variants | |
556 | case ${target_cpu} in | |
1cb0d00d KR |
557 | armeb) cpu_type=arm endian=big ;; |
558 | arm*) cpu_tpye=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 |
573 | EOF | |
574 | ;; | |
575 | sparclite*) cpu_type=sparc ;; | |
576 | *) cpu_type=${target_cpu} ;; | |
577 | esac | |
578 | ||
579 | # do we need the opcodes library? | |
580 | case ${cpu_type} in | |
581 | alpha | vax) | |
582 | ;; | |
583 | *) | |
584 | OPCODES_LIB="../opcodes/libopcodes.a" | |
585 | ;; | |
586 | esac | |
587 | ||
588 | ||
589 | gas_target=${cpu_type} | |
e7757ad0 KR |
590 | this_target=${generic_target} |
591 | ||
592 | canon_targets="" | |
593 | if 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="" | |
605 | for _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 | |
613 | done | |
614 | canon_targets=$_gas_uniq_newlist | |
b11fb939 | 615 | |
e7757ad0 | 616 | fi |
b11fb939 | 617 | |
e7757ad0 KR |
618 | emulations="" |
619 | ||
620 | for 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 ;; | |
639 | *) cpu_type=${target_cpu} ;; | |
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 | ||
1cb0d00d KR |
667 | arm-*-riscix*) fmt=aout targ=arm-lit |
668 | emulation=riscix ;; | |
669 | arm-*-aout) fmt=aout | |
670 | case "$endian" in | |
671 | big) targ=arm-big ;; | |
672 | *) targ=arm-lit ;; | |
673 | esac | |
674 | ;; | |
e7757ad0 | 675 | arm-*-riscix*) fmt=aout ;; |
1cb0d00d | 676 | arm-*-pe) fmt=coff targ=armcoff em=pe ;; |
e7757ad0 KR |
677 | |
678 | hppa-*-*elf*) fmt=elf em=hppa ;; | |
679 | hppa-*-lites*) fmt=elf em=hppa ;; | |
680 | hppa-*-osf*) fmt=som em=hppa ;; | |
681 | hppa-*-hpux*) fmt=som em=hppa ;; | |
682 | hppa-*-bsd*) fmt=som em=hppa ;; | |
683 | hppa-*-hiux*) fmt=som em=hppa ;; | |
684 | ||
685 | h8300-*-coff) fmt=coff ;; | |
686 | ||
687 | i386-ibm-aix*) fmt=coff targ=i386coff | |
688 | em=i386aix ;; | |
689 | i386-*-bsd*) fmt=aout em=386bsd ;; | |
690 | i386-*-netbsd0.8) fmt=aout em=386bsd ;; | |
691 | i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;; | |
692 | i386-*-linux*aout*) fmt=aout em=linux ;; | |
693 | i386-*-linux*coff*) fmt=coff em=linux | |
694 | targ=i386coff ;; | |
695 | i386-*-linux*) fmt=elf em=linux ;; | |
696 | i386-*-lynxos*) fmt=coff targ=i386coff | |
697 | em=lynx ;; | |
698 | i386-*-sysv4* | i386-*-solaris* | i386-*-elf) | |
699 | fmt=elf ;; | |
700 | i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*) | |
701 | fmt=coff targ=i386coff ;; | |
702 | i386-*-vsta) fmt=aout ;; | |
703 | i386-*-go32) fmt=coff targ=i386coff ;; | |
6c186c48 SC |
704 | i386-*-gnu*) fmt=elf ;; |
705 | i386-*-mach*) | |
e7757ad0 KR |
706 | fmt=aout em=mach bfd_gas=yes ;; |
707 | i386-*-msdos*) fmt=aout ;; | |
6c186c48 | 708 | i386-*-moss*) fmt=elf ;; |
1cb0d00d | 709 | i386-*-pe) fmt=coff targ=i386coff em=pe ;; |
6c186c48 | 710 | i386-*-win32) fmt=coff targ=i386coff em=pe ;; |
e63c594d | 711 | i386-*-*nt) fmt=coff targ=i386coff em=pe ;; |
e7757ad0 KR |
712 | i960-*-bout) fmt=bout ;; |
713 | i960-*-coff) fmt=coff em=ic960 targ=ic960coff ;; | |
714 | i960-*-nindy*) fmt=bout ;; | |
715 | i960-*-vxworks4*) fmt=bout ;; | |
716 | i960-*-vxworks5.0) fmt=bout ;; | |
717 | i960-*-vxworks5.*) fmt=coff em=ic960 targ=ic960coff ;; | |
718 | i960-*-vxworks*) fmt=bout ;; | |
719 | ||
720 | m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*) | |
721 | fmt=aout em=sun3 ;; | |
722 | m68k-motorola-sysv) fmt=coff targ=m68kcoff em=delta ;; | |
723 | m68k-bull-sysv3*) fmt=coff targ=m68kcoff em=dpx2 ;; | |
724 | m68k-apollo-*) fmt=coff targ=apollo em=apollo ;; | |
725 | m68k-*-coff | m68k-*-sysv*) | |
726 | fmt=coff targ=m68kcoff ;; | |
727 | m68k-*-elf) fmt=elf ;; | |
728 | m68k-*-hpux*) fmt=hp300 em=hp300 ;; | |
729 | m68k-*-lynxos*) fmt=coff targ=m68kcoff | |
730 | em=lynx ;; | |
731 | m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; | |
732 | ||
733 | m88k-*-coff*) fmt=coff targ=m88kcoff ;; | |
734 | ||
735 | # don't change em like *-*-bsd does | |
736 | mips-dec-bsd*) fmt=aout targ=mips-lit ;; | |
737 | mips-sony-bsd*) fmt=ecoff targ=mips-big ;; | |
738 | mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; | |
739 | mips-*-ultrix*) fmt=ecoff targ=mips-lit ;; | |
740 | mips-*-ecoff*) fmt=ecoff | |
741 | case "$endian" in | |
742 | big) targ=mips-big ;; | |
743 | *) targ=mips-lit ;; | |
744 | esac | |
745 | ;; | |
746 | mips-*-ecoff*) fmt=ecoff targ=mips-big ;; | |
747 | mips-*-gnu*) fmt=aout | |
748 | case "$endian" in | |
749 | big) targ=mips-big ;; | |
750 | *) targ=mips-lit ;; | |
751 | esac | |
752 | ;; | |
753 | mips-*-irix5*) fmt=elf targ=mips-big ;; | |
754 | mips-*-irix*) fmt=ecoff targ=mips-big ;; | |
755 | mips-*-riscos*) fmt=ecoff targ=mips-big ;; | |
756 | mips-*-sysv*) fmt=ecoff targ=mips-big ;; | |
757 | mips-*-elf*) fmt=elf | |
758 | case "$endian" in | |
759 | big) targ=mips-big ;; | |
760 | *) targ=mips-lit ;; | |
761 | esac | |
762 | ;; | |
763 | ppc-*-aix*) fmt=coff ;; | |
764 | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*) | |
765 | fmt=elf | |
766 | case "$endian" in | |
767 | big) targ=ppc-big ;; | |
768 | *) targ=ppc-lit ;; | |
769 | esac | |
770 | ;; | |
771 | ppc-*-netware*) fmt=elf em=ppcnw ;; | |
772 | ||
773 | sh-*-coff) fmt=coff ;; | |
b11fb939 | 774 | |
f1698cb7 | 775 | # start-sanitize-rce |
e7757ad0 | 776 | rce-*-aout) fmt=aout ;; |
f1698cb7 KR |
777 | # end-sanitize-rce |
778 | ||
e7757ad0 KR |
779 | ns32k-pc532-mach*) fmt=aout em=pc532mach ;; |
780 | ns32k-pc532-netbsd*) fmt=aout em=nbsd532 ;; | |
781 | ||
782 | sparc-*-sunos4*) fmt=aout em=sun3 ;; | |
783 | sparc-*-aout | sparc*-*-vxworks) | |
784 | fmt=aout ;; | |
785 | sparc-*-coff) fmt=coff ;; | |
786 | sparc-*-lynxos*) fmt=coff em=lynx ;; | |
787 | sparc-fujitsu-none) fmt=aout ;; | |
788 | sparc-*-elf | sparc*-*-solaris*) | |
789 | fmt=elf ;; | |
790 | sparc-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;; | |
791 | ||
792 | vax-*-bsd* | vax-*-ultrix*) | |
793 | fmt=aout ;; | |
794 | vax-*-vms) fmt=vms ;; | |
795 | ||
796 | z8k-*-coff | z8k-*-sim) | |
797 | fmt=coff ;; | |
798 | ||
799 | w65-*-*) fmt=coff ;; | |
800 | ||
801 | *-*-aout | *-*-scout) | |
802 | fmt=aout ;; | |
803 | *-*-nindy*) | |
804 | fmt=bout ;; | |
805 | *-*-bsd*) | |
806 | fmt=aout em=sun3 ;; | |
807 | *-*-generic) fmt=generic ;; | |
808 | *-*-xray | *-*-hms) fmt=coff ;; | |
809 | *-*-sim) fmt=coff ;; | |
810 | *-*-elf | *-*-sysv4* | *-*-solaris*) | |
811 | echo "configure: warning: GAS support for ELF format is incomplete." 1>&2 | |
812 | fmt=elf dev=yes ;; | |
813 | *-*-vxworks) fmt=aout ;; | |
814 | *-*-netware) fmt=elf ;; | |
815 | esac | |
816 | ||
817 | case ${cpu_type}-${fmt} in | |
818 | arm-*) bfd_gas=yes ;; | |
819 | # not yet | |
820 | # i386-aout) bfd_gas=preferred ;; | |
821 | mips-*) bfd_gas=yes ;; | |
822 | ns32k-*) bfd_gas=yes ;; | |
823 | ppc-*) bfd_gas=yes ;; | |
824 | sparc-*) bfd_gas=yes ;; | |
825 | *-elf) bfd_gas=yes ;; | |
826 | *-ecoff) bfd_gas=yes ;; | |
827 | *-som) bfd_gas=yes ;; | |
828 | *) ;; | |
829 | esac | |
830 | ||
831 | # See if we really can support this configuration with the emulation code. | |
832 | ||
833 | if test $this_target = $target ; then | |
834 | primary_bfd_gas=$bfd_gas | |
835 | obj_format=$fmt | |
836 | gas_target=$targ | |
837 | te_file=$em | |
838 | ||
839 | if test $bfd_gas = no ; then | |
840 | # Can't support other configurations this way. | |
841 | break | |
842 | fi | |
843 | elif test $bfd_gas = no ; then | |
844 | # Can't support this configuration. | |
845 | break | |
846 | fi | |
847 | ||
848 | # From target name and format, produce a list of supported emulations. | |
849 | ||
850 | case ${generic_target}-${fmt} in | |
1cb0d00d | 851 | mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;; |
e7757ad0 | 852 | mips-*-*-ecoff) case "$endian" in |
1cb0d00d KR |
853 | big) emulation="mipsbecoff mipslecoff mipsecoff" ;; |
854 | *) emulation="mipslecoff mipsbecoff mipsecoff" ;; | |
e7757ad0 KR |
855 | esac ;; |
856 | mips-*-*-elf) case "$endian" in | |
1cb0d00d KR |
857 | big) emulation="mipsbelf mipslelf mipself" ;; |
858 | *) emulation="mipslelf mipsbelf mipself" ;; | |
e7757ad0 KR |
859 | esac ;; |
860 | esac | |
861 | ||
862 | emulations="$emulations $emulation" | |
863 | ||
864 | # Other random stuff. | |
865 | ||
866 | test -n "$want_sparcv9" && cat >> confdefs.h <<\EOF | |
867 | #define sparcv9 1 | |
868 | EOF | |
869 | ||
870 | ||
871 | done | |
b11fb939 KR |
872 | |
873 | # Assign floating point type. Most processors with FP support | |
874 | # IEEE FP. On those that don't support FP at all, usually IEEE | |
875 | # is emulated. | |
876 | case ${target_cpu} in | |
877 | vax | tahoe ) atof=${target_cpu} ;; | |
e7757ad0 | 878 | *) atof=ieee ;; |
b11fb939 KR |
879 | esac |
880 | ||
881 | case "${obj_format}" in | |
ba49e48d | 882 | "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;; |
b11fb939 KR |
883 | esac |
884 | ||
885 | ||
fb589130 | 886 | if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then |
ba49e48d | 887 | { echo "configure: error: GAS does not support target CPU ${cpu_type}" 1>&2; exit 1; } |
b11fb939 KR |
888 | fi |
889 | ||
fb589130 | 890 | if test ! -r ${srcdir}/config/obj-${obj_format}.c; then |
ba49e48d | 891 | { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; } |
b11fb939 KR |
892 | fi |
893 | ||
b11fb939 KR |
894 | # and target makefile frag |
895 | ||
896 | target_frag=${srcdir}/config/${gas_target}.mt | |
f2889110 KR |
897 | if test ! -r ${target_frag}; then |
898 | target_frag=/dev/null # ick! but subst_file can't be conditionalized | |
899 | fi | |
b11fb939 KR |
900 | |
901 | ||
e7757ad0 | 902 | case ${user_bfd_gas}-${primary_bfd_gas} in |
b11fb939 KR |
903 | yes-yes | no-no) |
904 | # We didn't override user's choice. | |
905 | ;; | |
906 | no-yes) | |
907 | echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2 | |
908 | ;; | |
909 | no-preferred) | |
e7757ad0 | 910 | primary_bfd_gas=no |
b11fb939 KR |
911 | ;; |
912 | *-preferred) | |
e7757ad0 | 913 | primary_bfd_gas=yes |
b11fb939 | 914 | ;; |
ba49e48d | 915 | yes-*) |
e7757ad0 | 916 | primary_bfd_gas=yes |
ba49e48d | 917 | ;; |
b11fb939 KR |
918 | -*) |
919 | # User specified nothing. | |
920 | ;; | |
921 | esac | |
922 | ||
e7757ad0 KR |
923 | # Some COFF configurations want these random other flags set. |
924 | case ${obj_format} in | |
925 | coff) | |
926 | case ${target_cpu_type} in | |
927 | i386) cat >> confdefs.h <<\EOF | |
928 | #define I386COFF 1 | |
929 | EOF | |
930 | ;; | |
931 | m68k) cat >> confdefs.h <<\EOF | |
932 | #define M68KCOFF 1 | |
933 | EOF | |
934 | ;; | |
935 | m88k) cat >> confdefs.h <<\EOF | |
936 | #define M88KCOFF 1 | |
937 | EOF | |
938 | ;; | |
939 | esac | |
940 | ;; | |
941 | esac | |
942 | ||
943 | # Getting this done right is going to be a bitch. Each configuration specified | |
944 | # with --enable-targets=... should be checked for environment, format, cpu, and | |
945 | # bfd_gas setting. | |
946 | # | |
947 | # For each configuration, the necessary object file support code must be linked | |
948 | # in. This might be only one, it might be up to four. The necessary emulation | |
949 | # code needs to be provided, too. | |
950 | # | |
951 | # And then there's "--enable-targets=all".... | |
952 | # | |
953 | # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh. | |
954 | ||
955 | formats="${obj_format}" | |
956 | emfiles="" | |
957 | EMULATIONS="" | |
958 | _gas_uniq_list="$emulations" | |
959 | _gas_uniq_newlist="" | |
960 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
961 | case $_gas_uniq_i in | |
962 | _gas_uniq_dummy) ;; | |
963 | *) case " $_gas_uniq_newlist " in | |
964 | *" $_gas_uniq_i "*) ;; | |
965 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
966 | esac ;; | |
967 | esac | |
968 | done | |
969 | emulations=$_gas_uniq_newlist | |
970 | ||
971 | for em in . $emulations ; do | |
972 | case $em in | |
973 | .) continue ;; | |
974 | mipsbelf | mipslelf) | |
975 | fmt=elf file=mipself ;; | |
976 | mipsbecoff | mipslecoff) | |
977 | fmt=ecoff file=mipsecoff ;; | |
978 | esac | |
979 | formats="$formats $fmt" | |
980 | emfiles="$emfiles e-$file.o" | |
981 | EMULATIONS="$EMULATIONS &$em," | |
982 | done | |
983 | _gas_uniq_list="$formats" | |
984 | _gas_uniq_newlist="" | |
985 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
986 | case $_gas_uniq_i in | |
987 | _gas_uniq_dummy) ;; | |
988 | *) case " $_gas_uniq_newlist " in | |
989 | *" $_gas_uniq_i "*) ;; | |
990 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
991 | esac ;; | |
992 | esac | |
993 | done | |
994 | formats=$_gas_uniq_newlist | |
995 | ||
996 | _gas_uniq_list="$emfiles" | |
997 | _gas_uniq_newlist="" | |
998 | for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do | |
999 | case $_gas_uniq_i in | |
1000 | _gas_uniq_dummy) ;; | |
1001 | *) case " $_gas_uniq_newlist " in | |
1002 | *" $_gas_uniq_i "*) ;; | |
1003 | *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;; | |
1004 | esac ;; | |
1005 | esac | |
1006 | done | |
1007 | emfiles=$_gas_uniq_newlist | |
1008 | ||
1009 | if test `set . $formats ; shift ; echo $#` -gt 1 ; then | |
1010 | for fmt in $formats ; do | |
1011 | case $fmt in | |
1012 | aout) cat >> confdefs.h <<\EOF | |
1013 | #define OBJ_MAYBE_AOUT 1 | |
1014 | EOF | |
1015 | ;; | |
1016 | bout) cat >> confdefs.h <<\EOF | |
1017 | #define OBJ_MAYBE_BOUT 1 | |
1018 | EOF | |
1019 | ;; | |
1020 | coff) cat >> confdefs.h <<\EOF | |
1021 | #define OBJ_MAYBE_COFF 1 | |
1022 | EOF | |
1023 | ;; | |
1024 | ecoff) cat >> confdefs.h <<\EOF | |
1025 | #define OBJ_MAYBE_ECOFF 1 | |
1026 | EOF | |
1027 | ;; | |
1028 | elf) cat >> confdefs.h <<\EOF | |
1029 | #define OBJ_MAYBE_ELF 1 | |
1030 | EOF | |
1031 | ;; | |
1032 | generic) cat >> confdefs.h <<\EOF | |
1033 | #define OBJ_MAYBE_GENERIC 1 | |
1034 | EOF | |
1035 | ;; | |
1036 | hp300) cat >> confdefs.h <<\EOF | |
1037 | #define OBJ_MAYBE_HP300 1 | |
1038 | EOF | |
1039 | ;; | |
1040 | ieee) cat >> confdefs.h <<\EOF | |
1041 | #define OBJ_MAYBE_IEEE 1 | |
1042 | EOF | |
1043 | ;; | |
1044 | som) cat >> confdefs.h <<\EOF | |
1045 | #define OBJ_MAYBE_SOM 1 | |
1046 | EOF | |
1047 | ;; | |
1048 | vms) cat >> confdefs.h <<\EOF | |
1049 | #define OBJ_MAYBE_VMS 1 | |
1050 | EOF | |
1051 | ;; | |
1052 | esac | |
1053 | extra_objects="$extra_objects obj-$fmt.o" | |
1054 | done | |
1055 | obj_format=multi | |
1056 | fi | |
1057 | if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then | |
1058 | te_file=multi | |
1059 | extra_objects="$extra_objects $emfiles" | |
1060 | DEFAULT_EMULATION=`set . $emulations ; echo $2` | |
1061 | cat >> confdefs.h <<\EOF | |
1062 | #define USE_EMULATIONS 1 | |
1063 | EOF | |
1064 | ||
1065 | fi | |
1066 | ||
1067 | cat >> confdefs.h <<EOF | |
1068 | #define EMULATIONS $EMULATIONS | |
1069 | EOF | |
1070 | ||
1071 | cat >> confdefs.h <<EOF | |
1072 | #define DEFAULT_EMULATION "$DEFAULT_EMULATION" | |
1073 | EOF | |
1074 | ||
1075 | ||
1076 | files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \ | |
1077 | config/obj-${obj_format}.h config/obj-${obj_format}.c \ | |
1078 | config/te-${te_file}.h config/atof-${atof}.c \ | |
1079 | $extra_files" | |
1080 | links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \ | |
1081 | $extra_links" | |
1082 | ||
1083 | case ${primary_bfd_gas}-${cpu_type}-${obj_format} in | |
318b02b6 KR |
1084 | yes-*-coff) need_bfd=yes ;; |
1085 | no-*-coff) need_bfd=yes | |
1086 | cat >> confdefs.h <<\EOF | |
1087 | #define MANY_SEGMENTS 1 | |
1088 | EOF | |
1089 | ;; | |
1090 | esac | |
1091 | ||
b11fb939 KR |
1092 | reject_dev_configs=yes |
1093 | ||
1094 | case ${reject_dev_configs}-${dev} in | |
1095 | yes-yes) # Oops. | |
ba49e48d | 1096 | { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; } |
b11fb939 KR |
1097 | ;; |
1098 | esac | |
1099 | ||
b11fb939 KR |
1100 | |
1101 | ||
833c46e1 KR |
1102 | |
1103 | ||
1104 | ||
1105 | ||
e7757ad0 | 1106 | case "${primary_bfd_gas}" in |
b11fb939 KR |
1107 | yes) cat >> confdefs.h <<\EOF |
1108 | #define BFD_ASSEMBLER 1 | |
1109 | EOF | |
1110 | ||
1111 | need_bfd=yes ;; | |
1112 | esac | |
1113 | ||
1114 | case "${need_bfd}" in | |
1115 | yes) BFDLIB=../bfd/libbfd.a | |
1116 | ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h" | |
1117 | ;; | |
1118 | esac | |
1119 | ||
1120 | ||
1121 | ||
b11fb939 KR |
1122 | cat >> confdefs.h <<EOF |
1123 | #define TARGET_ALIAS "${target_alias}" | |
1124 | EOF | |
1125 | ||
1126 | cat >> confdefs.h <<EOF | |
1127 | #define TARGET_CANONICAL "${target}" | |
1128 | EOF | |
1129 | ||
1130 | cat >> confdefs.h <<EOF | |
1131 | #define TARGET_CPU "${target_cpu}" | |
1132 | EOF | |
1133 | ||
1134 | cat >> confdefs.h <<EOF | |
1135 | #define TARGET_VENDOR "${target_vendor}" | |
1136 | EOF | |
1137 | ||
1138 | cat >> confdefs.h <<EOF | |
1139 | #define TARGET_OS "${target_os}" | |
1140 | EOF | |
1141 | ||
1142 | ||
833c46e1 | 1143 | echo $ac_n "checking for CC""... $ac_c" 1>&6 |
b11fb939 KR |
1144 | test -z "$CC" && CC=`egrep '^CC *=' ../Makefile | tail -1 | sed 's/^CC *= *//'` |
1145 | test -z "$CC" && CC=cc | |
833c46e1 | 1146 | echo "$ac_t""setting CC to $CC" 1>&6 |
b11fb939 KR |
1147 | |
1148 | # Find out if we are using GNU C, under whatever name. | |
1149 | cat > conftest.c <<EOF | |
1150 | #ifdef __GNUC__ | |
1151 | yes | |
1152 | #endif | |
1153 | EOF | |
1154 | ${CC-cc} -E conftest.c > conftest.out 2>&1 | |
1155 | if egrep yes conftest.out >/dev/null 2>&1; then | |
1156 | GCC=yes | |
1157 | else | |
1158 | GCC= | |
1159 | fi | |
1160 | rm -f conftest* | |
1161 | ||
bf111c9f KR |
1162 | # Find a good install program. We prefer a C program (faster), |
1163 | # so one script is as good as another. But avoid the broken or | |
1164 | # incompatible versions: | |
b11fb939 KR |
1165 | # SysV /etc/install, /usr/sbin/install |
1166 | # SunOS /usr/etc/install | |
1167 | # IRIX /sbin/install | |
1168 | # AIX /bin/install | |
1169 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1170 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1171 | # ./install, which can be erroneously created by make from ./install.sh. | |
833c46e1 | 1172 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
28d3e4a3 | 1173 | if test -z "$INSTALL"; then |
833c46e1 KR |
1174 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
1175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1176 | else |
1177 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1178 | for ac_dir in $PATH; do | |
833c46e1 KR |
1179 | # Account for people who put trailing slashes in PATH elements. |
1180 | case "$ac_dir/" in | |
1181 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
b11fb939 KR |
1182 | *) |
1183 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1184 | for ac_prog in ginstall installbsd scoinst install; do | |
1185 | if test -f $ac_dir/$ac_prog; then | |
1186 | if test $ac_prog = install && | |
1187 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
1188 | # AIX install. It has an incompatible calling convention. | |
1189 | # OSF/1 installbsd also uses dspmsg, but is usable. | |
1190 | : | |
1191 | else | |
1192 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1193 | break 2 | |
1194 | fi | |
1195 | fi | |
1196 | done | |
1197 | ;; | |
1198 | esac | |
1199 | done | |
1200 | IFS="$ac_save_ifs" | |
1201 | # As a last resort, use the slow shell script. | |
1202 | test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh" | |
1203 | fi | |
1204 | INSTALL="$ac_cv_path_install" | |
1205 | fi | |
833c46e1 | 1206 | echo "$ac_t""$INSTALL" 1>&6 |
b11fb939 KR |
1207 | |
1208 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1209 | # It thinks the first close brace ends the variable substitution. | |
1210 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1211 | ||
1212 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1213 | ||
1214 | ||
833c46e1 | 1215 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
b11fb939 KR |
1216 | # On Suns, sometimes $CPP names a directory. |
1217 | if test -n "$CPP" && test -d "$CPP"; then | |
1218 | CPP= | |
1219 | fi | |
1220 | if test -z "$CPP"; then | |
833c46e1 KR |
1221 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
1222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1223 | else |
1224 | # This must be in double quotes, not single quotes, because CPP may get | |
1225 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
1226 | CPP="${CC-cc} -E" | |
1227 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1228 | # not just through cpp. | |
28d3e4a3 | 1229 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1230 | #line 1231 "configure" |
b11fb939 | 1231 | #include "confdefs.h" |
f2889110 | 1232 | #include <assert.h> |
b11fb939 KR |
1233 | Syntax Error |
1234 | EOF | |
28d3e4a3 | 1235 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
bf111c9f | 1236 | ac_err=`grep -v '^ *+' conftest.out` |
b11fb939 KR |
1237 | if test -z "$ac_err"; then |
1238 | : | |
1239 | else | |
fb589130 | 1240 | echo "$ac_err" >&5 |
b11fb939 KR |
1241 | rm -rf conftest* |
1242 | CPP="${CC-cc} -E -traditional-cpp" | |
28d3e4a3 | 1243 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1244 | #line 1245 "configure" |
b11fb939 | 1245 | #include "confdefs.h" |
f2889110 | 1246 | #include <assert.h> |
b11fb939 KR |
1247 | Syntax Error |
1248 | EOF | |
28d3e4a3 | 1249 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
bf111c9f | 1250 | ac_err=`grep -v '^ *+' conftest.out` |
b11fb939 KR |
1251 | if test -z "$ac_err"; then |
1252 | : | |
1253 | else | |
fb589130 | 1254 | echo "$ac_err" >&5 |
b11fb939 KR |
1255 | rm -rf conftest* |
1256 | CPP=/lib/cpp | |
1257 | fi | |
1258 | rm -f conftest* | |
1259 | fi | |
1260 | rm -f conftest* | |
1261 | ac_cv_prog_CPP="$CPP" | |
1262 | fi | |
e63c594d FF |
1263 | CPP="$ac_cv_prog_CPP" |
1264 | else | |
1265 | ac_cv_prog_CPP="$CPP" | |
b11fb939 | 1266 | fi |
833c46e1 | 1267 | echo "$ac_t""$CPP" 1>&6 |
fb589130 KR |
1268 | |
1269 | for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h | |
1270 | do | |
f2889110 | 1271 | ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
833c46e1 KR |
1272 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
1273 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | |
1274 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1275 | else |
28d3e4a3 | 1276 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1277 | #line 1278 "configure" |
b11fb939 | 1278 | #include "confdefs.h" |
28d3e4a3 | 1279 | #include <$ac_hdr> |
b11fb939 | 1280 | EOF |
28d3e4a3 | 1281 | eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
bf111c9f | 1282 | ac_err=`grep -v '^ *+' conftest.out` |
b11fb939 KR |
1283 | if test -z "$ac_err"; then |
1284 | rm -rf conftest* | |
fb589130 | 1285 | eval "ac_cv_header_$ac_safe=yes" |
b11fb939 | 1286 | else |
fb589130 | 1287 | echo "$ac_err" >&5 |
b11fb939 | 1288 | rm -rf conftest* |
fb589130 | 1289 | eval "ac_cv_header_$ac_safe=no" |
b11fb939 KR |
1290 | fi |
1291 | rm -f conftest* | |
b11fb939 | 1292 | fi |
fb589130 | 1293 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
833c46e1 | 1294 | echo "$ac_t""yes" 1>&6 |
f2889110 | 1295 | ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` |
fb589130 | 1296 | cat >> confdefs.h <<EOF |
28d3e4a3 | 1297 | #define $ac_tr_hdr 1 |
b11fb939 | 1298 | EOF |
fb589130 | 1299 | |
b11fb939 | 1300 | else |
833c46e1 | 1301 | echo "$ac_t""no" 1>&6 |
b11fb939 | 1302 | fi |
fb589130 | 1303 | done |
b11fb939 | 1304 | |
b11fb939 | 1305 | |
bf111c9f KR |
1306 | # Put this here so that autoconf's "cross-compiling" message doesn't confuse |
1307 | # people who are not cross-compiling but are compiling cross-assemblers. | |
833c46e1 | 1308 | echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6 |
bf111c9f | 1309 | if test "${host}" = "${target}"; then |
ba49e48d KR |
1310 | cross_gas=no |
1311 | else | |
bf111c9f KR |
1312 | cross_gas=yes |
1313 | cat >> confdefs.h <<\EOF | |
1314 | #define CROSS_COMPILE 1 | |
1315 | EOF | |
1316 | ||
bf111c9f | 1317 | fi |
833c46e1 | 1318 | echo "$ac_t""$cross_gas" 1>&6 |
bf111c9f | 1319 | |
b11fb939 | 1320 | # If we cannot run a trivial program, we must be cross compiling. |
833c46e1 KR |
1321 | echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 |
1322 | if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then | |
1323 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1324 | else |
1325 | if test "$cross_compiling" = yes; then | |
833c46e1 | 1326 | ac_cv_c_cross=yes |
b11fb939 | 1327 | else |
28d3e4a3 | 1328 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1329 | #line 1330 "configure" |
b11fb939 | 1330 | #include "confdefs.h" |
bf111c9f | 1331 | main(){return(0);} |
b11fb939 | 1332 | EOF |
e23b25ec | 1333 | eval $ac_link |
b11fb939 KR |
1334 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1335 | ac_cv_c_cross=no | |
1336 | else | |
1337 | ac_cv_c_cross=yes | |
1338 | fi | |
1339 | fi | |
1340 | rm -fr conftest* | |
1341 | fi | |
1342 | cross_compiling=$ac_cv_c_cross | |
833c46e1 | 1343 | echo "$ac_t""$ac_cv_c_cross" 1>&6 |
b11fb939 KR |
1344 | |
1345 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
1346 | # for constant arguments. Useless! | |
833c46e1 KR |
1347 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
1348 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | |
1349 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1350 | else |
28d3e4a3 | 1351 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1352 | #line 1353 "configure" |
b11fb939 KR |
1353 | #include "confdefs.h" |
1354 | #include <alloca.h> | |
1355 | int main() { return 0; } | |
1356 | int t() { | |
1357 | char *p = alloca(2 * sizeof(int)); | |
1358 | ; return 0; } | |
1359 | EOF | |
e23b25ec | 1360 | if eval $ac_link; then |
b11fb939 KR |
1361 | rm -rf conftest* |
1362 | ac_cv_header_alloca_h=yes | |
1363 | else | |
1364 | rm -rf conftest* | |
1365 | ac_cv_header_alloca_h=no | |
1366 | fi | |
1367 | rm -f conftest* | |
1368 | ||
1369 | fi | |
833c46e1 | 1370 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
b11fb939 KR |
1371 | if test $ac_cv_header_alloca_h = yes; then |
1372 | cat >> confdefs.h <<\EOF | |
1373 | #define HAVE_ALLOCA_H 1 | |
1374 | EOF | |
1375 | ||
1376 | fi | |
1377 | ||
833c46e1 KR |
1378 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
1379 | if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then | |
1380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1381 | else |
28d3e4a3 | 1382 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1383 | #line 1384 "configure" |
b11fb939 KR |
1384 | #include "confdefs.h" |
1385 | ||
1386 | #ifdef __GNUC__ | |
1387 | # define alloca __builtin_alloca | |
1388 | #else | |
1389 | # if HAVE_ALLOCA_H | |
1390 | # include <alloca.h> | |
1391 | # else | |
1392 | # ifdef _AIX | |
1393 | #pragma alloca | |
1394 | # else | |
1395 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
1396 | char *alloca (); | |
1397 | # endif | |
1398 | # endif | |
1399 | # endif | |
1400 | #endif | |
1401 | ||
1402 | int main() { return 0; } | |
1403 | int t() { | |
1404 | char *p = (char *) alloca(1); | |
1405 | ; return 0; } | |
1406 | EOF | |
e23b25ec | 1407 | if eval $ac_link; then |
b11fb939 KR |
1408 | rm -rf conftest* |
1409 | ac_cv_func_alloca=yes | |
1410 | else | |
1411 | rm -rf conftest* | |
1412 | ac_cv_func_alloca=no | |
1413 | fi | |
1414 | rm -f conftest* | |
1415 | ||
1416 | fi | |
833c46e1 | 1417 | echo "$ac_t""$ac_cv_func_alloca" 1>&6 |
b11fb939 KR |
1418 | if test $ac_cv_func_alloca = yes; then |
1419 | cat >> confdefs.h <<\EOF | |
1420 | #define HAVE_ALLOCA 1 | |
1421 | EOF | |
1422 | ||
1423 | fi | |
1424 | ||
1425 | if test $ac_cv_func_alloca = no; then | |
1426 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
1427 | # that cause trouble. Some versions do not even contain alloca or | |
1428 | # contain a buggy version. If you still want to use their alloca, | |
1429 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
1430 | ALLOCA=alloca.o | |
1431 | cat >> confdefs.h <<\EOF | |
1432 | #define C_ALLOCA 1 | |
1433 | EOF | |
1434 | ||
1435 | ||
833c46e1 KR |
1436 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
1437 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | |
1438 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1439 | else |
28d3e4a3 | 1440 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1441 | #line 1442 "configure" |
b11fb939 KR |
1442 | #include "confdefs.h" |
1443 | #if defined(CRAY) && ! defined(CRAY2) | |
1444 | webecray | |
1445 | #else | |
1446 | wenotbecray | |
1447 | #endif | |
1448 | ||
1449 | EOF | |
28d3e4a3 | 1450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
fb589130 | 1451 | egrep "webecray" >/dev/null 2>&1; then |
b11fb939 KR |
1452 | rm -rf conftest* |
1453 | ac_cv_os_cray=yes | |
1454 | else | |
1455 | rm -rf conftest* | |
1456 | ac_cv_os_cray=no | |
1457 | fi | |
1458 | rm -f conftest* | |
1459 | ||
1460 | fi | |
833c46e1 | 1461 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
b11fb939 | 1462 | if test $ac_cv_os_cray = yes; then |
833c46e1 KR |
1463 | for ac_func in _getb67 GETB67 getb67; do |
1464 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1465 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1467 | else |
28d3e4a3 | 1468 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1469 | #line 1470 "configure" |
b11fb939 | 1470 | #include "confdefs.h" |
833c46e1 KR |
1471 | /* System header to define __stub macros and hopefully few prototypes, |
1472 | which can conflict with char $ac_func(); below. */ | |
1473 | #include <assert.h> | |
f1698cb7 | 1474 | /* Override any gcc2 internal prototype to avoid an error. */ |
833c46e1 | 1475 | char $ac_func(); |
f1698cb7 | 1476 | |
b11fb939 KR |
1477 | int main() { return 0; } |
1478 | int t() { | |
1479 | ||
1480 | /* The GNU C library defines this for functions which it implements | |
1481 | to always fail with ENOSYS. Some functions are actually named | |
1482 | something starting with __ and the normal name is an alias. */ | |
833c46e1 | 1483 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b11fb939 KR |
1484 | choke me |
1485 | #else | |
833c46e1 | 1486 | $ac_func(); |
b11fb939 KR |
1487 | #endif |
1488 | ||
1489 | ; return 0; } | |
1490 | EOF | |
e23b25ec | 1491 | if eval $ac_link; then |
b11fb939 | 1492 | rm -rf conftest* |
833c46e1 | 1493 | eval "ac_cv_func_$ac_func=yes" |
b11fb939 KR |
1494 | else |
1495 | rm -rf conftest* | |
833c46e1 | 1496 | eval "ac_cv_func_$ac_func=no" |
b11fb939 KR |
1497 | fi |
1498 | rm -f conftest* | |
1499 | ||
1500 | fi | |
833c46e1 KR |
1501 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
1502 | echo "$ac_t""yes" 1>&6 | |
1503 | cat >> confdefs.h <<EOF | |
1504 | #define CRAY_STACKSEG_END $ac_func | |
b11fb939 KR |
1505 | EOF |
1506 | ||
833c46e1 | 1507 | break |
b11fb939 | 1508 | else |
833c46e1 | 1509 | echo "$ac_t""no" 1>&6 |
b11fb939 KR |
1510 | fi |
1511 | ||
833c46e1 | 1512 | done |
b11fb939 KR |
1513 | fi |
1514 | ||
833c46e1 KR |
1515 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
1516 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | |
1517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 KR |
1518 | else |
1519 | if test "$cross_compiling" = yes; then | |
bf111c9f | 1520 | ac_cv_c_stack_direction=0 |
b11fb939 | 1521 | else |
28d3e4a3 | 1522 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1523 | #line 1524 "configure" |
b11fb939 KR |
1524 | #include "confdefs.h" |
1525 | find_stack_direction () | |
1526 | { | |
1527 | static char *addr = 0; | |
1528 | auto char dummy; | |
1529 | if (addr == 0) | |
1530 | { | |
1531 | addr = &dummy; | |
1532 | return find_stack_direction (); | |
1533 | } | |
1534 | else | |
1535 | return (&dummy > addr) ? 1 : -1; | |
1536 | } | |
1537 | main () | |
1538 | { | |
1539 | exit (find_stack_direction() < 0); | |
1540 | } | |
1541 | EOF | |
e23b25ec | 1542 | eval $ac_link |
b11fb939 KR |
1543 | if test -s conftest && (./conftest; exit) 2>/dev/null; then |
1544 | ac_cv_c_stack_direction=1 | |
1545 | else | |
1546 | ac_cv_c_stack_direction=-1 | |
1547 | fi | |
1548 | fi | |
1549 | rm -fr conftest* | |
1550 | fi | |
833c46e1 | 1551 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
b11fb939 KR |
1552 | cat >> confdefs.h <<EOF |
1553 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
1554 | EOF | |
1555 | ||
1556 | fi | |
1557 | ||
833c46e1 KR |
1558 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
1559 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | |
1560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b11fb939 | 1561 | else |
833c46e1 KR |
1562 | ac_cv_c_inline=no |
1563 | for ac_kw in inline __inline__ __inline; do | |
1564 | cat > conftest.$ac_ext <<EOF | |
e63c594d | 1565 | #line 1566 "configure" |
b11fb939 KR |
1566 | #include "confdefs.h" |
1567 | ||
1568 | int main() { return 0; } | |
1569 | int t() { | |
833c46e1 | 1570 | } $ac_kw foo() { |
b11fb939 KR |
1571 | ; return 0; } |
1572 | EOF | |
f2889110 | 1573 | if eval $ac_compile; then |
b11fb939 | 1574 | rm -rf conftest* |
833c46e1 | 1575 | ac_cv_c_inline=$ac_kw; break |
b11fb939 KR |
1576 | fi |
1577 | rm -f conftest* | |
1578 | ||
833c46e1 | 1579 | done |
b11fb939 KR |
1580 | |
1581 | fi | |
833c46e1 KR |
1582 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
1583 | case "$ac_cv_c_inline" in | |
1584 | inline | yes) ;; | |
1585 | no) cat >> confdefs.h <<\EOF | |
1586 | #define inline | |
1587 | EOF | |
1588 | ;; | |
1589 | *) cat >> confdefs.h <<EOF | |
1590 | #define inline $ac_cv_c_inline | |
1591 | EOF | |
1592 | ;; | |
1593 | esac | |
b11fb939 KR |
1594 | |
1595 | ||
ba49e48d KR |
1596 | # VMS doesn't have unlink. |
1597 | for ac_func in unlink remove | |
b9419dd2 | 1598 | do |
833c46e1 KR |
1599 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
1600 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1601 | echo $ac_n "(cached) $ac_c" 1>&6 | |
28d3e4a3 KR |
1602 | else |
1603 | cat > conftest.$ac_ext <<EOF | |
e63c594d | 1604 | #line 1605 "configure" |
28d3e4a3 | 1605 | #include "confdefs.h" |
833c46e1 KR |
1606 | /* System header to define __stub macros and hopefully few prototypes, |
1607 | which can conflict with char $ac_func(); below. */ | |
1608 | #include <assert.h> | |
f1698cb7 KR |
1609 | /* Override any gcc2 internal prototype to avoid an error. */ |
1610 | char $ac_func(); | |
1611 | ||
28d3e4a3 KR |
1612 | int main() { return 0; } |
1613 | int t() { | |
1614 | ||
1615 | /* The GNU C library defines this for functions which it implements | |
1616 | to always fail with ENOSYS. Some functions are actually named | |
1617 | something starting with __ and the normal name is an alias. */ | |
b9419dd2 | 1618 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
28d3e4a3 KR |
1619 | choke me |
1620 | #else | |
f1698cb7 | 1621 | $ac_func(); |
28d3e4a3 KR |
1622 | #endif |
1623 | ||
1624 | ; return 0; } | |
1625 | EOF | |
1626 | if eval $ac_link; then | |
1627 | rm -rf conftest* | |
b9419dd2 | 1628 | eval "ac_cv_func_$ac_func=yes" |
28d3e4a3 KR |
1629 | else |
1630 | rm -rf conftest* | |
b9419dd2 | 1631 | eval "ac_cv_func_$ac_func=no" |
28d3e4a3 KR |
1632 | fi |
1633 | rm -f conftest* | |
1634 | ||
1635 | fi | |
b9419dd2 | 1636 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
833c46e1 | 1637 | echo "$ac_t""yes" 1>&6 |
b9419dd2 KR |
1638 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` |
1639 | cat >> confdefs.h <<EOF | |
1640 | #define $ac_tr_func 1 | |
28d3e4a3 | 1641 | EOF |
b9419dd2 | 1642 | break |
28d3e4a3 | 1643 | else |
833c46e1 | 1644 | echo "$ac_t""no" 1>&6 |
28d3e4a3 | 1645 | fi |
b9419dd2 | 1646 | done |
28d3e4a3 KR |
1647 | |
1648 | ||
e63c594d FF |
1649 | # Some systems don't have sbrk(). |
1650 | for ac_func in sbrk | |
1651 | do | |
1652 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
1653 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | |
1654 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1655 | else | |
1656 | cat > conftest.$ac_ext <<EOF | |
1657 | #line 1658 "configure" | |
1658 | #include "confdefs.h" | |
1659 | /* System header to define __stub macros and hopefully few prototypes, | |
1660 | which can conflict with char $ac_func(); below. */ | |
1661 | #include <assert.h> | |
1662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1663 | char $ac_func(); | |
1664 | ||
1665 | int main() { return 0; } | |
1666 | int t() { | |
1667 | ||
1668 | /* The GNU C library defines this for functions which it implements | |
1669 | to always fail with ENOSYS. Some functions are actually named | |
1670 | something starting with __ and the normal name is an alias. */ | |
1671 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
1672 | choke me | |
1673 | #else | |
1674 | $ac_func(); | |
1675 | #endif | |
1676 | ||
1677 | ; return 0; } | |
1678 | EOF | |
1679 | if eval $ac_link; then | |
1680 | rm -rf conftest* | |
1681 | eval "ac_cv_func_$ac_func=yes" | |
1682 | else | |
1683 | rm -rf conftest* | |
1684 | eval "ac_cv_func_$ac_func=no" | |
1685 | fi | |
1686 | rm -f conftest* | |
1687 | ||
1688 | fi | |
1689 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
1690 | echo "$ac_t""yes" 1>&6 | |
1691 | ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` | |
1692 | cat >> confdefs.h <<EOF | |
1693 | #define $ac_tr_func 1 | |
1694 | EOF | |
1695 | ||
1696 | else | |
1697 | echo "$ac_t""no" 1>&6 | |
1698 | fi | |
1699 | done | |
1700 | ||
1701 | ||
b11fb939 KR |
1702 | # Some non-ANSI preprocessors botch requoting inside strings. That's bad |
1703 | # enough, but on some of those systems, the assert macro relies on requoting | |
1704 | # working properly! | |
833c46e1 KR |
1705 | echo $ac_n "checking for working assert macro""... $ac_c" 1>&6 |
1706 | if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then | |
1707 | echo $ac_n "(cached) $ac_c" 1>&6 | |
fb589130 | 1708 | else |
28d3e4a3 | 1709 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1710 | #line 1711 "configure" |
b11fb939 KR |
1711 | #include "confdefs.h" |
1712 | #include <assert.h> | |
1713 | #include <stdio.h> | |
1714 | int main() { return 0; } | |
1715 | int t() { | |
1716 | ||
1717 | /* check for requoting problems */ | |
1718 | static int a, b, c, d; | |
1719 | static char *s; | |
1720 | assert (!strcmp(s, "foo bar baz quux")); | |
1721 | /* check for newline handling */ | |
1722 | assert (a == b | |
1723 | || c == d); | |
1724 | ||
1725 | ; return 0; } | |
1726 | EOF | |
e23b25ec | 1727 | if eval $ac_link; then |
fb589130 KR |
1728 | rm -rf conftest* |
1729 | gas_cv_assert_ok=yes | |
b11fb939 KR |
1730 | else |
1731 | rm -rf conftest* | |
fb589130 | 1732 | gas_cv_assert_ok=no |
b11fb939 KR |
1733 | fi |
1734 | rm -f conftest* | |
1735 | ||
fb589130 | 1736 | fi |
833c46e1 | 1737 | echo "$ac_t""$gas_cv_assert_ok" 1>&6 |
fb589130 KR |
1738 | test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF |
1739 | #define BROKEN_ASSERT 1 | |
1740 | EOF | |
1741 | ||
b11fb939 | 1742 | |
bf111c9f | 1743 | |
b11fb939 KR |
1744 | # On some systems, the system header files may not declare malloc, realloc, |
1745 | # and free. There are places where gas needs these functions to have been | |
1746 | # declared -- such as when taking their addresses. | |
bf111c9f | 1747 | gas_test_headers=" |
b11fb939 KR |
1748 | #ifdef HAVE_MEMORY_H |
1749 | #include <memory.h> | |
1750 | #endif | |
1751 | #ifdef HAVE_STRING_H | |
1752 | #include <string.h> | |
1753 | #endif | |
1754 | #ifdef HAVE_STDLIB_H | |
1755 | #include <stdlib.h> | |
1756 | #endif | |
1757 | #ifdef HAVE_UNISTD_H | |
1758 | #include <unistd.h> | |
1759 | #endif | |
bf111c9f | 1760 | " |
b11fb939 | 1761 | |
833c46e1 KR |
1762 | echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6 |
1763 | if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then | |
1764 | echo $ac_n "(cached) $ac_c" 1>&6 | |
bf111c9f | 1765 | else |
28d3e4a3 | 1766 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1767 | #line 1768 "configure" |
bf111c9f KR |
1768 | #include "confdefs.h" |
1769 | $gas_test_headers | |
b11fb939 KR |
1770 | int main() { return 0; } |
1771 | int t() { | |
1772 | ||
bf111c9f KR |
1773 | typedef char *(*f)(); |
1774 | f x; | |
1775 | x = (f) malloc; | |
b11fb939 KR |
1776 | |
1777 | ; return 0; } | |
1778 | EOF | |
e23b25ec | 1779 | if eval $ac_link; then |
fb589130 | 1780 | rm -rf conftest* |
bf111c9f | 1781 | gas_cv_decl_needed_malloc=no |
b11fb939 KR |
1782 | else |
1783 | rm -rf conftest* | |
bf111c9f | 1784 | gas_cv_decl_needed_malloc=yes |
fb589130 KR |
1785 | fi |
1786 | rm -f conftest* | |
1787 | ||
1788 | fi | |
833c46e1 | 1789 | echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6 |
bf111c9f KR |
1790 | test $gas_cv_decl_needed_malloc = no || { |
1791 | cat >> confdefs.h <<\EOF | |
1792 | #define NEED_DECLARATION_MALLOC 1 | |
b11fb939 KR |
1793 | EOF |
1794 | ||
bf111c9f KR |
1795 | } |
1796 | ||
b11fb939 | 1797 | |
833c46e1 KR |
1798 | echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6 |
1799 | if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then | |
1800 | echo $ac_n "(cached) $ac_c" 1>&6 | |
fb589130 | 1801 | else |
28d3e4a3 | 1802 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1803 | #line 1804 "configure" |
b11fb939 | 1804 | #include "confdefs.h" |
bf111c9f | 1805 | $gas_test_headers |
b11fb939 KR |
1806 | int main() { return 0; } |
1807 | int t() { | |
1808 | ||
bf111c9f KR |
1809 | typedef int f; |
1810 | f x; | |
1811 | x = (f) free; | |
b11fb939 KR |
1812 | |
1813 | ; return 0; } | |
1814 | EOF | |
e23b25ec | 1815 | if eval $ac_link; then |
fb589130 | 1816 | rm -rf conftest* |
bf111c9f | 1817 | gas_cv_decl_needed_free=no |
b11fb939 KR |
1818 | else |
1819 | rm -rf conftest* | |
bf111c9f | 1820 | gas_cv_decl_needed_free=yes |
b11fb939 KR |
1821 | fi |
1822 | rm -f conftest* | |
1823 | ||
fb589130 | 1824 | fi |
833c46e1 | 1825 | echo "$ac_t""$gas_cv_decl_needed_free" 1>&6 |
bf111c9f KR |
1826 | test $gas_cv_decl_needed_free = no || { |
1827 | cat >> confdefs.h <<\EOF | |
1828 | #define NEED_DECLARATION_FREE 1 | |
fb589130 KR |
1829 | EOF |
1830 | ||
bf111c9f KR |
1831 | } |
1832 | ||
b11fb939 KR |
1833 | |
1834 | # Does errno.h declare errno, or do we have to add a separate declaration | |
1835 | # for it? | |
bf111c9f | 1836 | |
833c46e1 KR |
1837 | echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6 |
1838 | if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then | |
1839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
fb589130 | 1840 | else |
28d3e4a3 | 1841 | cat > conftest.$ac_ext <<EOF |
e63c594d | 1842 | #line 1843 "configure" |
b11fb939 KR |
1843 | #include "confdefs.h" |
1844 | ||
1845 | #ifdef HAVE_ERRNO_H | |
1846 | #include <errno.h> | |
1847 | #endif | |
1848 | ||
1849 | int main() { return 0; } | |
1850 | int t() { | |
1851 | ||
bf111c9f KR |
1852 | typedef int f; |
1853 | f x; | |
1854 | x = (f) errno; | |
b11fb939 KR |
1855 | |
1856 | ; return 0; } | |
1857 | EOF | |
e23b25ec | 1858 | if eval $ac_link; then |
fb589130 | 1859 | rm -rf conftest* |
bf111c9f | 1860 | gas_cv_decl_needed_errno=no |
b11fb939 KR |
1861 | else |
1862 | rm -rf conftest* | |
bf111c9f | 1863 | gas_cv_decl_needed_errno=yes |
b11fb939 KR |
1864 | fi |
1865 | rm -f conftest* | |
1866 | ||
fb589130 | 1867 | fi |
833c46e1 | 1868 | echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6 |
bf111c9f KR |
1869 | test $gas_cv_decl_needed_errno = no || { |
1870 | cat >> confdefs.h <<\EOF | |
1871 | #define NEED_DECLARATION_ERRNO 1 | |
fb589130 KR |
1872 | EOF |
1873 | ||
bf111c9f KR |
1874 | } |
1875 | ||
b11fb939 KR |
1876 | |
1877 | subdirs="testsuite" | |
1878 | ||
1879 | ||
ba49e48d | 1880 | trap '' 1 2 15 |
833c46e1 | 1881 | cat > 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 | 1896 | EOF |
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 | |
1902 | if cmp -s $cache_file confcache; then | |
1903 | : | |
b11fb939 | 1904 | else |
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 | 1911 | fi |
833c46e1 | 1912 | rm -f confcache |
b11fb939 | 1913 | |
833c46e1 | 1914 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
b11fb939 | 1915 | |
f2889110 | 1916 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
b11fb939 KR |
1917 | # Let make expand exec_prefix. |
1918 | test "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. | |
1923 | if test "x$srcdir" = x.; then | |
1924 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
1925 | fi | |
1926 | ||
1927 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
1928 | ||
1929 | DEFS=-DHAVE_CONFIG_H | |
1930 | ||
1931 | # Without the "./", some shells look in PATH for config.status. | |
1932 | : ${CONFIG_STATUS=./config.status} | |
1933 | ||
28d3e4a3 KR |
1934 | echo creating $CONFIG_STATUS |
1935 | rm -f $CONFIG_STATUS | |
1936 | cat > $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 | 1948 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
b11fb939 KR |
1949 | for ac_option |
1950 | do | |
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 | |
1962 | done | |
1963 | ||
1964 | ac_given_srcdir=$srcdir | |
1965 | ac_given_INSTALL="$INSTALL" | |
1966 | ||
833c46e1 | 1967 | trap '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. | |
1970 | sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; | |
1971 | s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF | |
1972 | $ac_vpsub | |
1973 | $extrasub | |
b11fb939 | 1974 | s%@CFLAGS@%$CFLAGS%g |
b11fb939 | 1975 | s%@CPPFLAGS@%$CPPFLAGS%g |
bf111c9f KR |
1976 | s%@CXXFLAGS@%$CXXFLAGS%g |
1977 | s%@DEFS@%$DEFS%g | |
b11fb939 | 1978 | s%@LDFLAGS@%$LDFLAGS%g |
bf111c9f KR |
1979 | s%@LIBS@%$LIBS%g |
1980 | s%@exec_prefix@%$exec_prefix%g | |
1981 | s%@prefix@%$prefix%g | |
ba49e48d | 1982 | s%@program_transform_name@%$program_transform_name%g |
b11fb939 KR |
1983 | s%@host@%$host%g |
1984 | s%@host_alias@%$host_alias%g | |
1985 | s%@host_cpu@%$host_cpu%g | |
1986 | s%@host_vendor@%$host_vendor%g | |
1987 | s%@host_os@%$host_os%g | |
1988 | s%@target@%$target%g | |
1989 | s%@target_alias@%$target_alias%g | |
1990 | s%@target_cpu@%$target_cpu%g | |
1991 | s%@target_vendor@%$target_vendor%g | |
1992 | s%@target_os@%$target_os%g | |
1993 | s%@build@%$build%g | |
1994 | s%@build_alias@%$build_alias%g | |
1995 | s%@build_cpu@%$build_cpu%g | |
1996 | s%@build_vendor@%$build_vendor%g | |
1997 | s%@build_os@%$build_os%g | |
1998 | s%@OPCODES_LIB@%$OPCODES_LIB%g | |
1999 | /@target_frag@/r $target_frag | |
2000 | s%@target_frag@%%g | |
e7757ad0 | 2001 | s%@extra_objects@%$extra_objects%g |
833c46e1 KR |
2002 | s%@cpu_type@%$cpu_type%g |
2003 | s%@obj_format@%$obj_format%g | |
2004 | s%@atof@%$atof%g | |
b11fb939 KR |
2005 | s%@BFDLIB@%$BFDLIB%g |
2006 | s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g | |
2007 | s%@CC@%$CC%g | |
2008 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
2009 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
2010 | s%@CPP@%$CPP%g | |
2011 | s%@ALLOCA@%$ALLOCA%g | |
2012 | s%@subdirs@%$subdirs%g | |
2013 | ||
2014 | CEOF | |
2015 | EOF | |
28d3e4a3 | 2016 | cat >> $CONFIG_STATUS <<EOF |
b11fb939 | 2017 | |
28d3e4a3 | 2018 | CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"} |
bf111c9f | 2019 | EOF |
28d3e4a3 KR |
2020 | cat >> $CONFIG_STATUS <<\EOF |
2021 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
b11fb939 KR |
2022 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
2023 | case "$ac_file" in | |
2024 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2025 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2026 | *) ac_file_in="${ac_file}.in" ;; | |
2027 | esac | |
2028 | ||
2029 | # Adjust relative srcdir, etc. for subdirectories. | |
2030 | ||
2031 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2032 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
2033 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
2034 | # The file is in a subdirectory. | |
2035 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
833c46e1 | 2036 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
b11fb939 KR |
2037 | # A "../" for each directory in $ac_dir_suffix. |
2038 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
2039 | else | |
2040 | ac_dir_suffix= ac_dots= | |
2041 | fi | |
2042 | ||
2043 | case "$ac_given_srcdir" in | |
2044 | .) srcdir=. | |
2045 | if test -z "$ac_dots"; then top_srcdir=. | |
2046 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
2047 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
2048 | *) # Relative path. | |
2049 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
2050 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
2051 | esac | |
2052 | ||
2053 | case "$ac_given_INSTALL" in | |
2054 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
28d3e4a3 | 2055 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
b11fb939 KR |
2056 | esac |
2057 | echo creating "$ac_file" | |
2058 | rm -f "$ac_file" | |
28d3e4a3 | 2059 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
ba49e48d KR |
2060 | case "$ac_file" in |
2061 | *Makefile*) ac_comsub="1i\\ | |
2062 | # $configure_input" ;; | |
2063 | *) ac_comsub= ;; | |
2064 | esac | |
2065 | sed -e "$ac_comsub | |
28d3e4a3 | 2066 | s%@configure_input@%$configure_input%g |
b11fb939 KR |
2067 | s%@srcdir@%$srcdir%g |
2068 | s%@top_srcdir@%$top_srcdir%g | |
2069 | s%@INSTALL@%$INSTALL%g | |
2070 | " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file | |
2071 | fi; done | |
2072 | rm -f conftest.subs | |
2073 | ||
2074 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
2075 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
2076 | # | |
2077 | # ac_d sets the value in "#define NAME VALUE" lines. | |
2078 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
2079 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
2080 | ac_dC='\3' | |
2081 | ac_dD='%g' | |
2082 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
2083 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2084 | ac_uB='\([ ]\)%\1#\2define\3' | |
2085 | ac_uC=' ' | |
2086 | ac_uD='\4%g' | |
2087 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
2088 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
2089 | ac_eB='$%\1#\2define\3' | |
2090 | ac_eC=' ' | |
2091 | ac_eD='%g' | |
2092 | ||
2093 | CONFIG_HEADERS=${CONFIG_HEADERS-"conf"} | |
28d3e4a3 | 2094 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
b11fb939 KR |
2095 | # Support "outfile[:infile]", defaulting infile="outfile.in". |
2096 | case "$ac_file" in | |
2097 | *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` | |
2098 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
2099 | *) ac_file_in="${ac_file}.in" ;; | |
2100 | esac | |
2101 | ||
2102 | echo creating $ac_file | |
2103 | ||
2104 | rm -f conftest.frag conftest.in conftest.out | |
2105 | cp $ac_given_srcdir/$ac_file_in conftest.in | |
2106 | ||
2107 | EOF | |
2108 | ||
2109 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
fb589130 KR |
2110 | # the proper values into config.h.in to produce config.h. And first: |
2111 | # Protect against being on the right side of a sed subst in config.status. | |
2112 | # Protect against being in an unquoted here document in config.status. | |
b11fb939 KR |
2113 | rm -f conftest.vals |
2114 | cat > conftest.hdr <<\EOF | |
b11fb939 | 2115 | s/[\\&%]/\\&/g |
b11fb939 KR |
2116 | s%[\\$`]%\\&%g |
2117 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
2118 | s%ac_d%ac_u%gp | |
2119 | s%ac_u%ac_e%gp | |
2120 | EOF | |
2121 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
2122 | rm -f conftest.hdr | |
2123 | ||
2124 | # This sed command replaces #undef with comments. This is necessary, for | |
2125 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
2126 | # on some systems where configure will not decide to define it. | |
2127 | cat >> conftest.vals <<\EOF | |
2128 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
2129 | EOF | |
2130 | ||
2131 | # Break up conftest.vals because some shells have a limit on | |
2132 | # the size of here documents, and old seds have small limits too. | |
2133 | # Maximum number of lines to put in a single here document. | |
2134 | ac_max_here_lines=12 | |
2135 | ||
2136 | rm -f conftest.tail | |
2137 | while : | |
2138 | do | |
2139 | ac_lines=`grep -c . conftest.vals` | |
2140 | # grep -c gives empty output for an empty file on some AIX systems. | |
2141 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
2142 | # Write a limited-size here document to conftest.frag. | |
28d3e4a3 KR |
2143 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
2144 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
b11fb939 KR |
2145 | echo 'CEOF |
2146 | sed -f conftest.frag conftest.in > conftest.out | |
2147 | rm -f conftest.in | |
2148 | mv conftest.out conftest.in | |
28d3e4a3 | 2149 | ' >> $CONFIG_STATUS |
b11fb939 KR |
2150 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
2151 | rm -f conftest.vals | |
2152 | mv conftest.tail conftest.vals | |
2153 | done | |
2154 | rm -f conftest.vals | |
2155 | ||
28d3e4a3 | 2156 | cat >> $CONFIG_STATUS <<\EOF |
b11fb939 KR |
2157 | rm -f conftest.frag conftest.h |
2158 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
2159 | cat conftest.in >> conftest.h | |
2160 | rm -f conftest.in | |
2161 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
2162 | echo "$ac_file is unchanged" | |
2163 | rm -f conftest.h | |
2164 | else | |
2165 | rm -f $ac_file | |
2166 | mv conftest.h $ac_file | |
2167 | fi | |
2168 | fi; done | |
2169 | ||
2170 | EOF | |
2171 | ||
28d3e4a3 | 2172 | cat >> $CONFIG_STATUS <<EOF |
e7757ad0 KR |
2173 | ac_sources="$files" |
2174 | ac_dests="$links" | |
b11fb939 KR |
2175 | EOF |
2176 | ||
28d3e4a3 | 2177 | cat >> $CONFIG_STATUS <<\EOF |
bf111c9f | 2178 | srcdir=$ac_given_srcdir |
28d3e4a3 KR |
2179 | while test -n "$ac_sources"; do |
2180 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
2181 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
b11fb939 | 2182 | |
28d3e4a3 KR |
2183 | echo "linking $srcdir/$ac_source to $ac_dest" |
2184 | ||
2185 | if test ! -r $srcdir/$ac_source; then | |
ba49e48d | 2186 | { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; } |
28d3e4a3 KR |
2187 | fi |
2188 | rm -f $ac_dest | |
b11fb939 | 2189 | |
28d3e4a3 KR |
2190 | # Make relative symlinks. |
2191 | # Remove last slash and all that follows it. Not all systems have dirname. | |
2192 | ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'` | |
2193 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then | |
2194 | # The dest file is in a subdirectory. | |
2195 | test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir" | |
833c46e1 | 2196 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`" |
28d3e4a3 KR |
2197 | # A "../" for each directory in $ac_dest_dir_suffix. |
2198 | ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'` | |
2199 | else | |
2200 | ac_dest_dir_suffix= ac_dots= | |
b11fb939 | 2201 | fi |
28d3e4a3 KR |
2202 | |
2203 | case "$srcdir" in | |
2204 | [/$]*) ac_rel_source="$srcdir/$ac_source" ;; | |
2205 | *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;; | |
2206 | esac | |
2207 | ||
b11fb939 | 2208 | # Make a symlink if possible; otherwise try a hard link. |
28d3e4a3 KR |
2209 | if ln -s $ac_rel_source $ac_dest 2>/dev/null || |
2210 | ln $srcdir/$ac_source $ac_dest; then : | |
b11fb939 | 2211 | else |
ba49e48d | 2212 | { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; } |
b11fb939 KR |
2213 | fi |
2214 | done | |
2215 | ||
bf111c9f | 2216 | |
36e889af | 2217 | exit 0 |
b11fb939 | 2218 | EOF |
28d3e4a3 | 2219 | chmod +x $CONFIG_STATUS |
bf111c9f | 2220 | rm -fr confdefs* $ac_clean_files |
833c46e1 | 2221 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
b11fb939 | 2222 | |
28d3e4a3 | 2223 | if test "$no_recursion" != yes; then |
b11fb939 KR |
2224 | |
2225 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
2226 | ac_sub_configure_args= | |
2227 | ac_prev= | |
e23b25ec | 2228 | for ac_arg in $ac_configure_args; do |
b11fb939 KR |
2229 | if test -n "$ac_prev"; then |
2230 | ac_prev= | |
2231 | continue | |
2232 | fi | |
2233 | case "$ac_arg" in | |
2234 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
2235 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
2236 | ac_prev=cache_file ;; | |
2237 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
2238 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
2239 | ;; | |
2240 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
2241 | ac_prev=srcdir ;; | |
2242 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
2243 | ;; | |
b11fb939 KR |
2244 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
2245 | esac | |
2246 | done | |
2247 | ||
2248 | for ac_config_dir in testsuite; do | |
2249 | ||
2250 | # Do not complain, so a configure script can configure whichever | |
2251 | # parts of a large source tree are present. | |
28d3e4a3 | 2252 | if test ! -d $srcdir/$ac_config_dir; then |
b11fb939 KR |
2253 | continue |
2254 | fi | |
2255 | ||
28d3e4a3 | 2256 | echo configuring in $ac_config_dir |
b11fb939 | 2257 | |
28d3e4a3 | 2258 | case "$srcdir" in |
b11fb939 KR |
2259 | .) ;; |
2260 | *) | |
28d3e4a3 | 2261 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
b11fb939 | 2262 | else |
ba49e48d | 2263 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
b11fb939 KR |
2264 | fi |
2265 | ;; | |
2266 | esac | |
2267 | ||
2268 | ac_popdir=`pwd` | |
28d3e4a3 | 2269 | cd $ac_config_dir |
b11fb939 | 2270 | |
28d3e4a3 | 2271 | case "$srcdir" in |
b11fb939 | 2272 | .) # No --srcdir option. We are building in place. |
28d3e4a3 | 2273 | ac_sub_srcdir=$srcdir ;; |
b11fb939 | 2274 | /*) # Absolute path. |
28d3e4a3 | 2275 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
b11fb939 | 2276 | *) # Relative path. |
28d3e4a3 | 2277 | ac_sub_srcdir=../$srcdir/$ac_config_dir ;; |
b11fb939 KR |
2278 | esac |
2279 | ||
2280 | # Check for guested configure; otherwise get Cygnus style configure. | |
28d3e4a3 KR |
2281 | if test -f $ac_sub_srcdir/configure; then |
2282 | ac_sub_configure=$ac_sub_srcdir/configure | |
2283 | elif test -f $ac_sub_srcdir/configure.in; then | |
2284 | ac_sub_configure=$ac_configure | |
b11fb939 | 2285 | else |
28d3e4a3 | 2286 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
b11fb939 KR |
2287 | ac_sub_configure= |
2288 | fi | |
2289 | ||
2290 | # The recursion is here. | |
28d3e4a3 | 2291 | if test -n "$ac_sub_configure"; then |
b11fb939 KR |
2292 | |
2293 | # Make the cache file name correct relative to the subdirectory. | |
28d3e4a3 | 2294 | # A "../" for each directory in /$ac_config_dir. |
833c46e1 | 2295 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
b11fb939 KR |
2296 | case "$cache_file" in |
2297 | /*) ac_sub_cache_file=$cache_file ;; | |
2298 | *) # Relative path. | |
2299 | ac_sub_cache_file="$ac_dots$cache_file" ;; | |
2300 | esac | |
833c46e1 KR |
2301 | case "$ac_given_INSTALL" in |
2302 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
2303 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
2304 | esac | |
b11fb939 | 2305 | |
28d3e4a3 | 2306 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
e23b25ec | 2307 | # The eval makes quoting arguments work. |
28d3e4a3 | 2308 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
b11fb939 KR |
2309 | then : |
2310 | else | |
ba49e48d | 2311 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
b11fb939 KR |
2312 | fi |
2313 | fi | |
2314 | ||
28d3e4a3 | 2315 | cd $ac_popdir |
b11fb939 KR |
2316 | done |
2317 | fi | |
2318 |