]>
Commit | Line | Data |
---|---|---|
bafecfd6 | 1 | #! /bin/sh |
a3acbf46 | 2 | |
bafecfd6 NN |
3 | # Guess values for system-dependent variables and create Makefiles. |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
cb2333e8 DD |
14 | ac_help="$ac_help |
15 | --without-libbanshee Don't build with libbanshee" | |
d832a288 DD |
16 | ac_help="$ac_help |
17 | --enable-libada Builds libada directory" | |
cb2333e8 DD |
18 | ac_help="$ac_help |
19 | --with-gmp-dir=PATH Specify source directory for GMP library" | |
20 | ac_help="$ac_help | |
21 | --with-gmp=PATH Specify directory for installed GMP library" | |
e1666221 PB |
22 | ac_help="$ac_help |
23 | --enable-bootstrap Enable bootstrapping [no]" | |
af9955fa | 24 | ac_help="$ac_help |
7f74e6a3 DD |
25 | --enable-serial-[{host,target,build}-]configure |
26 | Force sequential configuration of | |
af9955fa | 27 | sub-packages for the host, target or build |
7f74e6a3 | 28 | machine, or all sub-packages" |
51dcf285 AO |
29 | ac_help="$ac_help |
30 | --enable-maintainer-mode enable make rules and dependencies not useful | |
31 | (and sometimes confusing) to the casual installer" | |
457eaf16 NN |
32 | ac_help="$ac_help |
33 | --enable-werror enable -Werror in bootstrap stage2 and later" | |
bafecfd6 NN |
34 | |
35 | # Initialize some variables set by options. | |
36 | # The variables have the same names as the options, with | |
37 | # dashes changed to underlines. | |
38 | build=NONE | |
39 | cache_file=./config.cache | |
40 | exec_prefix=NONE | |
41 | host=NONE | |
42 | no_create= | |
43 | nonopt=NONE | |
44 | no_recursion= | |
45 | prefix=NONE | |
46 | program_prefix=NONE | |
47 | program_suffix=NONE | |
48 | program_transform_name=s,x,x, | |
49 | silent= | |
50 | site= | |
51 | srcdir= | |
52 | target=NONE | |
53 | verbose= | |
54 | x_includes=NONE | |
55 | x_libraries=NONE | |
56 | bindir='${exec_prefix}/bin' | |
57 | sbindir='${exec_prefix}/sbin' | |
58 | libexecdir='${exec_prefix}/libexec' | |
59 | datadir='${prefix}/share' | |
60 | sysconfdir='${prefix}/etc' | |
61 | sharedstatedir='${prefix}/com' | |
62 | localstatedir='${prefix}/var' | |
63 | libdir='${exec_prefix}/lib' | |
64 | includedir='${prefix}/include' | |
65 | oldincludedir='/usr/include' | |
66 | infodir='${prefix}/info' | |
67 | mandir='${prefix}/man' | |
a3acbf46 | 68 | |
bafecfd6 NN |
69 | # Initialize some other variables. |
70 | subdirs= | |
71 | MFLAGS= MAKEFLAGS= | |
72 | SHELL=${CONFIG_SHELL-/bin/sh} | |
73 | # Maximum number of lines to put in a shell here document. | |
74 | ac_max_here_lines=12 | |
a3acbf46 | 75 | |
bafecfd6 NN |
76 | ac_prev= |
77 | for ac_option | |
78 | do | |
a3acbf46 | 79 | |
bafecfd6 NN |
80 | # If the previous option needs an argument, assign it. |
81 | if test -n "$ac_prev"; then | |
82 | eval "$ac_prev=\$ac_option" | |
83 | ac_prev= | |
84 | continue | |
85 | fi | |
a3acbf46 | 86 | |
bafecfd6 NN |
87 | case "$ac_option" in |
88 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
89 | *) ac_optarg= ;; | |
90 | esac | |
91 | ||
92 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
93 | ||
94 | case "$ac_option" in | |
95 | ||
96 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
97 | ac_prev=bindir ;; | |
98 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
99 | bindir="$ac_optarg" ;; | |
100 | ||
101 | -build | --build | --buil | --bui | --bu) | |
102 | ac_prev=build ;; | |
103 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
104 | build="$ac_optarg" ;; | |
105 | ||
106 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
107 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
108 | ac_prev=cache_file ;; | |
109 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
110 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
111 | cache_file="$ac_optarg" ;; | |
112 | ||
113 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
114 | ac_prev=datadir ;; | |
115 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
116 | | --da=*) | |
117 | datadir="$ac_optarg" ;; | |
118 | ||
119 | -disable-* | --disable-*) | |
120 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
121 | # Reject names that are not valid shell variable names. | |
122 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
123 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
124 | fi | |
125 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
126 | eval "enable_${ac_feature}=no" ;; | |
127 | ||
128 | -enable-* | --enable-*) | |
129 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
130 | # Reject names that are not valid shell variable names. | |
131 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 | fi | |
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 | case "$ac_option" in | |
136 | *=*) ;; | |
137 | *) ac_optarg=yes ;; | |
138 | esac | |
139 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
140 | ||
141 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
142 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
143 | | --exec | --exe | --ex) | |
144 | ac_prev=exec_prefix ;; | |
145 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
146 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
147 | | --exec=* | --exe=* | --ex=*) | |
148 | exec_prefix="$ac_optarg" ;; | |
149 | ||
150 | -gas | --gas | --ga | --g) | |
151 | # Obsolete; use --with-gas. | |
152 | with_gas=yes ;; | |
153 | ||
154 | -help | --help | --hel | --he) | |
155 | # Omit some internal or obsolete options to make the list less imposing. | |
156 | # This message is too long to be a string in the A/UX 3.1 sh. | |
157 | cat << EOF | |
158 | Usage: configure [options] [host] | |
159 | Options: [defaults in brackets after descriptions] | |
160 | Configuration: | |
161 | --cache-file=FILE cache test results in FILE | |
162 | --help print this message | |
163 | --no-create do not create output files | |
164 | --quiet, --silent do not print \`checking...' messages | |
165 | --version print the version of autoconf that created configure | |
166 | Directory and file names: | |
167 | --prefix=PREFIX install architecture-independent files in PREFIX | |
168 | [$ac_default_prefix] | |
169 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
170 | [same as prefix] | |
171 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
172 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
173 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
174 | --datadir=DIR read-only architecture-independent data in DIR | |
175 | [PREFIX/share] | |
176 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
177 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
178 | [PREFIX/com] | |
179 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
180 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
181 | --includedir=DIR C header files in DIR [PREFIX/include] | |
182 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
183 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
184 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
185 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
186 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
187 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
188 | --program-transform-name=PROGRAM | |
189 | run sed PROGRAM on installed program names | |
190 | EOF | |
191 | cat << EOF | |
192 | Host type: | |
193 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
194 | --host=HOST configure for HOST [guessed] | |
195 | --target=TARGET configure for TARGET [TARGET=HOST] | |
196 | Features and packages: | |
197 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
198 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
199 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
200 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
201 | --x-includes=DIR X include files are in DIR | |
202 | --x-libraries=DIR X library files are in DIR | |
203 | EOF | |
204 | if test -n "$ac_help"; then | |
205 | echo "--enable and --with options recognized:$ac_help" | |
206 | fi | |
207 | exit 0 ;; | |
208 | ||
209 | -host | --host | --hos | --ho) | |
210 | ac_prev=host ;; | |
211 | -host=* | --host=* | --hos=* | --ho=*) | |
212 | host="$ac_optarg" ;; | |
213 | ||
214 | -includedir | --includedir | --includedi | --included | --include \ | |
215 | | --includ | --inclu | --incl | --inc) | |
216 | ac_prev=includedir ;; | |
217 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
218 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
219 | includedir="$ac_optarg" ;; | |
220 | ||
221 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
222 | ac_prev=infodir ;; | |
223 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
224 | infodir="$ac_optarg" ;; | |
225 | ||
226 | -libdir | --libdir | --libdi | --libd) | |
227 | ac_prev=libdir ;; | |
228 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
229 | libdir="$ac_optarg" ;; | |
230 | ||
231 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
232 | | --libexe | --libex | --libe) | |
233 | ac_prev=libexecdir ;; | |
234 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
235 | | --libexe=* | --libex=* | --libe=*) | |
236 | libexecdir="$ac_optarg" ;; | |
237 | ||
238 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
239 | | --localstate | --localstat | --localsta | --localst \ | |
240 | | --locals | --local | --loca | --loc | --lo) | |
241 | ac_prev=localstatedir ;; | |
242 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
243 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
244 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
245 | localstatedir="$ac_optarg" ;; | |
246 | ||
247 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
248 | ac_prev=mandir ;; | |
249 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
250 | mandir="$ac_optarg" ;; | |
251 | ||
252 | -nfp | --nfp | --nf) | |
253 | # Obsolete; use --without-fp. | |
254 | with_fp=no ;; | |
255 | ||
256 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
257 | | --no-cr | --no-c) | |
258 | no_create=yes ;; | |
259 | ||
260 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
261 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
262 | no_recursion=yes ;; | |
263 | ||
264 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
265 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
266 | | --oldin | --oldi | --old | --ol | --o) | |
267 | ac_prev=oldincludedir ;; | |
268 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
269 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
270 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
271 | oldincludedir="$ac_optarg" ;; | |
272 | ||
273 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
274 | ac_prev=prefix ;; | |
275 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
276 | prefix="$ac_optarg" ;; | |
277 | ||
278 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
279 | | --program-pre | --program-pr | --program-p) | |
280 | ac_prev=program_prefix ;; | |
281 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
282 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
283 | program_prefix="$ac_optarg" ;; | |
284 | ||
285 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
286 | | --program-suf | --program-su | --program-s) | |
287 | ac_prev=program_suffix ;; | |
288 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
289 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
290 | program_suffix="$ac_optarg" ;; | |
291 | ||
292 | -program-transform-name | --program-transform-name \ | |
293 | | --program-transform-nam | --program-transform-na \ | |
294 | | --program-transform-n | --program-transform- \ | |
295 | | --program-transform | --program-transfor \ | |
296 | | --program-transfo | --program-transf \ | |
297 | | --program-trans | --program-tran \ | |
298 | | --progr-tra | --program-tr | --program-t) | |
299 | ac_prev=program_transform_name ;; | |
300 | -program-transform-name=* | --program-transform-name=* \ | |
301 | | --program-transform-nam=* | --program-transform-na=* \ | |
302 | | --program-transform-n=* | --program-transform-=* \ | |
303 | | --program-transform=* | --program-transfor=* \ | |
304 | | --program-transfo=* | --program-transf=* \ | |
305 | | --program-trans=* | --program-tran=* \ | |
306 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
307 | program_transform_name="$ac_optarg" ;; | |
308 | ||
309 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
310 | | -silent | --silent | --silen | --sile | --sil) | |
311 | silent=yes ;; | |
312 | ||
313 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
314 | ac_prev=sbindir ;; | |
315 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
316 | | --sbi=* | --sb=*) | |
317 | sbindir="$ac_optarg" ;; | |
318 | ||
319 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
320 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
321 | | --sharedst | --shareds | --shared | --share | --shar \ | |
322 | | --sha | --sh) | |
323 | ac_prev=sharedstatedir ;; | |
324 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
325 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
326 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
327 | | --sha=* | --sh=*) | |
328 | sharedstatedir="$ac_optarg" ;; | |
329 | ||
330 | -site | --site | --sit) | |
331 | ac_prev=site ;; | |
332 | -site=* | --site=* | --sit=*) | |
333 | site="$ac_optarg" ;; | |
334 | ||
335 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
336 | ac_prev=srcdir ;; | |
337 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
338 | srcdir="$ac_optarg" ;; | |
339 | ||
340 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
341 | | --syscon | --sysco | --sysc | --sys | --sy) | |
342 | ac_prev=sysconfdir ;; | |
343 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
344 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
345 | sysconfdir="$ac_optarg" ;; | |
346 | ||
347 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
348 | ac_prev=target ;; | |
349 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
350 | target="$ac_optarg" ;; | |
351 | ||
352 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
353 | verbose=yes ;; | |
354 | ||
355 | -version | --version | --versio | --versi | --vers) | |
356 | echo "configure generated by autoconf version 2.13" | |
357 | exit 0 ;; | |
358 | ||
359 | -with-* | --with-*) | |
360 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
361 | # Reject names that are not valid shell variable names. | |
362 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
363 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
364 | fi | |
365 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
366 | case "$ac_option" in | |
367 | *=*) ;; | |
368 | *) ac_optarg=yes ;; | |
369 | esac | |
370 | eval "with_${ac_package}='$ac_optarg'" ;; | |
371 | ||
372 | -without-* | --without-*) | |
373 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
374 | # Reject names that are not valid shell variable names. | |
375 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
376 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
377 | fi | |
378 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
379 | eval "with_${ac_package}=no" ;; | |
380 | ||
381 | --x) | |
382 | # Obsolete; use --with-x. | |
383 | with_x=yes ;; | |
384 | ||
385 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
386 | | --x-incl | --x-inc | --x-in | --x-i) | |
387 | ac_prev=x_includes ;; | |
388 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
389 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
390 | x_includes="$ac_optarg" ;; | |
391 | ||
392 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
393 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
394 | ac_prev=x_libraries ;; | |
395 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
396 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
397 | x_libraries="$ac_optarg" ;; | |
398 | ||
399 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
400 | ;; | |
401 | ||
402 | *) | |
403 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
404 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
405 | fi | |
406 | if test "x$nonopt" != xNONE; then | |
407 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
408 | fi | |
409 | nonopt="$ac_option" | |
410 | ;; | |
411 | ||
412 | esac | |
413 | done | |
414 | ||
415 | if test -n "$ac_prev"; then | |
416 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
417 | fi | |
418 | ||
419 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
420 | ||
421 | # File descriptor usage: | |
422 | # 0 standard input | |
423 | # 1 file creation | |
424 | # 2 errors and warnings | |
425 | # 3 some systems may open it to /dev/tty | |
426 | # 4 used on the Kubota Titan | |
427 | # 6 checking for... messages and results | |
428 | # 5 compiler messages saved in config.log | |
429 | if test "$silent" = yes; then | |
430 | exec 6>/dev/null | |
431 | else | |
432 | exec 6>&1 | |
433 | fi | |
434 | exec 5>./config.log | |
435 | ||
436 | echo "\ | |
437 | This file contains any messages produced by compilers while | |
438 | running configure, to aid debugging if configure makes a mistake. | |
439 | " 1>&5 | |
440 | ||
441 | # Strip out --no-create and --no-recursion so they do not pile up. | |
442 | # Also quote any args containing shell metacharacters. | |
443 | ac_configure_args= | |
444 | for ac_arg | |
445 | do | |
446 | case "$ac_arg" in | |
447 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
448 | | --no-cr | --no-c) ;; | |
449 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
450 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
451 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
452 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
453 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
454 | esac | |
455 | done | |
456 | ||
457 | # NLS nuisances. | |
458 | # Only set these to C if already set. These must not be set unconditionally | |
459 | # because not all systems understand e.g. LANG=C (notably SCO). | |
460 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
461 | # Non-C LC_CTYPE values break the ctype check. | |
462 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
463 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
464 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
465 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
466 | ||
467 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
468 | rm -rf conftest* confdefs.h | |
469 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
470 | echo > confdefs.h | |
471 | ||
472 | # A filename unique to this package, relative to the directory that | |
473 | # configure is in, which we can look for to find out if srcdir is correct. | |
474 | ac_unique_file=move-if-change | |
475 | ||
476 | # Find the source files, if location was not specified. | |
477 | if test -z "$srcdir"; then | |
478 | ac_srcdir_defaulted=yes | |
479 | # Try the directory containing this script, then its parent. | |
480 | ac_prog=$0 | |
481 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
482 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
483 | srcdir=$ac_confdir | |
484 | if test ! -r $srcdir/$ac_unique_file; then | |
485 | srcdir=.. | |
486 | fi | |
487 | else | |
488 | ac_srcdir_defaulted=no | |
489 | fi | |
490 | if test ! -r $srcdir/$ac_unique_file; then | |
491 | if test "$ac_srcdir_defaulted" = yes; then | |
492 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
493 | else | |
494 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
495 | fi | |
496 | fi | |
497 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
498 | ||
499 | # Prefer explicitly selected file to automatically selected ones. | |
c8926a2b NC |
500 | if test -z "$CONFIG_SITE"; then |
501 | if test "x$prefix" != xNONE; then | |
502 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
503 | else | |
504 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
bafecfd6 NN |
505 | fi |
506 | fi | |
507 | for ac_site_file in $CONFIG_SITE; do | |
508 | if test -r "$ac_site_file"; then | |
509 | echo "loading site script $ac_site_file" | |
510 | . "$ac_site_file" | |
511 | fi | |
512 | done | |
513 | ||
514 | if test -r "$cache_file"; then | |
515 | echo "loading cache $cache_file" | |
516 | . $cache_file | |
517 | else | |
518 | echo "creating cache $cache_file" | |
519 | > $cache_file | |
520 | fi | |
521 | ||
522 | ac_ext=c | |
523 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
524 | ac_cpp='$CPP $CPPFLAGS' | |
525 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
526 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
527 | cross_compiling=$ac_cv_prog_cc_cross | |
528 | ||
529 | ac_exeext= | |
530 | ac_objext=o | |
531 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
532 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
533 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
534 | ac_n= ac_c=' | |
535 | ' ac_t=' ' | |
536 | else | |
537 | ac_n=-n ac_c= ac_t= | |
538 | fi | |
539 | else | |
540 | ac_n= ac_c='\c' ac_t= | |
541 | fi | |
542 | ||
543 | ||
ea20b7eb | 544 | |
bafecfd6 NN |
545 | ac_aux_dir= |
546 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
547 | if test -f $ac_dir/install-sh; then | |
548 | ac_aux_dir=$ac_dir | |
549 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
550 | break | |
551 | elif test -f $ac_dir/install.sh; then | |
552 | ac_aux_dir=$ac_dir | |
553 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
554 | break | |
555 | fi | |
556 | done | |
557 | if test -z "$ac_aux_dir"; then | |
558 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
559 | fi | |
560 | ac_config_guess=$ac_aux_dir/config.guess | |
561 | ac_config_sub=$ac_aux_dir/config.sub | |
562 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
563 | ||
564 | ||
565 | # Do some error checking and defaulting for the host and target type. | |
566 | # The inputs are: | |
567 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
a3acbf46 | 568 | # |
bafecfd6 NN |
569 | # The rules are: |
570 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
571 | # same time. | |
572 | # 2. Host defaults to nonopt. | |
573 | # 3. If nonopt is not specified, then host defaults to the current host, | |
574 | # as determined by config.guess. | |
575 | # 4. Target and build default to nonopt. | |
576 | # 5. If nonopt is not specified, then target and build default to host. | |
577 | ||
578 | # The aliases save the names the user supplied, while $host etc. | |
579 | # will get canonicalized. | |
580 | case $host---$target---$nonopt in | |
581 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
582 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
583 | esac | |
584 | ||
585 | ||
586 | # Make sure we can run config.sub. | |
587 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
588 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
589 | fi | |
590 | ||
591 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
e1666221 | 592 | echo "configure:593: checking host system type" >&5 |
bafecfd6 NN |
593 | |
594 | host_alias=$host | |
595 | case "$host_alias" in | |
596 | NONE) | |
597 | case $nonopt in | |
598 | NONE) | |
599 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
600 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
601 | fi ;; | |
602 | *) host_alias=$nonopt ;; | |
603 | esac ;; | |
604 | esac | |
605 | ||
606 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
607 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
608 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
609 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
610 | echo "$ac_t""$host" 1>&6 | |
611 | ||
612 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
e1666221 | 613 | echo "configure:614: checking target system type" >&5 |
bafecfd6 NN |
614 | |
615 | target_alias=$target | |
616 | case "$target_alias" in | |
617 | NONE) | |
618 | case $nonopt in | |
619 | NONE) target_alias=$host_alias ;; | |
620 | *) target_alias=$nonopt ;; | |
621 | esac ;; | |
622 | esac | |
623 | ||
624 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
625 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
626 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
627 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
628 | echo "$ac_t""$target" 1>&6 | |
629 | ||
630 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
e1666221 | 631 | echo "configure:632: checking build system type" >&5 |
bafecfd6 NN |
632 | |
633 | build_alias=$build | |
634 | case "$build_alias" in | |
635 | NONE) | |
636 | case $nonopt in | |
637 | NONE) build_alias=$host_alias ;; | |
638 | *) build_alias=$nonopt ;; | |
639 | esac ;; | |
640 | esac | |
641 | ||
642 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
643 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
644 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
645 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
646 | echo "$ac_t""$build" 1>&6 | |
647 | ||
648 | test "$host_alias" != "$target_alias" && | |
649 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
650 | NONENONEs,x,x, && | |
651 | program_prefix=${target_alias}- | |
652 | ||
653 | if test "$program_transform_name" = s,x,x,; then | |
654 | program_transform_name= | |
655 | else | |
656 | # Double any \ or $. echo might interpret backslashes. | |
657 | cat <<\EOF_SED > conftestsed | |
658 | s,\\,\\\\,g; s,\$,$$,g | |
659 | EOF_SED | |
660 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
661 | rm -f conftestsed | |
662 | fi | |
663 | test "$program_prefix" != NONE && | |
664 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
665 | # Use a double $ so make ignores it. | |
666 | test "$program_suffix" != NONE && | |
667 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
668 | ||
669 | # sed with no file args requires a program. | |
670 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
671 | ||
672 | ||
282c0e47 NN |
673 | # Get 'install' or 'install-sh' and its variants. |
674 | # Find a good install program. We prefer a C program (faster), | |
675 | # so one script is as good as another. But avoid the broken or | |
676 | # incompatible versions: | |
677 | # SysV /etc/install, /usr/sbin/install | |
678 | # SunOS /usr/etc/install | |
679 | # IRIX /sbin/install | |
680 | # AIX /bin/install | |
681 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
682 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
683 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
684 | # ./install, which can be erroneously created by make from ./install.sh. | |
685 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
e1666221 | 686 | echo "configure:687: checking for a BSD compatible install" >&5 |
282c0e47 NN |
687 | if test -z "$INSTALL"; then |
688 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
689 | echo $ac_n "(cached) $ac_c" 1>&6 | |
690 | else | |
691 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
692 | for ac_dir in $PATH; do | |
693 | # Account for people who put trailing slashes in PATH elements. | |
694 | case "$ac_dir/" in | |
695 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
696 | *) | |
697 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
698 | # Don't use installbsd from OSF since it installs stuff as root | |
699 | # by default. | |
700 | for ac_prog in ginstall scoinst install; do | |
701 | if test -f $ac_dir/$ac_prog; then | |
702 | if test $ac_prog = install && | |
703 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
704 | # AIX install. It has an incompatible calling convention. | |
705 | : | |
706 | else | |
707 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
708 | break 2 | |
709 | fi | |
710 | fi | |
711 | done | |
712 | ;; | |
713 | esac | |
714 | done | |
715 | IFS="$ac_save_IFS" | |
716 | ||
717 | fi | |
718 | if test "${ac_cv_path_install+set}" = set; then | |
719 | INSTALL="$ac_cv_path_install" | |
720 | else | |
721 | # As a last resort, use the slow shell script. We don't cache a | |
722 | # path for INSTALL within a source directory, because that will | |
723 | # break other packages using the cache if that directory is | |
724 | # removed, or if the path is relative. | |
725 | INSTALL="$ac_install_sh" | |
726 | fi | |
727 | fi | |
728 | echo "$ac_t""$INSTALL" 1>&6 | |
729 | ||
730 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
731 | # It thinks the first close brace ends the variable substitution. | |
732 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
733 | ||
734 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
735 | ||
736 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
737 | ||
21ff191e PB |
738 | echo $ac_n "checking whether ln works""... $ac_c" 1>&6 |
739 | echo "configure:740: checking whether ln works" >&5 | |
740 | if eval "test \"`echo '$''{'acx_cv_prog_LN'+set}'`\" = set"; then | |
741 | echo $ac_n "(cached) $ac_c" 1>&6 | |
742 | else | |
743 | rm -f conftestdata_t | |
744 | echo >conftestdata_f | |
745 | if ln conftestdata_f conftestdata_t 2>/dev/null | |
746 | then | |
747 | acx_cv_prog_LN=ln | |
748 | else | |
749 | acx_cv_prog_LN=no | |
750 | fi | |
751 | rm -f conftestdata_f conftestdata_t | |
752 | ||
753 | fi | |
754 | if test $acx_cv_prog_LN = no; then | |
755 | LN="cp" | |
756 | echo "$ac_t""no, using $LN" 1>&6 | |
757 | else | |
758 | LN="$acx_cv_prog_LN" | |
759 | echo "$ac_t""yes" 1>&6 | |
760 | fi | |
761 | ||
35269421 | 762 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
21ff191e | 763 | echo "configure:764: checking whether ln -s works" >&5 |
35269421 PB |
764 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
765 | echo $ac_n "(cached) $ac_c" 1>&6 | |
766 | else | |
767 | rm -f conftestdata | |
768 | if ln -s X conftestdata 2>/dev/null | |
769 | then | |
770 | rm -f conftestdata | |
771 | ac_cv_prog_LN_S="ln -s" | |
772 | else | |
773 | ac_cv_prog_LN_S=ln | |
774 | fi | |
775 | fi | |
776 | LN_S="$ac_cv_prog_LN_S" | |
777 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
778 | echo "$ac_t""yes" 1>&6 | |
779 | else | |
780 | echo "$ac_t""no" 1>&6 | |
781 | fi | |
782 | ||
282c0e47 | 783 | |
a3acbf46 | 784 | ### we might need to use some other shell than /bin/sh for running subshells |
a3acbf46 RH |
785 | ### If we are on Windows, search for the shell. This will permit people |
786 | ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure | |
787 | ### without also having to set CONFIG_SHELL. This code will work when | |
788 | ### using bash, which sets OSTYPE. | |
789 | case "${OSTYPE}" in | |
790 | *win32*) | |
bafecfd6 NN |
791 | if test x${CONFIG_SHELL} = x ; then |
792 | if test ! -f /bin/sh ; then | |
793 | if test x${SHELL} != x && test -f ${SHELL} ; then | |
a3acbf46 RH |
794 | CONFIG_SHELL=${SHELL} |
795 | export CONFIG_SHELL | |
796 | else | |
797 | for prog in sh sh.exe bash bash.exe; do | |
798 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
799 | for dir in $PATH; do | |
800 | test -z "$dir" && dir=. | |
801 | if test -f $dir/$prog; then | |
802 | CONFIG_SHELL=$dir/$prog | |
803 | export CONFIG_SHELL | |
804 | break | |
805 | fi | |
806 | done | |
807 | IFS="$save_ifs" | |
808 | test -n "${CONFIG_SHELL}" && break | |
809 | done | |
810 | fi | |
811 | fi | |
812 | fi | |
813 | ;; | |
814 | esac | |
815 | ||
816 | config_shell=${CONFIG_SHELL-/bin/sh} | |
817 | ||
a3acbf46 RH |
818 | progname=$0 |
819 | # if PWD already has a value, it is probably wrong. | |
bafecfd6 | 820 | if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi |
a3acbf46 | 821 | |
d41ac477 | 822 | # Export original configure arguments for use by sub-configures. These |
1de07164 DJ |
823 | # will be expanded by make, so quote '$'. |
824 | tmp="$progname $@" | |
825 | sed -e 's,\$,$$,g' <<EOF_SED > conftestsed.out | |
826 | $tmp | |
d41ac477 | 827 | EOF_SED |
1de07164 DJ |
828 | TOPLEVEL_CONFIGURE_ARGUMENTS=`cat conftestsed.out` |
829 | rm -f conftestsed.out | |
6309c931 | 830 | |
f3d61cc7 | 831 | |
bafecfd6 | 832 | moveifchange=${srcdir}/move-if-change |
a3acbf46 | 833 | |
bafecfd6 NN |
834 | # Set srcdir to "." if that's what it is. |
835 | # This is important for multilib support. | |
836 | pwd=`${PWDCMD-pwd}` | |
837 | srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}` | |
838 | if test "${pwd}" = "${srcpwd}" ; then | |
839 | srcdir=. | |
a3acbf46 RH |
840 | fi |
841 | ||
bafecfd6 | 842 | topsrcdir=$srcpwd |
a3acbf46 | 843 | |
bafecfd6 NN |
844 | extra_host_args= |
845 | # Define the trigger file to make sure configure will re-run whenever | |
846 | # the gcc version number changes. | |
847 | if test "${with_gcc_version_trigger+set}" = set ; then | |
848 | gcc_version_trigger="$with_gcc_version_trigger" | |
849 | gcc_version=`grep version_string ${with_gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` | |
a3acbf46 | 850 | else |
bafecfd6 NN |
851 | # If gcc's sources are available, define the trigger file. |
852 | if test -f ${topsrcdir}/gcc/version.c ; then | |
853 | gcc_version_trigger=${topsrcdir}/gcc/version.c | |
854 | gcc_version=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/'` | |
855 | case "$ac_configure_args" in | |
856 | *--with-gcc-version-trigger=$gcc_version_trigger* ) | |
857 | ;; | |
858 | * ) | |
859 | # Add to all subconfigure arguments: build, host, and target. | |
af9955fa | 860 | ac_configure_args="$ac_configure_args --with-gcc-version-trigger=$gcc_version_trigger" |
bafecfd6 NN |
861 | ;; |
862 | esac | |
863 | fi | |
a3acbf46 RH |
864 | fi |
865 | ||
bafecfd6 NN |
866 | ### To add a new directory to the tree, first choose whether it is a target |
867 | ### or a host dependent tool. Then put it into the appropriate list | |
868 | ### (library or tools, host or target), doing a dependency sort. | |
a3acbf46 | 869 | |
bafecfd6 NN |
870 | # Subdirs will be configured in the order listed in build_configdirs, |
871 | # configdirs, or target_configdirs; see the serialization section below. | |
a3acbf46 | 872 | |
bafecfd6 NN |
873 | # Dependency sorting is only needed when *configuration* must be done in |
874 | # a particular order. In all cases a dependency should be specified in | |
875 | # the Makefile, whether or not it's implicitly specified here. | |
a3acbf46 | 876 | |
bafecfd6 NN |
877 | # Double entries in build_configdirs, configdirs, or target_configdirs may |
878 | # cause circular dependencies and break everything horribly. | |
a3acbf46 | 879 | |
bafecfd6 NN |
880 | # these libraries are used by various programs built for the host environment |
881 | # | |
c580d516 | 882 | host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl tix libgui zlib libbanshee libcpp" |
bafecfd6 | 883 | |
bafecfd6 NN |
884 | # these tools are built for the host environment |
885 | # Note, the powerpc-eabi build depends on sim occurring before gdb in order to | |
886 | # know that we are building the simulator. | |
887 | # binutils, gas and ld appear in that order because it makes sense to run | |
888 | # "make check" in that particular order. | |
5a5996f9 | 889 | host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar" |
bafecfd6 NN |
890 | |
891 | # libgcj represents the runtime libraries only used by gcj. | |
892 | libgcj="target-libffi \ | |
893 | target-boehm-gc \ | |
894 | target-zlib \ | |
895 | target-qthreads \ | |
896 | target-libjava" | |
897 | ||
898 | # these libraries are built for the target environment, and are built after | |
899 | # the host libraries and the host tools (which may be a cross compiler) | |
900 | # | |
5283b643 | 901 | target_libraries="target-libiberty \ |
bafecfd6 NN |
902 | target-libgloss \ |
903 | target-newlib \ | |
76ab491a | 904 | target-libstdc++-v3 \ |
cb2333e8 | 905 | target-libmudflap \ |
cb2333e8 | 906 | target-libgfortran \ |
6f2480fb | 907 | ${libgcj} \ |
d832a288 DD |
908 | target-libobjc \ |
909 | target-libada" | |
bafecfd6 | 910 | |
5283b643 NN |
911 | # these tools are built using the target libraries, and are intended to |
912 | # run only in the target environment | |
bafecfd6 | 913 | # |
5283b643 | 914 | # note: any program that *uses* libraries that are in the "target_libraries" |
bafecfd6 NN |
915 | # list belongs in this list. those programs are also very likely |
916 | # candidates for the "native_only" list which follows | |
917 | # | |
1905b739 | 918 | target_tools="target-examples target-groff target-gperf target-rda" |
a3acbf46 | 919 | |
bafecfd6 | 920 | ################################################################################ |
a3acbf46 | 921 | |
bafecfd6 NN |
922 | ## All tools belong in one of the four categories, and are assigned above |
923 | ## We assign ${configdirs} this way to remove all embedded newlines. This | |
924 | ## is important because configure will choke if they ever get through. | |
925 | ## ${configdirs} is directories we build using the host tools. | |
926 | ## ${target_configdirs} is directories we build using the target tools. | |
927 | # | |
928 | configdirs=`echo ${host_libs} ${host_tools}` | |
5283b643 | 929 | target_configdirs=`echo ${target_libraries} ${target_tools}` |
a3acbf46 | 930 | |
9b520963 NN |
931 | # Only make build modules if build != host. |
932 | # This should be done more generally, but at the moment it doesn't matter. | |
933 | if test ${host_alias} != ${build_alias} ; then | |
934 | # This is the only build module. | |
935 | build_modules=libiberty | |
936 | else | |
937 | build_modules= | |
938 | fi | |
939 | ||
940 | ||
bafecfd6 | 941 | ################################################################################ |
a3acbf46 | 942 | |
bafecfd6 | 943 | srcname="gnu development package" |
a3acbf46 | 944 | |
bafecfd6 NN |
945 | # This gets set non-empty for some net releases of packages. |
946 | appdirs="" | |
a3acbf46 | 947 | |
bafecfd6 NN |
948 | # Define is_cross_compiler to save on calls to 'test'. |
949 | is_cross_compiler= | |
950 | if test x"${host}" = x"${target}" ; then | |
951 | is_cross_compiler=no | |
a3acbf46 | 952 | else |
bafecfd6 NN |
953 | is_cross_compiler=yes |
954 | fi | |
a3acbf46 | 955 | |
df4b5a9c | 956 | # Find the build and target subdir names. |
9b520963 NN |
957 | case ${build_alias} in |
958 | "") build_noncanonical=${build} ;; | |
959 | *) build_noncanonical=${build_alias} ;; | |
960 | esac | |
961 | ||
962 | case ${host_alias} in | |
963 | "") host_noncanonical=${build_noncanonical} ;; | |
964 | *) host_noncanonical=${host_alias} ;; | |
965 | esac | |
966 | ||
967 | case ${target_alias} in | |
968 | "") target_noncanonical=${host_noncanonical} ;; | |
969 | *) target_noncanonical=${target_alias} ;; | |
970 | esac | |
971 | ||
972 | # Prefix 'build-' so this never conflicts with target_subdir. | |
973 | build_subdir="build-${build_noncanonical}" | |
974 | # Not really a subdirectory, but here for completeness. | |
975 | host_subdir=. | |
976 | # No prefix. | |
977 | target_subdir=${target_noncanonical} | |
978 | ||
a3acbf46 | 979 | |
bafecfd6 NN |
980 | # Skipdirs are removed silently. |
981 | skipdirs= | |
982 | # Noconfigdirs are removed loudly. | |
983 | noconfigdirs="" | |
a3acbf46 | 984 | |
bafecfd6 NN |
985 | use_gnu_ld= |
986 | # Make sure we don't let GNU ld be added if we didn't want it. | |
987 | if test x$with_gnu_ld = xno ; then | |
988 | use_gnu_ld=no | |
989 | noconfigdirs="$noconfigdirs ld" | |
a3acbf46 RH |
990 | fi |
991 | ||
bafecfd6 NN |
992 | use_gnu_as= |
993 | # Make sure we don't let GNU as be added if we didn't want it. | |
994 | if test x$with_gnu_as = xno ; then | |
995 | use_gnu_as=no | |
996 | noconfigdirs="$noconfigdirs gas" | |
a3acbf46 RH |
997 | fi |
998 | ||
bafecfd6 NN |
999 | # some tools are so dependent upon X11 that if we're not building with X, |
1000 | # it's not even worth trying to configure, much less build, that tool. | |
a3acbf46 | 1001 | |
bafecfd6 NN |
1002 | case ${with_x} in |
1003 | yes | "") ;; # the default value for this tree is that X11 is available | |
1004 | no) | |
1005 | skipdirs="${skipdirs} tk tix itcl libgui" | |
1006 | # We won't be able to build gdbtk without X. | |
1007 | enable_gdbtk=no | |
1008 | ;; | |
1009 | *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;; | |
1010 | esac | |
a3acbf46 | 1011 | |
bafecfd6 NN |
1012 | # Some tools are only suitable for building in a "native" situation. |
1013 | # Remove these if host!=target. | |
5a5996f9 | 1014 | native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff gprof target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf" |
a3acbf46 | 1015 | |
bafecfd6 NN |
1016 | # Similarly, some are only suitable for cross toolchains. |
1017 | # Remove these if host=target. | |
1018 | cross_only="target-libgloss target-newlib target-opcodes" | |
1019 | ||
1020 | case $is_cross_compiler in | |
1021 | no) skipdirs="${skipdirs} ${cross_only}" ;; | |
1022 | yes) skipdirs="${skipdirs} ${native_only}" ;; | |
1023 | esac | |
a3acbf46 | 1024 | |
bafecfd6 NN |
1025 | # If both --with-headers and --with-libs are specified, default to |
1026 | # --without-newlib. | |
c5a12ca3 GK |
1027 | if test x"${with_headers}" != x && test x"${with_headers} != xno \ |
1028 | && test x"${with_libs}" != x && test x"${with_libs} != xno ; then | |
bafecfd6 NN |
1029 | if test x"${with_newlib}" = x ; then |
1030 | with_newlib=no | |
1031 | fi | |
a3acbf46 RH |
1032 | fi |
1033 | ||
bafecfd6 NN |
1034 | # Recognize --with-newlib/--without-newlib. |
1035 | case ${with_newlib} in | |
1036 | no) skipdirs="${skipdirs} target-newlib" ;; | |
1037 | yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;; | |
1038 | esac | |
a3acbf46 | 1039 | |
bafecfd6 | 1040 | # Configure extra directories which are host specific |
a3acbf46 | 1041 | |
bafecfd6 NN |
1042 | case "${host}" in |
1043 | *-cygwin*) | |
1044 | configdirs="$configdirs libtermcap" ;; | |
1045 | esac | |
a3acbf46 | 1046 | |
bafecfd6 NN |
1047 | # Remove more programs from consideration, based on the host or |
1048 | # target this usually means that a port of the program doesn't | |
1049 | # exist yet. | |
a3acbf46 | 1050 | |
bafecfd6 NN |
1051 | case "${host}" in |
1052 | hppa*64*-*-*) | |
1053 | noconfigdirs="$noconfigdirs byacc" | |
1054 | ;; | |
08049c01 | 1055 | i[3456789]86-*-vsta) |
b18ee8a2 | 1056 | noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl tix gnuserv gettext" |
bafecfd6 | 1057 | ;; |
08049c01 | 1058 | i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*) |
b18ee8a2 | 1059 | noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl tix gnuserv libffi" |
2245eb63 | 1060 | ;; |
08049c01 | 1061 | i[3456789]86-*-mingw32*) |
5a5996f9 | 1062 | # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl tix gnuserv" |
b18ee8a2 | 1063 | noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool" |
2245eb63 | 1064 | ;; |
08049c01 | 1065 | i[3456789]86-*-beos*) |
2245eb63 NN |
1066 | noconfigdirs="$noconfigdirs tk itcl tix libgui gdb" |
1067 | ;; | |
bafecfd6 | 1068 | *-*-cygwin*) |
b18ee8a2 | 1069 | noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl" |
bafecfd6 NN |
1070 | ;; |
1071 | *-*-netbsd*) | |
b18ee8a2 | 1072 | noconfigdirs="$noconfigdirs rcs" |
bafecfd6 NN |
1073 | ;; |
1074 | ppc*-*-pe) | |
b18ee8a2 | 1075 | noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv" |
bafecfd6 NN |
1076 | ;; |
1077 | powerpc-*-beos*) | |
1078 | noconfigdirs="$noconfigdirs tk itcl tix libgui gdb dejagnu readline" | |
1079 | ;; | |
1080 | *-*-darwin*) | |
1081 | noconfigdirs="$noconfigdirs tk itcl tix libgui" | |
1082 | ;; | |
1083 | esac | |
a3acbf46 | 1084 | |
cb2333e8 DD |
1085 | # Check whether --with-libbanshee or --without-libbanshee was given. |
1086 | if test "${with_libbanshee+set}" = set; then | |
1087 | withval="$with_libbanshee" | |
1088 | : | |
1089 | fi | |
1090 | ||
1091 | case ${with_libbanshee} in | |
1092 | no) | |
1093 | noconfigdirs="$noconfigdirs libbanshee" ;; | |
1094 | yes|"") | |
1095 | with_libbanshee=yes | |
1096 | ;; | |
1097 | *) | |
1098 | { echo "configure: error: --with-libbanshee can only be empty, "yes" or "no" (empty defaults to "yes"." 1>&2; exit 1; } | |
1099 | esac | |
1100 | ||
d832a288 DD |
1101 | # Check whether --enable-libada or --disable-libada was given. |
1102 | if test "${enable_libada+set}" = set; then | |
1103 | enableval="$enable_libada" | |
1104 | ENABLE_LIBADA=$enableval | |
1105 | else | |
1106 | ENABLE_LIBADA=yes | |
1107 | fi | |
1108 | ||
d832a288 DD |
1109 | if test "${ENABLE_LIBADA}" != "yes" ; then |
1110 | noconfigdirs="$noconfigdirs target-libada" | |
1111 | fi | |
1112 | ||
bafecfd6 NN |
1113 | # Save it here so that, even in case of --enable-libgcj, if the Java |
1114 | # front-end isn't enabled, we still get libgcj disabled. | |
1115 | libgcj_saved=$libgcj | |
1116 | case $enable_libgcj in | |
1117 | yes) | |
1118 | # If we reset it here, it won't get added to noconfigdirs in the | |
1119 | # target-specific build rules, so it will be forcibly enabled | |
1120 | # (unless the Java language itself isn't enabled). | |
1121 | libgcj= | |
1122 | ;; | |
1123 | no) | |
1124 | # Make sure we get it printed in the list of not supported target libs. | |
1125 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1126 | ;; | |
1127 | esac | |
a3acbf46 | 1128 | |
cb2333e8 DD |
1129 | |
1130 | # Allow --disable-libmudflap to exclude target-libmudflap | |
1131 | case $enable_libmudflap in | |
1132 | yes | "") | |
1133 | # By default it's enabled | |
1134 | ;; | |
1135 | no) | |
1136 | noconfigdirs="$noconfigdirs target-libmudflap" | |
1137 | ;; | |
1138 | esac | |
1139 | ||
1140 | ||
bafecfd6 NN |
1141 | case "${target}" in |
1142 | *-*-chorusos) | |
1143 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1144 | ;; | |
4b649dd9 | 1145 | powerpc-*-darwin*) |
44dc96d1 | 1146 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" |
a16d51ed | 1147 | noconfigdirs="$noconfigdirs target-libobjc" |
44dc96d1 | 1148 | ;; |
4b649dd9 GK |
1149 | *-*-darwin*) |
1150 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes gdb gprof" | |
1151 | noconfigdirs="$noconfigdirs target-libobjc ${libgcj}" | |
1152 | ;; | |
bafecfd6 NN |
1153 | *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*) |
1154 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1155 | ;; | |
cb2333e8 DD |
1156 | *-*-freebsd* | *-*-kfreebsd*-gnu) |
1157 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1158 | if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \ | |
1159 | && test -f /usr/local/include/gmp.h; then | |
1160 | with_gmp=/usr/local | |
1161 | fi | |
1162 | ||
1163 | # Skip some stuff that's unsupported on some FreeBSD configurations. | |
1164 | case "${target}" in | |
1165 | i*86-*-*) ;; | |
1166 | alpha*-*-*) ;; | |
1167 | *) | |
1168 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1169 | ;; | |
1170 | esac | |
1171 | ;; | |
5cd57f01 NC |
1172 | *-*-kaos*) |
1173 | # Remove unsupported stuff on all kaOS configurations. | |
e5a32b9a | 1174 | skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx" |
5cd57f01 NC |
1175 | skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf" |
1176 | skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib" | |
1177 | noconfigdirs="$noconfigdirs target-libgloss" | |
1178 | ;; | |
bafecfd6 NN |
1179 | *-*-netbsd*) |
1180 | # Skip some stuff on all NetBSD configurations. | |
1181 | noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss" | |
1182 | ||
1183 | # Skip some stuff that's unsupported on some NetBSD configurations. | |
1184 | case "${target}" in | |
1185 | i*86-*-netbsdelf*) ;; | |
09f7abda | 1186 | arm*-*-netbsdelf*) ;; |
bafecfd6 NN |
1187 | *) |
1188 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1189 | ;; | |
1190 | esac | |
1191 | ;; | |
1192 | *-*-netware) | |
76ab491a | 1193 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-newlib target-libiberty target-libgloss ${libgcj}" |
bafecfd6 NN |
1194 | ;; |
1195 | *-*-rtems*) | |
1196 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
bafecfd6 | 1197 | ;; |
1fb9256d DD |
1198 | *-*-uclinux*) |
1199 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}" | |
1200 | ;; | |
bafecfd6 | 1201 | *-*-vxworks*) |
4883801c | 1202 | noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj}" |
bafecfd6 NN |
1203 | ;; |
1204 | alpha*-dec-osf*) | |
1205 | # ld works, but does not support shared libraries. | |
1206 | # newlib is not 64 bit ready. I'm not sure about fileutils. | |
1207 | # gas doesn't generate exception information. | |
1208 | noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss" | |
1209 | ;; | |
1210 | alpha*-*-*vms*) | |
1211 | noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}" | |
1212 | ;; | |
1213 | alpha*-*-linux*) | |
1214 | # newlib is not 64 bit ready | |
1215 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1216 | ;; | |
bafecfd6 NN |
1217 | alpha*-*-*) |
1218 | # newlib is not 64 bit ready | |
1219 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1220 | ;; | |
24431cf0 AO |
1221 | am33_2.0-*-linux*) |
1222 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | |
1223 | ;; | |
bafecfd6 NN |
1224 | sh-*-linux*) |
1225 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" | |
1226 | ;; | |
1227 | sh*-*-pe|mips*-*-pe|*arm-wince-pe) | |
1228 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1229 | noconfigdirs="$noconfigdirs target-examples" | |
1230 | noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr" | |
1231 | noconfigdirs="$noconfigdirs tcl tix tk itcl libgui sim" | |
1232 | noconfigdirs="$noconfigdirs expect dejagnu" | |
1233 | # the C++ libraries don't build on top of CE's C libraries | |
76ab491a | 1234 | noconfigdirs="$noconfigdirs target-libstdc++-v3" |
bafecfd6 NN |
1235 | noconfigdirs="$noconfigdirs target-newlib" |
1236 | case "${host}" in | |
1237 | *-*-cygwin*) ;; # keep gdb and readline | |
76ab491a | 1238 | *) noconfigdirs="$noconfigdirs gdb readline" |
bafecfd6 NN |
1239 | ;; |
1240 | esac | |
1241 | ;; | |
1242 | arc-*-*) | |
1243 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1244 | ;; | |
1245 | arm-*-coff | strongarm-*-coff | xscale-*-coff) | |
1246 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1247 | ;; | |
1248 | arm-*-elf* | strongarm-*-elf* | xscale-*-elf*) | |
1249 | noconfigdirs="$noconfigdirs target-libffi target-qthreads" | |
1250 | ;; | |
1251 | arm-*-pe*) | |
1252 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1253 | ;; | |
1254 | arm-*-oabi*) | |
1255 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1256 | ;; | |
1257 | thumb-*-coff) | |
1258 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1259 | ;; | |
1260 | thumb-*-elf) | |
1261 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1262 | ;; | |
1263 | thumb-*-oabi) | |
1264 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1265 | ;; | |
1266 | thumb-*-pe) | |
1267 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1268 | ;; | |
1269 | arm-*-riscix*) | |
1270 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" | |
1271 | ;; | |
1272 | avr-*-*) | |
76ab491a | 1273 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
bafecfd6 NN |
1274 | ;; |
1275 | c4x-*-* | tic4x-*-*) | |
76ab491a | 1276 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
bafecfd6 NN |
1277 | ;; |
1278 | c54x*-*-* | tic54x-*-*) | |
76ab491a | 1279 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib" |
bafecfd6 NN |
1280 | ;; |
1281 | cris-*-*) | |
7e269125 | 1282 | noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss" |
bafecfd6 NN |
1283 | ;; |
1284 | d10v-*-*) | |
76ab491a | 1285 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
bafecfd6 NN |
1286 | ;; |
1287 | d30v-*-*) | |
7e269125 | 1288 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
bafecfd6 NN |
1289 | ;; |
1290 | fr30-*-elf*) | |
7e269125 | 1291 | noconfigdirs="$noconfigdirs ${libgcj} gdb" |
bafecfd6 NN |
1292 | ;; |
1293 | frv-*-*) | |
1294 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1295 | ;; | |
1296 | h8300*-*-*) | |
e5a32b9a | 1297 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
bafecfd6 NN |
1298 | ;; |
1299 | h8500-*-*) | |
e5a32b9a | 1300 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
bafecfd6 NN |
1301 | ;; |
1302 | hppa*64*-*-linux* | parisc*64*-*-linux*) | |
1303 | # In this case, it's because the hppa64-linux target is for | |
1304 | # the kernel only at this point and has no libc, and thus no | |
1305 | # headers, crt*.o, etc., all of which are needed by these. | |
1306 | noconfigdirs="$noconfigdirs target-zlib" | |
1307 | ;; | |
1308 | hppa*-*-*elf* | \ | |
1309 | parisc*-*-linux* | hppa*-*-linux* | \ | |
1310 | hppa*-*-lites* | \ | |
1311 | hppa*-*-openbsd* | \ | |
1312 | hppa*64*-*-*) | |
1313 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1314 | # Do configure ld/binutils/gas for this case. | |
1315 | ;; | |
1316 | hppa*-*-*) | |
1317 | # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't | |
1318 | # build on HP-UX 10.20. | |
1319 | noconfigdirs="$noconfigdirs ld shellutils ${libgcj}" | |
1320 | ;; | |
7e269125 HPN |
1321 | i960-*-*) |
1322 | noconfigdirs="$noconfigdirs ${libgcj} gdb" | |
1323 | ;; | |
bafecfd6 NN |
1324 | ia64*-*-elf*) |
1325 | # No gdb support yet. | |
1326 | noconfigdirs="$noconfigdirs tix readline mmalloc libgui itcl gdb" | |
1327 | ;; | |
1328 | ia64*-**-hpux*) | |
1329 | # No gdb or ld support yet. | |
c8cbb48c | 1330 | noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld" |
bafecfd6 | 1331 | ;; |
08049c01 | 1332 | i[3456789]86-*-coff | i[3456789]86-*-elf) |
bafecfd6 NN |
1333 | noconfigdirs="$noconfigdirs ${libgcj}" |
1334 | ;; | |
08049c01 | 1335 | i[3456789]86-*-linux*) |
bafecfd6 NN |
1336 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's |
1337 | # not build java stuff by default. | |
1338 | case "${target}" in | |
1339 | *-*-*libc1*) | |
1340 | noconfigdirs="$noconfigdirs ${libgcj}";; | |
1341 | esac | |
1342 | ||
1343 | # This section makes it possible to build newlib natively on linux. | |
1344 | # If we are using a cross compiler then don't configure newlib. | |
1345 | if test x${is_cross_compiler} != xno ; then | |
2245eb63 | 1346 | noconfigdirs="$noconfigdirs target-newlib" |
bafecfd6 NN |
1347 | fi |
1348 | noconfigdirs="$noconfigdirs target-libgloss" | |
1349 | # If we are not using a cross compiler, do configure newlib. | |
1350 | # Note however, that newlib will only be configured in this situation | |
1351 | # if the --with-newlib option has been given, because otherwise | |
1352 | # 'target-newlib' will appear in skipdirs. | |
1353 | ;; | |
08049c01 | 1354 | i[3456789]86-*-mingw32*) |
bafecfd6 NN |
1355 | target_configdirs="$target_configdirs target-mingw" |
1356 | noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}" | |
1357 | ||
1358 | # Can't build gdb for mingw32 if not native. | |
1359 | case "${host}" in | |
08049c01 | 1360 | i[3456789]86-*-mingw32) ;; # keep gdb tcl tk expect etc. |
5a5996f9 | 1361 | *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix gnuserv" |
bafecfd6 NN |
1362 | ;; |
1363 | esac | |
1364 | ;; | |
1365 | *-*-cygwin*) | |
1366 | target_configdirs="$target_configdirs target-libtermcap target-winsup" | |
1367 | noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}" | |
1368 | # always build newlib. | |
1369 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
1370 | ||
1371 | # Can't build gdb for Cygwin if not native. | |
1372 | case "${host}" in | |
1373 | *-*-cygwin*) ;; # keep gdb tcl tk expect etc. | |
5a5996f9 | 1374 | *) noconfigdirs="$noconfigdirs gdb tcl tk expect itcl tix libgui gnuserv" |
bafecfd6 NN |
1375 | ;; |
1376 | esac | |
1377 | ;; | |
08049c01 | 1378 | i[3456789]86-*-pe) |
76ab491a | 1379 | noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}" |
bafecfd6 | 1380 | ;; |
08049c01 | 1381 | i[3456789]86-*-sco3.2v5*) |
bafecfd6 NN |
1382 | # The linker does not yet know about weak symbols in COFF, |
1383 | # and is not configured to handle mixed ELF and COFF. | |
1384 | noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}" | |
1385 | ;; | |
08049c01 | 1386 | i[3456789]86-*-sco*) |
bafecfd6 NN |
1387 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
1388 | ;; | |
08049c01 | 1389 | i[3456789]86-*-solaris2*) |
bafecfd6 NN |
1390 | noconfigdirs="$noconfigdirs target-libgloss" |
1391 | ;; | |
08049c01 | 1392 | i[3456789]86-*-sysv4*) |
bafecfd6 NN |
1393 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" |
1394 | ;; | |
08049c01 | 1395 | i[3456789]86-*-beos*) |
2245eb63 NN |
1396 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" |
1397 | ;; | |
7e269125 | 1398 | m32r-*-*) |
e48c382f | 1399 | noconfigdirs="$noconfigdirs ${libgcj}" |
7e269125 | 1400 | ;; |
bafecfd6 | 1401 | m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) |
76ab491a | 1402 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
bafecfd6 NN |
1403 | ;; |
1404 | m68k-*-elf*) | |
1405 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1406 | ;; | |
1407 | m68k-*-coff*) | |
1408 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1409 | ;; | |
1410 | mcore-*-pe*) | |
1411 | # The EPOC C++ environment does not support exceptions or rtti, | |
1412 | # and so building libstdc++-v3 tends not to always work. | |
1413 | noconfigdirs="$noconfigdirs target-libstdc++-v3" | |
1414 | ;; | |
1415 | mmix-*-*) | |
1416 | noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss" | |
1417 | ;; | |
1418 | mn10200-*-*) | |
1419 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1420 | ;; | |
1421 | mn10300-*-*) | |
1422 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1423 | ;; | |
1424 | powerpc-*-aix*) | |
1425 | # copied from rs6000-*-* entry | |
ef76efc6 | 1426 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
bafecfd6 NN |
1427 | ;; |
1428 | powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe) | |
1429 | target_configdirs="$target_configdirs target-winsup" | |
5a5996f9 | 1430 | noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl tix gnuserv ${libgcj}" |
bafecfd6 NN |
1431 | # always build newlib. |
1432 | skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` | |
1433 | ;; | |
1434 | # This is temporary until we can link against shared libraries | |
1435 | powerpcle-*-solaris*) | |
5a5996f9 | 1436 | noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl tix gnuserv ${libgcj}" |
bafecfd6 NN |
1437 | ;; |
1438 | powerpc-*-beos*) | |
1439 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}" | |
1440 | ;; | |
bafecfd6 NN |
1441 | powerpc-*-eabi) |
1442 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1443 | ;; | |
bafecfd6 NN |
1444 | rs6000-*-lynxos*) |
1445 | noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}" | |
1446 | ;; | |
1447 | rs6000-*-aix*) | |
ef76efc6 | 1448 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
bafecfd6 NN |
1449 | ;; |
1450 | rs6000-*-*) | |
1451 | noconfigdirs="$noconfigdirs gprof ${libgcj}" | |
1452 | ;; | |
1453 | m68k-apollo-*) | |
1454 | noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}" | |
1455 | ;; | |
1456 | mips*-*-irix5*) | |
b9618d1e | 1457 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
bafecfd6 NN |
1458 | ;; |
1459 | mips*-*-irix6*) | |
bafecfd6 NN |
1460 | # Linking libjava exceeds command-line length limits on at least |
1461 | # IRIX 6.2, but not on IRIX 6.5. | |
1462 | # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham | |
1463 | # <oldham@codesourcery.com> | |
53a6fe6a | 1464 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" |
bafecfd6 NN |
1465 | ;; |
1466 | mips*-dec-bsd*) | |
1467 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" | |
1468 | ;; | |
1469 | mips*-*-bsd*) | |
1470 | noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}" | |
1471 | ;; | |
1472 | mipstx39-*-*) | |
1473 | noconfigdirs="$noconfigdirs gprof ${libgcj}" # same as generic mips | |
2245eb63 | 1474 | ;; |
5bbdae8f RS |
1475 | mips64*-*-linux*) |
1476 | noconfigdirs="$noconfigdirs target-newlib ${libgcj}" | |
1477 | ;; | |
bafecfd6 NN |
1478 | mips*-*-linux*) |
1479 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1480 | ;; | |
1481 | mips*-*-*) | |
1482 | noconfigdirs="$noconfigdirs gprof ${libgcj}" | |
1483 | ;; | |
1484 | romp-*-*) | |
1485 | noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}" | |
1486 | ;; | |
1487 | sh-*-*) | |
1488 | case "${host}" in | |
08049c01 DD |
1489 | i[3456789]86-*-vsta) ;; # don't add gprof back in |
1490 | i[3456789]86-*-go32*) ;; # don't add gprof back in | |
1491 | i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in | |
bafecfd6 NN |
1492 | *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;; |
1493 | esac | |
1494 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1495 | ;; | |
1496 | sh64-*-*) | |
1497 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1498 | ;; | |
1499 | sparc-*-elf*) | |
1500 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1501 | ;; | |
1502 | sparc64-*-elf*) | |
1503 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1504 | ;; | |
1505 | sparclite-*-*) | |
1506 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1507 | ;; | |
1508 | sparc-*-sunos4*) | |
1509 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1510 | if test x${is_cross_compiler} != xno ; then | |
1511 | noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss" | |
1512 | else | |
1513 | use_gnu_ld=no | |
1514 | fi | |
1515 | ;; | |
1516 | sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) | |
1517 | ;; | |
1518 | v810-*-*) | |
76ab491a | 1519 | noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}" |
bafecfd6 NN |
1520 | ;; |
1521 | v850-*-*) | |
1522 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1523 | ;; | |
1524 | v850e-*-*) | |
1525 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1526 | ;; | |
1527 | v850ea-*-*) | |
1528 | noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" | |
1529 | ;; | |
1530 | vax-*-vms) | |
1531 | noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}" | |
1532 | ;; | |
1533 | vax-*-*) | |
1534 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1535 | ;; | |
b30e0721 BW |
1536 | xtensa-*-*) |
1537 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1538 | ;; | |
bafecfd6 | 1539 | ip2k-*-*) |
76ab491a | 1540 | noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}" |
bafecfd6 NN |
1541 | ;; |
1542 | *-*-linux*) | |
1543 | noconfigdirs="$noconfigdirs target-newlib target-libgloss" | |
1544 | ;; | |
1545 | *-*-lynxos*) | |
1546 | noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}" | |
1547 | ;; | |
1548 | *-*-*) | |
1549 | noconfigdirs="$noconfigdirs ${libgcj}" | |
1550 | ;; | |
1551 | esac | |
a3acbf46 | 1552 | |
bafecfd6 NN |
1553 | # If we aren't building newlib, then don't build libgloss, since libgloss |
1554 | # depends upon some newlib header files. | |
1555 | case "${noconfigdirs}" in | |
1556 | *target-libgloss*) ;; | |
1557 | *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;; | |
1558 | esac | |
1559 | ||
bafecfd6 NN |
1560 | # Work in distributions that contain no compiler tools, like Autoconf. |
1561 | tentative_cc="" | |
1562 | host_makefile_frag=/dev/null | |
1563 | if test -d ${srcdir}/config ; then | |
1564 | case "${host}" in | |
1565 | m68k-hp-hpux*) | |
1566 | # Avoid "too much defining" errors from HPUX compiler. | |
1567 | tentative_cc="cc -Wp,-H256000" | |
1568 | # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding. | |
1569 | # If it's HP/UX ar, this should be harmless. | |
1570 | RANLIB="ar ts" | |
1571 | ;; | |
1572 | m68k-apollo-sysv*) | |
1573 | tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG" | |
1574 | ;; | |
1575 | m68k-apollo-bsd*) | |
1576 | #None of the Apollo compilers can compile gas or binutils. The preprocessor | |
1577 | # chokes on bfd, the compiler won't let you assign integers to enums, and | |
1578 | # other problems. Defining CC to gcc is a questionable way to say "don't use | |
1579 | # the apollo compiler" (the preferred version of GCC could be called cc, | |
1580 | # or whatever), but I'm not sure leaving CC as cc is any better... | |
1581 | #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG | |
1582 | # Used to have BISON=yacc. | |
1583 | tentative_cc=gcc | |
1584 | ;; | |
1585 | m88k-dg-dgux*) | |
1586 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" | |
bafecfd6 NN |
1587 | ;; |
1588 | m88k-harris-cxux*) | |
1589 | # Under CX/UX, we want to tell the compiler to use ANSI mode. | |
1590 | tentative_cc="cc -Xa" | |
1591 | host_makefile_frag="config/mh-cxux" | |
1592 | ;; | |
1593 | m88k-motorola-sysv*) | |
1594 | ;; | |
1595 | mips*-dec-ultrix*) | |
1596 | tentative_cc="cc -Wf,-XNg1000" | |
1597 | host_makefile_frag="config/mh-decstation" | |
1598 | ;; | |
1599 | mips*-nec-sysv4*) | |
1600 | # The C compiler on NEC MIPS SVR4 needs bigger tables. | |
1601 | tentative_cc="cc -ZXNd=5000 -ZXNg=1000" | |
1602 | host_makefile_frag="config/mh-necv4" | |
1603 | ;; | |
1604 | mips*-sgi-irix4*) | |
1605 | # Tell compiler to use K&R C. We can't compile under the SGI Ansi | |
1606 | # environment. Also bump switch table size so that cp-parse will | |
1607 | # compile. Bump string length limit so linker builds. | |
1608 | tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192" | |
1609 | ;; | |
1610 | mips*-*-sysv4*) | |
1611 | host_makefile_frag="config/mh-sysv4" | |
1612 | ;; | |
1613 | mips*-*-sysv*) | |
1614 | # This is for a MIPS running RISC/os 4.52C. | |
1615 | ||
1616 | # This is needed for GDB, but needs to be in the top-level make because | |
1617 | # if a library is compiled with the bsd headers and gets linked with the | |
1618 | # sysv system libraries all hell can break loose (e.g. a jmp_buf might be | |
1619 | # a different size). | |
1620 | # ptrace(2) apparently has problems in the BSD environment. No workaround is | |
1621 | # known except to select the sysv environment. Could we use /proc instead? | |
1622 | # These "sysv environments" and "bsd environments" often end up being a pain. | |
1623 | # | |
1624 | # This is not part of CFLAGS because perhaps not all C compilers have this | |
1625 | # option. | |
1626 | tentative_cc="cc -systype sysv" | |
1627 | ;; | |
1628 | i370-ibm-opened*) | |
1629 | tentative_cc="c89" | |
1630 | ;; | |
08049c01 | 1631 | i[3456789]86-*-sysv5*) |
bafecfd6 NN |
1632 | host_makefile_frag="config/mh-sysv5" |
1633 | ;; | |
08049c01 | 1634 | i[3456789]86-*-dgux*) |
bafecfd6 NN |
1635 | tentative_cc="gcc -Wall -ansi -D__using_DGUX" |
1636 | host_makefile_frag="config/mh-dgux386" | |
1637 | ;; | |
08049c01 | 1638 | i[3456789]86-ncr-sysv4.3*) |
bafecfd6 NN |
1639 | # The MetaWare compiler will generate a copyright message unless you |
1640 | # turn it off by adding the -Hnocopyr flag. | |
1641 | tentative_cc="cc -Hnocopyr" | |
1642 | ;; | |
08049c01 | 1643 | i[3456789]86-ncr-sysv4*) |
bafecfd6 NN |
1644 | # for an NCR 3000 (i486/SVR4) system. |
1645 | # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc. | |
1646 | # This compiler not only emits obnoxious copyright messages every time | |
1647 | # you run it, but it chokes and dies on a whole bunch of GNU source | |
1648 | # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc. | |
1649 | tentative_cc="/usr/ccs/ATT/cc" | |
1650 | host_makefile_frag="config/mh-ncr3000" | |
1651 | ;; | |
08049c01 | 1652 | i[3456789]86-*-sco3.2v5*) |
bafecfd6 | 1653 | ;; |
08049c01 | 1654 | i[3456789]86-*-sco*) |
bafecfd6 NN |
1655 | # The native C compiler botches some simple uses of const. Unfortunately, |
1656 | # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h. | |
1657 | tentative_cc="cc -Dconst=" | |
1658 | host_makefile_frag="config/mh-sco" | |
1659 | ;; | |
08049c01 | 1660 | i[3456789]86-*-udk*) |
bafecfd6 NN |
1661 | host_makefile_frag="config/mh-sysv5" |
1662 | ;; | |
08049c01 | 1663 | i[3456789]86-*-solaris2*) |
bafecfd6 NN |
1664 | host_makefile_frag="config/mh-sysv4" |
1665 | ;; | |
08049c01 | 1666 | i[3456789]86-*-msdosdjgpp*) |
bafecfd6 NN |
1667 | host_makefile_frag="config/mh-djgpp" |
1668 | ;; | |
1669 | *-cygwin*) | |
1670 | host_makefile_frag="config/mh-cygwin" | |
1671 | ;; | |
1672 | *-mingw32*) | |
1673 | host_makefile_frag="config/mh-mingw32" | |
1674 | ;; | |
1675 | *-interix*) | |
1676 | host_makefile_frag="config/mh-interix" | |
1677 | ;; | |
1678 | vax-*-ultrix2*) | |
1679 | # The old BSD pcc isn't up to compiling parts of gdb so use gcc | |
1680 | tentative_cc=gcc | |
1681 | ;; | |
1682 | *-*-solaris2*) | |
1683 | host_makefile_frag="config/mh-solaris" | |
1684 | ;; | |
1685 | m68k-sun-sunos*) | |
1686 | # Sun's C compiler needs the -J flag to be able to compile cp-parse.c | |
1687 | # without overflowing the jump tables (-J says to use a 32 bit table) | |
1688 | tentative_cc="cc -J" | |
1689 | ;; | |
1690 | *-hp-hpux*) | |
1691 | tentative_cc="cc -Wp,-H256000" | |
1692 | ;; | |
1693 | *-*-hiux*) | |
1694 | tentative_cc="cc -Wp,-H256000" | |
1695 | ;; | |
1696 | rs6000-*-lynxos*) | |
1697 | # /bin/cc is less than useful for our purposes. Always use GCC | |
1698 | tentative_cc="/usr/cygnus/progressive/bin/gcc" | |
1699 | host_makefile_frag="config/mh-lynxrs6k" | |
1700 | ;; | |
1701 | *-*-lynxos*) | |
1702 | # /bin/cc is less than useful for our purposes. Always use GCC | |
1703 | tentative_cc="/bin/gcc" | |
1704 | ;; | |
1705 | *-*-sysv4*) | |
1706 | host_makefile_frag="config/mh-sysv4" | |
1707 | ;; | |
1708 | esac | |
1709 | fi | |
1710 | ||
cfc26d93 NN |
1711 | # If we aren't going to be using gcc, see if we can extract a definition |
1712 | # of CC from the fragment. | |
1713 | # Actually, use the 'pre-extracted' version above. | |
1714 | if test -z "${CC}" && test "${build}" = "${host}" ; then | |
1715 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1716 | found= | |
1717 | for dir in $PATH; do | |
1718 | test -z "$dir" && dir=. | |
1719 | if test -f $dir/gcc; then | |
1720 | found=yes | |
1721 | break | |
1722 | fi | |
1723 | done | |
1724 | IFS="$save_ifs" | |
1725 | if test -z "${found}" && test -n "${tentative_cc}" ; then | |
1726 | CC=$tentative_cc | |
1727 | fi | |
1728 | fi | |
1729 | ||
1730 | if test "${build}" != "${host}" ; then | |
1731 | # If we are doing a Canadian Cross, in which the host and build systems | |
1732 | # are not the same, we set reasonable default values for the tools. | |
1733 | ||
1734 | BISON=${BISON-bison} | |
1735 | CC=${CC-${host_alias}-gcc} | |
1736 | CFLAGS=${CFLAGS-"-g -O2"} | |
1737 | CXX=${CXX-${host_alias}-c++} | |
1738 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
1739 | CC_FOR_BUILD=${CC_FOR_BUILD-gcc} | |
1740 | CC_FOR_TARGET=${CC_FOR_TARGET-${target_alias}-gcc} | |
1741 | CXX_FOR_TARGET=${CXX_FOR_TARGET-${target_alias}-c++} | |
1742 | GCJ_FOR_TARGET=${GCJ_FOR_TARGET-${target_alias}-gcj} | |
1743 | GCC_FOR_TARGET=${GCC_FOR_TARGET-${CC_FOR_TARGET-${target_alias}-gcc}} | |
1744 | BUILD_PREFIX=${build_alias}- | |
1745 | BUILD_PREFIX_1=${build_alias}- | |
1746 | MAKEINFO=${MAKEINFO-makeinfo} | |
1747 | ||
1748 | if test -z "${YACC}" ; then | |
1749 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1750 | for dir in $PATH; do | |
1751 | test -z "$dir" && dir=. | |
1752 | if test -f $dir/bison; then | |
1753 | YACC="bison -y" | |
1754 | break | |
1755 | fi | |
1756 | if test -f $dir/byacc; then | |
1757 | YACC=byacc | |
1758 | break | |
1759 | fi | |
1760 | if test -f $dir/yacc; then | |
1761 | YACC=yacc | |
1762 | break | |
1763 | fi | |
1764 | done | |
1765 | IFS="$save_ifs" | |
1766 | if test -z "${YACC}" ; then | |
1767 | YACC="bison -y" | |
1768 | fi | |
1769 | fi | |
1770 | ||
1771 | if test -z "${LEX}" ; then | |
1772 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1773 | for dir in $PATH; do | |
1774 | test -z "$dir" && dir=. | |
1775 | if test -f $dir/flex; then | |
1776 | LEX=flex | |
1777 | break | |
1778 | fi | |
1779 | if test -f $dir/lex; then | |
1780 | LEX=lex | |
1781 | break | |
1782 | fi | |
1783 | done | |
1784 | IFS="$save_ifs" | |
1785 | LEX=${LEX-flex} | |
1786 | fi | |
1787 | ||
1788 | else | |
1789 | # Set reasonable default values for some tools even if not Canadian. | |
1790 | # Of course, these are different reasonable default values, originally | |
1791 | # specified directly in the Makefile. | |
1792 | # We don't export, so that autoconf can do its job. | |
1793 | # Note that all these settings are above the fragment inclusion point | |
1794 | # in Makefile.in, so can still be overridden by fragments. | |
1795 | # This is all going to change when we autoconfiscate... | |
1796 | ||
1797 | BISON="\$(USUAL_BISON)" | |
1798 | CC_FOR_BUILD="\$(CC)" | |
1799 | GCC_FOR_TARGET="\$(USUAL_GCC_FOR_TARGET)" | |
1800 | BUILD_PREFIX= | |
1801 | BUILD_PREFIX_1=loser- | |
1802 | MAKEINFO="\$(USUAL_MAKEINFO)" | |
1803 | LEX="\$(USUAL_LEX)" | |
1804 | YACC="\$(USUAL_YACC)" | |
1805 | ||
1806 | # If CC is still not set, try to get gcc. | |
1807 | cc_prog_is_gcc= | |
1808 | if test -z "${CC}" ; then | |
1809 | IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:" | |
1810 | for dir in $PATH; do | |
1811 | test -z "$dir" && dir=. | |
1812 | if test -f $dir/gcc; then | |
1813 | CC="gcc" | |
1814 | cc_prog_is_gcc=yes | |
1815 | echo 'void f(){}' > conftest.c | |
1816 | if test -z "`${CC} -g -c conftest.c 2>&1`"; then | |
1817 | CFLAGS=${CFLAGS-"-g -O2"} | |
1818 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
1819 | else | |
1820 | CFLAGS=${CFLAGS-"-O2"} | |
1821 | CXXFLAGS=${CXXFLAGS-"-O2"} | |
1822 | fi | |
1823 | rm -f conftest* | |
1824 | break | |
1825 | fi | |
1826 | done | |
1827 | IFS="$save_ifs" | |
1828 | CC=${CC-cc} | |
1829 | else | |
1830 | # Determine if we are using gcc. | |
1831 | cat > conftest.c <<EOF | |
1832 | #ifdef __GNUC__ | |
1833 | yes; | |
1834 | #endif | |
1835 | EOF | |
1836 | if ${CC} -E conftest.c | grep yes >/dev/null 2>&1; then | |
1837 | cc_prog_is_gcc=yes | |
1838 | fi | |
1839 | rm -f conftest.c | |
1840 | if test -z "${CFLAGS}"; then | |
1841 | # Here CC is set but CFLAGS is not. Use a quick hack to use -O2 if CC | |
1842 | # is set to a version of gcc. | |
1843 | if test "$cc_prog_is_gcc" = yes; then | |
1844 | echo 'void f(){}' > conftest.c | |
1845 | if test -z "`${CC} -g -c conftest.c 2>&1`"; then | |
1846 | CFLAGS=${CFLAGS-"-g -O2"} | |
1847 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
1848 | else | |
1849 | CFLAGS=${CFLAGS-"-O2"} | |
1850 | CXXFLAGS=${CXXFLAGS-"-O2"} | |
1851 | fi | |
1852 | rm -f conftest* | |
1853 | fi | |
1854 | fi | |
1855 | fi | |
1856 | ||
1857 | # We must set the default linker to the linker used by gcc for the correct | |
1858 | # operation of libtool. If LD is not defined and we are using gcc, try to | |
1859 | # set the LD default to the ld used by gcc. | |
1860 | if test -z "$LD"; then | |
1861 | if test "$cc_prog_is_gcc" = yes; then | |
1862 | case $build in | |
1863 | *-*-mingw*) | |
1864 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;; | |
1865 | *) | |
1866 | gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;; | |
1867 | esac | |
1868 | case $gcc_prog_ld in | |
1869 | # Accept absolute paths. | |
1870 | [\\/]* | [A-Za-z]:[\\/]*) | |
1871 | LD="$gcc_prog_ld" ;; | |
1872 | esac | |
1873 | fi | |
1874 | fi | |
1875 | ||
1876 | CXX=${CXX-"c++"} | |
1877 | CFLAGS=${CFLAGS-"-g"} | |
1878 | CXXFLAGS=${CXXFLAGS-"-g -O2"} | |
1879 | fi | |
1880 | ||
1881 | if test $host != $build; then | |
1882 | ac_tool_prefix=${host_alias}- | |
1883 | else | |
1884 | ac_tool_prefix= | |
1885 | fi | |
1886 | ||
1887 | # Extract the first word of "gcc", so it can be a program name with args. | |
1888 | set dummy gcc; ac_word=$2 | |
1889 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 1890 | echo "configure:1891: checking for $ac_word" >&5 |
cfc26d93 NN |
1891 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1893 | else | |
1894 | if test -n "$CC"; then | |
1895 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1896 | else | |
1897 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1898 | ac_dummy="$PATH" | |
1899 | for ac_dir in $ac_dummy; do | |
1900 | test -z "$ac_dir" && ac_dir=. | |
1901 | if test -f $ac_dir/$ac_word; then | |
1902 | ac_cv_prog_CC="gcc" | |
1903 | break | |
1904 | fi | |
1905 | done | |
1906 | IFS="$ac_save_ifs" | |
1907 | fi | |
1908 | fi | |
1909 | CC="$ac_cv_prog_CC" | |
1910 | if test -n "$CC"; then | |
1911 | echo "$ac_t""$CC" 1>&6 | |
1912 | else | |
1913 | echo "$ac_t""no" 1>&6 | |
1914 | fi | |
1915 | ||
1916 | if test -z "$CC"; then | |
1917 | # Extract the first word of "cc", so it can be a program name with args. | |
1918 | set dummy cc; ac_word=$2 | |
1919 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 1920 | echo "configure:1921: checking for $ac_word" >&5 |
cfc26d93 NN |
1921 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1922 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1923 | else | |
1924 | if test -n "$CC"; then | |
1925 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1926 | else | |
1927 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1928 | ac_prog_rejected=no | |
1929 | ac_dummy="$PATH" | |
1930 | for ac_dir in $ac_dummy; do | |
1931 | test -z "$ac_dir" && ac_dir=. | |
1932 | if test -f $ac_dir/$ac_word; then | |
1933 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1934 | ac_prog_rejected=yes | |
1935 | continue | |
1936 | fi | |
1937 | ac_cv_prog_CC="cc" | |
1938 | break | |
1939 | fi | |
1940 | done | |
1941 | IFS="$ac_save_ifs" | |
1942 | if test $ac_prog_rejected = yes; then | |
1943 | # We found a bogon in the path, so make sure we never use it. | |
1944 | set dummy $ac_cv_prog_CC | |
1945 | shift | |
1946 | if test $# -gt 0; then | |
1947 | # We chose a different compiler from the bogus one. | |
1948 | # However, it has the same basename, so the bogon will be chosen | |
1949 | # first if we set CC to just the basename; use the full file name. | |
1950 | shift | |
1951 | set dummy "$ac_dir/$ac_word" "$@" | |
1952 | shift | |
1953 | ac_cv_prog_CC="$@" | |
1954 | fi | |
1955 | fi | |
1956 | fi | |
1957 | fi | |
1958 | CC="$ac_cv_prog_CC" | |
1959 | if test -n "$CC"; then | |
1960 | echo "$ac_t""$CC" 1>&6 | |
1961 | else | |
1962 | echo "$ac_t""no" 1>&6 | |
1963 | fi | |
1964 | ||
1965 | if test -z "$CC"; then | |
1966 | case "`uname -s`" in | |
1967 | *win32* | *WIN32*) | |
1968 | # Extract the first word of "cl", so it can be a program name with args. | |
1969 | set dummy cl; ac_word=$2 | |
1970 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 1971 | echo "configure:1972: checking for $ac_word" >&5 |
cfc26d93 NN |
1972 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1974 | else | |
1975 | if test -n "$CC"; then | |
1976 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1977 | else | |
1978 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1979 | ac_dummy="$PATH" | |
1980 | for ac_dir in $ac_dummy; do | |
1981 | test -z "$ac_dir" && ac_dir=. | |
1982 | if test -f $ac_dir/$ac_word; then | |
1983 | ac_cv_prog_CC="cl" | |
1984 | break | |
1985 | fi | |
1986 | done | |
1987 | IFS="$ac_save_ifs" | |
1988 | fi | |
1989 | fi | |
1990 | CC="$ac_cv_prog_CC" | |
1991 | if test -n "$CC"; then | |
1992 | echo "$ac_t""$CC" 1>&6 | |
1993 | else | |
1994 | echo "$ac_t""no" 1>&6 | |
1995 | fi | |
1996 | ;; | |
1997 | esac | |
1998 | fi | |
1999 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
2000 | fi | |
2001 | ||
2002 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
21ff191e | 2003 | echo "configure:2004: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
cfc26d93 NN |
2004 | |
2005 | ac_ext=c | |
2006 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2007 | ac_cpp='$CPP $CPPFLAGS' | |
2008 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2009 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2010 | cross_compiling=$ac_cv_prog_cc_cross | |
2011 | ||
2012 | cat > conftest.$ac_ext << EOF | |
2013 | ||
21ff191e | 2014 | #line 2015 "configure" |
cfc26d93 NN |
2015 | #include "confdefs.h" |
2016 | ||
2017 | main(){return(0);} | |
2018 | EOF | |
21ff191e | 2019 | if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cfc26d93 NN |
2020 | ac_cv_prog_cc_works=yes |
2021 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2022 | if (./conftest; exit) 2>/dev/null; then | |
2023 | ac_cv_prog_cc_cross=no | |
2024 | else | |
2025 | ac_cv_prog_cc_cross=yes | |
2026 | fi | |
2027 | else | |
2028 | echo "configure: failed program was:" >&5 | |
2029 | cat conftest.$ac_ext >&5 | |
2030 | ac_cv_prog_cc_works=no | |
2031 | fi | |
2032 | rm -fr conftest* | |
2033 | ac_ext=c | |
2034 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2035 | ac_cpp='$CPP $CPPFLAGS' | |
2036 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2037 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2038 | cross_compiling=$ac_cv_prog_cc_cross | |
2039 | ||
2040 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2041 | if test $ac_cv_prog_cc_works = no; then | |
2042 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2043 | fi | |
2044 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
21ff191e | 2045 | echo "configure:2046: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
cfc26d93 NN |
2046 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2047 | cross_compiling=$ac_cv_prog_cc_cross | |
2048 | ||
2049 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
21ff191e | 2050 | echo "configure:2051: checking whether we are using GNU C" >&5 |
cfc26d93 NN |
2051 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
2052 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2053 | else | |
2054 | cat > conftest.c <<EOF | |
2055 | #ifdef __GNUC__ | |
2056 | yes; | |
2057 | #endif | |
2058 | EOF | |
21ff191e | 2059 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
cfc26d93 NN |
2060 | ac_cv_prog_gcc=yes |
2061 | else | |
2062 | ac_cv_prog_gcc=no | |
2063 | fi | |
2064 | fi | |
2065 | ||
2066 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2067 | ||
2068 | if test $ac_cv_prog_gcc = yes; then | |
2069 | GCC=yes | |
2070 | else | |
2071 | GCC= | |
2072 | fi | |
2073 | ||
2074 | ac_test_CFLAGS="${CFLAGS+set}" | |
2075 | ac_save_CFLAGS="$CFLAGS" | |
2076 | CFLAGS= | |
2077 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
21ff191e | 2078 | echo "configure:2079: checking whether ${CC-cc} accepts -g" >&5 |
cfc26d93 NN |
2079 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
2080 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2081 | else | |
2082 | echo 'void f(){}' > conftest.c | |
2083 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2084 | ac_cv_prog_cc_g=yes | |
2085 | else | |
2086 | ac_cv_prog_cc_g=no | |
2087 | fi | |
2088 | rm -f conftest* | |
2089 | ||
2090 | fi | |
2091 | ||
2092 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2093 | if test "$ac_test_CFLAGS" = set; then | |
2094 | CFLAGS="$ac_save_CFLAGS" | |
2095 | elif test $ac_cv_prog_cc_g = yes; then | |
2096 | if test "$GCC" = yes; then | |
2097 | CFLAGS="-g -O2" | |
2098 | else | |
2099 | CFLAGS="-g" | |
2100 | fi | |
2101 | else | |
2102 | if test "$GCC" = yes; then | |
2103 | CFLAGS="-O2" | |
2104 | else | |
2105 | CFLAGS= | |
2106 | fi | |
2107 | fi | |
2108 | ||
2109 | ||
2110 | ||
2111 | # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args. | |
2112 | set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 | |
2113 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 2114 | echo "configure:2115: checking for $ac_word" >&5 |
cfc26d93 NN |
2115 | if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then |
2116 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2117 | else | |
2118 | if test -n "$GNATBIND"; then | |
2119 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
2120 | else | |
2121 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2122 | ac_dummy="$PATH" | |
2123 | for ac_dir in $ac_dummy; do | |
2124 | test -z "$ac_dir" && ac_dir=. | |
2125 | if test -f $ac_dir/$ac_word; then | |
2126 | ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind" | |
2127 | break | |
2128 | fi | |
2129 | done | |
2130 | IFS="$ac_save_ifs" | |
2131 | fi | |
2132 | fi | |
2133 | GNATBIND="$ac_cv_prog_GNATBIND" | |
2134 | if test -n "$GNATBIND"; then | |
2135 | echo "$ac_t""$GNATBIND" 1>&6 | |
2136 | else | |
2137 | echo "$ac_t""no" 1>&6 | |
2138 | fi | |
2139 | ||
2140 | ||
2141 | if test -z "$ac_cv_prog_GNATBIND"; then | |
2142 | if test -n "$ac_tool_prefix"; then | |
2143 | # Extract the first word of "gnatbind", so it can be a program name with args. | |
2144 | set dummy gnatbind; ac_word=$2 | |
2145 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 2146 | echo "configure:2147: checking for $ac_word" >&5 |
cfc26d93 NN |
2147 | if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then |
2148 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2149 | else | |
2150 | if test -n "$GNATBIND"; then | |
2151 | ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test. | |
2152 | else | |
2153 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2154 | ac_dummy="$PATH" | |
2155 | for ac_dir in $ac_dummy; do | |
2156 | test -z "$ac_dir" && ac_dir=. | |
2157 | if test -f $ac_dir/$ac_word; then | |
2158 | ac_cv_prog_GNATBIND="gnatbind" | |
2159 | break | |
2160 | fi | |
2161 | done | |
2162 | IFS="$ac_save_ifs" | |
2163 | test -z "$ac_cv_prog_GNATBIND" && ac_cv_prog_GNATBIND="no" | |
2164 | fi | |
2165 | fi | |
2166 | GNATBIND="$ac_cv_prog_GNATBIND" | |
2167 | if test -n "$GNATBIND"; then | |
2168 | echo "$ac_t""$GNATBIND" 1>&6 | |
2169 | else | |
2170 | echo "$ac_t""no" 1>&6 | |
2171 | fi | |
2172 | ||
2173 | else | |
2174 | GNATBIND="no" | |
2175 | fi | |
2176 | fi | |
2177 | ||
2178 | echo $ac_n "checking whether compiler driver understands Ada""... $ac_c" 1>&6 | |
21ff191e | 2179 | echo "configure:2180: checking whether compiler driver understands Ada" >&5 |
cfc26d93 NN |
2180 | if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" = set"; then |
2181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2182 | else | |
2183 | cat >conftest.adb <<EOF | |
2184 | procedure conftest is begin null; end conftest; | |
2185 | EOF | |
2186 | acx_cv_cc_gcc_supports_ada=no | |
2187 | # There is a bug in old released versions of GCC which causes the | |
2188 | # driver to exit successfully when the appropriate language module | |
2189 | # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1. | |
2190 | # Therefore we must check for the error message as well as an | |
2191 | # unsuccessful exit. | |
866c244e DD |
2192 | # Other compilers, like HP Tru64 UNIX cc, exit successfully when |
2193 | # given a .adb file, but produce no object file. So we must check | |
2194 | # if an object file was really produced to guard against this. | |
cfc26d93 | 2195 | errors=`(${CC} -c conftest.adb) 2>&1 || echo failure` |
866c244e | 2196 | if test x"$errors" = x && test -f conftest.$ac_objext; then |
cfc26d93 NN |
2197 | acx_cv_cc_gcc_supports_ada=yes |
2198 | break | |
2199 | fi | |
2200 | rm -f conftest.* | |
2201 | fi | |
2202 | ||
2203 | echo "$ac_t""$acx_cv_cc_gcc_supports_ada" 1>&6 | |
2204 | ||
866c244e | 2205 | if test x$GNATBIND != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then |
cfc26d93 NN |
2206 | have_gnat=yes |
2207 | else | |
2208 | have_gnat=no | |
2209 | fi | |
2210 | ||
866c244e | 2211 | echo $ac_n "checking how to compare bootstrapped objects""... $ac_c" 1>&6 |
21ff191e | 2212 | echo "configure:2213: checking how to compare bootstrapped objects" >&5 |
866c244e DD |
2213 | if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then |
2214 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2215 | else | |
2216 | echo abfoo >t1 | |
2217 | echo cdfoo >t2 | |
2218 | gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' | |
cb2333e8 DD |
2219 | if cmp t1 t2 2 2 > /dev/null 2>&1; then |
2220 | if cmp t1 t2 1 1 > /dev/null 2>&1; then | |
2221 | : | |
2222 | else | |
2223 | gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' | |
2224 | fi | |
2225 | fi | |
866c244e DD |
2226 | if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then |
2227 | if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then | |
cb2333e8 | 2228 | : |
866c244e DD |
2229 | else |
2230 | gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' | |
2231 | fi | |
2232 | fi | |
2233 | rm t1 t2 | |
2234 | ||
2235 | fi | |
2236 | ||
2237 | echo "$ac_t""$gcc_cv_prog_cmp_skip" 1>&6 | |
2238 | do_compare="$gcc_cv_prog_cmp_skip" | |
2239 | ||
2240 | ||
cfc26d93 | 2241 | |
cb2333e8 DD |
2242 | # Check for GMP |
2243 | gmplibs= | |
2244 | gmpinc= | |
2245 | have_gmp=yes | |
2246 | # Specify a location for gmp | |
2247 | # Check whether --with-gmp-dir or --without-gmp-dir was given. | |
2248 | if test "${with_gmp_dir+set}" = set; then | |
2249 | withval="$with_gmp_dir" | |
2250 | : | |
2251 | fi | |
2252 | ||
2253 | ||
2254 | if test "x$with_gmp_dir" != x && test -f "$with_gmp_dir/gmp.h"; then | |
2255 | gmpinc="-I$with_gmp_dir" | |
2256 | if test -f "$with_gmp_dir/.libs/libgmp.a"; then | |
2257 | gmplibs="$with_gmp_dir/.libs/libgmp.a" | |
2258 | elif test -f "$with_gmp_dir/_libs/libgmp.a"; then | |
2259 | gmplibs="$with_gmp_dir/_libs/libgmp.a" | |
2260 | fi | |
2261 | # One of the later tests will catch the error if neither library is present. | |
2262 | fi | |
2263 | ||
2264 | # Check whether --with-gmp or --without-gmp was given. | |
2265 | if test "${with_gmp+set}" = set; then | |
2266 | withval="$with_gmp" | |
2267 | : | |
2268 | fi | |
2269 | ||
2270 | ||
2271 | if test "x$with_gmp" != x && test -d "$with_gmp"; then | |
2272 | gmplibs="-L$with_gmp/lib -lgmp" | |
2273 | gmpinc="-I$with_gmp/include" | |
2274 | fi | |
2275 | ||
2276 | # Use system gmp if nothing else specified | |
2277 | if test "x$gmplibs" = x; then | |
2278 | gmplibs="-lgmp" | |
2279 | fi | |
2280 | ||
2281 | saved_CFLAGS="$CFLAGS" | |
2282 | CFLAGS="$CFLAGS $gmpinc" | |
2283 | # Check GMP actually works | |
2284 | echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6 | |
21ff191e | 2285 | echo "configure:2286: checking for correct version of gmp.h" >&5 |
cb2333e8 | 2286 | cat > conftest.$ac_ext <<EOF |
21ff191e | 2287 | #line 2288 "configure" |
cb2333e8 DD |
2288 | #include "confdefs.h" |
2289 | #include "gmp.h" | |
2290 | int main() { | |
2291 | ||
2292 | #if __GNU_MP_VERSION < 3 | |
2293 | choke me | |
2294 | #endif | |
2295 | ||
2296 | ; return 0; } | |
2297 | EOF | |
21ff191e | 2298 | if { (eval echo configure:2299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
cb2333e8 DD |
2299 | rm -rf conftest* |
2300 | echo "$ac_t""yes" 1>&6 | |
2301 | else | |
2302 | echo "configure: failed program was:" >&5 | |
2303 | cat conftest.$ac_ext >&5 | |
2304 | rm -rf conftest* | |
2305 | echo "$ac_t""no" 1>&6; have_gmp=no | |
2306 | fi | |
2307 | rm -f conftest* | |
2308 | ||
2309 | if test x"$have_gmp" = xyes; then | |
2310 | echo $ac_n "checking for mpf_init in -lgmp""... $ac_c" 1>&6 | |
21ff191e | 2311 | echo "configure:2312: checking for mpf_init in -lgmp" >&5 |
cb2333e8 DD |
2312 | |
2313 | saved_LIBS="$LIBS" | |
2314 | LIBS="$LIBS $gmplibs" | |
2315 | cat > conftest.$ac_ext <<EOF | |
21ff191e | 2316 | #line 2317 "configure" |
cb2333e8 DD |
2317 | #include "confdefs.h" |
2318 | #include <gmp.h> | |
2319 | int main() { | |
2320 | mpf_t n; mpf_init(n); | |
2321 | ; return 0; } | |
2322 | EOF | |
21ff191e | 2323 | if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
cb2333e8 DD |
2324 | rm -rf conftest* |
2325 | echo "$ac_t""yes" 1>&6 | |
2326 | else | |
2327 | echo "configure: failed program was:" >&5 | |
2328 | cat conftest.$ac_ext >&5 | |
2329 | rm -rf conftest* | |
2330 | echo "$ac_t""no" 1>&6; have_gmp=no | |
2331 | fi | |
2332 | rm -f conftest* | |
2333 | LIBS="$saved_LIBS" | |
2334 | CFLAGS="$saved_CFLAGS" | |
2335 | fi | |
2336 | ||
2337 | ||
2338 | ||
2339 | ||
4a95a7fe | 2340 | # By default, C is the only stage 1 language. |
457eaf16 NN |
2341 | stage1_languages=c |
2342 | ||
2343 | ||
cfc26d93 NN |
2344 | # Figure out what language subdirectories are present. |
2345 | # Look if the user specified --enable-languages="..."; if not, use | |
2346 | # the environment variable $LANGUAGES if defined. $LANGUAGES might | |
2347 | # go away some day. | |
2348 | # NB: embedded tabs in this IF block -- do not untabify | |
2349 | if test -d ${srcdir}/gcc; then | |
2350 | if test x"${enable_languages+set}" != xset; then | |
2351 | if test x"${LANGUAGES+set}" = xset; then | |
2352 | enable_languages="${LANGUAGES}" | |
2353 | echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2 | |
2354 | else | |
2355 | enable_languages=all | |
2356 | fi | |
2357 | else | |
2358 | if test x"${enable_languages}" = x || | |
2359 | test x"${enable_languages}" = xyes; | |
2360 | then | |
2361 | echo configure.in: --enable-languages needs at least one language argument 1>&2 | |
2362 | exit 1 | |
2363 | fi | |
2364 | fi | |
2365 | enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'` | |
2366 | ||
2367 | # First scan to see if an enabled language requires some other language. | |
2368 | # We assume that a given config-lang.in will list all the language | |
2369 | # front ends it requires, even if some are required indirectly. | |
2370 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
2371 | case ${lang_frag} in | |
2372 | ..) ;; | |
2373 | # The odd quoting in the next line works around | |
2374 | # an apparent bug in bash 1.12 on linux. | |
2375 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
2376 | *) | |
2377 | # From the config-lang.in, get $language, $lang_requires | |
2378 | language= | |
2379 | lang_requires= | |
2380 | . ${lang_frag} | |
2381 | for other in ${lang_requires} ; do | |
2382 | case ,${enable_languages}, in | |
2383 | *,$other,*) ;; | |
2384 | *,all,*) ;; | |
2385 | *,$language,*) | |
2386 | echo " \`$other' language required by \`$language'; enabling" 1>&2 | |
2387 | enable_languages="${enable_languages},${other}" | |
2388 | ;; | |
2389 | esac | |
2390 | done | |
2391 | ;; | |
2392 | esac | |
2393 | done | |
2394 | ||
2395 | new_enable_languages=c | |
2396 | missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ ` | |
2397 | ||
2398 | for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do | |
2399 | case ${lang_frag} in | |
2400 | ..) ;; | |
2401 | # The odd quoting in the next line works around | |
2402 | # an apparent bug in bash 1.12 on linux. | |
2403 | ${srcdir}/gcc/[*]/config-lang.in) ;; | |
2404 | *) | |
2405 | # From the config-lang.in, get $language, $target_libs, | |
457eaf16 | 2406 | # $lang_dirs, $boot_language, and $build_by_default |
cfc26d93 NN |
2407 | language= |
2408 | target_libs= | |
2409 | lang_dirs= | |
457eaf16 | 2410 | boot_language= |
cfc26d93 | 2411 | build_by_default= |
cb2333e8 | 2412 | need_gmp= |
cfc26d93 NN |
2413 | . ${lang_frag} |
2414 | # This is quite sensitive to the ordering of the case statement arms. | |
2415 | case ,${enable_languages},:${language}:${have_gnat}:${build_by_default} in | |
2416 | *::*:*) | |
2417 | echo "${lang_frag} doesn't set \$language." 1>&2 | |
2418 | exit 1 | |
2419 | ;; | |
2420 | *:ada:no:*) | |
2421 | # Ada was requested with no preexisting GNAT. Disable unconditionally. | |
2422 | add_this_lang=no | |
2423 | ;; | |
2424 | *,${language},*:*:*:*) | |
2425 | # Language was explicitly selected; include it. | |
2426 | add_this_lang=yes | |
2427 | ;; | |
2428 | *,all,*:*:*:no) | |
2429 | # 'all' was selected, but this is not a default language | |
2430 | # so do not include it. | |
2431 | add_this_lang=no | |
2432 | ;; | |
2433 | *,all,*:*:*:*) | |
2434 | # 'all' was selected and this is a default language; include it. | |
2435 | add_this_lang=yes | |
2436 | ;; | |
2437 | *) | |
2438 | add_this_lang=no | |
2439 | ;; | |
2440 | esac | |
cb2333e8 DD |
2441 | |
2442 | # Disable language that need GMP if it isn't available. | |
2443 | if test x"$need_gmp" = xyes && test x"$have_gmp" = xno; then | |
2444 | add_this_lang=no | |
2445 | fi | |
2446 | ||
2447 | case $add_this_lang in | |
cfc26d93 NN |
2448 | no) |
2449 | # Remove language-dependent dirs. | |
457eaf16 NN |
2450 | eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\" |
2451 | ;; | |
cfc26d93 NN |
2452 | *) |
2453 | new_enable_languages="$new_enable_languages,$language" | |
457eaf16 NN |
2454 | missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"` |
2455 | case ${boot_language} in | |
2456 | yes) | |
8ec98d6c NN |
2457 | # Add to (comma-separated) list of stage 1 languages. |
2458 | stage1_languages="${stage1_languages},${language}" | |
457eaf16 NN |
2459 | ;; |
2460 | esac | |
2461 | ;; | |
cfc26d93 NN |
2462 | esac |
2463 | ;; | |
2464 | esac | |
2465 | done | |
2466 | ||
2e93c971 | 2467 | missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"` |
cfc26d93 NN |
2468 | if test "x$missing_languages" != x; then |
2469 | { echo "configure: error: | |
2470 | The following requested languages were not found: ${missing_languages}" 1>&2; exit 1; } | |
2471 | fi | |
2472 | ||
2473 | if test "x$new_enable_languages" != "x$enable_languages"; then | |
2474 | echo The following languages will be built: ${new_enable_languages} | |
2475 | fi | |
2476 | enable_languages="$new_enable_languages" | |
967641f2 | 2477 | ac_configure_args=`echo " $ac_configure_args" | sed -e 's/ --enable-languages=[^ ]*//' -e 's/$/ --enable-languages='"$enable_languages"/ ` |
cfc26d93 NN |
2478 | fi |
2479 | ||
2480 | # Remove the entries in $skipdirs and $noconfigdirs from $configdirs and | |
2481 | # $target_configdirs. | |
2482 | # If we have the source for $noconfigdirs entries, add them to $notsupp. | |
2483 | ||
2484 | notsupp="" | |
2485 | for dir in . $skipdirs $noconfigdirs ; do | |
2486 | dirname=`echo $dir | sed -e s/target-//g` | |
2487 | if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2488 | configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"` | |
2489 | if test -r $srcdir/$dirname/configure ; then | |
2490 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2491 | true | |
2492 | else | |
2493 | notsupp="$notsupp $dir" | |
2494 | fi | |
2495 | fi | |
2496 | fi | |
2497 | if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2498 | target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"` | |
2499 | if test -r $srcdir/$dirname/configure ; then | |
2500 | if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2501 | true | |
2502 | else | |
2503 | notsupp="$notsupp $dir" | |
2504 | fi | |
2505 | fi | |
2506 | fi | |
2507 | done | |
2508 | ||
2509 | # Sometimes the tools are distributed with libiberty but with no other | |
2510 | # libraries. In that case, we don't want to build target-libiberty. | |
2511 | if test -n "${target_configdirs}" ; then | |
2512 | others= | |
2513 | for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do | |
2514 | if test "$i" != "libiberty" ; then | |
2515 | if test -r $srcdir/$i/configure ; then | |
2516 | others=yes; | |
2517 | break; | |
2518 | fi | |
2519 | fi | |
2520 | done | |
2521 | if test -z "${others}" ; then | |
2522 | target_configdirs= | |
2523 | fi | |
2524 | fi | |
2525 | ||
2526 | # Quietly strip out all directories which aren't configurable in this tree. | |
2527 | # This relies on all configurable subdirectories being autoconfiscated, which | |
2528 | # is now the case. | |
2529 | configdirs_all="$configdirs" | |
2530 | configdirs= | |
2531 | for i in ${configdirs_all} ; do | |
2532 | if test -f ${srcdir}/$i/configure ; then | |
2533 | configdirs="${configdirs} $i" | |
2534 | fi | |
2535 | done | |
2536 | target_configdirs_all="$target_configdirs" | |
2537 | target_configdirs= | |
2538 | for i in ${target_configdirs_all} ; do | |
2539 | j=`echo $i | sed -e s/target-//g` | |
2540 | if test -f ${srcdir}/$j/configure ; then | |
2541 | target_configdirs="${target_configdirs} $i" | |
2542 | fi | |
2543 | done | |
2544 | ||
2545 | # Produce a warning message for the subdirs we can't configure. | |
2546 | # This isn't especially interesting in the Cygnus tree, but in the individual | |
2547 | # FSF releases, it's important to let people know when their machine isn't | |
2548 | # supported by the one or two programs in a package. | |
2549 | ||
2550 | if test -n "${notsupp}" && test -z "${norecursion}" ; then | |
2551 | # If $appdirs is non-empty, at least one of those directories must still | |
2552 | # be configured, or we error out. (E.g., if the gas release supports a | |
2553 | # specified target in some subdirs but not the gas subdir, we shouldn't | |
2554 | # pretend that all is well.) | |
2555 | if test -n "$appdirs" ; then | |
2556 | for dir in $appdirs ; do | |
2557 | if test -r $dir/Makefile.in ; then | |
2558 | if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2559 | appdirs="" | |
2560 | break | |
2561 | fi | |
2562 | if echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then | |
2563 | appdirs="" | |
2564 | break | |
2565 | fi | |
2566 | fi | |
2567 | done | |
2568 | if test -n "$appdirs" ; then | |
2569 | echo "*** This configuration is not supported by this package." 1>&2 | |
2570 | exit 1 | |
2571 | fi | |
2572 | fi | |
2573 | # Okay, some application will build, or we don't care to check. Still | |
2574 | # notify of subdirs not getting built. | |
2575 | echo "*** This configuration is not supported in the following subdirectories:" 1>&2 | |
2576 | echo " ${notsupp}" 1>&2 | |
2577 | echo " (Any other directories should still work fine.)" 1>&2 | |
2578 | fi | |
2579 | ||
2580 | case "$host" in | |
2581 | *msdosdjgpp*) | |
2582 | enable_gdbtk=no ;; | |
2583 | esac | |
2584 | ||
2585 | copy_dirs= | |
2586 | ||
2587 | # Handle --with-headers=XXX. If the value is not "yes", the contents of | |
2588 | # the named directory are copied to $(tooldir)/sys-include. | |
2589 | if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then | |
2590 | if test x${is_cross_compiler} = xno ; then | |
2591 | echo 1>&2 '***' --with-headers is only supported when cross compiling | |
2592 | exit 1 | |
2593 | fi | |
2594 | if test x"${with_headers}" != xyes ; then | |
2595 | case "${exec_prefixoption}" in | |
2596 | "") x=${prefix} ;; | |
2597 | *) x=${exec_prefix} ;; | |
2598 | esac | |
2599 | copy_dirs="${copy_dirs} ${with_headers} $x/${target_alias}/sys-include" | |
2600 | fi | |
2601 | fi | |
2602 | ||
2603 | # Handle --with-libs=XXX. If the value is not "yes", the contents of | |
2604 | # the name directories are copied to $(tooldir)/lib. Multiple directories | |
2605 | # are permitted. | |
2606 | if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then | |
2607 | if test x${is_cross_compiler} = xno ; then | |
2608 | echo 1>&2 '***' --with-libs is only supported when cross compiling | |
2609 | exit 1 | |
2610 | fi | |
2611 | if test x"${with_libs}" != xyes ; then | |
2612 | # Copy the libraries in reverse order, so that files in the first named | |
2613 | # library override files in subsequent libraries. | |
2614 | case "${exec_prefixoption}" in | |
2615 | "") x=${prefix} ;; | |
2616 | *) x=${exec_prefix} ;; | |
2617 | esac | |
2618 | for l in ${with_libs}; do | |
2619 | copy_dirs="$l $x/${target_alias}/lib ${copy_dirs}" | |
2620 | done | |
2621 | fi | |
2622 | fi | |
2623 | ||
2624 | # Handle ${copy_dirs} | |
2625 | set fnord ${copy_dirs} | |
2626 | shift | |
2627 | while test $# != 0 ; do | |
2628 | if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then | |
2629 | : | |
2630 | else | |
2631 | echo Copying $1 to $2 | |
2632 | ||
2633 | # Use the install script to create the directory and all required | |
2634 | # parent directories. | |
2635 | if test -d $2 ; then | |
2636 | : | |
2637 | else | |
2638 | echo >config.temp | |
2639 | ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED | |
2640 | fi | |
2641 | ||
2642 | # Copy the directory, assuming we have tar. | |
2643 | # FIXME: Should we use B in the second tar? Not all systems support it. | |
2644 | (cd $1; tar -cf - .) | (cd $2; tar -xpf -) | |
2645 | ||
2646 | # It is the responsibility of the user to correctly adjust all | |
2647 | # symlinks. If somebody can figure out how to handle them correctly | |
2648 | # here, feel free to add the code. | |
2649 | ||
2650 | echo $1 > $2/COPIED | |
2651 | fi | |
2652 | shift; shift | |
2653 | done | |
2654 | ||
bafecfd6 NN |
2655 | extra_arflags_for_target= |
2656 | extra_nmflags_for_target= | |
2657 | extra_ranlibflags_for_target= | |
2658 | target_makefile_frag=/dev/null | |
2659 | case "${target}" in | |
08049c01 | 2660 | i[3456789]86-*-netware*) |
bafecfd6 NN |
2661 | target_makefile_frag="config/mt-netware" |
2662 | ;; | |
2663 | powerpc-*-netware*) | |
2664 | target_makefile_frag="config/mt-netware" | |
2665 | ;; | |
2666 | *-*-linux*) | |
2667 | target_makefile_frag="config/mt-linux" | |
2668 | ;; | |
2669 | *-*-aix4.[3456789]* | *-*-aix[56789].*) | |
2670 | # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm | |
2671 | # commands to handle both 32-bit and 64-bit objects. These flags are | |
2672 | # harmless if we're using GNU nm or ar. | |
2673 | extra_arflags_for_target=" -X32_64" | |
2674 | extra_nmflags_for_target=" -B -X32_64" | |
2675 | ;; | |
2676 | *-*-darwin*) | |
2677 | # ranlib from Darwin requires the -c flag to look at common symbols. | |
2678 | extra_ranlibflags_for_target=" -c" | |
2679 | ;; | |
2680 | mips*-*-pe | sh*-*-pe | *arm-wince-pe) | |
2681 | target_makefile_frag="config/mt-wince" | |
2682 | ;; | |
2683 | esac | |
2684 | ||
2685 | alphaieee_frag=/dev/null | |
2686 | case $target in | |
2687 | alpha*-*-*) | |
2688 | # This just makes sure to use the -mieee option to build target libs. | |
2689 | # This should probably be set individually by each library. | |
2690 | alphaieee_frag="config/mt-alphaieee" | |
2691 | ;; | |
2692 | esac | |
2693 | ||
2694 | # If --enable-target-optspace always use -Os instead of -O2 to build | |
2695 | # the target libraries, similarly if it is not specified, use -Os | |
2696 | # on selected platforms. | |
2697 | ospace_frag=/dev/null | |
2698 | case "${enable_target_optspace}:${target}" in | |
2699 | yes:*) | |
2700 | ospace_frag="config/mt-ospace" | |
2701 | ;; | |
2702 | :d30v-*) | |
2703 | ospace_frag="config/mt-d30v" | |
2704 | ;; | |
2705 | :m32r-* | :d10v-* | :fr30-*) | |
2706 | ospace_frag="config/mt-ospace" | |
2707 | ;; | |
2708 | no:* | :*) | |
2709 | ;; | |
2710 | *) | |
2711 | echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2 | |
2712 | ;; | |
2713 | esac | |
2714 | ||
2715 | # Set with_gnu_as and with_gnu_ld as appropriate. | |
2716 | # | |
2717 | # This is done by determining whether or not the appropriate directory | |
2718 | # is available, and by checking whether or not specific configurations | |
2719 | # have requested that this magic not happen. | |
2720 | # | |
2721 | # The command line options always override the explicit settings in | |
2722 | # configure.in, and the settings in configure.in override this magic. | |
2723 | # | |
2724 | # If the default for a toolchain is to use GNU as and ld, and you don't | |
2725 | # want to do that, then you should use the --without-gnu-as and | |
2726 | # --without-gnu-ld options for the configure script. | |
2727 | ||
2728 | if test x${use_gnu_as} = x && | |
2729 | echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then | |
2730 | with_gnu_as=yes | |
2731 | extra_host_args="$extra_host_args --with-gnu-as" | |
2732 | fi | |
2733 | ||
2734 | if test x${use_gnu_ld} = x && | |
2735 | echo " ${configdirs} " | grep " ld " > /dev/null 2>&1 ; then | |
2736 | with_gnu_ld=yes | |
2737 | extra_host_args="$extra_host_args --with-gnu-ld" | |
2738 | fi | |
2739 | ||
2740 | # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure | |
2741 | # can detect this case. | |
2742 | ||
2743 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then | |
2744 | with_newlib=yes | |
2745 | extra_host_args="$extra_host_args --with-newlib" | |
2746 | fi | |
2747 | ||
cb2333e8 DD |
2748 | if test x${with_libbanshee} = xyes && echo " ${configdirs} " | grep " libbanshee " >/dev/null 2>&1; then |
2749 | extra_host_args="$extra_host_args --with-libbanshee" | |
2750 | fi | |
bafecfd6 NN |
2751 | |
2752 | # Default to using --with-stabs for certain targets. | |
2753 | if test x${with_stabs} = x ; then | |
2754 | case "${target}" in | |
4ea8488c | 2755 | mips*-*-irix[56]*) |
bafecfd6 NN |
2756 | ;; |
2757 | mips*-*-* | alpha*-*-osf*) | |
2758 | with_stabs=yes; | |
2759 | extra_host_args="${extra_host_args} --with-stabs" | |
2760 | ;; | |
2761 | esac | |
2762 | fi | |
2763 | ||
2764 | # hpux11 in 64bit mode has libraries in a weird place. Arrange to find | |
2765 | # them automatically. | |
2766 | case "${host}" in | |
2767 | hppa*64*-*-hpux11*) | |
2768 | extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include" | |
2769 | ;; | |
2770 | esac | |
2771 | ||
bafecfd6 NN |
2772 | # Some systems (e.g., one of the i386-aix systems the gas testers are |
2773 | # using) don't handle "\$" correctly, so don't use it here. | |
733ae299 | 2774 | tooldir='${exec_prefix}'/${target_alias} |
bafecfd6 NN |
2775 | build_tooldir=${tooldir} |
2776 | ||
4a95a7fe NN |
2777 | # Generate default definitions for YACC, M4, LEX. These are used if the |
2778 | # Makefile can't locate these programs in objdir. | |
2779 | MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing | |
2780 | for ac_prog in 'bison -y' byacc yacc | |
bafecfd6 | 2781 | do |
4a95a7fe NN |
2782 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2783 | set dummy $ac_prog; ac_word=$2 | |
2784 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 2785 | echo "configure:2786: checking for $ac_word" >&5 |
4a95a7fe NN |
2786 | if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_YACC'+set}'`\" = set"; then |
2787 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2788 | else | |
2789 | if test -n "$DEFAULT_YACC"; then | |
2790 | ac_cv_prog_DEFAULT_YACC="$DEFAULT_YACC" # Let the user override the test. | |
2791 | else | |
2792 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2793 | ac_dummy="$PATH" | |
2794 | for ac_dir in $ac_dummy; do | |
2795 | test -z "$ac_dir" && ac_dir=. | |
2796 | if test -f $ac_dir/$ac_word; then | |
2797 | ac_cv_prog_DEFAULT_YACC="$ac_prog" | |
bafecfd6 NN |
2798 | break |
2799 | fi | |
2800 | done | |
4a95a7fe NN |
2801 | IFS="$ac_save_ifs" |
2802 | fi | |
2803 | fi | |
2804 | DEFAULT_YACC="$ac_cv_prog_DEFAULT_YACC" | |
2805 | if test -n "$DEFAULT_YACC"; then | |
2806 | echo "$ac_t""$DEFAULT_YACC" 1>&6 | |
2807 | else | |
2808 | echo "$ac_t""no" 1>&6 | |
2809 | fi | |
bafecfd6 | 2810 | |
4a95a7fe | 2811 | test -n "$DEFAULT_YACC" && break |
bafecfd6 | 2812 | done |
4a95a7fe | 2813 | test -n "$DEFAULT_YACC" || DEFAULT_YACC="$MISSING bison" |
bafecfd6 | 2814 | |
4a95a7fe | 2815 | for ac_prog in gm4 gnum4 m4 |
bafecfd6 | 2816 | do |
4a95a7fe NN |
2817 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2818 | set dummy $ac_prog; ac_word=$2 | |
2819 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 2820 | echo "configure:2821: checking for $ac_word" >&5 |
4a95a7fe NN |
2821 | if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_M4'+set}'`\" = set"; then |
2822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2823 | else | |
2824 | if test -n "$DEFAULT_M4"; then | |
2825 | ac_cv_prog_DEFAULT_M4="$DEFAULT_M4" # Let the user override the test. | |
2826 | else | |
2827 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2828 | ac_dummy="$PATH" | |
2829 | for ac_dir in $ac_dummy; do | |
2830 | test -z "$ac_dir" && ac_dir=. | |
2831 | if test -f $ac_dir/$ac_word; then | |
2832 | ac_cv_prog_DEFAULT_M4="$ac_prog" | |
bafecfd6 NN |
2833 | break |
2834 | fi | |
2835 | done | |
4a95a7fe NN |
2836 | IFS="$ac_save_ifs" |
2837 | fi | |
2838 | fi | |
2839 | DEFAULT_M4="$ac_cv_prog_DEFAULT_M4" | |
2840 | if test -n "$DEFAULT_M4"; then | |
2841 | echo "$ac_t""$DEFAULT_M4" 1>&6 | |
2842 | else | |
2843 | echo "$ac_t""no" 1>&6 | |
2844 | fi | |
bafecfd6 | 2845 | |
4a95a7fe | 2846 | test -n "$DEFAULT_M4" && break |
bafecfd6 | 2847 | done |
4a95a7fe | 2848 | test -n "$DEFAULT_M4" || DEFAULT_M4="$MISSING m4" |
bafecfd6 | 2849 | |
4a95a7fe | 2850 | for ac_prog in flex lex |
bafecfd6 | 2851 | do |
4a95a7fe NN |
2852 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2853 | set dummy $ac_prog; ac_word=$2 | |
2854 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 2855 | echo "configure:2856: checking for $ac_word" >&5 |
4a95a7fe NN |
2856 | if eval "test \"`echo '$''{'ac_cv_prog_DEFAULT_LEX'+set}'`\" = set"; then |
2857 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2858 | else | |
2859 | if test -n "$DEFAULT_LEX"; then | |
2860 | ac_cv_prog_DEFAULT_LEX="$DEFAULT_LEX" # Let the user override the test. | |
2861 | else | |
2862 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2863 | ac_dummy="$PATH" | |
2864 | for ac_dir in $ac_dummy; do | |
2865 | test -z "$ac_dir" && ac_dir=. | |
2866 | if test -f $ac_dir/$ac_word; then | |
2867 | ac_cv_prog_DEFAULT_LEX="$ac_prog" | |
bafecfd6 NN |
2868 | break |
2869 | fi | |
2870 | done | |
4a95a7fe NN |
2871 | IFS="$ac_save_ifs" |
2872 | fi | |
2873 | fi | |
2874 | DEFAULT_LEX="$ac_cv_prog_DEFAULT_LEX" | |
2875 | if test -n "$DEFAULT_LEX"; then | |
2876 | echo "$ac_t""$DEFAULT_LEX" 1>&6 | |
2877 | else | |
2878 | echo "$ac_t""no" 1>&6 | |
2879 | fi | |
bafecfd6 | 2880 | |
4a95a7fe | 2881 | test -n "$DEFAULT_LEX" && break |
bafecfd6 | 2882 | done |
4a95a7fe NN |
2883 | test -n "$DEFAULT_LEX" || DEFAULT_LEX="$MISSING flex" |
2884 | ||
bafecfd6 | 2885 | |
bafecfd6 NN |
2886 | # Create a .gdbinit file which runs the one in srcdir |
2887 | # and tells GDB to look there for source files. | |
2888 | ||
2889 | if test -r ${srcdir}/.gdbinit ; then | |
2890 | case ${srcdir} in | |
2891 | .) ;; | |
2892 | *) cat > ./.gdbinit <<EOF | |
2893 | # ${NO_EDIT} | |
2894 | dir ${srcdir} | |
2895 | dir . | |
2896 | source ${srcdir}/.gdbinit | |
2897 | EOF | |
2898 | ;; | |
2899 | esac | |
2900 | fi | |
2901 | ||
bafecfd6 NN |
2902 | # Make sure that the compiler is able to generate an executable. If it |
2903 | # can't, we are probably in trouble. We don't care whether we can run the | |
2904 | # executable--we might be using a cross compiler--we only care whether it | |
2905 | # can be created. At this point the main configure script has set CC. | |
2906 | we_are_ok=no | |
2907 | echo "int main () { return 0; }" > conftest.c | |
2908 | ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c | |
2909 | if test $? = 0 ; then | |
2910 | if test -s conftest || test -s conftest.exe ; then | |
2911 | we_are_ok=yes | |
2912 | fi | |
2913 | fi | |
2914 | case $we_are_ok in | |
2915 | no) | |
2916 | echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed." | |
2917 | echo 1>&2 "*** You must set the environment variable CC to a working compiler." | |
2918 | rm -f conftest* | |
2919 | exit 1 | |
2920 | ;; | |
2921 | esac | |
2922 | rm -f conftest* | |
2923 | ||
2924 | # The Solaris /usr/ucb/cc compiler does not appear to work. | |
2925 | case "${host}" in | |
2926 | sparc-sun-solaris2*) | |
2927 | CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`" | |
2928 | if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then | |
2929 | could_use= | |
2930 | test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin" | |
2931 | if test -d /opt/cygnus/bin ; then | |
2932 | if test "$could_use" = "" ; then | |
2933 | could_use="/opt/cygnus/bin" | |
2934 | else | |
2935 | could_use="$could_use or /opt/cygnus/bin" | |
2936 | fi | |
2937 | fi | |
2938 | if test "$could_use" = "" ; then | |
2939 | echo "Warning: compilation may fail because you're using" | |
2940 | echo "/usr/ucb/cc. You should change your PATH or CC " | |
2941 | echo "variable and rerun configure." | |
2942 | else | |
2943 | echo "Warning: compilation may fail because you're using" | |
2944 | echo "/usr/ucb/cc, when you should use the C compiler from" | |
2945 | echo "$could_use. You should change your" | |
2946 | echo "PATH or CC variable and rerun configure." | |
2947 | fi | |
2948 | fi | |
2949 | ;; | |
2950 | esac | |
2951 | ||
2952 | # If --enable-shared was set, we must set LD_LIBRARY_PATH so that the | |
2953 | # binutils tools will find libbfd.so. | |
76ab491a NN |
2954 | case "${enable_shared}" in |
2955 | no | "") SET_LIB_PATH= ;; | |
2956 | *) SET_LIB_PATH="\$(REALLY_SET_LIB_PATH)" ;; | |
2957 | esac | |
bafecfd6 NN |
2958 | |
2959 | case "${host}" in | |
2960 | *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;; | |
2961 | *) RPATH_ENVVAR=LD_LIBRARY_PATH ;; | |
2962 | esac | |
2963 | ||
2964 | # Record target_configdirs and the configure arguments for target and | |
2965 | # build configuration in Makefile. | |
2966 | target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'` | |
2967 | ||
2968 | # This is the final value for target_configdirs. configdirs already | |
9b520963 NN |
2969 | # has its final value, as does build_modules. It's time to create some |
2970 | # lists of valid targets. | |
a54470c7 | 2971 | |
bafecfd6 NN |
2972 | all_build_modules= |
2973 | configure_build_modules= | |
9b520963 NN |
2974 | for module in ${build_modules} ; do |
2975 | all_build_modules=all-build-${module} | |
2976 | configure_build_modules=configure-build-${module} | |
2977 | done | |
bafecfd6 | 2978 | |
bafecfd6 NN |
2979 | # Determine whether gdb needs tk/tcl or not. |
2980 | # Use 'maybe' since enable_gdbtk might be true even if tk isn't available | |
2981 | # and in that case we want gdb to be built without tk. Ugh! | |
2982 | # In fact I believe gdb is the *only* package directly dependent on tk, | |
2983 | # so we should be able to put the 'maybe's in unconditionally and | |
2984 | # leave out the maybe dependencies when enable_gdbtk is false. I'm not | |
2985 | # 100% sure that that's safe though. | |
5035a087 AC |
2986 | |
2987 | gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-tix maybe-all-libgui" | |
bafecfd6 NN |
2988 | case "$enable_gdbtk" in |
2989 | no) | |
2990 | GDB_TK="" ;; | |
5035a087 AC |
2991 | yes) |
2992 | GDB_TK="${gdb_tk}" ;; | |
bafecfd6 | 2993 | *) |
5035a087 AC |
2994 | # Only add the dependency on gdbtk when GDBtk is part of the gdb |
2995 | # distro. Eventually someone will fix this and move Insight, nee | |
2996 | # gdbtk to a separate directory. | |
2997 | if test -d ${srcdir}/gdb/gdbtk ; then | |
2998 | GDB_TK="${gdb_tk}" | |
2999 | else | |
3000 | GDB_TK="" | |
3001 | fi | |
3002 | ;; | |
bafecfd6 NN |
3003 | esac |
3004 | ||
a7e609d6 | 3005 | # Strip out unwanted targets. |
9b520963 NN |
3006 | |
3007 | # While at that, we remove Makefiles if we were started for recursive | |
3008 | # configuration, so that the top-level Makefile reconfigures them, | |
3009 | # like we used to do when configure itself was recursive. | |
9b520963 | 3010 | |
a7e609d6 PB |
3011 | # Loop over modules. $extrasub must be used with care, limiting as |
3012 | # much as possible the usage of range addresses. That's because autoconf | |
3013 | # splits the sed script to overcome limits in the number of commands, | |
3014 | # and relying on carefully-timed sed passes may turn out to be very hard | |
3015 | # to maintain later. In this particular case, you just have to be careful | |
3016 | # not to nest @if/@endif pairs, because configure will not warn you at all. | |
9b520963 | 3017 | |
e1666221 PB |
3018 | # Check whether --enable-bootstrap or --disable-bootstrap was given. |
3019 | if test "${enable_bootstrap+set}" = set; then | |
3020 | enableval="$enable_bootstrap" | |
3021 | : | |
3022 | else | |
3023 | enable_bootstrap=no | |
3024 | fi | |
3025 | ||
3026 | if test -d ${srcdir}/gcc; then | |
3027 | case "$host:$target:$enable_bootstrap" in | |
3028 | $build:$build:yes | *:no) ;; | |
3029 | *:yes) { echo "configure: error: cannot bootstrap a cross-compiler" 1>&2; exit 1; } ;; | |
3030 | *) { echo "configure: error: invalid option for --enable-bootstrap" 1>&2; exit 1; } ;; | |
3031 | esac | |
3032 | else | |
3033 | if test $enable_bootstrap = yes; then | |
3034 | { echo "configure: error: cannot bootstrap without a compiler" 1>&2; exit 1; } | |
3035 | fi | |
3036 | fi | |
3037 | ||
3038 | case "$enable_bootstrap" in | |
3039 | yes) | |
8e1cb528 | 3040 | default_target=bootstrap |
aac4e7d4 | 3041 | bootstrap_suffix=bootstrap ;; |
e1666221 PB |
3042 | no) |
3043 | default_target=all | |
aac4e7d4 | 3044 | bootstrap_suffix=no-bootstrap ;; |
e1666221 PB |
3045 | esac |
3046 | ||
3047 | ||
aac4e7d4 CF |
3048 | for module in ${build_modules} ; do |
3049 | if test -z "${no_recursion}" \ | |
3050 | && test -f ${build_subdir}/${module}/Makefile; then | |
3051 | echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure" | |
3052 | rm -f ${build_subdir}/${module}/Makefile | |
3053 | fi | |
3054 | extrasub="$extrasub | |
3055 | /^@if build-$module\$/d | |
3056 | /^@endif build-$module\$/d | |
3057 | /^@if build-$module-$bootstrap_suffix\$/d | |
3058 | /^@endif build-$module-$bootstrap_suffix\$/d" | |
3059 | done | |
3060 | for module in ${configdirs} ; do | |
3061 | if test -z "${no_recursion}" \ | |
3062 | && test -f ${module}/Makefile; then | |
3063 | echo 1>&2 "*** removing ${module}/Makefile to force reconfigure" | |
3064 | rm -f ${module}/Makefile | |
3065 | fi | |
3066 | extrasub="$extrasub | |
3067 | /^@if $module\$/d | |
3068 | /^@endif $module\$/d | |
3069 | /^@if $module-$bootstrap_suffix\$/d | |
3070 | /^@endif $module-$bootstrap_suffix\$/d" | |
3071 | done | |
3072 | for module in ${target_configdirs} ; do | |
3073 | if test -z "${no_recursion}" \ | |
3074 | && test -f ${target_subdir}/${module}/Makefile; then | |
3075 | echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure" | |
3076 | rm -f ${target_subdir}/${module}/Makefile | |
3077 | fi | |
3078 | extrasub="$extrasub | |
3079 | /^@if target-$module\$/d | |
3080 | /^@endif target-$module\$/d | |
3081 | /^@if target-$module-$bootstrap_suffix\$/d | |
3082 | /^@endif target-$module-$bootstrap_suffix\$/d" | |
3083 | done | |
3084 | ||
a7e609d6 PB |
3085 | extrasub="$extrasub |
3086 | /^@if /,/^@endif /d" | |
bafecfd6 NN |
3087 | |
3088 | # Create the serialization dependencies. This uses a temporary file. | |
3089 | ||
af9955fa AO |
3090 | # Check whether --enable-serial-configure or --disable-serial-configure was given. |
3091 | if test "${enable_serial_configure+set}" = set; then | |
3092 | enableval="$enable_serial_configure" | |
3093 | : | |
3094 | fi | |
3095 | ||
3096 | ||
7f74e6a3 DD |
3097 | case ${enable_serial_configure} in |
3098 | yes) | |
3099 | enable_serial_build_configure=yes | |
3100 | enable_serial_host_configure=yes | |
3101 | enable_serial_target_configure=yes | |
3102 | ;; | |
3103 | esac | |
3104 | ||
bafecfd6 NN |
3105 | # These force 'configure's to be done one at a time, to avoid problems |
3106 | # with contention over a shared config.cache. | |
3107 | rm -f serdep.tmp | |
af9955fa | 3108 | echo '# serdep.tmp' > serdep.tmp |
bafecfd6 | 3109 | olditem= |
7f74e6a3 | 3110 | test "x${enable_serial_build_configure}" = xyes && |
bafecfd6 NN |
3111 | for item in ${build_configdirs} ; do |
3112 | case ${olditem} in | |
3113 | "") ;; | |
af9955fa | 3114 | *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
3115 | esac |
3116 | olditem=${item} | |
3117 | done | |
3118 | olditem= | |
7f74e6a3 | 3119 | test "x${enable_serial_host_configure}" = xyes && |
bafecfd6 NN |
3120 | for item in ${configdirs} ; do |
3121 | case ${olditem} in | |
3122 | "") ;; | |
af9955fa | 3123 | *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
3124 | esac |
3125 | olditem=${item} | |
3126 | done | |
3127 | olditem= | |
7f74e6a3 | 3128 | test "x${enable_serial_target_configure}" = xyes && |
bafecfd6 NN |
3129 | for item in ${target_configdirs} ; do |
3130 | case ${olditem} in | |
3131 | "") ;; | |
af9955fa | 3132 | *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;; |
bafecfd6 NN |
3133 | esac |
3134 | olditem=${item} | |
3135 | done | |
3136 | serialization_dependencies=serdep.tmp | |
3137 | ||
3138 | ||
af9955fa AO |
3139 | # Base args. Strip norecursion, cache-file, srcdir, host, build, |
3140 | # target and nonopt. These are the ones we might not want to pass | |
eedd1e14 DJ |
3141 | # down to subconfigures. Also strip program-prefix, program-suffix, |
3142 | # and program-transform-name, so that we can pass down a consistent | |
3143 | # program-transform-name. If autoconf has put single quotes around | |
3144 | # any of these arguments (because they contain shell metacharacters) | |
3145 | # then this will fail; in practice this only happens for | |
3146 | # --program-transform-name, so be sure to override --program-transform-name | |
3147 | # at the end of the argument list. | |
3148 | # These will be expanded by make, so quote '$'. | |
d41ac477 | 3149 | cat <<\EOF_SED > conftestsed |
ef76efc6 NN |
3150 | s/ --no[^ ]*/ /g |
3151 | s/ --c[a-z-]*[= ][^ ]*//g | |
3152 | s/ --sr[a-z-]*[= ][^ ]*//g | |
3153 | s/ --ho[a-z-]*[= ][^ ]*//g | |
3154 | s/ --bu[a-z-]*[= ][^ ]*//g | |
3155 | s/ --t[a-z-]*[= ][^ ]*//g | |
3156 | s/ --program-[pst][a-z-]*[= ][^ ]*//g | |
3157 | s/ -cache-file[= ][^ ]*//g | |
3158 | s/ -srcdir[= ][^ ]*//g | |
3159 | s/ -host[= ][^ ]*//g | |
3160 | s/ -build[= ][^ ]*//g | |
3161 | s/ -target[= ][^ ]*//g | |
3162 | s/ -program-prefix[= ][^ ]*//g | |
3163 | s/ -program-suffix[= ][^ ]*//g | |
3164 | s/ -program-transform-name[= ][^ ]*//g | |
d41ac477 GK |
3165 | s/ [^' -][^ ]* / / |
3166 | s/^ *//;s/ *$// | |
1de07164 DJ |
3167 | s,\$,$$,g |
3168 | EOF_SED | |
3169 | sed -f conftestsed <<EOF_SED > conftestsed.out | |
3170 | ${ac_configure_args} | |
d41ac477 | 3171 | EOF_SED |
1de07164 DJ |
3172 | baseargs=`cat conftestsed.out` |
3173 | rm -f conftestsed conftestsed.out | |
bafecfd6 | 3174 | |
eedd1e14 DJ |
3175 | # Add in --program-transform-name, after --program-prefix and |
3176 | # --program-suffix have been applied to it. Autoconf has already | |
3177 | # doubled dollar signs and backslashes in program_transform_name; we want | |
3178 | # the backslashes un-doubled, and then the entire thing wrapped in single | |
3179 | # quotes, because this will be expanded first by make and then by the shell. | |
3180 | # Also, because we want to override the logic in subdir configure scripts to | |
3181 | # choose program_transform_name, replace any s,x,x, with s,y,y,. | |
3182 | sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out | |
3183 | ${program_transform_name} | |
3184 | EOF_SED | |
3185 | gcc_transform_name=`cat conftestsed.out` | |
3186 | rm -f conftestsed.out | |
3187 | baseargs="$baseargs --program-transform-name='${gcc_transform_name}'" | |
3188 | ||
bafecfd6 NN |
3189 | # For the build-side libraries, we just need to pretend we're native, |
3190 | # and not use the same cache file. Multilibs are neither needed nor | |
3191 | # desired. | |
3192 | build_configargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}" | |
3193 | ||
3194 | # For host modules, accept cache file option, or specification as blank. | |
3195 | case "${cache_file}" in | |
3196 | "") # empty | |
3197 | cache_file_option="" ;; | |
3198 | /* | [A-Za-z]:[\\/]* ) # absolute path | |
3199 | cache_file_option="--cache-file=${cache_file}" ;; | |
3200 | *) # relative path | |
3201 | cache_file_option="--cache-file=../${cache_file}" ;; | |
3202 | esac | |
3203 | ||
68c6d8ac NN |
3204 | # Host dirs don't like to share a cache file either, horribly enough. |
3205 | # This seems to be due to autoconf 2.5x stupidity. | |
1d1abb62 | 3206 | host_configargs="--cache-file=./config.cache --build=${build_alias} --host=${host_alias} --target=${target_alias} ${extra_host_args} ${baseargs}" |
bafecfd6 NN |
3207 | |
3208 | target_configargs=${baseargs} | |
3209 | ||
3210 | # Passing a --with-cross-host argument lets the target libraries know | |
3211 | # whether they are being built with a cross-compiler or being built | |
3212 | # native. However, it would be better to use other mechanisms to make the | |
3213 | # sorts of decisions they want to make on this basis. Please consider | |
3214 | # this option to be deprecated. FIXME. | |
3215 | if test x${is_cross_compiler} = xyes ; then | |
3216 | target_configargs="--with-cross-host=${host_alias} ${target_configargs}" | |
3217 | fi | |
3218 | ||
3219 | # Default to --enable-multilib. | |
3220 | if test x${enable_multilib} = x ; then | |
3221 | target_configargs="--enable-multilib ${target_configargs}" | |
3222 | fi | |
3223 | ||
3224 | # Pass --with-newlib if appropriate. Note that target_configdirs has | |
3225 | # changed from the earlier setting of with_newlib. | |
3226 | if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then | |
3227 | target_configargs="--with-newlib ${target_configargs}" | |
3228 | fi | |
3229 | ||
5b28b6ef NN |
3230 | # Different target subdirs use different values of certain variables |
3231 | # (notably CXX). Worse, multilibs use *lots* of different values. | |
3232 | # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that | |
3233 | # it doesn't automatically accept command-line overrides of them. | |
3234 | # This means it's not safe for target subdirs to share a cache file, | |
3235 | # which is disgusting, but there you have it. Hopefully this can be | |
3236 | # fixed in future. It's still worthwhile to use a cache file for each | |
3237 | # directory. I think. | |
3238 | ||
bafecfd6 | 3239 | # Pass the appropriate --host, --build, and --cache-file arguments. |
1d1abb62 | 3240 | target_configargs="--cache-file=./config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" |
bafecfd6 NN |
3241 | |
3242 | # provide a proper gxx_include_dir. | |
3243 | # Note, if you change the default, make sure to fix both here and in | |
3244 | # the gcc and libstdc++-v3 subdirectories. | |
3245 | # Check whether --with-gxx-include-dir or --without-gxx-include-dir was given. | |
ac2edfb8 NN |
3246 | case "${with_gxx_include_dir}" in |
3247 | yes) | |
3248 | { echo "configure: error: --with-gxx-include-dir=[dir] requires a directory" 1>&2; exit 1; } | |
3249 | ;; | |
3250 | no | "") | |
3251 | case "${enable_version_specific_runtime_libs}" in | |
3252 | yes) gxx_include_dir='${libsubdir}/include/c++' ;; | |
3253 | *) | |
3254 | . ${srcdir}/config.if | |
3255 | gxx_include_dir='${prefix}/include/'${libstdcxx_incdir} ;; | |
3256 | esac ;; | |
3257 | *) gxx_include_dir=${with_gxx_include_dir} ;; | |
3258 | esac | |
bafecfd6 NN |
3259 | |
3260 | FLAGS_FOR_TARGET= | |
3261 | case " $target_configdirs " in | |
3262 | *" newlib "*) | |
3263 | case " $target_configargs " in | |
3264 | *" --with-newlib "*) | |
3265 | case "$target" in | |
3266 | *-cygwin*) | |
a8833ac1 | 3267 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;; |
bafecfd6 NN |
3268 | esac |
3269 | ||
3270 | # If we're not building GCC, don't discard standard headers. | |
3271 | if test -d ${srcdir}/gcc; then | |
3272 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc' | |
3273 | ||
3274 | if test "${build}" != "${host}"; then | |
3275 | # On Canadian crosses, CC_FOR_TARGET will have already been set | |
3276 | # by `configure', so we won't have an opportunity to add -Bgcc/ | |
3277 | # to it. This is right: we don't want to search that directory | |
3278 | # for binaries, but we want the header files in there, so add | |
3279 | # them explicitly. | |
3280 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/gcc/include' | |
3281 | ||
3282 | # Someone might think of using the pre-installed headers on | |
3283 | # Canadian crosses, in case the installed compiler is not fully | |
3284 | # compatible with the compiler being built. In this case, it | |
3285 | # would be better to flag an error than risking having | |
3286 | # incompatible object files being constructed. We can't | |
3287 | # guarantee that an error will be flagged, but let's hope the | |
3288 | # compiler will do it, when presented with incompatible header | |
3289 | # files. | |
3290 | fi | |
3291 | fi | |
3292 | ||
3293 | case "${target}-${is_cross_compiler}" in | |
08049c01 | 3294 | i[3456789]86-*-linux*-no) |
bafecfd6 NN |
3295 | # Here host == target, so we don't need to build gcc, |
3296 | # so we don't want to discard standard headers. | |
3297 | FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'` | |
3298 | ;; | |
3299 | *) | |
3300 | # If we're building newlib, use its generic headers last, but search | |
3301 | # for any libc-related directories first (so make it the last -B | |
3302 | # switch). | |
3303 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include' | |
3304 | ;; | |
3305 | esac | |
3306 | ;; | |
3307 | esac | |
3308 | ;; | |
3309 | esac | |
3310 | ||
e9ea9dec DD |
3311 | # Allow the user to override the flags for |
3312 | # our build compiler if desired. | |
3313 | CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} | |
3314 | ||
bafecfd6 NN |
3315 | # On Canadian crosses, we'll be searching the right directories for |
3316 | # the previously-installed cross compiler, so don't bother to add | |
3317 | # flags for directories within the install tree of the compiler | |
3318 | # being built; programs in there won't even run. | |
3319 | if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then | |
3320 | # Search for pre-installed headers if nothing else fits. | |
2245eb63 | 3321 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include' |
bafecfd6 NN |
3322 | fi |
3323 | ||
3324 | if test "x${use_gnu_ld}" = x && | |
3325 | echo " ${configdirs} " | grep " ld " > /dev/null ; then | |
3326 | # Arrange for us to find uninstalled linker scripts. | |
3327 | FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/ld' | |
3328 | fi | |
3329 | ||
3330 | if test "x${CC_FOR_TARGET+set}" = xset; then | |
3331 | : | |
3332 | elif test -d ${srcdir}/gcc; then | |
3333 | CC_FOR_TARGET='$$r/gcc/xgcc -B$$r/gcc/' | |
3334 | elif test "$host" = "$target"; then | |
3335 | CC_FOR_TARGET='$(CC)' | |
3336 | else | |
0b0b68a2 | 3337 | CC_FOR_TARGET=`echo gcc | sed "${program_transform_name}"` |
bafecfd6 NN |
3338 | fi |
3339 | CC_FOR_TARGET=$CC_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3340 | ||
3341 | if test "x${GCJ_FOR_TARGET+set}" = xset; then | |
3342 | : | |
3343 | elif test -d ${srcdir}/gcc; then | |
3344 | GCJ_FOR_TARGET='$$r/gcc/gcj -B$$r/gcc/' | |
3345 | elif test "$host" = "$target"; then | |
3346 | GCJ_FOR_TARGET='gcj' | |
3347 | else | |
0b0b68a2 | 3348 | GCJ_FOR_TARGET=`echo gcj | sed "${program_transform_name}"` |
bafecfd6 NN |
3349 | fi |
3350 | GCJ_FOR_TARGET=$GCJ_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3351 | ||
cb2333e8 DD |
3352 | if test "x${GFORTRAN_FOR_TARGET+set}" = xset; then |
3353 | : | |
3354 | elif test -d ${srcdir}/gcc; then | |
3355 | GFORTRAN_FOR_TARGET='$$r/gcc/gfortran -B$$r/gcc/' | |
3356 | elif test "$host" = "$target"; then | |
3357 | GFORTRAN_FOR_TARGET='gfortran' | |
3358 | else | |
6d9402b4 | 3359 | GFORTRAN_FOR_TARGET=`echo gfortran | sed "${program_transform_name}"` |
cb2333e8 DD |
3360 | fi |
3361 | case $GFORTRAN_FOR_TARGET in | |
3362 | *' $(FLAGS_FOR_TARGET)') ;; | |
3363 | *) GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET' $(FLAGS_FOR_TARGET)' ;; | |
3364 | esac | |
3365 | ||
bafecfd6 | 3366 | # Don't use libstdc++-v3's flags to configure/build itself. |
8ae9ab67 | 3367 | libstdcxx_flags='`test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
8e5f3482 | 3368 | raw_libstdcxx_flags='-L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs' |
bafecfd6 NN |
3369 | |
3370 | if test "x${CXX_FOR_TARGET+set}" = xset; then | |
cc9f0cf0 DJ |
3371 | if test "x${RAW_CXX_FOR_TARGET+set}" != xset; then |
3372 | RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} | |
3373 | fi | |
bafecfd6 NN |
3374 | elif test -d ${srcdir}/gcc; then |
3375 | # We add -shared-libgcc to CXX_FOR_TARGET whenever we use xgcc instead | |
3376 | # of g++ for linking C++ or Java, because g++ has -shared-libgcc by | |
3377 | # default whereas gcc does not. | |
3378 | # RAW_CXX_FOR_TARGET is for linking C++ or java; CXX_FOR_TARGET is for | |
3379 | # all other cases. | |
3380 | CXX_FOR_TARGET='$$r/gcc/g++ -B$$r/gcc/ -nostdinc++ '$libstdcxx_flags | |
3381 | RAW_CXX_FOR_TARGET='$$r/gcc/xgcc -shared-libgcc -B$$r/gcc/ -nostdinc++ '$raw_libstdcxx_flags | |
3382 | elif test "$host" = "$target"; then | |
3383 | CXX_FOR_TARGET='$(CXX)' | |
3384 | RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} | |
3385 | else | |
0b0b68a2 | 3386 | CXX_FOR_TARGET=`echo c++ | sed "${program_transform_name}"` |
bafecfd6 NN |
3387 | RAW_CXX_FOR_TARGET=${CXX_FOR_TARGET} |
3388 | fi | |
3389 | CXX_FOR_TARGET=$CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3390 | RAW_CXX_FOR_TARGET=$RAW_CXX_FOR_TARGET' $(FLAGS_FOR_TARGET)' | |
3391 | ||
3392 | qCXX_FOR_TARGET=`echo "$CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` | |
3393 | qRAW_CXX_FOR_TARGET=`echo "$RAW_CXX_FOR_TARGET" | sed 's,[&%],\\\&,g'` | |
3394 | ||
3395 | # We want to defer the evaluation of `cmd`s and shell variables in | |
3396 | # CXX_FOR_TARGET when recursing in the top-level Makefile, such as for | |
3397 | # bootstrap. We'll enclose CXX_FOR_TARGET_FOR_RECURSIVE_MAKE in single | |
3398 | # quotes, but we still have to duplicate `$'s so that shell variables | |
3399 | # can be expanded by the nested make as shell variables, not as make | |
3400 | # macros. | |
3401 | qqCXX_FOR_TARGET=`echo "$qCXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` | |
3402 | qqRAW_CXX_FOR_TARGET=`echo "$qRAW_CXX_FOR_TARGET" | sed -e 's,[$][$],$$$$,g'` | |
3403 | ||
3404 | # Wrap CC_FOR_TARGET and friends, for certain types of builds. | |
3405 | CC_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${CC_FOR_TARGET}" | |
3406 | GCJ_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GCJ_FOR_TARGET}" | |
cb2333e8 | 3407 | GFORTRAN_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${GFORTRAN_FOR_TARGET}" |
bafecfd6 NN |
3408 | CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qCXX_FOR_TARGET}" |
3409 | RAW_CXX_FOR_TARGET="\$(STAGE_CC_WRAPPER) ${qRAW_CXX_FOR_TARGET}" | |
3410 | CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqCXX_FOR_TARGET}" | |
3411 | RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE="\$(STAGE_CC_WRAPPER) ${qqRAW_CXX_FOR_TARGET}" | |
3412 | ||
3413 | # Makefile fragments. | |
3414 | host_makefile_frag=${srcdir}/${host_makefile_frag} | |
3415 | target_makefile_frag=${srcdir}/${target_makefile_frag} | |
3416 | alphaieee_frag=${srcdir}/${alphaieee_frag} | |
3417 | ospace_frag=${srcdir}/${ospace_frag} | |
3418 | ||
3419 | ||
3420 | ||
3421 | ||
3422 | ||
3423 | # Miscellanea: directories, flags, etc. | |
3424 | ||
3425 | ||
3426 | ||
3427 | ||
3428 | ||
3429 | ||
3430 | ||
3431 | ||
3432 | ||
3433 | ||
3434 | ||
3435 | ||
bafecfd6 NN |
3436 | # Build module lists & subconfigure args. |
3437 | ||
3438 | ||
3439 | ||
3440 | ||
bafecfd6 NN |
3441 | # Host module lists & subconfigure args. |
3442 | ||
3443 | ||
3444 | ||
bafecfd6 NN |
3445 | # Target module lists & subconfigure args. |
3446 | ||
3447 | ||
3448 | ||
bafecfd6 NN |
3449 | # Build tools. |
3450 | ||
3451 | ||
3452 | ||
3453 | ||
3454 | ||
3455 | ||
3456 | ||
3457 | # Host tools. | |
a0c92996 AC |
3458 | ncn_tool_prefix= |
3459 | test -n "$host_alias" && ncn_tool_prefix=$host_alias- | |
3460 | ncn_target_tool_prefix= | |
3461 | test -n "$target_alias" && ncn_target_tool_prefix=$target_alias- | |
3462 | ||
3463 | if test -n "$ncn_tool_prefix"; then | |
3464 | # Extract the first word of "${ncn_tool_prefix}ar", so it can be a program name with args. | |
3465 | set dummy ${ncn_tool_prefix}ar; ac_word=$2 | |
3466 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3467 | echo "configure:3468: checking for $ac_word" >&5 |
a0c92996 AC |
3468 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
3469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3470 | else | |
3471 | if test -n "$AR"; then | |
3472 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3473 | else | |
3474 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3475 | ac_dummy="$PATH" | |
3476 | for ac_dir in $ac_dummy; do | |
3477 | test -z "$ac_dir" && ac_dir=. | |
3478 | if test -f $ac_dir/$ac_word; then | |
3479 | ac_cv_prog_AR="${ncn_tool_prefix}ar" | |
3480 | break | |
3481 | fi | |
3482 | done | |
3483 | IFS="$ac_save_ifs" | |
3484 | fi | |
3485 | fi | |
3486 | AR="$ac_cv_prog_AR" | |
3487 | if test -n "$AR"; then | |
3488 | echo "$ac_t""$AR" 1>&6 | |
3489 | else | |
3490 | echo "$ac_t""no" 1>&6 | |
3491 | fi | |
3492 | ||
3493 | fi | |
3494 | if test -z "$ac_cv_prog_AR" ; then | |
3495 | if test $build = $host ; then | |
3496 | ncn_cv_AR=$AR | |
3497 | # Extract the first word of "ar", so it can be a program name with args. | |
3498 | set dummy ar; ac_word=$2 | |
3499 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3500 | echo "configure:3501: checking for $ac_word" >&5 |
a0c92996 AC |
3501 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then |
3502 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3503 | else | |
3504 | if test -n "$ncn_cv_AR"; then | |
3505 | ac_cv_prog_ncn_cv_AR="$ncn_cv_AR" # Let the user override the test. | |
3506 | else | |
3507 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3508 | ac_dummy="$PATH" | |
3509 | for ac_dir in $ac_dummy; do | |
3510 | test -z "$ac_dir" && ac_dir=. | |
3511 | if test -f $ac_dir/$ac_word; then | |
3512 | ac_cv_prog_ncn_cv_AR="ar" | |
3513 | break | |
3514 | fi | |
3515 | done | |
3516 | IFS="$ac_save_ifs" | |
3517 | test -z "$ac_cv_prog_ncn_cv_AR" && ac_cv_prog_ncn_cv_AR="ar" | |
3518 | fi | |
3519 | fi | |
3520 | ncn_cv_AR="$ac_cv_prog_ncn_cv_AR" | |
3521 | if test -n "$ncn_cv_AR"; then | |
3522 | echo "$ac_t""$ncn_cv_AR" 1>&6 | |
3523 | else | |
3524 | echo "$ac_t""no" 1>&6 | |
3525 | fi | |
3526 | ||
3527 | AR=$ncn_cv_AR | |
3528 | else | |
3529 | AR="${ncn_tool_prefix}ar" | |
3530 | fi | |
3531 | else | |
3532 | AR="$ac_cv_prog_AR" | |
3533 | fi | |
3534 | ||
3535 | if test -n "$ncn_tool_prefix"; then | |
3536 | # Extract the first word of "${ncn_tool_prefix}as", so it can be a program name with args. | |
3537 | set dummy ${ncn_tool_prefix}as; ac_word=$2 | |
3538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3539 | echo "configure:3540: checking for $ac_word" >&5 |
a0c92996 AC |
3540 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
3541 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3542 | else | |
3543 | if test -n "$AS"; then | |
3544 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3545 | else | |
3546 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3547 | ac_dummy="$PATH" | |
3548 | for ac_dir in $ac_dummy; do | |
3549 | test -z "$ac_dir" && ac_dir=. | |
3550 | if test -f $ac_dir/$ac_word; then | |
3551 | ac_cv_prog_AS="${ncn_tool_prefix}as" | |
3552 | break | |
3553 | fi | |
3554 | done | |
3555 | IFS="$ac_save_ifs" | |
3556 | fi | |
3557 | fi | |
3558 | AS="$ac_cv_prog_AS" | |
3559 | if test -n "$AS"; then | |
3560 | echo "$ac_t""$AS" 1>&6 | |
3561 | else | |
3562 | echo "$ac_t""no" 1>&6 | |
3563 | fi | |
3564 | ||
3565 | fi | |
3566 | if test -z "$ac_cv_prog_AS" ; then | |
3567 | if test $build = $host ; then | |
3568 | ncn_cv_AS=$AS | |
3569 | # Extract the first word of "as", so it can be a program name with args. | |
3570 | set dummy as; ac_word=$2 | |
3571 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3572 | echo "configure:3573: checking for $ac_word" >&5 |
a0c92996 AC |
3573 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then |
3574 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3575 | else | |
3576 | if test -n "$ncn_cv_AS"; then | |
3577 | ac_cv_prog_ncn_cv_AS="$ncn_cv_AS" # Let the user override the test. | |
3578 | else | |
3579 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3580 | ac_dummy="$PATH" | |
3581 | for ac_dir in $ac_dummy; do | |
3582 | test -z "$ac_dir" && ac_dir=. | |
3583 | if test -f $ac_dir/$ac_word; then | |
3584 | ac_cv_prog_ncn_cv_AS="as" | |
3585 | break | |
3586 | fi | |
3587 | done | |
3588 | IFS="$ac_save_ifs" | |
3589 | test -z "$ac_cv_prog_ncn_cv_AS" && ac_cv_prog_ncn_cv_AS="as" | |
3590 | fi | |
3591 | fi | |
3592 | ncn_cv_AS="$ac_cv_prog_ncn_cv_AS" | |
3593 | if test -n "$ncn_cv_AS"; then | |
3594 | echo "$ac_t""$ncn_cv_AS" 1>&6 | |
3595 | else | |
3596 | echo "$ac_t""no" 1>&6 | |
3597 | fi | |
3598 | ||
3599 | AS=$ncn_cv_AS | |
3600 | else | |
3601 | AS="${ncn_tool_prefix}as" | |
3602 | fi | |
3603 | else | |
3604 | AS="$ac_cv_prog_AS" | |
3605 | fi | |
3606 | ||
3607 | if test -n "$ncn_tool_prefix"; then | |
3608 | # Extract the first word of "${ncn_tool_prefix}dlltool", so it can be a program name with args. | |
3609 | set dummy ${ncn_tool_prefix}dlltool; ac_word=$2 | |
3610 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3611 | echo "configure:3612: checking for $ac_word" >&5 |
a0c92996 AC |
3612 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
3613 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3614 | else | |
3615 | if test -n "$DLLTOOL"; then | |
3616 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
3617 | else | |
3618 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3619 | ac_dummy="$PATH" | |
3620 | for ac_dir in $ac_dummy; do | |
3621 | test -z "$ac_dir" && ac_dir=. | |
3622 | if test -f $ac_dir/$ac_word; then | |
3623 | ac_cv_prog_DLLTOOL="${ncn_tool_prefix}dlltool" | |
3624 | break | |
3625 | fi | |
3626 | done | |
3627 | IFS="$ac_save_ifs" | |
3628 | fi | |
3629 | fi | |
3630 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3631 | if test -n "$DLLTOOL"; then | |
3632 | echo "$ac_t""$DLLTOOL" 1>&6 | |
3633 | else | |
3634 | echo "$ac_t""no" 1>&6 | |
3635 | fi | |
3636 | ||
3637 | fi | |
3638 | if test -z "$ac_cv_prog_DLLTOOL" ; then | |
3639 | if test $build = $host ; then | |
3640 | ncn_cv_DLLTOOL=$DLLTOOL | |
3641 | # Extract the first word of "dlltool", so it can be a program name with args. | |
3642 | set dummy dlltool; ac_word=$2 | |
3643 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3644 | echo "configure:3645: checking for $ac_word" >&5 |
a0c92996 AC |
3645 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" = set"; then |
3646 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3647 | else | |
3648 | if test -n "$ncn_cv_DLLTOOL"; then | |
3649 | ac_cv_prog_ncn_cv_DLLTOOL="$ncn_cv_DLLTOOL" # Let the user override the test. | |
3650 | else | |
3651 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3652 | ac_dummy="$PATH" | |
3653 | for ac_dir in $ac_dummy; do | |
3654 | test -z "$ac_dir" && ac_dir=. | |
3655 | if test -f $ac_dir/$ac_word; then | |
3656 | ac_cv_prog_ncn_cv_DLLTOOL="dlltool" | |
3657 | break | |
3658 | fi | |
3659 | done | |
3660 | IFS="$ac_save_ifs" | |
3661 | test -z "$ac_cv_prog_ncn_cv_DLLTOOL" && ac_cv_prog_ncn_cv_DLLTOOL="dlltool" | |
3662 | fi | |
3663 | fi | |
3664 | ncn_cv_DLLTOOL="$ac_cv_prog_ncn_cv_DLLTOOL" | |
3665 | if test -n "$ncn_cv_DLLTOOL"; then | |
3666 | echo "$ac_t""$ncn_cv_DLLTOOL" 1>&6 | |
3667 | else | |
3668 | echo "$ac_t""no" 1>&6 | |
3669 | fi | |
3670 | ||
3671 | DLLTOOL=$ncn_cv_DLLTOOL | |
3672 | else | |
3673 | DLLTOOL="${ncn_tool_prefix}dlltool" | |
3674 | fi | |
3675 | else | |
3676 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
3677 | fi | |
3678 | ||
3679 | if test -n "$ncn_tool_prefix"; then | |
3680 | # Extract the first word of "${ncn_tool_prefix}ld", so it can be a program name with args. | |
3681 | set dummy ${ncn_tool_prefix}ld; ac_word=$2 | |
3682 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3683 | echo "configure:3684: checking for $ac_word" >&5 |
a0c92996 AC |
3684 | if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
3685 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3686 | else | |
3687 | if test -n "$LD"; then | |
3688 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
3689 | else | |
3690 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3691 | ac_dummy="$PATH" | |
3692 | for ac_dir in $ac_dummy; do | |
3693 | test -z "$ac_dir" && ac_dir=. | |
3694 | if test -f $ac_dir/$ac_word; then | |
3695 | ac_cv_prog_LD="${ncn_tool_prefix}ld" | |
3696 | break | |
3697 | fi | |
3698 | done | |
3699 | IFS="$ac_save_ifs" | |
3700 | fi | |
3701 | fi | |
3702 | LD="$ac_cv_prog_LD" | |
3703 | if test -n "$LD"; then | |
3704 | echo "$ac_t""$LD" 1>&6 | |
3705 | else | |
3706 | echo "$ac_t""no" 1>&6 | |
3707 | fi | |
3708 | ||
3709 | fi | |
3710 | if test -z "$ac_cv_prog_LD" ; then | |
3711 | if test $build = $host ; then | |
3712 | ncn_cv_LD=$LD | |
3713 | # Extract the first word of "ld", so it can be a program name with args. | |
3714 | set dummy ld; ac_word=$2 | |
3715 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3716 | echo "configure:3717: checking for $ac_word" >&5 |
a0c92996 AC |
3717 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then |
3718 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3719 | else | |
3720 | if test -n "$ncn_cv_LD"; then | |
3721 | ac_cv_prog_ncn_cv_LD="$ncn_cv_LD" # Let the user override the test. | |
3722 | else | |
3723 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3724 | ac_dummy="$PATH" | |
3725 | for ac_dir in $ac_dummy; do | |
3726 | test -z "$ac_dir" && ac_dir=. | |
3727 | if test -f $ac_dir/$ac_word; then | |
3728 | ac_cv_prog_ncn_cv_LD="ld" | |
3729 | break | |
3730 | fi | |
3731 | done | |
3732 | IFS="$ac_save_ifs" | |
3733 | test -z "$ac_cv_prog_ncn_cv_LD" && ac_cv_prog_ncn_cv_LD="ld" | |
3734 | fi | |
3735 | fi | |
3736 | ncn_cv_LD="$ac_cv_prog_ncn_cv_LD" | |
3737 | if test -n "$ncn_cv_LD"; then | |
3738 | echo "$ac_t""$ncn_cv_LD" 1>&6 | |
3739 | else | |
3740 | echo "$ac_t""no" 1>&6 | |
3741 | fi | |
3742 | ||
3743 | LD=$ncn_cv_LD | |
3744 | else | |
3745 | LD="${ncn_tool_prefix}ld" | |
3746 | fi | |
3747 | else | |
3748 | LD="$ac_cv_prog_LD" | |
3749 | fi | |
3750 | ||
3751 | if test -n "$ncn_tool_prefix"; then | |
3752 | # Extract the first word of "${ncn_tool_prefix}nm", so it can be a program name with args. | |
3753 | set dummy ${ncn_tool_prefix}nm; ac_word=$2 | |
3754 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3755 | echo "configure:3756: checking for $ac_word" >&5 |
a0c92996 AC |
3756 | if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then |
3757 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3758 | else | |
3759 | if test -n "$NM"; then | |
3760 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
3761 | else | |
3762 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3763 | ac_dummy="$PATH" | |
3764 | for ac_dir in $ac_dummy; do | |
3765 | test -z "$ac_dir" && ac_dir=. | |
3766 | if test -f $ac_dir/$ac_word; then | |
3767 | ac_cv_prog_NM="${ncn_tool_prefix}nm" | |
3768 | break | |
3769 | fi | |
3770 | done | |
3771 | IFS="$ac_save_ifs" | |
3772 | fi | |
3773 | fi | |
3774 | NM="$ac_cv_prog_NM" | |
3775 | if test -n "$NM"; then | |
3776 | echo "$ac_t""$NM" 1>&6 | |
3777 | else | |
3778 | echo "$ac_t""no" 1>&6 | |
3779 | fi | |
3780 | ||
3781 | fi | |
3782 | if test -z "$ac_cv_prog_NM" ; then | |
3783 | if test $build = $host ; then | |
3784 | ncn_cv_NM=$NM | |
3785 | # Extract the first word of "nm", so it can be a program name with args. | |
3786 | set dummy nm; ac_word=$2 | |
3787 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3788 | echo "configure:3789: checking for $ac_word" >&5 |
a0c92996 AC |
3789 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then |
3790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3791 | else | |
3792 | if test -n "$ncn_cv_NM"; then | |
3793 | ac_cv_prog_ncn_cv_NM="$ncn_cv_NM" # Let the user override the test. | |
3794 | else | |
3795 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3796 | ac_dummy="$PATH" | |
3797 | for ac_dir in $ac_dummy; do | |
3798 | test -z "$ac_dir" && ac_dir=. | |
3799 | if test -f $ac_dir/$ac_word; then | |
3800 | ac_cv_prog_ncn_cv_NM="nm" | |
3801 | break | |
3802 | fi | |
3803 | done | |
3804 | IFS="$ac_save_ifs" | |
3805 | test -z "$ac_cv_prog_ncn_cv_NM" && ac_cv_prog_ncn_cv_NM="nm" | |
3806 | fi | |
3807 | fi | |
3808 | ncn_cv_NM="$ac_cv_prog_ncn_cv_NM" | |
3809 | if test -n "$ncn_cv_NM"; then | |
3810 | echo "$ac_t""$ncn_cv_NM" 1>&6 | |
3811 | else | |
3812 | echo "$ac_t""no" 1>&6 | |
3813 | fi | |
3814 | ||
3815 | NM=$ncn_cv_NM | |
3816 | else | |
3817 | NM="${ncn_tool_prefix}nm" | |
3818 | fi | |
3819 | else | |
3820 | NM="$ac_cv_prog_NM" | |
3821 | fi | |
3822 | ||
3823 | if test -n "$ncn_tool_prefix"; then | |
3824 | # Extract the first word of "${ncn_tool_prefix}ranlib", so it can be a program name with args. | |
3825 | set dummy ${ncn_tool_prefix}ranlib; ac_word=$2 | |
3826 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3827 | echo "configure:3828: checking for $ac_word" >&5 |
a0c92996 AC |
3828 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
3829 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3830 | else | |
3831 | if test -n "$RANLIB"; then | |
3832 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3833 | else | |
3834 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3835 | ac_dummy="$PATH" | |
3836 | for ac_dir in $ac_dummy; do | |
3837 | test -z "$ac_dir" && ac_dir=. | |
3838 | if test -f $ac_dir/$ac_word; then | |
3839 | ac_cv_prog_RANLIB="${ncn_tool_prefix}ranlib" | |
3840 | break | |
3841 | fi | |
3842 | done | |
3843 | IFS="$ac_save_ifs" | |
3844 | fi | |
3845 | fi | |
3846 | RANLIB="$ac_cv_prog_RANLIB" | |
3847 | if test -n "$RANLIB"; then | |
3848 | echo "$ac_t""$RANLIB" 1>&6 | |
3849 | else | |
3850 | echo "$ac_t""no" 1>&6 | |
3851 | fi | |
3852 | ||
3853 | fi | |
3854 | if test -z "$ac_cv_prog_RANLIB" ; then | |
3855 | if test $build = $host ; then | |
3856 | ncn_cv_RANLIB=$RANLIB | |
3857 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3858 | set dummy ranlib; ac_word=$2 | |
3859 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3860 | echo "configure:3861: checking for $ac_word" >&5 |
a0c92996 AC |
3861 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" = set"; then |
3862 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3863 | else | |
3864 | if test -n "$ncn_cv_RANLIB"; then | |
3865 | ac_cv_prog_ncn_cv_RANLIB="$ncn_cv_RANLIB" # Let the user override the test. | |
3866 | else | |
3867 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3868 | ac_dummy="$PATH" | |
3869 | for ac_dir in $ac_dummy; do | |
3870 | test -z "$ac_dir" && ac_dir=. | |
3871 | if test -f $ac_dir/$ac_word; then | |
3872 | ac_cv_prog_ncn_cv_RANLIB="ranlib" | |
3873 | break | |
3874 | fi | |
3875 | done | |
3876 | IFS="$ac_save_ifs" | |
3877 | test -z "$ac_cv_prog_ncn_cv_RANLIB" && ac_cv_prog_ncn_cv_RANLIB=":" | |
3878 | fi | |
3879 | fi | |
3880 | ncn_cv_RANLIB="$ac_cv_prog_ncn_cv_RANLIB" | |
3881 | if test -n "$ncn_cv_RANLIB"; then | |
3882 | echo "$ac_t""$ncn_cv_RANLIB" 1>&6 | |
3883 | else | |
3884 | echo "$ac_t""no" 1>&6 | |
3885 | fi | |
3886 | ||
3887 | RANLIB=$ncn_cv_RANLIB | |
3888 | else | |
3889 | RANLIB=":" | |
3890 | fi | |
3891 | else | |
3892 | RANLIB="$ac_cv_prog_RANLIB" | |
3893 | fi | |
3894 | ||
3895 | if test -n "$ncn_tool_prefix"; then | |
3896 | # Extract the first word of "${ncn_tool_prefix}windres", so it can be a program name with args. | |
3897 | set dummy ${ncn_tool_prefix}windres; ac_word=$2 | |
3898 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3899 | echo "configure:3900: checking for $ac_word" >&5 |
a0c92996 AC |
3900 | if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then |
3901 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3902 | else | |
3903 | if test -n "$WINDRES"; then | |
3904 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
3905 | else | |
3906 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3907 | ac_dummy="$PATH" | |
3908 | for ac_dir in $ac_dummy; do | |
3909 | test -z "$ac_dir" && ac_dir=. | |
3910 | if test -f $ac_dir/$ac_word; then | |
3911 | ac_cv_prog_WINDRES="${ncn_tool_prefix}windres" | |
3912 | break | |
3913 | fi | |
3914 | done | |
3915 | IFS="$ac_save_ifs" | |
3916 | fi | |
3917 | fi | |
3918 | WINDRES="$ac_cv_prog_WINDRES" | |
3919 | if test -n "$WINDRES"; then | |
3920 | echo "$ac_t""$WINDRES" 1>&6 | |
3921 | else | |
3922 | echo "$ac_t""no" 1>&6 | |
3923 | fi | |
3924 | ||
3925 | fi | |
3926 | if test -z "$ac_cv_prog_WINDRES" ; then | |
3927 | if test $build = $host ; then | |
3928 | ncn_cv_WINDRES=$WINDRES | |
3929 | # Extract the first word of "windres", so it can be a program name with args. | |
3930 | set dummy windres; ac_word=$2 | |
3931 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3932 | echo "configure:3933: checking for $ac_word" >&5 |
a0c92996 AC |
3933 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" = set"; then |
3934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3935 | else | |
3936 | if test -n "$ncn_cv_WINDRES"; then | |
3937 | ac_cv_prog_ncn_cv_WINDRES="$ncn_cv_WINDRES" # Let the user override the test. | |
3938 | else | |
3939 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3940 | ac_dummy="$PATH" | |
3941 | for ac_dir in $ac_dummy; do | |
3942 | test -z "$ac_dir" && ac_dir=. | |
3943 | if test -f $ac_dir/$ac_word; then | |
3944 | ac_cv_prog_ncn_cv_WINDRES="windres" | |
3945 | break | |
3946 | fi | |
3947 | done | |
3948 | IFS="$ac_save_ifs" | |
3949 | test -z "$ac_cv_prog_ncn_cv_WINDRES" && ac_cv_prog_ncn_cv_WINDRES="windres" | |
3950 | fi | |
3951 | fi | |
3952 | ncn_cv_WINDRES="$ac_cv_prog_ncn_cv_WINDRES" | |
3953 | if test -n "$ncn_cv_WINDRES"; then | |
3954 | echo "$ac_t""$ncn_cv_WINDRES" 1>&6 | |
3955 | else | |
3956 | echo "$ac_t""no" 1>&6 | |
3957 | fi | |
3958 | ||
3959 | WINDRES=$ncn_cv_WINDRES | |
3960 | else | |
3961 | WINDRES="${ncn_tool_prefix}windres" | |
3962 | fi | |
3963 | else | |
3964 | WINDRES="$ac_cv_prog_WINDRES" | |
3965 | fi | |
3966 | ||
3967 | if test -n "$ncn_tool_prefix"; then | |
3968 | # Extract the first word of "${ncn_tool_prefix}objcopy", so it can be a program name with args. | |
3969 | set dummy ${ncn_tool_prefix}objcopy; ac_word=$2 | |
3970 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 3971 | echo "configure:3972: checking for $ac_word" >&5 |
a0c92996 AC |
3972 | if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then |
3973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3974 | else | |
3975 | if test -n "$OBJCOPY"; then | |
3976 | ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. | |
3977 | else | |
3978 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3979 | ac_dummy="$PATH" | |
3980 | for ac_dir in $ac_dummy; do | |
3981 | test -z "$ac_dir" && ac_dir=. | |
3982 | if test -f $ac_dir/$ac_word; then | |
3983 | ac_cv_prog_OBJCOPY="${ncn_tool_prefix}objcopy" | |
3984 | break | |
3985 | fi | |
3986 | done | |
3987 | IFS="$ac_save_ifs" | |
3988 | fi | |
3989 | fi | |
3990 | OBJCOPY="$ac_cv_prog_OBJCOPY" | |
3991 | if test -n "$OBJCOPY"; then | |
3992 | echo "$ac_t""$OBJCOPY" 1>&6 | |
3993 | else | |
3994 | echo "$ac_t""no" 1>&6 | |
3995 | fi | |
3996 | ||
3997 | fi | |
3998 | if test -z "$ac_cv_prog_OBJCOPY" ; then | |
3999 | if test $build = $host ; then | |
4000 | ncn_cv_OBJCOPY=$OBJCOPY | |
4001 | # Extract the first word of "objcopy", so it can be a program name with args. | |
4002 | set dummy objcopy; ac_word=$2 | |
4003 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4004 | echo "configure:4005: checking for $ac_word" >&5 |
a0c92996 AC |
4005 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" = set"; then |
4006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4007 | else | |
4008 | if test -n "$ncn_cv_OBJCOPY"; then | |
4009 | ac_cv_prog_ncn_cv_OBJCOPY="$ncn_cv_OBJCOPY" # Let the user override the test. | |
4010 | else | |
4011 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4012 | ac_dummy="$PATH" | |
4013 | for ac_dir in $ac_dummy; do | |
4014 | test -z "$ac_dir" && ac_dir=. | |
4015 | if test -f $ac_dir/$ac_word; then | |
4016 | ac_cv_prog_ncn_cv_OBJCOPY="objcopy" | |
4017 | break | |
4018 | fi | |
4019 | done | |
4020 | IFS="$ac_save_ifs" | |
4021 | test -z "$ac_cv_prog_ncn_cv_OBJCOPY" && ac_cv_prog_ncn_cv_OBJCOPY="objcopy" | |
4022 | fi | |
4023 | fi | |
4024 | ncn_cv_OBJCOPY="$ac_cv_prog_ncn_cv_OBJCOPY" | |
4025 | if test -n "$ncn_cv_OBJCOPY"; then | |
4026 | echo "$ac_t""$ncn_cv_OBJCOPY" 1>&6 | |
4027 | else | |
4028 | echo "$ac_t""no" 1>&6 | |
4029 | fi | |
4030 | ||
4031 | OBJCOPY=$ncn_cv_OBJCOPY | |
4032 | else | |
4033 | OBJCOPY="${ncn_tool_prefix}objcopy" | |
4034 | fi | |
4035 | else | |
4036 | OBJCOPY="$ac_cv_prog_OBJCOPY" | |
4037 | fi | |
4038 | ||
4039 | if test -n "$ncn_tool_prefix"; then | |
4040 | # Extract the first word of "${ncn_tool_prefix}objdump", so it can be a program name with args. | |
4041 | set dummy ${ncn_tool_prefix}objdump; ac_word=$2 | |
4042 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4043 | echo "configure:4044: checking for $ac_word" >&5 |
a0c92996 AC |
4044 | if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then |
4045 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4046 | else | |
4047 | if test -n "$OBJDUMP"; then | |
4048 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4049 | else | |
4050 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4051 | ac_dummy="$PATH" | |
4052 | for ac_dir in $ac_dummy; do | |
4053 | test -z "$ac_dir" && ac_dir=. | |
4054 | if test -f $ac_dir/$ac_word; then | |
4055 | ac_cv_prog_OBJDUMP="${ncn_tool_prefix}objdump" | |
4056 | break | |
4057 | fi | |
4058 | done | |
4059 | IFS="$ac_save_ifs" | |
4060 | fi | |
4061 | fi | |
4062 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4063 | if test -n "$OBJDUMP"; then | |
4064 | echo "$ac_t""$OBJDUMP" 1>&6 | |
4065 | else | |
4066 | echo "$ac_t""no" 1>&6 | |
4067 | fi | |
4068 | ||
4069 | fi | |
4070 | if test -z "$ac_cv_prog_OBJDUMP" ; then | |
4071 | if test $build = $host ; then | |
4072 | ncn_cv_OBJDUMP=$OBJDUMP | |
4073 | # Extract the first word of "objdump", so it can be a program name with args. | |
4074 | set dummy objdump; ac_word=$2 | |
4075 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4076 | echo "configure:4077: checking for $ac_word" >&5 |
a0c92996 AC |
4077 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" = set"; then |
4078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4079 | else | |
4080 | if test -n "$ncn_cv_OBJDUMP"; then | |
4081 | ac_cv_prog_ncn_cv_OBJDUMP="$ncn_cv_OBJDUMP" # Let the user override the test. | |
4082 | else | |
4083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4084 | ac_dummy="$PATH" | |
4085 | for ac_dir in $ac_dummy; do | |
4086 | test -z "$ac_dir" && ac_dir=. | |
4087 | if test -f $ac_dir/$ac_word; then | |
4088 | ac_cv_prog_ncn_cv_OBJDUMP="objdump" | |
4089 | break | |
4090 | fi | |
4091 | done | |
4092 | IFS="$ac_save_ifs" | |
4093 | test -z "$ac_cv_prog_ncn_cv_OBJDUMP" && ac_cv_prog_ncn_cv_OBJDUMP="objdump" | |
4094 | fi | |
4095 | fi | |
4096 | ncn_cv_OBJDUMP="$ac_cv_prog_ncn_cv_OBJDUMP" | |
4097 | if test -n "$ncn_cv_OBJDUMP"; then | |
4098 | echo "$ac_t""$ncn_cv_OBJDUMP" 1>&6 | |
4099 | else | |
4100 | echo "$ac_t""no" 1>&6 | |
4101 | fi | |
4102 | ||
4103 | OBJDUMP=$ncn_cv_OBJDUMP | |
4104 | else | |
4105 | OBJDUMP="${ncn_tool_prefix}objdump" | |
4106 | fi | |
4107 | else | |
4108 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4109 | fi | |
4110 | ||
bafecfd6 NN |
4111 | |
4112 | ||
4113 | ||
4114 | ||
4115 | ||
4116 | ||
4117 | ||
4118 | ||
e9ea9dec | 4119 | |
bafecfd6 | 4120 | # Target tools. |
a0c92996 AC |
4121 | if test -n "$ncn_target_tool_prefix"; then |
4122 | # Extract the first word of "${ncn_target_tool_prefix}ar", so it can be a program name with args. | |
4123 | set dummy ${ncn_target_tool_prefix}ar; ac_word=$2 | |
4124 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4125 | echo "configure:4126: checking for $ac_word" >&5 |
ef76efc6 | 4126 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4127 | echo $ac_n "(cached) $ac_c" 1>&6 |
4128 | else | |
ef76efc6 NN |
4129 | if test -n "$CONFIGURED_AR_FOR_TARGET"; then |
4130 | ac_cv_prog_CONFIGURED_AR_FOR_TARGET="$CONFIGURED_AR_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4131 | else |
4132 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4133 | ac_dummy="$PATH" | |
4134 | for ac_dir in $ac_dummy; do | |
4135 | test -z "$ac_dir" && ac_dir=. | |
4136 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4137 | ac_cv_prog_CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" |
a0c92996 AC |
4138 | break |
4139 | fi | |
4140 | done | |
4141 | IFS="$ac_save_ifs" | |
4142 | fi | |
4143 | fi | |
ef76efc6 NN |
4144 | CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" |
4145 | if test -n "$CONFIGURED_AR_FOR_TARGET"; then | |
4146 | echo "$ac_t""$CONFIGURED_AR_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4147 | else |
4148 | echo "$ac_t""no" 1>&6 | |
4149 | fi | |
4150 | ||
4151 | fi | |
ef76efc6 | 4152 | if test -z "$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" ; then |
a0c92996 | 4153 | if test $build = $target ; then |
ef76efc6 | 4154 | ncn_cv_CONFIGURED_AR_FOR_TARGET=$CONFIGURED_AR_FOR_TARGET |
a0c92996 AC |
4155 | # Extract the first word of "ar", so it can be a program name with args. |
4156 | set dummy ar; ac_word=$2 | |
4157 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4158 | echo "configure:4159: checking for $ac_word" >&5 |
ef76efc6 | 4159 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4160 | echo $ac_n "(cached) $ac_c" 1>&6 |
4161 | else | |
ef76efc6 NN |
4162 | if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then |
4163 | ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="$ncn_cv_CONFIGURED_AR_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4164 | else |
4165 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4166 | ac_dummy="$PATH" | |
4167 | for ac_dir in $ac_dummy; do | |
4168 | test -z "$ac_dir" && ac_dir=. | |
4169 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4170 | ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar" |
a0c92996 AC |
4171 | break |
4172 | fi | |
4173 | done | |
4174 | IFS="$ac_save_ifs" | |
ef76efc6 | 4175 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET="ar" |
a0c92996 AC |
4176 | fi |
4177 | fi | |
ef76efc6 NN |
4178 | ncn_cv_CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET" |
4179 | if test -n "$ncn_cv_CONFIGURED_AR_FOR_TARGET"; then | |
4180 | echo "$ac_t""$ncn_cv_CONFIGURED_AR_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4181 | else |
4182 | echo "$ac_t""no" 1>&6 | |
4183 | fi | |
4184 | ||
ef76efc6 | 4185 | CONFIGURED_AR_FOR_TARGET=$ncn_cv_CONFIGURED_AR_FOR_TARGET |
a0c92996 | 4186 | else |
ef76efc6 | 4187 | CONFIGURED_AR_FOR_TARGET="${ncn_target_tool_prefix}ar" |
a0c92996 AC |
4188 | fi |
4189 | else | |
ef76efc6 | 4190 | CONFIGURED_AR_FOR_TARGET="$ac_cv_prog_CONFIGURED_AR_FOR_TARGET" |
a0c92996 AC |
4191 | fi |
4192 | ||
4193 | if test -n "$ncn_target_tool_prefix"; then | |
4194 | # Extract the first word of "${ncn_target_tool_prefix}as", so it can be a program name with args. | |
4195 | set dummy ${ncn_target_tool_prefix}as; ac_word=$2 | |
4196 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4197 | echo "configure:4198: checking for $ac_word" >&5 |
ef76efc6 | 4198 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4199 | echo $ac_n "(cached) $ac_c" 1>&6 |
4200 | else | |
ef76efc6 NN |
4201 | if test -n "$CONFIGURED_AS_FOR_TARGET"; then |
4202 | ac_cv_prog_CONFIGURED_AS_FOR_TARGET="$CONFIGURED_AS_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4203 | else |
4204 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4205 | ac_dummy="$PATH" | |
4206 | for ac_dir in $ac_dummy; do | |
4207 | test -z "$ac_dir" && ac_dir=. | |
4208 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4209 | ac_cv_prog_CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as" |
a0c92996 AC |
4210 | break |
4211 | fi | |
4212 | done | |
4213 | IFS="$ac_save_ifs" | |
4214 | fi | |
4215 | fi | |
ef76efc6 NN |
4216 | CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" |
4217 | if test -n "$CONFIGURED_AS_FOR_TARGET"; then | |
4218 | echo "$ac_t""$CONFIGURED_AS_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4219 | else |
4220 | echo "$ac_t""no" 1>&6 | |
4221 | fi | |
4222 | ||
4223 | fi | |
ef76efc6 | 4224 | if test -z "$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" ; then |
a0c92996 | 4225 | if test $build = $target ; then |
ef76efc6 | 4226 | ncn_cv_CONFIGURED_AS_FOR_TARGET=$CONFIGURED_AS_FOR_TARGET |
a0c92996 AC |
4227 | # Extract the first word of "as", so it can be a program name with args. |
4228 | set dummy as; ac_word=$2 | |
4229 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4230 | echo "configure:4231: checking for $ac_word" >&5 |
ef76efc6 | 4231 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4232 | echo $ac_n "(cached) $ac_c" 1>&6 |
4233 | else | |
ef76efc6 NN |
4234 | if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then |
4235 | ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="$ncn_cv_CONFIGURED_AS_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4236 | else |
4237 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4238 | ac_dummy="$PATH" | |
4239 | for ac_dir in $ac_dummy; do | |
4240 | test -z "$ac_dir" && ac_dir=. | |
4241 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4242 | ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as" |
a0c92996 AC |
4243 | break |
4244 | fi | |
4245 | done | |
4246 | IFS="$ac_save_ifs" | |
ef76efc6 | 4247 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET="as" |
a0c92996 AC |
4248 | fi |
4249 | fi | |
ef76efc6 NN |
4250 | ncn_cv_CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET" |
4251 | if test -n "$ncn_cv_CONFIGURED_AS_FOR_TARGET"; then | |
4252 | echo "$ac_t""$ncn_cv_CONFIGURED_AS_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4253 | else |
4254 | echo "$ac_t""no" 1>&6 | |
4255 | fi | |
4256 | ||
ef76efc6 | 4257 | CONFIGURED_AS_FOR_TARGET=$ncn_cv_CONFIGURED_AS_FOR_TARGET |
a0c92996 | 4258 | else |
ef76efc6 | 4259 | CONFIGURED_AS_FOR_TARGET="${ncn_target_tool_prefix}as" |
a0c92996 AC |
4260 | fi |
4261 | else | |
ef76efc6 | 4262 | CONFIGURED_AS_FOR_TARGET="$ac_cv_prog_CONFIGURED_AS_FOR_TARGET" |
a0c92996 AC |
4263 | fi |
4264 | ||
4265 | if test -n "$ncn_target_tool_prefix"; then | |
4266 | # Extract the first word of "${ncn_target_tool_prefix}dlltool", so it can be a program name with args. | |
4267 | set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2 | |
4268 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4269 | echo "configure:4270: checking for $ac_word" >&5 |
ef76efc6 | 4270 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4271 | echo $ac_n "(cached) $ac_c" 1>&6 |
4272 | else | |
ef76efc6 NN |
4273 | if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then |
4274 | ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="$CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4275 | else |
4276 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4277 | ac_dummy="$PATH" | |
4278 | for ac_dir in $ac_dummy; do | |
4279 | test -z "$ac_dir" && ac_dir=. | |
4280 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4281 | ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" |
a0c92996 AC |
4282 | break |
4283 | fi | |
4284 | done | |
4285 | IFS="$ac_save_ifs" | |
4286 | fi | |
4287 | fi | |
ef76efc6 NN |
4288 | CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" |
4289 | if test -n "$CONFIGURED_DLLTOOL_FOR_TARGET"; then | |
4290 | echo "$ac_t""$CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4291 | else |
4292 | echo "$ac_t""no" 1>&6 | |
4293 | fi | |
4294 | ||
4295 | fi | |
ef76efc6 | 4296 | if test -z "$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" ; then |
a0c92996 | 4297 | if test $build = $target ; then |
ef76efc6 | 4298 | ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET=$CONFIGURED_DLLTOOL_FOR_TARGET |
a0c92996 AC |
4299 | # Extract the first word of "dlltool", so it can be a program name with args. |
4300 | set dummy dlltool; ac_word=$2 | |
4301 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4302 | echo "configure:4303: checking for $ac_word" >&5 |
ef76efc6 | 4303 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4304 | echo $ac_n "(cached) $ac_c" 1>&6 |
4305 | else | |
ef76efc6 NN |
4306 | if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then |
4307 | ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4308 | else |
4309 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4310 | ac_dummy="$PATH" | |
4311 | for ac_dir in $ac_dummy; do | |
4312 | test -z "$ac_dir" && ac_dir=. | |
4313 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4314 | ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool" |
a0c92996 AC |
4315 | break |
4316 | fi | |
4317 | done | |
4318 | IFS="$ac_save_ifs" | |
ef76efc6 | 4319 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="dlltool" |
a0c92996 AC |
4320 | fi |
4321 | fi | |
ef76efc6 NN |
4322 | ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" |
4323 | if test -n "$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET"; then | |
4324 | echo "$ac_t""$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4325 | else |
4326 | echo "$ac_t""no" 1>&6 | |
4327 | fi | |
4328 | ||
ef76efc6 | 4329 | CONFIGURED_DLLTOOL_FOR_TARGET=$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET |
a0c92996 | 4330 | else |
ef76efc6 | 4331 | CONFIGURED_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}dlltool" |
a0c92996 AC |
4332 | fi |
4333 | else | |
ef76efc6 | 4334 | CONFIGURED_DLLTOOL_FOR_TARGET="$ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET" |
a0c92996 AC |
4335 | fi |
4336 | ||
4337 | if test -n "$ncn_target_tool_prefix"; then | |
4338 | # Extract the first word of "${ncn_target_tool_prefix}ld", so it can be a program name with args. | |
4339 | set dummy ${ncn_target_tool_prefix}ld; ac_word=$2 | |
4340 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4341 | echo "configure:4342: checking for $ac_word" >&5 |
ef76efc6 | 4342 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4343 | echo $ac_n "(cached) $ac_c" 1>&6 |
4344 | else | |
ef76efc6 NN |
4345 | if test -n "$CONFIGURED_LD_FOR_TARGET"; then |
4346 | ac_cv_prog_CONFIGURED_LD_FOR_TARGET="$CONFIGURED_LD_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4347 | else |
4348 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4349 | ac_dummy="$PATH" | |
4350 | for ac_dir in $ac_dummy; do | |
4351 | test -z "$ac_dir" && ac_dir=. | |
4352 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4353 | ac_cv_prog_CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" |
a0c92996 AC |
4354 | break |
4355 | fi | |
4356 | done | |
4357 | IFS="$ac_save_ifs" | |
4358 | fi | |
4359 | fi | |
ef76efc6 NN |
4360 | CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" |
4361 | if test -n "$CONFIGURED_LD_FOR_TARGET"; then | |
4362 | echo "$ac_t""$CONFIGURED_LD_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4363 | else |
4364 | echo "$ac_t""no" 1>&6 | |
4365 | fi | |
4366 | ||
4367 | fi | |
ef76efc6 | 4368 | if test -z "$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" ; then |
a0c92996 | 4369 | if test $build = $target ; then |
ef76efc6 | 4370 | ncn_cv_CONFIGURED_LD_FOR_TARGET=$CONFIGURED_LD_FOR_TARGET |
a0c92996 AC |
4371 | # Extract the first word of "ld", so it can be a program name with args. |
4372 | set dummy ld; ac_word=$2 | |
4373 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4374 | echo "configure:4375: checking for $ac_word" >&5 |
ef76efc6 | 4375 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4376 | echo $ac_n "(cached) $ac_c" 1>&6 |
4377 | else | |
ef76efc6 NN |
4378 | if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then |
4379 | ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="$ncn_cv_CONFIGURED_LD_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4380 | else |
4381 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4382 | ac_dummy="$PATH" | |
4383 | for ac_dir in $ac_dummy; do | |
4384 | test -z "$ac_dir" && ac_dir=. | |
4385 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4386 | ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld" |
a0c92996 AC |
4387 | break |
4388 | fi | |
4389 | done | |
4390 | IFS="$ac_save_ifs" | |
ef76efc6 | 4391 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET="ld" |
a0c92996 AC |
4392 | fi |
4393 | fi | |
ef76efc6 NN |
4394 | ncn_cv_CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET" |
4395 | if test -n "$ncn_cv_CONFIGURED_LD_FOR_TARGET"; then | |
4396 | echo "$ac_t""$ncn_cv_CONFIGURED_LD_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4397 | else |
4398 | echo "$ac_t""no" 1>&6 | |
4399 | fi | |
4400 | ||
ef76efc6 | 4401 | CONFIGURED_LD_FOR_TARGET=$ncn_cv_CONFIGURED_LD_FOR_TARGET |
a0c92996 | 4402 | else |
ef76efc6 | 4403 | CONFIGURED_LD_FOR_TARGET="${ncn_target_tool_prefix}ld" |
a0c92996 AC |
4404 | fi |
4405 | else | |
ef76efc6 | 4406 | CONFIGURED_LD_FOR_TARGET="$ac_cv_prog_CONFIGURED_LD_FOR_TARGET" |
a0c92996 AC |
4407 | fi |
4408 | ||
4409 | if test -n "$ncn_target_tool_prefix"; then | |
4410 | # Extract the first word of "${ncn_target_tool_prefix}nm", so it can be a program name with args. | |
4411 | set dummy ${ncn_target_tool_prefix}nm; ac_word=$2 | |
4412 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4413 | echo "configure:4414: checking for $ac_word" >&5 |
ef76efc6 | 4414 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4415 | echo $ac_n "(cached) $ac_c" 1>&6 |
4416 | else | |
ef76efc6 NN |
4417 | if test -n "$CONFIGURED_NM_FOR_TARGET"; then |
4418 | ac_cv_prog_CONFIGURED_NM_FOR_TARGET="$CONFIGURED_NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4419 | else |
4420 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4421 | ac_dummy="$PATH" | |
4422 | for ac_dir in $ac_dummy; do | |
4423 | test -z "$ac_dir" && ac_dir=. | |
4424 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4425 | ac_cv_prog_CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" |
a0c92996 AC |
4426 | break |
4427 | fi | |
4428 | done | |
4429 | IFS="$ac_save_ifs" | |
4430 | fi | |
4431 | fi | |
ef76efc6 NN |
4432 | CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" |
4433 | if test -n "$CONFIGURED_NM_FOR_TARGET"; then | |
4434 | echo "$ac_t""$CONFIGURED_NM_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4435 | else |
4436 | echo "$ac_t""no" 1>&6 | |
4437 | fi | |
4438 | ||
4439 | fi | |
ef76efc6 | 4440 | if test -z "$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" ; then |
a0c92996 | 4441 | if test $build = $target ; then |
ef76efc6 | 4442 | ncn_cv_CONFIGURED_NM_FOR_TARGET=$CONFIGURED_NM_FOR_TARGET |
a0c92996 AC |
4443 | # Extract the first word of "nm", so it can be a program name with args. |
4444 | set dummy nm; ac_word=$2 | |
4445 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4446 | echo "configure:4447: checking for $ac_word" >&5 |
ef76efc6 | 4447 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4448 | echo $ac_n "(cached) $ac_c" 1>&6 |
4449 | else | |
ef76efc6 NN |
4450 | if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then |
4451 | ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="$ncn_cv_CONFIGURED_NM_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4452 | else |
4453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4454 | ac_dummy="$PATH" | |
4455 | for ac_dir in $ac_dummy; do | |
4456 | test -z "$ac_dir" && ac_dir=. | |
4457 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4458 | ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm" |
a0c92996 AC |
4459 | break |
4460 | fi | |
4461 | done | |
4462 | IFS="$ac_save_ifs" | |
ef76efc6 | 4463 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET="nm" |
a0c92996 AC |
4464 | fi |
4465 | fi | |
ef76efc6 NN |
4466 | ncn_cv_CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET" |
4467 | if test -n "$ncn_cv_CONFIGURED_NM_FOR_TARGET"; then | |
4468 | echo "$ac_t""$ncn_cv_CONFIGURED_NM_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4469 | else |
4470 | echo "$ac_t""no" 1>&6 | |
4471 | fi | |
4472 | ||
ef76efc6 | 4473 | CONFIGURED_NM_FOR_TARGET=$ncn_cv_CONFIGURED_NM_FOR_TARGET |
a0c92996 | 4474 | else |
ef76efc6 | 4475 | CONFIGURED_NM_FOR_TARGET="${ncn_target_tool_prefix}nm" |
a0c92996 AC |
4476 | fi |
4477 | else | |
ef76efc6 | 4478 | CONFIGURED_NM_FOR_TARGET="$ac_cv_prog_CONFIGURED_NM_FOR_TARGET" |
a0c92996 AC |
4479 | fi |
4480 | ||
4481 | if test -n "$ncn_target_tool_prefix"; then | |
4482 | # Extract the first word of "${ncn_target_tool_prefix}ranlib", so it can be a program name with args. | |
4483 | set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2 | |
4484 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4485 | echo "configure:4486: checking for $ac_word" >&5 |
ef76efc6 | 4486 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4487 | echo $ac_n "(cached) $ac_c" 1>&6 |
4488 | else | |
ef76efc6 NN |
4489 | if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then |
4490 | ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="$CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4491 | else |
4492 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4493 | ac_dummy="$PATH" | |
4494 | for ac_dir in $ac_dummy; do | |
4495 | test -z "$ac_dir" && ac_dir=. | |
4496 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4497 | ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}ranlib" |
a0c92996 AC |
4498 | break |
4499 | fi | |
4500 | done | |
4501 | IFS="$ac_save_ifs" | |
4502 | fi | |
4503 | fi | |
ef76efc6 NN |
4504 | CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" |
4505 | if test -n "$CONFIGURED_RANLIB_FOR_TARGET"; then | |
4506 | echo "$ac_t""$CONFIGURED_RANLIB_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4507 | else |
4508 | echo "$ac_t""no" 1>&6 | |
4509 | fi | |
4510 | ||
4511 | fi | |
ef76efc6 | 4512 | if test -z "$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" ; then |
a0c92996 | 4513 | if test $build = $target ; then |
ef76efc6 | 4514 | ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=$CONFIGURED_RANLIB_FOR_TARGET |
a0c92996 AC |
4515 | # Extract the first word of "ranlib", so it can be a program name with args. |
4516 | set dummy ranlib; ac_word=$2 | |
4517 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4518 | echo "configure:4519: checking for $ac_word" >&5 |
ef76efc6 | 4519 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4520 | echo $ac_n "(cached) $ac_c" 1>&6 |
4521 | else | |
ef76efc6 NN |
4522 | if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then |
4523 | ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4524 | else |
4525 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4526 | ac_dummy="$PATH" | |
4527 | for ac_dir in $ac_dummy; do | |
4528 | test -z "$ac_dir" && ac_dir=. | |
4529 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4530 | ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="ranlib" |
a0c92996 AC |
4531 | break |
4532 | fi | |
4533 | done | |
4534 | IFS="$ac_save_ifs" | |
ef76efc6 | 4535 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET=":" |
a0c92996 AC |
4536 | fi |
4537 | fi | |
ef76efc6 NN |
4538 | ncn_cv_CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" |
4539 | if test -n "$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET"; then | |
4540 | echo "$ac_t""$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4541 | else |
4542 | echo "$ac_t""no" 1>&6 | |
4543 | fi | |
4544 | ||
ef76efc6 | 4545 | CONFIGURED_RANLIB_FOR_TARGET=$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET |
a0c92996 | 4546 | else |
ef76efc6 | 4547 | CONFIGURED_RANLIB_FOR_TARGET=":" |
a0c92996 AC |
4548 | fi |
4549 | else | |
ef76efc6 | 4550 | CONFIGURED_RANLIB_FOR_TARGET="$ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET" |
a0c92996 AC |
4551 | fi |
4552 | ||
4553 | if test -n "$ncn_target_tool_prefix"; then | |
4554 | # Extract the first word of "${ncn_target_tool_prefix}windres", so it can be a program name with args. | |
4555 | set dummy ${ncn_target_tool_prefix}windres; ac_word=$2 | |
4556 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4557 | echo "configure:4558: checking for $ac_word" >&5 |
ef76efc6 | 4558 | if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4559 | echo $ac_n "(cached) $ac_c" 1>&6 |
4560 | else | |
ef76efc6 NN |
4561 | if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then |
4562 | ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="$CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4563 | else |
4564 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4565 | ac_dummy="$PATH" | |
4566 | for ac_dir in $ac_dummy; do | |
4567 | test -z "$ac_dir" && ac_dir=. | |
4568 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4569 | ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" |
a0c92996 AC |
4570 | break |
4571 | fi | |
4572 | done | |
4573 | IFS="$ac_save_ifs" | |
4574 | fi | |
4575 | fi | |
ef76efc6 NN |
4576 | CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" |
4577 | if test -n "$CONFIGURED_WINDRES_FOR_TARGET"; then | |
4578 | echo "$ac_t""$CONFIGURED_WINDRES_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4579 | else |
4580 | echo "$ac_t""no" 1>&6 | |
4581 | fi | |
4582 | ||
4583 | fi | |
ef76efc6 | 4584 | if test -z "$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" ; then |
a0c92996 | 4585 | if test $build = $target ; then |
ef76efc6 | 4586 | ncn_cv_CONFIGURED_WINDRES_FOR_TARGET=$CONFIGURED_WINDRES_FOR_TARGET |
a0c92996 AC |
4587 | # Extract the first word of "windres", so it can be a program name with args. |
4588 | set dummy windres; ac_word=$2 | |
4589 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
21ff191e | 4590 | echo "configure:4591: checking for $ac_word" >&5 |
ef76efc6 | 4591 | if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then |
a0c92996 AC |
4592 | echo $ac_n "(cached) $ac_c" 1>&6 |
4593 | else | |
ef76efc6 NN |
4594 | if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then |
4595 | ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" # Let the user override the test. | |
a0c92996 AC |
4596 | else |
4597 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4598 | ac_dummy="$PATH" | |
4599 | for ac_dir in $ac_dummy; do | |
4600 | test -z "$ac_dir" && ac_dir=. | |
4601 | if test -f $ac_dir/$ac_word; then | |
ef76efc6 | 4602 | ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres" |
a0c92996 AC |
4603 | break |
4604 | fi | |
4605 | done | |
4606 | IFS="$ac_save_ifs" | |
ef76efc6 | 4607 | test -z "$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" && ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="windres" |
a0c92996 AC |
4608 | fi |
4609 | fi | |
ef76efc6 NN |
4610 | ncn_cv_CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" |
4611 | if test -n "$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET"; then | |
4612 | echo "$ac_t""$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET" 1>&6 | |
a0c92996 AC |
4613 | else |
4614 | echo "$ac_t""no" 1>&6 | |
4615 | fi | |
4616 | ||
ef76efc6 | 4617 | CONFIGURED_WINDRES_FOR_TARGET=$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET |
a0c92996 | 4618 | else |
ef76efc6 | 4619 | CONFIGURED_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}windres" |
a0c92996 AC |
4620 | fi |
4621 | else | |
ef76efc6 | 4622 | CONFIGURED_WINDRES_FOR_TARGET="$ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET" |
a0c92996 AC |
4623 | fi |
4624 | ||
712e2a32 | 4625 | |
a3acbf46 | 4626 | |
a3acbf46 | 4627 | |
8d3e6265 | 4628 | |
712e2a32 | 4629 | |
8d3e6265 | 4630 | |
a3acbf46 | 4631 | |
a3acbf46 | 4632 | |
a3acbf46 | 4633 | |
bafecfd6 | 4634 | |
cb2333e8 | 4635 | |
bafecfd6 NN |
4636 | # Fix up target tools. |
4637 | if test "x${build}" = "x${host}" ; then | |
4638 | # In this case, the newly built tools can and should be used, | |
4639 | # so we override the results of the autoconf tests. | |
4640 | # This should really only happen when the tools are actually being built, | |
4641 | # but that's a further refinement. The new build scheme, where | |
4642 | # tools are built into a structure paralleling where they're installed, | |
4643 | # should also eliminate all of this cleanly. | |
4644 | AR_FOR_TARGET="\$(USUAL_AR_FOR_TARGET)" | |
4645 | AS_FOR_TARGET="\$(USUAL_AS_FOR_TARGET)" | |
4646 | DLLTOOL_FOR_TARGET="\$(USUAL_DLLTOOL_FOR_TARGET)" | |
4647 | LD_FOR_TARGET="\$(USUAL_LD_FOR_TARGET)" | |
4648 | NM_FOR_TARGET="\$(USUAL_NM_FOR_TARGET)" | |
4649 | RANLIB_FOR_TARGET="\$(USUAL_RANLIB_FOR_TARGET)" | |
4650 | WINDRES_FOR_TARGET="\$(USUAL_WINDRES_FOR_TARGET)" | |
ef76efc6 NN |
4651 | else |
4652 | # Just use the ones we found. | |
4653 | AR_FOR_TARGET="\$(CONFIGURED_AR_FOR_TARGET)" | |
4654 | AS_FOR_TARGET="\$(CONFIGURED_AS_FOR_TARGET)" | |
4655 | DLLTOOL_FOR_TARGET="\$(CONFIGURED_DLLTOOL_FOR_TARGET)" | |
4656 | LD_FOR_TARGET="\$(CONFIGURED_LD_FOR_TARGET)" | |
4657 | NM_FOR_TARGET="\$(CONFIGURED_NM_FOR_TARGET)" | |
4658 | RANLIB_FOR_TARGET="\$(CONFIGURED_RANLIB_FOR_TARGET)" | |
4659 | WINDRES_FOR_TARGET="\$(CONFIGURED_WINDRES_FOR_TARGET)" | |
bafecfd6 | 4660 | fi |
ef76efc6 NN |
4661 | |
4662 | ||
4663 | ||
4664 | ||
4665 | ||
4666 | ||
4667 | ||
4668 | ||
bafecfd6 NN |
4669 | # Certain tools may need extra flags. |
4670 | AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target} | |
4671 | RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target} | |
4672 | NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target} | |
4673 | ||
51dcf285 | 4674 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
21ff191e | 4675 | echo "configure:4676: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
51dcf285 AO |
4676 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4677 | if test "${enable_maintainer_mode+set}" = set; then | |
4678 | enableval="$enable_maintainer_mode" | |
4679 | USE_MAINTAINER_MODE=$enableval | |
4680 | else | |
4681 | USE_MAINTAINER_MODE=no | |
4682 | fi | |
4683 | ||
4684 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
4685 | ||
4686 | ||
4687 | if test "$USE_MAINTAINER_MODE" = yes; then | |
4688 | MAINTAINER_MODE_TRUE= | |
4689 | MAINTAINER_MODE_FALSE='#' | |
4690 | else | |
4691 | MAINTAINER_MODE_TRUE='#' | |
4692 | MAINTAINER_MODE_FALSE= | |
4693 | fi | |
4694 | MAINT=$MAINTAINER_MODE_TRUE | |
4695 | ||
457eaf16 NN |
4696 | # --------------------- |
4697 | # GCC bootstrap support | |
4698 | # --------------------- | |
4699 | ||
4700 | # Stage specific cflags for build. | |
4701 | stage1_cflags="-g" | |
4702 | case $build in | |
4703 | vax-*-*) | |
4704 | case ${GCC} in | |
4705 | yes) stage1_cflags="-g -Wa,-J" ;; | |
4706 | *) stage1_cflags="-g -J" ;; | |
4707 | esac ;; | |
4708 | powerpc-*-darwin*) | |
4709 | # The spiffy cpp-precomp chokes on some legitimate constructs in GCC | |
4710 | # sources; use -no-cpp-precomp to get to GNU cpp. | |
4711 | # Apple's GCC has bugs in designated initializer handling, so disable | |
4712 | # that too. | |
4713 | stage1_cflags="-g -no-cpp-precomp -DHAVE_DESIGNATED_INITIALIZERS=0" | |
4714 | ;; | |
4715 | esac | |
4716 | ||
4717 | ||
35269421 PB |
4718 | # It makes debugging easier if we create as symlinks the stage directories |
4719 | # gcc for stageN-gcc and stage-prev for stage(N-1). In case this is not | |
4720 | # possible, however, we can resort to mv. | |
4721 | echo $ac_n "checking if symbolic links between directories work""... $ac_c" 1>&6 | |
21ff191e | 4722 | echo "configure:4723: checking if symbolic links between directories work" >&5 |
35269421 PB |
4723 | if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then |
4724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4725 | else | |
4726 | if test "${LN_S}" = "ln -s" \ | |
4727 | && mkdir confdir.s1 \ | |
4728 | && ln -s confdir.s1 confdir.s2 \ | |
4729 | && echo timestamp1 > confdir.s1/conftest.1 \ | |
4730 | && cmp confdir.s1/conftest.1 confdir.s2/conftest.1 \ | |
4731 | && echo timestamp2 > confdir.s2/conftest.2 \ | |
4732 | && cmp confdir.s1/conftest.2 confdir.s1/conftest.2 \ | |
4733 | && rm -f confdir.s2; then | |
4734 | gcc_cv_prog_ln_s_dir=yes | |
4735 | else | |
4736 | gcc_cv_prog_ln_s_dir=yes | |
4737 | fi | |
4738 | rm -rf confdir.s1 confdir.s2 | |
4739 | fi | |
4740 | ||
4741 | echo "$ac_t""$gcc_cv_prog_ln_s_dir" 1>&6 | |
4742 | ||
4743 | case ${gcc_cv_prog_ln_s_dir} in | |
4744 | yes) | |
4745 | CREATE_LINK_TO_DIR='ln -s $$1 $$2' | |
4746 | UNDO_LINK_TO_DIR='rm -f $$1' ;; | |
4747 | *) | |
4748 | CREATE_LINK_TO_DIR='mv $$1 $$2' | |
4749 | UNDO_LINK_TO_DIR='mv $$1 $$2' ;; | |
4750 | esac | |
4751 | ||
4752 | ||
4753 | ||
457eaf16 NN |
4754 | # Enable -Werror in bootstrap stage2 and later. |
4755 | # Change the default to "no" on release branches. | |
4756 | # Check whether --enable-werror or --disable-werror was given. | |
4757 | if test "${enable_werror+set}" = set; then | |
4758 | enableval="$enable_werror" | |
4759 | : | |
4760 | else | |
4761 | enable_werror=yes | |
4762 | fi | |
4763 | ||
f06f3d7c NN |
4764 | case ${enable_werror} in |
4765 | yes) stage2_werror_flag="--enable-werror-always" ;; | |
4766 | *) stage2_werror_flag="" ;; | |
457eaf16 NN |
4767 | esac |
4768 | ||
4769 | ||
bafecfd6 NN |
4770 | trap '' 1 2 15 |
4771 | cat > confcache <<\EOF | |
4772 | # This file is a shell script that caches the results of configure | |
4773 | # tests run on this system so they can be shared between configure | |
4774 | # scripts and configure runs. It is not useful on other systems. | |
4775 | # If it contains results you don't want to keep, you may remove or edit it. | |
4776 | # | |
4777 | # By default, configure uses ./config.cache as the cache file, | |
4778 | # creating it if it does not exist already. You can give configure | |
4779 | # the --cache-file=FILE option to use a different cache file; that is | |
4780 | # what configure does when it calls configure scripts in | |
4781 | # subdirectories, so they share the cache. | |
4782 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4783 | # config.status only pays attention to the cache file if you give it the | |
4784 | # --recheck option to rerun configure. | |
4785 | # | |
a3acbf46 | 4786 | EOF |
bafecfd6 NN |
4787 | # The following way of writing the cache mishandles newlines in values, |
4788 | # but we know of no workaround that is simple, portable, and efficient. | |
4789 | # So, don't put newlines in cache variables' values. | |
4790 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4791 | # and sets the high bit in the cache file unless we assign to the vars. | |
4792 | (set) 2>&1 | | |
4793 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4794 | *ac_space=\ *) | |
4795 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4796 | # turns \\\\ into \\, and sed turns \\ into \). | |
4797 | sed -n \ | |
4798 | -e "s/'/'\\\\''/g" \ | |
4799 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
712e2a32 | 4800 | ;; |
bafecfd6 NN |
4801 | *) |
4802 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4803 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4804 | ;; | |
4805 | esac >> confcache | |
4806 | if cmp -s $cache_file confcache; then | |
4807 | : | |
4808 | else | |
4809 | if test -w $cache_file; then | |
4810 | echo "updating cache $cache_file" | |
4811 | cat confcache > $cache_file | |
4812 | else | |
4813 | echo "not updating unwritable cache $cache_file" | |
4814 | fi | |
712e2a32 | 4815 | fi |
bafecfd6 | 4816 | rm -f confcache |
712e2a32 | 4817 | |
bafecfd6 | 4818 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
712e2a32 | 4819 | |
bafecfd6 NN |
4820 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4821 | # Let make expand exec_prefix. | |
4822 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
712e2a32 | 4823 | |
bafecfd6 NN |
4824 | # Any assignment to VPATH causes Sun make to only execute |
4825 | # the first set of double-colon rules, so remove it if not needed. | |
4826 | # If there is a colon in the path, we need to keep it. | |
4827 | if test "x$srcdir" = x.; then | |
4828 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4829 | fi | |
a3acbf46 | 4830 | |
bafecfd6 NN |
4831 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
4832 | ||
4833 | # Transform confdefs.h into DEFS. | |
4834 | # Protect against shell expansion while executing Makefile rules. | |
4835 | # Protect against Makefile macro expansion. | |
a7e609d6 PB |
4836 | cat > conftest.defs <<\EOF |
4837 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g | |
4838 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g | |
4839 | s%\[%\\&%g | |
4840 | s%\]%\\&%g | |
4841 | s%\$%$$%g | |
4842 | EOF | |
4843 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | |
4844 | rm -f conftest.defs | |
712e2a32 | 4845 | |
712e2a32 | 4846 | |
bafecfd6 NN |
4847 | # Without the "./", some shells look in PATH for config.status. |
4848 | : ${CONFIG_STATUS=./config.status} | |
712e2a32 | 4849 | |
bafecfd6 NN |
4850 | echo creating $CONFIG_STATUS |
4851 | rm -f $CONFIG_STATUS | |
4852 | cat > $CONFIG_STATUS <<EOF | |
4853 | #! /bin/sh | |
4854 | # Generated automatically by configure. | |
4855 | # Run this file to recreate the current configuration. | |
4856 | # This directory was configured as follows, | |
4857 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4858 | # | |
4859 | # $0 $ac_configure_args | |
4860 | # | |
4861 | # Compiler output produced by configure, useful for debugging | |
4862 | # configure, is in ./config.log if it exists. | |
712e2a32 | 4863 | |
bafecfd6 NN |
4864 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
4865 | for ac_option | |
4866 | do | |
4867 | case "\$ac_option" in | |
4868 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4869 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4870 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4871 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
4872 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
4873 | exit 0 ;; | |
4874 | -help | --help | --hel | --he | --h) | |
4875 | echo "\$ac_cs_usage"; exit 0 ;; | |
4876 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
712e2a32 | 4877 | esac |
bafecfd6 | 4878 | done |
712e2a32 | 4879 | |
bafecfd6 | 4880 | ac_given_srcdir=$srcdir |
282c0e47 | 4881 | ac_given_INSTALL="$INSTALL" |
712e2a32 | 4882 | |
bafecfd6 NN |
4883 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
4884 | EOF | |
4885 | cat >> $CONFIG_STATUS <<EOF | |
4886 | ||
4887 | # Protect against being on the right side of a sed subst in config.status. | |
4888 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4889 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4890 | $ac_vpsub | |
4891 | $extrasub | |
4892 | s%@SHELL@%$SHELL%g | |
4893 | s%@CFLAGS@%$CFLAGS%g | |
4894 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4895 | s%@CXXFLAGS@%$CXXFLAGS%g | |
4896 | s%@FFLAGS@%$FFLAGS%g | |
4897 | s%@DEFS@%$DEFS%g | |
4898 | s%@LDFLAGS@%$LDFLAGS%g | |
4899 | s%@LIBS@%$LIBS%g | |
4900 | s%@exec_prefix@%$exec_prefix%g | |
4901 | s%@prefix@%$prefix%g | |
4902 | s%@program_transform_name@%$program_transform_name%g | |
4903 | s%@bindir@%$bindir%g | |
4904 | s%@sbindir@%$sbindir%g | |
4905 | s%@libexecdir@%$libexecdir%g | |
4906 | s%@datadir@%$datadir%g | |
4907 | s%@sysconfdir@%$sysconfdir%g | |
4908 | s%@sharedstatedir@%$sharedstatedir%g | |
4909 | s%@localstatedir@%$localstatedir%g | |
4910 | s%@libdir@%$libdir%g | |
4911 | s%@includedir@%$includedir%g | |
4912 | s%@oldincludedir@%$oldincludedir%g | |
4913 | s%@infodir@%$infodir%g | |
4914 | s%@mandir@%$mandir%g | |
4915 | s%@host@%$host%g | |
4916 | s%@host_alias@%$host_alias%g | |
4917 | s%@host_cpu@%$host_cpu%g | |
4918 | s%@host_vendor@%$host_vendor%g | |
4919 | s%@host_os@%$host_os%g | |
4920 | s%@target@%$target%g | |
4921 | s%@target_alias@%$target_alias%g | |
4922 | s%@target_cpu@%$target_cpu%g | |
4923 | s%@target_vendor@%$target_vendor%g | |
4924 | s%@target_os@%$target_os%g | |
4925 | s%@build@%$build%g | |
4926 | s%@build_alias@%$build_alias%g | |
4927 | s%@build_cpu@%$build_cpu%g | |
4928 | s%@build_vendor@%$build_vendor%g | |
4929 | s%@build_os@%$build_os%g | |
282c0e47 NN |
4930 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
4931 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
4932 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
21ff191e | 4933 | s%@LN@%$LN%g |
35269421 | 4934 | s%@LN_S@%$LN_S%g |
6309c931 | 4935 | s%@TOPLEVEL_CONFIGURE_ARGUMENTS@%$TOPLEVEL_CONFIGURE_ARGUMENTS%g |
9b520963 NN |
4936 | s%@build_subdir@%$build_subdir%g |
4937 | s%@host_subdir@%$host_subdir%g | |
4938 | s%@target_subdir@%$target_subdir%g | |
cfc26d93 NN |
4939 | s%@CC@%$CC%g |
4940 | s%@GNATBIND@%$GNATBIND%g | |
866c244e | 4941 | s%@do_compare@%$do_compare%g |
cb2333e8 DD |
4942 | s%@gmplibs@%$gmplibs%g |
4943 | s%@gmpinc@%$gmpinc%g | |
457eaf16 | 4944 | s%@stage1_languages@%$stage1_languages%g |
4a95a7fe NN |
4945 | s%@DEFAULT_YACC@%$DEFAULT_YACC%g |
4946 | s%@DEFAULT_M4@%$DEFAULT_M4%g | |
4947 | s%@DEFAULT_LEX@%$DEFAULT_LEX%g | |
e1666221 | 4948 | s%@default_target@%$default_target%g |
bafecfd6 NN |
4949 | /@serialization_dependencies@/r $serialization_dependencies |
4950 | s%@serialization_dependencies@%%g | |
4951 | /@host_makefile_frag@/r $host_makefile_frag | |
4952 | s%@host_makefile_frag@%%g | |
4953 | /@target_makefile_frag@/r $target_makefile_frag | |
4954 | s%@target_makefile_frag@%%g | |
4955 | /@alphaieee_frag@/r $alphaieee_frag | |
4956 | s%@alphaieee_frag@%%g | |
4957 | /@ospace_frag@/r $ospace_frag | |
4958 | s%@ospace_frag@%%g | |
4959 | s%@SET_LIB_PATH@%$SET_LIB_PATH%g | |
4960 | s%@RPATH_ENVVAR@%$RPATH_ENVVAR%g | |
4961 | s%@BUILD_PREFIX@%$BUILD_PREFIX%g | |
4962 | s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g | |
bafecfd6 NN |
4963 | s%@gcc_version_trigger@%$gcc_version_trigger%g |
4964 | s%@gcc_version@%$gcc_version%g | |
4965 | s%@tooldir@%$tooldir%g | |
4966 | s%@build_tooldir@%$build_tooldir%g | |
4967 | s%@GDB_TK@%$GDB_TK%g | |
4968 | s%@gxx_include_dir@%$gxx_include_dir%g | |
4969 | s%@libstdcxx_incdir@%$libstdcxx_incdir%g | |
bafecfd6 NN |
4970 | s%@build_configargs@%$build_configargs%g |
4971 | s%@configure_build_modules@%$configure_build_modules%g | |
4972 | s%@all_build_modules@%$all_build_modules%g | |
4973 | s%@host_configargs@%$host_configargs%g | |
4974 | s%@configdirs@%$configdirs%g | |
bafecfd6 NN |
4975 | s%@target_configargs@%$target_configargs%g |
4976 | s%@target_configdirs@%$target_configdirs%g | |
bafecfd6 NN |
4977 | s%@BISON@%$BISON%g |
4978 | s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g | |
4979 | s%@LEX@%$LEX%g | |
4980 | s%@MAKEINFO@%$MAKEINFO%g | |
4981 | s%@YACC@%$YACC%g | |
4982 | s%@config_shell@%$config_shell%g | |
a0c92996 AC |
4983 | s%@AR@%$AR%g |
4984 | s%@ncn_cv_AR@%$ncn_cv_AR%g | |
4985 | s%@AS@%$AS%g | |
4986 | s%@ncn_cv_AS@%$ncn_cv_AS%g | |
4987 | s%@DLLTOOL@%$DLLTOOL%g | |
4988 | s%@ncn_cv_DLLTOOL@%$ncn_cv_DLLTOOL%g | |
4989 | s%@LD@%$LD%g | |
4990 | s%@ncn_cv_LD@%$ncn_cv_LD%g | |
4991 | s%@NM@%$NM%g | |
4992 | s%@ncn_cv_NM@%$ncn_cv_NM%g | |
4993 | s%@RANLIB@%$RANLIB%g | |
4994 | s%@ncn_cv_RANLIB@%$ncn_cv_RANLIB%g | |
4995 | s%@WINDRES@%$WINDRES%g | |
4996 | s%@ncn_cv_WINDRES@%$ncn_cv_WINDRES%g | |
4997 | s%@OBJCOPY@%$OBJCOPY%g | |
4998 | s%@ncn_cv_OBJCOPY@%$ncn_cv_OBJCOPY%g | |
4999 | s%@OBJDUMP@%$OBJDUMP%g | |
5000 | s%@ncn_cv_OBJDUMP@%$ncn_cv_OBJDUMP%g | |
bafecfd6 | 5001 | s%@CXX@%$CXX%g |
e9ea9dec | 5002 | s%@CFLAGS_FOR_BUILD@%$CFLAGS_FOR_BUILD%g |
ef76efc6 NN |
5003 | s%@CONFIGURED_AR_FOR_TARGET@%$CONFIGURED_AR_FOR_TARGET%g |
5004 | s%@ncn_cv_CONFIGURED_AR_FOR_TARGET@%$ncn_cv_CONFIGURED_AR_FOR_TARGET%g | |
5005 | s%@CONFIGURED_AS_FOR_TARGET@%$CONFIGURED_AS_FOR_TARGET%g | |
5006 | s%@ncn_cv_CONFIGURED_AS_FOR_TARGET@%$ncn_cv_CONFIGURED_AS_FOR_TARGET%g | |
5007 | s%@CONFIGURED_DLLTOOL_FOR_TARGET@%$CONFIGURED_DLLTOOL_FOR_TARGET%g | |
5008 | s%@ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET@%$ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET%g | |
5009 | s%@CONFIGURED_LD_FOR_TARGET@%$CONFIGURED_LD_FOR_TARGET%g | |
5010 | s%@ncn_cv_CONFIGURED_LD_FOR_TARGET@%$ncn_cv_CONFIGURED_LD_FOR_TARGET%g | |
5011 | s%@CONFIGURED_NM_FOR_TARGET@%$CONFIGURED_NM_FOR_TARGET%g | |
5012 | s%@ncn_cv_CONFIGURED_NM_FOR_TARGET@%$ncn_cv_CONFIGURED_NM_FOR_TARGET%g | |
5013 | s%@CONFIGURED_RANLIB_FOR_TARGET@%$CONFIGURED_RANLIB_FOR_TARGET%g | |
5014 | s%@ncn_cv_CONFIGURED_RANLIB_FOR_TARGET@%$ncn_cv_CONFIGURED_RANLIB_FOR_TARGET%g | |
5015 | s%@CONFIGURED_WINDRES_FOR_TARGET@%$CONFIGURED_WINDRES_FOR_TARGET%g | |
5016 | s%@ncn_cv_CONFIGURED_WINDRES_FOR_TARGET@%$ncn_cv_CONFIGURED_WINDRES_FOR_TARGET%g | |
bafecfd6 NN |
5017 | s%@GCC_FOR_TARGET@%$GCC_FOR_TARGET%g |
5018 | s%@FLAGS_FOR_TARGET@%$FLAGS_FOR_TARGET%g | |
5019 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g | |
5020 | s%@GCJ_FOR_TARGET@%$GCJ_FOR_TARGET%g | |
cb2333e8 | 5021 | s%@GFORTRAN_FOR_TARGET@%$GFORTRAN_FOR_TARGET%g |
bafecfd6 NN |
5022 | s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g |
5023 | s%@RAW_CXX_FOR_TARGET@%$RAW_CXX_FOR_TARGET%g | |
5024 | s%@CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g | |
5025 | s%@RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@%$RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE%g | |
ef76efc6 NN |
5026 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
5027 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g | |
5028 | s%@DLLTOOL_FOR_TARGET@%$DLLTOOL_FOR_TARGET%g | |
5029 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g | |
5030 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g | |
5031 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g | |
5032 | s%@WINDRES_FOR_TARGET@%$WINDRES_FOR_TARGET%g | |
51dcf285 AO |
5033 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
5034 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
5035 | s%@MAINT@%$MAINT%g | |
457eaf16 | 5036 | s%@stage1_cflags@%$stage1_cflags%g |
35269421 PB |
5037 | s%@CREATE_LINK_TO_DIR@%$CREATE_LINK_TO_DIR%g |
5038 | s%@UNDO_LINK_TO_DIR@%$UNDO_LINK_TO_DIR%g | |
f06f3d7c | 5039 | s%@stage2_werror_flag@%$stage2_werror_flag%g |
bafecfd6 NN |
5040 | |
5041 | CEOF | |
5042 | EOF | |
a3acbf46 | 5043 | |
bafecfd6 NN |
5044 | cat >> $CONFIG_STATUS <<\EOF |
5045 | ||
5046 | # Split the substitutions into bite-sized pieces for seds with | |
5047 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
5048 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
5049 | ac_file=1 # Number of current file. | |
5050 | ac_beg=1 # First line for current file. | |
5051 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
5052 | ac_more_lines=: | |
5053 | ac_sed_cmds="" | |
5054 | while $ac_more_lines; do | |
5055 | if test $ac_beg -gt 1; then | |
5056 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
5057 | else | |
5058 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
712e2a32 | 5059 | fi |
bafecfd6 NN |
5060 | if test ! -s conftest.s$ac_file; then |
5061 | ac_more_lines=false | |
5062 | rm -f conftest.s$ac_file | |
5063 | else | |
5064 | if test -z "$ac_sed_cmds"; then | |
5065 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
5066 | else | |
5067 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
5068 | fi | |
5069 | ac_file=`expr $ac_file + 1` | |
5070 | ac_beg=$ac_end | |
5071 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
712e2a32 | 5072 | fi |
bafecfd6 NN |
5073 | done |
5074 | if test -z "$ac_sed_cmds"; then | |
5075 | ac_sed_cmds=cat | |
712e2a32 | 5076 | fi |
bafecfd6 | 5077 | EOF |
a3acbf46 | 5078 | |
bafecfd6 | 5079 | cat >> $CONFIG_STATUS <<EOF |
a3acbf46 | 5080 | |
bafecfd6 NN |
5081 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
5082 | EOF | |
5083 | cat >> $CONFIG_STATUS <<\EOF | |
5084 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
5085 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
5086 | case "$ac_file" in | |
5087 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
5088 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
5089 | *) ac_file_in="${ac_file}.in" ;; | |
5090 | esac | |
a3acbf46 | 5091 | |
bafecfd6 | 5092 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
a3acbf46 | 5093 | |
bafecfd6 NN |
5094 | # Remove last slash and all that follows it. Not all systems have dirname. |
5095 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
5096 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
5097 | # The file is in a subdirectory. | |
5098 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
5099 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
5100 | # A "../" for each directory in $ac_dir_suffix. | |
5101 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
5102 | else | |
5103 | ac_dir_suffix= ac_dots= | |
5104 | fi | |
a3acbf46 | 5105 | |
bafecfd6 NN |
5106 | case "$ac_given_srcdir" in |
5107 | .) srcdir=. | |
5108 | if test -z "$ac_dots"; then top_srcdir=. | |
5109 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
5110 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
5111 | *) # Relative path. | |
5112 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
5113 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
5114 | esac | |
a3acbf46 | 5115 | |
282c0e47 NN |
5116 | case "$ac_given_INSTALL" in |
5117 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
5118 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
5119 | esac | |
a3acbf46 | 5120 | |
bafecfd6 NN |
5121 | echo creating "$ac_file" |
5122 | rm -f "$ac_file" | |
5123 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
5124 | case "$ac_file" in | |
5125 | *Makefile*) ac_comsub="1i\\ | |
5126 | # $configure_input" ;; | |
5127 | *) ac_comsub= ;; | |
5128 | esac | |
a3acbf46 | 5129 | |
bafecfd6 NN |
5130 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
5131 | sed -e "$ac_comsub | |
5132 | s%@configure_input@%$configure_input%g | |
5133 | s%@srcdir@%$srcdir%g | |
5134 | s%@top_srcdir@%$top_srcdir%g | |
282c0e47 | 5135 | s%@INSTALL@%$INSTALL%g |
bafecfd6 NN |
5136 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
5137 | fi; done | |
5138 | rm -f conftest.s* | |
a3acbf46 | 5139 | |
bafecfd6 NN |
5140 | EOF |
5141 | cat >> $CONFIG_STATUS <<EOF | |
a3acbf46 | 5142 | |
bafecfd6 NN |
5143 | EOF |
5144 | cat >> $CONFIG_STATUS <<\EOF | |
a3acbf46 RH |
5145 | |
5146 | exit 0 | |
bafecfd6 NN |
5147 | EOF |
5148 | chmod +x $CONFIG_STATUS | |
5149 | rm -fr confdefs* $ac_clean_files | |
5150 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
a3acbf46 | 5151 |