1 | #! /bin/sh |
---|
2 | |
---|
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: |
---|
14 | ac_help="$ac_help |
---|
15 | --with-target-subdir=DIR" |
---|
16 | ac_help="$ac_help |
---|
17 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
18 | (and sometimes confusing) to the casual installer" |
---|
19 | ac_help="$ac_help |
---|
20 | --enable-multiprocessing enable multiprocessing interface" |
---|
21 | ac_help="$ac_help |
---|
22 | --enable-networking enable TCP/IP stack" |
---|
23 | ac_help="$ac_help |
---|
24 | --enable-rdbg enable remote debugger" |
---|
25 | ac_help="$ac_help |
---|
26 | --enable-cxx enable C++ support, |
---|
27 | and build the rtems++ library" |
---|
28 | ac_help="$ac_help |
---|
29 | --enable-gcc28 enable use of gcc 2.8.x features" |
---|
30 | ac_help="$ac_help |
---|
31 | --enable-libcdir=directory set the directory for the C library" |
---|
32 | ac_help="$ac_help |
---|
33 | --enable-bare-cpu-cflags specify a particular cpu cflag |
---|
34 | (bare bsp specific)" |
---|
35 | ac_help="$ac_help |
---|
36 | --enable-bare-cpu-model specify a particular cpu model |
---|
37 | (bare bsp specific)" |
---|
38 | ac_help="$ac_help |
---|
39 | \ |
---|
40 | --enable-hwapi enable hardware API library" |
---|
41 | ac_help="$ac_help |
---|
42 | \ |
---|
43 | --enable-hwapi enable hardware API library" |
---|
44 | |
---|
45 | # Initialize some variables set by options. |
---|
46 | # The variables have the same names as the options, with |
---|
47 | # dashes changed to underlines. |
---|
48 | build=NONE |
---|
49 | cache_file=./config.cache |
---|
50 | exec_prefix=NONE |
---|
51 | host=NONE |
---|
52 | no_create= |
---|
53 | nonopt=NONE |
---|
54 | no_recursion= |
---|
55 | prefix=NONE |
---|
56 | program_prefix=NONE |
---|
57 | program_suffix=NONE |
---|
58 | program_transform_name=s,x,x, |
---|
59 | silent= |
---|
60 | site= |
---|
61 | srcdir= |
---|
62 | target=NONE |
---|
63 | verbose= |
---|
64 | x_includes=NONE |
---|
65 | x_libraries=NONE |
---|
66 | bindir='${exec_prefix}/bin' |
---|
67 | sbindir='${exec_prefix}/sbin' |
---|
68 | libexecdir='${exec_prefix}/libexec' |
---|
69 | datadir='${prefix}/share' |
---|
70 | sysconfdir='${prefix}/etc' |
---|
71 | sharedstatedir='${prefix}/com' |
---|
72 | localstatedir='${prefix}/var' |
---|
73 | libdir='${exec_prefix}/lib' |
---|
74 | includedir='${prefix}/include' |
---|
75 | oldincludedir='/usr/include' |
---|
76 | infodir='${prefix}/info' |
---|
77 | mandir='${prefix}/man' |
---|
78 | |
---|
79 | # Initialize some other variables. |
---|
80 | subdirs= |
---|
81 | MFLAGS= MAKEFLAGS= |
---|
82 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
83 | # Maximum number of lines to put in a shell here document. |
---|
84 | ac_max_here_lines=12 |
---|
85 | |
---|
86 | ac_prev= |
---|
87 | for ac_option |
---|
88 | do |
---|
89 | |
---|
90 | # If the previous option needs an argument, assign it. |
---|
91 | if test -n "$ac_prev"; then |
---|
92 | eval "$ac_prev=\$ac_option" |
---|
93 | ac_prev= |
---|
94 | continue |
---|
95 | fi |
---|
96 | |
---|
97 | case "$ac_option" in |
---|
98 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
99 | *) ac_optarg= ;; |
---|
100 | esac |
---|
101 | |
---|
102 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
103 | |
---|
104 | case "$ac_option" in |
---|
105 | |
---|
106 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
107 | ac_prev=bindir ;; |
---|
108 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
109 | bindir="$ac_optarg" ;; |
---|
110 | |
---|
111 | -build | --build | --buil | --bui | --bu) |
---|
112 | ac_prev=build ;; |
---|
113 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
114 | build="$ac_optarg" ;; |
---|
115 | |
---|
116 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
117 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
118 | ac_prev=cache_file ;; |
---|
119 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
120 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
121 | cache_file="$ac_optarg" ;; |
---|
122 | |
---|
123 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
124 | ac_prev=datadir ;; |
---|
125 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
126 | | --da=*) |
---|
127 | datadir="$ac_optarg" ;; |
---|
128 | |
---|
129 | -disable-* | --disable-*) |
---|
130 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
131 | # Reject names that are not valid shell variable names. |
---|
132 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
134 | fi |
---|
135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
136 | eval "enable_${ac_feature}=no" ;; |
---|
137 | |
---|
138 | -enable-* | --enable-*) |
---|
139 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
140 | # Reject names that are not valid shell variable names. |
---|
141 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
142 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
143 | fi |
---|
144 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
145 | case "$ac_option" in |
---|
146 | *=*) ;; |
---|
147 | *) ac_optarg=yes ;; |
---|
148 | esac |
---|
149 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
150 | |
---|
151 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
152 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
153 | | --exec | --exe | --ex) |
---|
154 | ac_prev=exec_prefix ;; |
---|
155 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
156 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
157 | | --exec=* | --exe=* | --ex=*) |
---|
158 | exec_prefix="$ac_optarg" ;; |
---|
159 | |
---|
160 | -gas | --gas | --ga | --g) |
---|
161 | # Obsolete; use --with-gas. |
---|
162 | with_gas=yes ;; |
---|
163 | |
---|
164 | -help | --help | --hel | --he) |
---|
165 | # Omit some internal or obsolete options to make the list less imposing. |
---|
166 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
167 | cat << EOF |
---|
168 | Usage: configure [options] [host] |
---|
169 | Options: [defaults in brackets after descriptions] |
---|
170 | Configuration: |
---|
171 | --cache-file=FILE cache test results in FILE |
---|
172 | --help print this message |
---|
173 | --no-create do not create output files |
---|
174 | --quiet, --silent do not print \`checking...' messages |
---|
175 | --version print the version of autoconf that created configure |
---|
176 | Directory and file names: |
---|
177 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
178 | [$ac_default_prefix] |
---|
179 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
180 | [same as prefix] |
---|
181 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
182 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
183 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
184 | --datadir=DIR read-only architecture-independent data in DIR |
---|
185 | [PREFIX/share] |
---|
186 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
187 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
188 | [PREFIX/com] |
---|
189 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
190 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
191 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
192 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
193 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
194 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
195 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
196 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
197 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
198 | --program-transform-name=PROGRAM |
---|
199 | run sed PROGRAM on installed program names |
---|
200 | EOF |
---|
201 | cat << EOF |
---|
202 | Host type: |
---|
203 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
204 | --host=HOST configure for HOST [guessed] |
---|
205 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
206 | Features and packages: |
---|
207 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
208 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
209 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
210 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
211 | --x-includes=DIR X include files are in DIR |
---|
212 | --x-libraries=DIR X library files are in DIR |
---|
213 | EOF |
---|
214 | if test -n "$ac_help"; then |
---|
215 | echo "--enable and --with options recognized:$ac_help" |
---|
216 | fi |
---|
217 | exit 0 ;; |
---|
218 | |
---|
219 | -host | --host | --hos | --ho) |
---|
220 | ac_prev=host ;; |
---|
221 | -host=* | --host=* | --hos=* | --ho=*) |
---|
222 | host="$ac_optarg" ;; |
---|
223 | |
---|
224 | -includedir | --includedir | --includedi | --included | --include \ |
---|
225 | | --includ | --inclu | --incl | --inc) |
---|
226 | ac_prev=includedir ;; |
---|
227 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
228 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
229 | includedir="$ac_optarg" ;; |
---|
230 | |
---|
231 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
232 | ac_prev=infodir ;; |
---|
233 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
234 | infodir="$ac_optarg" ;; |
---|
235 | |
---|
236 | -libdir | --libdir | --libdi | --libd) |
---|
237 | ac_prev=libdir ;; |
---|
238 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
239 | libdir="$ac_optarg" ;; |
---|
240 | |
---|
241 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
242 | | --libexe | --libex | --libe) |
---|
243 | ac_prev=libexecdir ;; |
---|
244 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
245 | | --libexe=* | --libex=* | --libe=*) |
---|
246 | libexecdir="$ac_optarg" ;; |
---|
247 | |
---|
248 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
249 | | --localstate | --localstat | --localsta | --localst \ |
---|
250 | | --locals | --local | --loca | --loc | --lo) |
---|
251 | ac_prev=localstatedir ;; |
---|
252 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
253 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
254 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
255 | localstatedir="$ac_optarg" ;; |
---|
256 | |
---|
257 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
258 | ac_prev=mandir ;; |
---|
259 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
260 | mandir="$ac_optarg" ;; |
---|
261 | |
---|
262 | -nfp | --nfp | --nf) |
---|
263 | # Obsolete; use --without-fp. |
---|
264 | with_fp=no ;; |
---|
265 | |
---|
266 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
267 | | --no-cr | --no-c) |
---|
268 | no_create=yes ;; |
---|
269 | |
---|
270 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
271 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
272 | no_recursion=yes ;; |
---|
273 | |
---|
274 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
275 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
276 | | --oldin | --oldi | --old | --ol | --o) |
---|
277 | ac_prev=oldincludedir ;; |
---|
278 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
279 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
280 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
281 | oldincludedir="$ac_optarg" ;; |
---|
282 | |
---|
283 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
284 | ac_prev=prefix ;; |
---|
285 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
286 | prefix="$ac_optarg" ;; |
---|
287 | |
---|
288 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
289 | | --program-pre | --program-pr | --program-p) |
---|
290 | ac_prev=program_prefix ;; |
---|
291 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
292 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
293 | program_prefix="$ac_optarg" ;; |
---|
294 | |
---|
295 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
296 | | --program-suf | --program-su | --program-s) |
---|
297 | ac_prev=program_suffix ;; |
---|
298 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
299 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
300 | program_suffix="$ac_optarg" ;; |
---|
301 | |
---|
302 | -program-transform-name | --program-transform-name \ |
---|
303 | | --program-transform-nam | --program-transform-na \ |
---|
304 | | --program-transform-n | --program-transform- \ |
---|
305 | | --program-transform | --program-transfor \ |
---|
306 | | --program-transfo | --program-transf \ |
---|
307 | | --program-trans | --program-tran \ |
---|
308 | | --progr-tra | --program-tr | --program-t) |
---|
309 | ac_prev=program_transform_name ;; |
---|
310 | -program-transform-name=* | --program-transform-name=* \ |
---|
311 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
312 | | --program-transform-n=* | --program-transform-=* \ |
---|
313 | | --program-transform=* | --program-transfor=* \ |
---|
314 | | --program-transfo=* | --program-transf=* \ |
---|
315 | | --program-trans=* | --program-tran=* \ |
---|
316 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
317 | program_transform_name="$ac_optarg" ;; |
---|
318 | |
---|
319 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
320 | | -silent | --silent | --silen | --sile | --sil) |
---|
321 | silent=yes ;; |
---|
322 | |
---|
323 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
324 | ac_prev=sbindir ;; |
---|
325 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
326 | | --sbi=* | --sb=*) |
---|
327 | sbindir="$ac_optarg" ;; |
---|
328 | |
---|
329 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
330 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
331 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
332 | | --sha | --sh) |
---|
333 | ac_prev=sharedstatedir ;; |
---|
334 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
335 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
336 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
337 | | --sha=* | --sh=*) |
---|
338 | sharedstatedir="$ac_optarg" ;; |
---|
339 | |
---|
340 | -site | --site | --sit) |
---|
341 | ac_prev=site ;; |
---|
342 | -site=* | --site=* | --sit=*) |
---|
343 | site="$ac_optarg" ;; |
---|
344 | |
---|
345 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
346 | ac_prev=srcdir ;; |
---|
347 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
348 | srcdir="$ac_optarg" ;; |
---|
349 | |
---|
350 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
351 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
352 | ac_prev=sysconfdir ;; |
---|
353 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
354 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
355 | sysconfdir="$ac_optarg" ;; |
---|
356 | |
---|
357 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
358 | ac_prev=target ;; |
---|
359 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
360 | target="$ac_optarg" ;; |
---|
361 | |
---|
362 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
363 | verbose=yes ;; |
---|
364 | |
---|
365 | -version | --version | --versio | --versi | --vers) |
---|
366 | echo "configure generated by autoconf version 2.13" |
---|
367 | exit 0 ;; |
---|
368 | |
---|
369 | -with-* | --with-*) |
---|
370 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
371 | # Reject names that are not valid shell variable names. |
---|
372 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
373 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
374 | fi |
---|
375 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
376 | case "$ac_option" in |
---|
377 | *=*) ;; |
---|
378 | *) ac_optarg=yes ;; |
---|
379 | esac |
---|
380 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
381 | |
---|
382 | -without-* | --without-*) |
---|
383 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
384 | # Reject names that are not valid shell variable names. |
---|
385 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
386 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
387 | fi |
---|
388 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
389 | eval "with_${ac_package}=no" ;; |
---|
390 | |
---|
391 | --x) |
---|
392 | # Obsolete; use --with-x. |
---|
393 | with_x=yes ;; |
---|
394 | |
---|
395 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
396 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
397 | ac_prev=x_includes ;; |
---|
398 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
399 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
400 | x_includes="$ac_optarg" ;; |
---|
401 | |
---|
402 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
403 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
404 | ac_prev=x_libraries ;; |
---|
405 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
406 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
407 | x_libraries="$ac_optarg" ;; |
---|
408 | |
---|
409 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
410 | ;; |
---|
411 | |
---|
412 | *) |
---|
413 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
414 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
415 | fi |
---|
416 | if test "x$nonopt" != xNONE; then |
---|
417 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
418 | fi |
---|
419 | nonopt="$ac_option" |
---|
420 | ;; |
---|
421 | |
---|
422 | esac |
---|
423 | done |
---|
424 | |
---|
425 | if test -n "$ac_prev"; then |
---|
426 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
427 | fi |
---|
428 | |
---|
429 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
430 | |
---|
431 | # File descriptor usage: |
---|
432 | # 0 standard input |
---|
433 | # 1 file creation |
---|
434 | # 2 errors and warnings |
---|
435 | # 3 some systems may open it to /dev/tty |
---|
436 | # 4 used on the Kubota Titan |
---|
437 | # 6 checking for... messages and results |
---|
438 | # 5 compiler messages saved in config.log |
---|
439 | if test "$silent" = yes; then |
---|
440 | exec 6>/dev/null |
---|
441 | else |
---|
442 | exec 6>&1 |
---|
443 | fi |
---|
444 | exec 5>./config.log |
---|
445 | |
---|
446 | echo "\ |
---|
447 | This file contains any messages produced by compilers while |
---|
448 | running configure, to aid debugging if configure makes a mistake. |
---|
449 | " 1>&5 |
---|
450 | |
---|
451 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
452 | # Also quote any args containing shell metacharacters. |
---|
453 | ac_configure_args= |
---|
454 | for ac_arg |
---|
455 | do |
---|
456 | case "$ac_arg" in |
---|
457 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
458 | | --no-cr | --no-c) ;; |
---|
459 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
460 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
461 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
462 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
463 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
464 | esac |
---|
465 | done |
---|
466 | |
---|
467 | # NLS nuisances. |
---|
468 | # Only set these to C if already set. These must not be set unconditionally |
---|
469 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
470 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
471 | # Non-C LC_CTYPE values break the ctype check. |
---|
472 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
473 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
474 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
475 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
476 | |
---|
477 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
478 | rm -rf conftest* confdefs.h |
---|
479 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
480 | echo > confdefs.h |
---|
481 | |
---|
482 | # A filename unique to this package, relative to the directory that |
---|
483 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
484 | ac_unique_file=libbsp |
---|
485 | |
---|
486 | # Find the source files, if location was not specified. |
---|
487 | if test -z "$srcdir"; then |
---|
488 | ac_srcdir_defaulted=yes |
---|
489 | # Try the directory containing this script, then its parent. |
---|
490 | ac_prog=$0 |
---|
491 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
492 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
493 | srcdir=$ac_confdir |
---|
494 | if test ! -r $srcdir/$ac_unique_file; then |
---|
495 | srcdir=.. |
---|
496 | fi |
---|
497 | else |
---|
498 | ac_srcdir_defaulted=no |
---|
499 | fi |
---|
500 | if test ! -r $srcdir/$ac_unique_file; then |
---|
501 | if test "$ac_srcdir_defaulted" = yes; then |
---|
502 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
503 | else |
---|
504 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
505 | fi |
---|
506 | fi |
---|
507 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
508 | |
---|
509 | # Prefer explicitly selected file to automatically selected ones. |
---|
510 | if test -z "$CONFIG_SITE"; then |
---|
511 | if test "x$prefix" != xNONE; then |
---|
512 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
513 | else |
---|
514 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
515 | fi |
---|
516 | fi |
---|
517 | for ac_site_file in $CONFIG_SITE; do |
---|
518 | if test -r "$ac_site_file"; then |
---|
519 | echo "loading site script $ac_site_file" |
---|
520 | . "$ac_site_file" |
---|
521 | fi |
---|
522 | done |
---|
523 | |
---|
524 | if test -r "$cache_file"; then |
---|
525 | echo "loading cache $cache_file" |
---|
526 | . $cache_file |
---|
527 | else |
---|
528 | echo "creating cache $cache_file" |
---|
529 | > $cache_file |
---|
530 | fi |
---|
531 | |
---|
532 | ac_ext=c |
---|
533 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
534 | ac_cpp='$CPP $CPPFLAGS' |
---|
535 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
536 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
537 | cross_compiling=$ac_cv_prog_cc_cross |
---|
538 | |
---|
539 | ac_exeext= |
---|
540 | ac_objext=o |
---|
541 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
542 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
543 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
544 | ac_n= ac_c=' |
---|
545 | ' ac_t=' ' |
---|
546 | else |
---|
547 | ac_n=-n ac_c= ac_t= |
---|
548 | fi |
---|
549 | else |
---|
550 | ac_n= ac_c='\c' ac_t= |
---|
551 | fi |
---|
552 | |
---|
553 | |
---|
554 | # Check whether --with-target-subdir or --without-target-subdir was given. |
---|
555 | if test "${with_target_subdir+set}" = set; then |
---|
556 | withval="$with_target_subdir" |
---|
557 | TARGET_SUBDIR="$withval" |
---|
558 | else |
---|
559 | TARGET_SUBDIR="." |
---|
560 | fi |
---|
561 | |
---|
562 | |
---|
563 | RTEMS_TOPdir="../../.."; |
---|
564 | |
---|
565 | |
---|
566 | echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6 |
---|
567 | echo "configure:568: checking for RTEMS Version" >&5 |
---|
568 | if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then |
---|
569 | RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \ |
---|
570 | sed -e 's%RTEMS[ ]*Version[ ]*\(.*\)[ ]*%\1%g'` |
---|
571 | else |
---|
572 | { echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; } |
---|
573 | fi |
---|
574 | if test -z "$RTEMS_VERSION"; then |
---|
575 | { echo "configure: error: Unable to determine version" 1>&2; exit 1; } |
---|
576 | fi |
---|
577 | echo "$ac_t""$RTEMS_VERSION" 1>&6 |
---|
578 | |
---|
579 | ac_aux_dir= |
---|
580 | for ac_dir in ../../.. $srcdir/../../..; do |
---|
581 | if test -f $ac_dir/install-sh; then |
---|
582 | ac_aux_dir=$ac_dir |
---|
583 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
584 | break |
---|
585 | elif test -f $ac_dir/install.sh; then |
---|
586 | ac_aux_dir=$ac_dir |
---|
587 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
588 | break |
---|
589 | fi |
---|
590 | done |
---|
591 | if test -z "$ac_aux_dir"; then |
---|
592 | { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; } |
---|
593 | fi |
---|
594 | ac_config_guess=$ac_aux_dir/config.guess |
---|
595 | ac_config_sub=$ac_aux_dir/config.sub |
---|
596 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
597 | |
---|
598 | |
---|
599 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
600 | echo "configure:601: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
601 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
602 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
603 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
604 | else |
---|
605 | cat > conftestmake <<\EOF |
---|
606 | all: |
---|
607 | @echo 'ac_maketemp="${MAKE}"' |
---|
608 | EOF |
---|
609 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
610 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
611 | if test -n "$ac_maketemp"; then |
---|
612 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
613 | else |
---|
614 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
615 | fi |
---|
616 | rm -f conftestmake |
---|
617 | fi |
---|
618 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
619 | echo "$ac_t""yes" 1>&6 |
---|
620 | SET_MAKE= |
---|
621 | else |
---|
622 | echo "$ac_t""no" 1>&6 |
---|
623 | SET_MAKE="MAKE=${MAKE-make}" |
---|
624 | fi |
---|
625 | |
---|
626 | |
---|
627 | |
---|
628 | # Do some error checking and defaulting for the host and target type. |
---|
629 | # The inputs are: |
---|
630 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
---|
631 | # |
---|
632 | # The rules are: |
---|
633 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
---|
634 | # same time. |
---|
635 | # 2. Host defaults to nonopt. |
---|
636 | # 3. If nonopt is not specified, then host defaults to the current host, |
---|
637 | # as determined by config.guess. |
---|
638 | # 4. Target and build default to nonopt. |
---|
639 | # 5. If nonopt is not specified, then target and build default to host. |
---|
640 | |
---|
641 | # The aliases save the names the user supplied, while $host etc. |
---|
642 | # will get canonicalized. |
---|
643 | case $host---$target---$nonopt in |
---|
644 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
---|
645 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
---|
646 | esac |
---|
647 | |
---|
648 | |
---|
649 | # Make sure we can run config.sub. |
---|
650 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
651 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
652 | fi |
---|
653 | |
---|
654 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
655 | echo "configure:656: checking host system type" >&5 |
---|
656 | |
---|
657 | host_alias=$host |
---|
658 | case "$host_alias" in |
---|
659 | NONE) |
---|
660 | case $nonopt in |
---|
661 | NONE) |
---|
662 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
663 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
664 | fi ;; |
---|
665 | *) host_alias=$nonopt ;; |
---|
666 | esac ;; |
---|
667 | esac |
---|
668 | |
---|
669 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
670 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
671 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
672 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
673 | echo "$ac_t""$host" 1>&6 |
---|
674 | |
---|
675 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
---|
676 | echo "configure:677: checking target system type" >&5 |
---|
677 | |
---|
678 | target_alias=$target |
---|
679 | case "$target_alias" in |
---|
680 | NONE) |
---|
681 | case $nonopt in |
---|
682 | NONE) target_alias=$host_alias ;; |
---|
683 | *) target_alias=$nonopt ;; |
---|
684 | esac ;; |
---|
685 | esac |
---|
686 | |
---|
687 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
---|
688 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
689 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
690 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
691 | echo "$ac_t""$target" 1>&6 |
---|
692 | |
---|
693 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
694 | echo "configure:695: checking build system type" >&5 |
---|
695 | |
---|
696 | build_alias=$build |
---|
697 | case "$build_alias" in |
---|
698 | NONE) |
---|
699 | case $nonopt in |
---|
700 | NONE) build_alias=$host_alias ;; |
---|
701 | *) build_alias=$nonopt ;; |
---|
702 | esac ;; |
---|
703 | esac |
---|
704 | |
---|
705 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
706 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
707 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
708 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
709 | echo "$ac_t""$build" 1>&6 |
---|
710 | |
---|
711 | test "$host_alias" != "$target_alias" && |
---|
712 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
713 | NONENONEs,x,x, && |
---|
714 | program_prefix=${target_alias}- |
---|
715 | |
---|
716 | echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6 |
---|
717 | echo "configure:718: checking rtems target cpu" >&5 |
---|
718 | case "${target}" in |
---|
719 | # hpux unix port should go here |
---|
720 | i[3456]86-go32-rtems*) |
---|
721 | RTEMS_CPU=i386 |
---|
722 | ;; |
---|
723 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
724 | RTEMS_CPU=unix |
---|
725 | ;; |
---|
726 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
727 | RTEMS_CPU=unix |
---|
728 | ;; |
---|
729 | no_cpu-*rtems*) |
---|
730 | RTEMS_CPU=no_cpu |
---|
731 | ;; |
---|
732 | sparc-sun-solaris*) # unix "simulator" port |
---|
733 | RTEMS_CPU=unix |
---|
734 | ;; |
---|
735 | *) |
---|
736 | RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'` |
---|
737 | ;; |
---|
738 | esac |
---|
739 | |
---|
740 | echo "$ac_t""$RTEMS_CPU" 1>&6 |
---|
741 | |
---|
742 | |
---|
743 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
744 | echo "configure:745: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
745 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
746 | if test "${enable_maintainer_mode+set}" = set; then |
---|
747 | enableval="$enable_maintainer_mode" |
---|
748 | USE_MAINTAINER_MODE=$enableval |
---|
749 | else |
---|
750 | USE_MAINTAINER_MODE=no |
---|
751 | fi |
---|
752 | |
---|
753 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
754 | |
---|
755 | |
---|
756 | if test $USE_MAINTAINER_MODE = yes; then |
---|
757 | MAINTAINER_MODE_TRUE= |
---|
758 | MAINTAINER_MODE_FALSE='#' |
---|
759 | else |
---|
760 | MAINTAINER_MODE_TRUE='#' |
---|
761 | MAINTAINER_MODE_FALSE= |
---|
762 | fi |
---|
763 | MAINT=$MAINTAINER_MODE_TRUE |
---|
764 | |
---|
765 | |
---|
766 | |
---|
767 | |
---|
768 | # Check whether --enable-multiprocessing or --disable-multiprocessing was given. |
---|
769 | if test "${enable_multiprocessing+set}" = set; then |
---|
770 | enableval="$enable_multiprocessing" |
---|
771 | case "${enableval}" in |
---|
772 | yes) RTEMS_HAS_MULTIPROCESSING=yes ;; |
---|
773 | no) RTEMS_HAS_MULTIPROCESSING=no ;; |
---|
774 | *) { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;; |
---|
775 | esac |
---|
776 | else |
---|
777 | RTEMS_HAS_MULTIPROCESSING=no |
---|
778 | fi |
---|
779 | |
---|
780 | |
---|
781 | |
---|
782 | # Check whether --enable-networking or --disable-networking was given. |
---|
783 | if test "${enable_networking+set}" = set; then |
---|
784 | enableval="$enable_networking" |
---|
785 | case "${enableval}" in |
---|
786 | yes) RTEMS_HAS_NETWORKING=yes ;; |
---|
787 | no) RTEMS_HAS_NETWORKING=no ;; |
---|
788 | *) { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;; |
---|
789 | esac |
---|
790 | else |
---|
791 | RTEMS_HAS_NETWORKING=yes |
---|
792 | fi |
---|
793 | |
---|
794 | |
---|
795 | |
---|
796 | # Check whether --enable-rdbg or --disable-rdbg was given. |
---|
797 | if test "${enable_rdbg+set}" = set; then |
---|
798 | enableval="$enable_rdbg" |
---|
799 | case "${enableval}" in |
---|
800 | yes) RTEMS_HAS_RDBG=yes ;; |
---|
801 | no) RTEMS_HAS_RDBG=no ;; |
---|
802 | *) { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;; |
---|
803 | esac |
---|
804 | else |
---|
805 | RTEMS_HAS_RDBG=no |
---|
806 | fi |
---|
807 | |
---|
808 | |
---|
809 | |
---|
810 | # Check whether --enable-cxx or --disable-cxx was given. |
---|
811 | if test "${enable_cxx+set}" = set; then |
---|
812 | enableval="$enable_cxx" |
---|
813 | case "${enableval}" in |
---|
814 | yes) RTEMS_HAS_CPLUSPLUS=yes ;; |
---|
815 | no) RTEMS_HAS_CPLUSPLUS=no ;; |
---|
816 | *) { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;; |
---|
817 | esac |
---|
818 | else |
---|
819 | RTEMS_HAS_CPLUSPLUS=no |
---|
820 | fi |
---|
821 | |
---|
822 | |
---|
823 | |
---|
824 | # Check whether --enable-gcc28 or --disable-gcc28 was given. |
---|
825 | if test "${enable_gcc28+set}" = set; then |
---|
826 | enableval="$enable_gcc28" |
---|
827 | case "${enableval}" in |
---|
828 | yes) RTEMS_USE_GCC272=no ;; |
---|
829 | no) RTEMS_USE_GCC272=yes ;; |
---|
830 | *) { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;; |
---|
831 | esac |
---|
832 | else |
---|
833 | RTEMS_USE_GCC272=no |
---|
834 | fi |
---|
835 | |
---|
836 | |
---|
837 | |
---|
838 | # Check whether --enable-libcdir or --disable-libcdir was given. |
---|
839 | if test "${enable_libcdir+set}" = set; then |
---|
840 | enableval="$enable_libcdir" |
---|
841 | RTEMS_LIBC_DIR="${enableval}" ; \ |
---|
842 | test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } |
---|
843 | fi |
---|
844 | |
---|
845 | |
---|
846 | |
---|
847 | # Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given. |
---|
848 | if test "${enable_bare_cpu_cflags+set}" = set; then |
---|
849 | enableval="$enable_bare_cpu_cflags" |
---|
850 | case "${enableval}" in |
---|
851 | no) BARE_CPU_CFLAGS="" ;; |
---|
852 | *) BARE_CPU_CFLAGS="${enableval}" ;; |
---|
853 | esac |
---|
854 | else |
---|
855 | BARE_CPU_CFLAGS="" |
---|
856 | fi |
---|
857 | |
---|
858 | |
---|
859 | # Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given. |
---|
860 | if test "${enable_bare_cpu_model+set}" = set; then |
---|
861 | enableval="$enable_bare_cpu_model" |
---|
862 | case "${enableval}" in |
---|
863 | no) BARE_CPU_MODEL="" ;; |
---|
864 | *) BARE_CPU_MODEL="${enableval}" ;; |
---|
865 | esac |
---|
866 | else |
---|
867 | BARE_CPU_MODEL="" |
---|
868 | fi |
---|
869 | |
---|
870 | |
---|
871 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
872 | if test "${enable_hwapi+set}" = set; then |
---|
873 | enableval="$enable_hwapi" |
---|
874 | case "${enableval}" in |
---|
875 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
876 | no) RTEMS_HAS_HWAPI=no ;; |
---|
877 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
878 | esac |
---|
879 | else |
---|
880 | RTEMS_HAS_HWAPI=no |
---|
881 | fi |
---|
882 | |
---|
883 | |
---|
884 | |
---|
885 | echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6 |
---|
886 | echo "configure:887: checking for RTEMS_BSP" >&5 |
---|
887 | if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then |
---|
888 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
889 | else |
---|
890 | test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP"; |
---|
891 | |
---|
892 | fi |
---|
893 | if test -z "$rtems_cv_RTEMS_BSP"; then |
---|
894 | { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; } |
---|
895 | fi |
---|
896 | RTEMS_BSP="$rtems_cv_RTEMS_BSP" |
---|
897 | echo "$ac_t""${RTEMS_BSP}" 1>&6 |
---|
898 | |
---|
899 | |
---|
900 | |
---|
901 | # Find a good install program. We prefer a C program (faster), |
---|
902 | # so one script is as good as another. But avoid the broken or |
---|
903 | # incompatible versions: |
---|
904 | # SysV /etc/install, /usr/sbin/install |
---|
905 | # SunOS /usr/etc/install |
---|
906 | # IRIX /sbin/install |
---|
907 | # AIX /bin/install |
---|
908 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
909 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
910 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
911 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
912 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
913 | echo "configure:914: checking for a BSD compatible install" >&5 |
---|
914 | if test -z "$INSTALL"; then |
---|
915 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
916 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
917 | else |
---|
918 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
919 | for ac_dir in $PATH; do |
---|
920 | # Account for people who put trailing slashes in PATH elements. |
---|
921 | case "$ac_dir/" in |
---|
922 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
923 | *) |
---|
924 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
925 | # Don't use installbsd from OSF since it installs stuff as root |
---|
926 | # by default. |
---|
927 | for ac_prog in ginstall scoinst install; do |
---|
928 | if test -f $ac_dir/$ac_prog; then |
---|
929 | if test $ac_prog = install && |
---|
930 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
931 | # AIX install. It has an incompatible calling convention. |
---|
932 | : |
---|
933 | else |
---|
934 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
935 | break 2 |
---|
936 | fi |
---|
937 | fi |
---|
938 | done |
---|
939 | ;; |
---|
940 | esac |
---|
941 | done |
---|
942 | IFS="$ac_save_IFS" |
---|
943 | |
---|
944 | fi |
---|
945 | if test "${ac_cv_path_install+set}" = set; then |
---|
946 | INSTALL="$ac_cv_path_install" |
---|
947 | else |
---|
948 | # As a last resort, use the slow shell script. We don't cache a |
---|
949 | # path for INSTALL within a source directory, because that will |
---|
950 | # break other packages using the cache if that directory is |
---|
951 | # removed, or if the path is relative. |
---|
952 | INSTALL="$ac_install_sh" |
---|
953 | fi |
---|
954 | fi |
---|
955 | echo "$ac_t""$INSTALL" 1>&6 |
---|
956 | |
---|
957 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
958 | # It thinks the first close brace ends the variable substitution. |
---|
959 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
960 | |
---|
961 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
962 | |
---|
963 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
964 | |
---|
965 | |
---|
966 | |
---|
967 | |
---|
968 | # Is this a supported CPU? |
---|
969 | echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6 |
---|
970 | echo "configure:971: checking if cpu $RTEMS_CPU is supported" >&5 |
---|
971 | if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then |
---|
972 | echo "$ac_t""yes" 1>&6 |
---|
973 | else |
---|
974 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
975 | fi |
---|
976 | |
---|
977 | |
---|
978 | RTEMS_HOST=$host_os |
---|
979 | case "${target}" in |
---|
980 | # hpux unix port should go here |
---|
981 | i[3456]86-pc-linux*) # unix "simulator" port |
---|
982 | RTEMS_HOST=Linux |
---|
983 | ;; |
---|
984 | i[3456]86-*freebsd2*) # unix "simulator" port |
---|
985 | RTEMS_HOST=FreeBSD |
---|
986 | ;; |
---|
987 | sparc-sun-solaris*) # unix "simulator" port |
---|
988 | RTEMS_HOST=Solaris |
---|
989 | ;; |
---|
990 | *) |
---|
991 | ;; |
---|
992 | esac |
---|
993 | |
---|
994 | |
---|
995 | |
---|
996 | |
---|
997 | if test "$TARGET_SUBDIR" = "." ; then |
---|
998 | PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)'; |
---|
999 | else |
---|
1000 | PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)' |
---|
1001 | fi |
---|
1002 | |
---|
1003 | |
---|
1004 | RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP |
---|
1005 | |
---|
1006 | |
---|
1007 | INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change" |
---|
1008 | |
---|
1009 | |
---|
1010 | PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex" |
---|
1011 | |
---|
1012 | |
---|
1013 | |
---|
1014 | |
---|
1015 | if [ "${program_prefix}" = "NONE" ] ; then |
---|
1016 | if [ "${target}" = "${host}" ] ; then |
---|
1017 | program_prefix= |
---|
1018 | else |
---|
1019 | program_prefix=${target}- |
---|
1020 | fi |
---|
1021 | fi |
---|
1022 | |
---|
1023 | |
---|
1024 | |
---|
1025 | |
---|
1026 | for ac_prog in "$program_prefix"gcc "$program_prefix"cc |
---|
1027 | do |
---|
1028 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
1029 | set dummy $ac_prog; ac_word=$2 |
---|
1030 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1031 | echo "configure:1032: checking for $ac_word" >&5 |
---|
1032 | if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then |
---|
1033 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1034 | else |
---|
1035 | case "$CC_FOR_TARGET" in |
---|
1036 | /*) |
---|
1037 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path. |
---|
1038 | ;; |
---|
1039 | ?:/*) |
---|
1040 | ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1041 | ;; |
---|
1042 | *) |
---|
1043 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1044 | ac_dummy="$PATH" |
---|
1045 | for ac_dir in $ac_dummy; do |
---|
1046 | test -z "$ac_dir" && ac_dir=. |
---|
1047 | if test -f $ac_dir/$ac_word; then |
---|
1048 | ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word" |
---|
1049 | break |
---|
1050 | fi |
---|
1051 | done |
---|
1052 | IFS="$ac_save_ifs" |
---|
1053 | ;; |
---|
1054 | esac |
---|
1055 | fi |
---|
1056 | CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET" |
---|
1057 | if test -n "$CC_FOR_TARGET"; then |
---|
1058 | echo "$ac_t""$CC_FOR_TARGET" 1>&6 |
---|
1059 | else |
---|
1060 | echo "$ac_t""no" 1>&6 |
---|
1061 | fi |
---|
1062 | |
---|
1063 | test -n "$CC_FOR_TARGET" && break |
---|
1064 | done |
---|
1065 | |
---|
1066 | test -z "$CC_FOR_TARGET" \ |
---|
1067 | && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
1068 | |
---|
1069 | rtems_save_CC=$CC |
---|
1070 | rtems_save_CFLAGS=$CFLAGS |
---|
1071 | |
---|
1072 | CC=$CC_FOR_TARGET |
---|
1073 | |
---|
1074 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
1075 | echo "configure:1076: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
1076 | |
---|
1077 | ac_ext=c |
---|
1078 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1079 | ac_cpp='$CPP $CPPFLAGS' |
---|
1080 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1081 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1082 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1083 | |
---|
1084 | cat > conftest.$ac_ext << EOF |
---|
1085 | |
---|
1086 | #line 1087 "configure" |
---|
1087 | #include "confdefs.h" |
---|
1088 | |
---|
1089 | main(){return(0);} |
---|
1090 | EOF |
---|
1091 | if { (eval echo configure:1092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
1092 | ac_cv_prog_cc_works=yes |
---|
1093 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
1094 | if (./conftest; exit) 2>/dev/null; then |
---|
1095 | ac_cv_prog_cc_cross=no |
---|
1096 | else |
---|
1097 | ac_cv_prog_cc_cross=yes |
---|
1098 | fi |
---|
1099 | else |
---|
1100 | echo "configure: failed program was:" >&5 |
---|
1101 | cat conftest.$ac_ext >&5 |
---|
1102 | ac_cv_prog_cc_works=no |
---|
1103 | fi |
---|
1104 | rm -fr conftest* |
---|
1105 | ac_ext=c |
---|
1106 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
1107 | ac_cpp='$CPP $CPPFLAGS' |
---|
1108 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
1109 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
1110 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1111 | |
---|
1112 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
1113 | if test $ac_cv_prog_cc_works = no; then |
---|
1114 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
1115 | fi |
---|
1116 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
1117 | echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
1118 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
1119 | cross_compiling=$ac_cv_prog_cc_cross |
---|
1120 | |
---|
1121 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
1122 | echo "configure:1123: checking whether we are using GNU C" >&5 |
---|
1123 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
1124 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1125 | else |
---|
1126 | cat > conftest.c <<EOF |
---|
1127 | #ifdef __GNUC__ |
---|
1128 | yes; |
---|
1129 | #endif |
---|
1130 | EOF |
---|
1131 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
1132 | ac_cv_prog_gcc=yes |
---|
1133 | else |
---|
1134 | ac_cv_prog_gcc=no |
---|
1135 | fi |
---|
1136 | fi |
---|
1137 | |
---|
1138 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
1139 | |
---|
1140 | if test $ac_cv_prog_gcc = yes; then |
---|
1141 | GCC=yes |
---|
1142 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
1143 | ac_save_CFLAGS="$CFLAGS" |
---|
1144 | CFLAGS= |
---|
1145 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
1146 | echo "configure:1147: checking whether ${CC-cc} accepts -g" >&5 |
---|
1147 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
1148 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1149 | else |
---|
1150 | echo 'void f(){}' > conftest.c |
---|
1151 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
1152 | ac_cv_prog_cc_g=yes |
---|
1153 | else |
---|
1154 | ac_cv_prog_cc_g=no |
---|
1155 | fi |
---|
1156 | rm -f conftest* |
---|
1157 | |
---|
1158 | fi |
---|
1159 | |
---|
1160 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
1161 | if test "$ac_test_CFLAGS" = set; then |
---|
1162 | CFLAGS="$ac_save_CFLAGS" |
---|
1163 | elif test $ac_cv_prog_cc_g = yes; then |
---|
1164 | CFLAGS="-g -O2" |
---|
1165 | else |
---|
1166 | CFLAGS="-O2" |
---|
1167 | fi |
---|
1168 | else |
---|
1169 | GCC= |
---|
1170 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
1171 | fi |
---|
1172 | |
---|
1173 | rtems_cv_prog_gcc=$ac_cv_prog_gcc |
---|
1174 | rtems_cv_prog_cc_g=$ac_cv_prog_cc_g |
---|
1175 | rtems_cv_prog_cc_works=$ac_cv_prog_cc_works |
---|
1176 | rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross |
---|
1177 | |
---|
1178 | CC=$rtems_save_CC |
---|
1179 | CFLAGS=$rtems_save_CFLAGS |
---|
1180 | |
---|
1181 | unset ac_cv_prog_gcc |
---|
1182 | unset ac_cv_prog_cc_g |
---|
1183 | unset ac_cv_prog_cc_works |
---|
1184 | unset ac_cv_prog_cc_cross |
---|
1185 | |
---|
1186 | |
---|
1187 | echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6 |
---|
1188 | echo "configure:1189: checking whether $CC_FOR_TARGET accepts -specs" >&5 |
---|
1189 | if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then |
---|
1190 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1191 | else |
---|
1192 | |
---|
1193 | rtems_cv_gcc_specs=no |
---|
1194 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1195 | touch confspec |
---|
1196 | echo 'void f(){}' >conftest.c |
---|
1197 | if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then |
---|
1198 | rtems_cv_gcc_specs=yes |
---|
1199 | fi |
---|
1200 | fi |
---|
1201 | rm -f confspec conftest* |
---|
1202 | |
---|
1203 | fi |
---|
1204 | |
---|
1205 | echo "$ac_t""$rtems_cv_gcc_specs" 1>&6 |
---|
1206 | |
---|
1207 | |
---|
1208 | echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6 |
---|
1209 | echo "configure:1210: checking whether $CC_FOR_TARGET accepts --pipe" >&5 |
---|
1210 | if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then |
---|
1211 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1212 | else |
---|
1213 | |
---|
1214 | rtems_cv_gcc_pipe=no |
---|
1215 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1216 | case "$host_os" in |
---|
1217 | cygwin*) |
---|
1218 | ;; |
---|
1219 | *) |
---|
1220 | echo 'void f(){}' >conftest.c |
---|
1221 | if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then |
---|
1222 | rtems_cv_gcc_pipe=yes |
---|
1223 | fi |
---|
1224 | rm -f conftest* |
---|
1225 | ;; |
---|
1226 | esac |
---|
1227 | fi |
---|
1228 | |
---|
1229 | fi |
---|
1230 | |
---|
1231 | echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6 |
---|
1232 | |
---|
1233 | if test "$RTEMS_USE_GCC272" != "yes" ; then |
---|
1234 | if test "$rtems_cv_gcc_specs" = "no"; then |
---|
1235 | echo "configure: warning: *** disabling --enable-gcc28" 1>&2 |
---|
1236 | RTEMS_USE_GCC272=yes |
---|
1237 | fi |
---|
1238 | fi |
---|
1239 | test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe" |
---|
1240 | |
---|
1241 | case $host_os in |
---|
1242 | *cygwin*) GCCSED="| sed 's%\\\\%/%g'" ;; |
---|
1243 | *) ;; |
---|
1244 | esac |
---|
1245 | |
---|
1246 | |
---|
1247 | |
---|
1248 | |
---|
1249 | echo $ac_n "checking target's ar""... $ac_c" 1>&6 |
---|
1250 | echo "configure:1251: checking target's ar" >&5 |
---|
1251 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
1252 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1253 | else |
---|
1254 | : |
---|
1255 | fi |
---|
1256 | |
---|
1257 | echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6 |
---|
1258 | |
---|
1259 | if test -n "$ac_cv_path_AR_FOR_TARGET"; then |
---|
1260 | AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET |
---|
1261 | else |
---|
1262 | if test -z "$AR_FOR_TARGET" ; then |
---|
1263 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1264 | # We are using gcc, ask it about its tool |
---|
1265 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1266 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1267 | case $host_os in |
---|
1268 | *cygwin*) |
---|
1269 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' ` |
---|
1270 | ;; |
---|
1271 | *) |
---|
1272 | AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar` |
---|
1273 | ;; |
---|
1274 | esac |
---|
1275 | |
---|
1276 | fi |
---|
1277 | else |
---|
1278 | # The user set an environment variable. |
---|
1279 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1280 | # will override the environment variable, which isn't what the user |
---|
1281 | # intends |
---|
1282 | echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1283 | echo "configure:1284: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5 |
---|
1284 | case "$AR_FOR_TARGET" in |
---|
1285 | /*) # valid |
---|
1286 | echo "$ac_t"""yes"" 1>&6 |
---|
1287 | ;; |
---|
1288 | *) # invalid for AC_PATH_PROG |
---|
1289 | echo "$ac_t"""no"" 1>&6 |
---|
1290 | { echo "configure: error: *** |
---|
1291 | Environment variable AR_FOR_TARGET should either |
---|
1292 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1293 | ;; |
---|
1294 | esac |
---|
1295 | fi |
---|
1296 | |
---|
1297 | # Extract the first word of ""$program_prefix"ar", so it can be a program name with args. |
---|
1298 | set dummy "$program_prefix"ar; ac_word=$2 |
---|
1299 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1300 | echo "configure:1301: checking for $ac_word" >&5 |
---|
1301 | if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then |
---|
1302 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1303 | else |
---|
1304 | case "$AR_FOR_TARGET" in |
---|
1305 | /*) |
---|
1306 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path. |
---|
1307 | ;; |
---|
1308 | ?:/*) |
---|
1309 | ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1310 | ;; |
---|
1311 | *) |
---|
1312 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1313 | ac_dummy="$PATH" |
---|
1314 | for ac_dir in $ac_dummy; do |
---|
1315 | test -z "$ac_dir" && ac_dir=. |
---|
1316 | if test -f $ac_dir/$ac_word; then |
---|
1317 | ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word" |
---|
1318 | break |
---|
1319 | fi |
---|
1320 | done |
---|
1321 | IFS="$ac_save_ifs" |
---|
1322 | test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no" |
---|
1323 | ;; |
---|
1324 | esac |
---|
1325 | fi |
---|
1326 | AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET" |
---|
1327 | if test -n "$AR_FOR_TARGET"; then |
---|
1328 | echo "$ac_t""$AR_FOR_TARGET" 1>&6 |
---|
1329 | else |
---|
1330 | echo "$ac_t""no" 1>&6 |
---|
1331 | fi |
---|
1332 | |
---|
1333 | fi |
---|
1334 | |
---|
1335 | |
---|
1336 | echo $ac_n "checking target's as""... $ac_c" 1>&6 |
---|
1337 | echo "configure:1338: checking target's as" >&5 |
---|
1338 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
1339 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1340 | else |
---|
1341 | : |
---|
1342 | fi |
---|
1343 | |
---|
1344 | echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6 |
---|
1345 | |
---|
1346 | if test -n "$ac_cv_path_AS_FOR_TARGET"; then |
---|
1347 | AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET |
---|
1348 | else |
---|
1349 | if test -z "$AS_FOR_TARGET" ; then |
---|
1350 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1351 | # We are using gcc, ask it about its tool |
---|
1352 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1353 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1354 | case $host_os in |
---|
1355 | *cygwin*) |
---|
1356 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' ` |
---|
1357 | ;; |
---|
1358 | *) |
---|
1359 | AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as` |
---|
1360 | ;; |
---|
1361 | esac |
---|
1362 | |
---|
1363 | fi |
---|
1364 | else |
---|
1365 | # The user set an environment variable. |
---|
1366 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1367 | # will override the environment variable, which isn't what the user |
---|
1368 | # intends |
---|
1369 | echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1370 | echo "configure:1371: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5 |
---|
1371 | case "$AS_FOR_TARGET" in |
---|
1372 | /*) # valid |
---|
1373 | echo "$ac_t"""yes"" 1>&6 |
---|
1374 | ;; |
---|
1375 | *) # invalid for AC_PATH_PROG |
---|
1376 | echo "$ac_t"""no"" 1>&6 |
---|
1377 | { echo "configure: error: *** |
---|
1378 | Environment variable AS_FOR_TARGET should either |
---|
1379 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1380 | ;; |
---|
1381 | esac |
---|
1382 | fi |
---|
1383 | |
---|
1384 | # Extract the first word of ""$program_prefix"as", so it can be a program name with args. |
---|
1385 | set dummy "$program_prefix"as; ac_word=$2 |
---|
1386 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1387 | echo "configure:1388: checking for $ac_word" >&5 |
---|
1388 | if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then |
---|
1389 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1390 | else |
---|
1391 | case "$AS_FOR_TARGET" in |
---|
1392 | /*) |
---|
1393 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path. |
---|
1394 | ;; |
---|
1395 | ?:/*) |
---|
1396 | ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1397 | ;; |
---|
1398 | *) |
---|
1399 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1400 | ac_dummy="$PATH" |
---|
1401 | for ac_dir in $ac_dummy; do |
---|
1402 | test -z "$ac_dir" && ac_dir=. |
---|
1403 | if test -f $ac_dir/$ac_word; then |
---|
1404 | ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word" |
---|
1405 | break |
---|
1406 | fi |
---|
1407 | done |
---|
1408 | IFS="$ac_save_ifs" |
---|
1409 | test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no" |
---|
1410 | ;; |
---|
1411 | esac |
---|
1412 | fi |
---|
1413 | AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET" |
---|
1414 | if test -n "$AS_FOR_TARGET"; then |
---|
1415 | echo "$ac_t""$AS_FOR_TARGET" 1>&6 |
---|
1416 | else |
---|
1417 | echo "$ac_t""no" 1>&6 |
---|
1418 | fi |
---|
1419 | |
---|
1420 | fi |
---|
1421 | |
---|
1422 | |
---|
1423 | echo $ac_n "checking target's ld""... $ac_c" 1>&6 |
---|
1424 | echo "configure:1425: checking target's ld" >&5 |
---|
1425 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
1426 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1427 | else |
---|
1428 | : |
---|
1429 | fi |
---|
1430 | |
---|
1431 | echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6 |
---|
1432 | |
---|
1433 | if test -n "$ac_cv_path_LD_FOR_TARGET"; then |
---|
1434 | LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET |
---|
1435 | else |
---|
1436 | if test -z "$LD_FOR_TARGET" ; then |
---|
1437 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1438 | # We are using gcc, ask it about its tool |
---|
1439 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1440 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1441 | case $host_os in |
---|
1442 | *cygwin*) |
---|
1443 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' ` |
---|
1444 | ;; |
---|
1445 | *) |
---|
1446 | LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld` |
---|
1447 | ;; |
---|
1448 | esac |
---|
1449 | |
---|
1450 | fi |
---|
1451 | else |
---|
1452 | # The user set an environment variable. |
---|
1453 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1454 | # will override the environment variable, which isn't what the user |
---|
1455 | # intends |
---|
1456 | echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1457 | echo "configure:1458: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5 |
---|
1458 | case "$LD_FOR_TARGET" in |
---|
1459 | /*) # valid |
---|
1460 | echo "$ac_t"""yes"" 1>&6 |
---|
1461 | ;; |
---|
1462 | *) # invalid for AC_PATH_PROG |
---|
1463 | echo "$ac_t"""no"" 1>&6 |
---|
1464 | { echo "configure: error: *** |
---|
1465 | Environment variable LD_FOR_TARGET should either |
---|
1466 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1467 | ;; |
---|
1468 | esac |
---|
1469 | fi |
---|
1470 | |
---|
1471 | # Extract the first word of ""$program_prefix"ld", so it can be a program name with args. |
---|
1472 | set dummy "$program_prefix"ld; ac_word=$2 |
---|
1473 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1474 | echo "configure:1475: checking for $ac_word" >&5 |
---|
1475 | if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then |
---|
1476 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1477 | else |
---|
1478 | case "$LD_FOR_TARGET" in |
---|
1479 | /*) |
---|
1480 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path. |
---|
1481 | ;; |
---|
1482 | ?:/*) |
---|
1483 | ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1484 | ;; |
---|
1485 | *) |
---|
1486 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1487 | ac_dummy="$PATH" |
---|
1488 | for ac_dir in $ac_dummy; do |
---|
1489 | test -z "$ac_dir" && ac_dir=. |
---|
1490 | if test -f $ac_dir/$ac_word; then |
---|
1491 | ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word" |
---|
1492 | break |
---|
1493 | fi |
---|
1494 | done |
---|
1495 | IFS="$ac_save_ifs" |
---|
1496 | test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no" |
---|
1497 | ;; |
---|
1498 | esac |
---|
1499 | fi |
---|
1500 | LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET" |
---|
1501 | if test -n "$LD_FOR_TARGET"; then |
---|
1502 | echo "$ac_t""$LD_FOR_TARGET" 1>&6 |
---|
1503 | else |
---|
1504 | echo "$ac_t""no" 1>&6 |
---|
1505 | fi |
---|
1506 | |
---|
1507 | fi |
---|
1508 | |
---|
1509 | |
---|
1510 | echo $ac_n "checking target's nm""... $ac_c" 1>&6 |
---|
1511 | echo "configure:1512: checking target's nm" >&5 |
---|
1512 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
1513 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1514 | else |
---|
1515 | : |
---|
1516 | fi |
---|
1517 | |
---|
1518 | echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6 |
---|
1519 | |
---|
1520 | if test -n "$ac_cv_path_NM_FOR_TARGET"; then |
---|
1521 | NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET |
---|
1522 | else |
---|
1523 | if test -z "$NM_FOR_TARGET" ; then |
---|
1524 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1525 | # We are using gcc, ask it about its tool |
---|
1526 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1527 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1528 | case $host_os in |
---|
1529 | *cygwin*) |
---|
1530 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' ` |
---|
1531 | ;; |
---|
1532 | *) |
---|
1533 | NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm` |
---|
1534 | ;; |
---|
1535 | esac |
---|
1536 | |
---|
1537 | fi |
---|
1538 | else |
---|
1539 | # The user set an environment variable. |
---|
1540 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1541 | # will override the environment variable, which isn't what the user |
---|
1542 | # intends |
---|
1543 | echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1544 | echo "configure:1545: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5 |
---|
1545 | case "$NM_FOR_TARGET" in |
---|
1546 | /*) # valid |
---|
1547 | echo "$ac_t"""yes"" 1>&6 |
---|
1548 | ;; |
---|
1549 | *) # invalid for AC_PATH_PROG |
---|
1550 | echo "$ac_t"""no"" 1>&6 |
---|
1551 | { echo "configure: error: *** |
---|
1552 | Environment variable NM_FOR_TARGET should either |
---|
1553 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1554 | ;; |
---|
1555 | esac |
---|
1556 | fi |
---|
1557 | |
---|
1558 | # Extract the first word of ""$program_prefix"nm", so it can be a program name with args. |
---|
1559 | set dummy "$program_prefix"nm; ac_word=$2 |
---|
1560 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1561 | echo "configure:1562: checking for $ac_word" >&5 |
---|
1562 | if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then |
---|
1563 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1564 | else |
---|
1565 | case "$NM_FOR_TARGET" in |
---|
1566 | /*) |
---|
1567 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path. |
---|
1568 | ;; |
---|
1569 | ?:/*) |
---|
1570 | ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1571 | ;; |
---|
1572 | *) |
---|
1573 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1574 | ac_dummy="$PATH" |
---|
1575 | for ac_dir in $ac_dummy; do |
---|
1576 | test -z "$ac_dir" && ac_dir=. |
---|
1577 | if test -f $ac_dir/$ac_word; then |
---|
1578 | ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word" |
---|
1579 | break |
---|
1580 | fi |
---|
1581 | done |
---|
1582 | IFS="$ac_save_ifs" |
---|
1583 | test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no" |
---|
1584 | ;; |
---|
1585 | esac |
---|
1586 | fi |
---|
1587 | NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET" |
---|
1588 | if test -n "$NM_FOR_TARGET"; then |
---|
1589 | echo "$ac_t""$NM_FOR_TARGET" 1>&6 |
---|
1590 | else |
---|
1591 | echo "$ac_t""no" 1>&6 |
---|
1592 | fi |
---|
1593 | |
---|
1594 | fi |
---|
1595 | |
---|
1596 | |
---|
1597 | |
---|
1598 | echo $ac_n "checking target's ranlib""... $ac_c" 1>&6 |
---|
1599 | echo "configure:1600: checking target's ranlib" >&5 |
---|
1600 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
1601 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1602 | else |
---|
1603 | : |
---|
1604 | fi |
---|
1605 | |
---|
1606 | echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6 |
---|
1607 | |
---|
1608 | if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then |
---|
1609 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
1610 | else |
---|
1611 | if test -z "$RANLIB_FOR_TARGET" ; then |
---|
1612 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1613 | # We are using gcc, ask it about its tool |
---|
1614 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1615 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1616 | case $host_os in |
---|
1617 | *cygwin*) |
---|
1618 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' ` |
---|
1619 | ;; |
---|
1620 | *) |
---|
1621 | RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib` |
---|
1622 | ;; |
---|
1623 | esac |
---|
1624 | |
---|
1625 | fi |
---|
1626 | else |
---|
1627 | # The user set an environment variable. |
---|
1628 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1629 | # will override the environment variable, which isn't what the user |
---|
1630 | # intends |
---|
1631 | echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1632 | echo "configure:1633: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5 |
---|
1633 | case "$RANLIB_FOR_TARGET" in |
---|
1634 | /*) # valid |
---|
1635 | echo "$ac_t"""yes"" 1>&6 |
---|
1636 | ;; |
---|
1637 | *) # invalid for AC_PATH_PROG |
---|
1638 | echo "$ac_t"""no"" 1>&6 |
---|
1639 | { echo "configure: error: *** |
---|
1640 | Environment variable RANLIB_FOR_TARGET should either |
---|
1641 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1642 | ;; |
---|
1643 | esac |
---|
1644 | fi |
---|
1645 | |
---|
1646 | # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args. |
---|
1647 | set dummy "$program_prefix"ranlib; ac_word=$2 |
---|
1648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1649 | echo "configure:1650: checking for $ac_word" >&5 |
---|
1650 | if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then |
---|
1651 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1652 | else |
---|
1653 | case "$RANLIB_FOR_TARGET" in |
---|
1654 | /*) |
---|
1655 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path. |
---|
1656 | ;; |
---|
1657 | ?:/*) |
---|
1658 | ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1659 | ;; |
---|
1660 | *) |
---|
1661 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1662 | ac_dummy="$PATH" |
---|
1663 | for ac_dir in $ac_dummy; do |
---|
1664 | test -z "$ac_dir" && ac_dir=. |
---|
1665 | if test -f $ac_dir/$ac_word; then |
---|
1666 | ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word" |
---|
1667 | break |
---|
1668 | fi |
---|
1669 | done |
---|
1670 | IFS="$ac_save_ifs" |
---|
1671 | test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no" |
---|
1672 | ;; |
---|
1673 | esac |
---|
1674 | fi |
---|
1675 | RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET" |
---|
1676 | if test -n "$RANLIB_FOR_TARGET"; then |
---|
1677 | echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6 |
---|
1678 | else |
---|
1679 | echo "$ac_t""no" 1>&6 |
---|
1680 | fi |
---|
1681 | |
---|
1682 | fi |
---|
1683 | |
---|
1684 | if test "$RANLIB_FOR_TARGET" = "no"; then |
---|
1685 | # ranlib wasn't found; check if ar -s is available |
---|
1686 | |
---|
1687 | echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6 |
---|
1688 | echo "configure:1689: checking whether $AR_FOR_TARGET -s works" >&5 |
---|
1689 | if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then |
---|
1690 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1691 | else |
---|
1692 | |
---|
1693 | cat > conftest.$ac_ext <<EOF |
---|
1694 | int foo( int b ) |
---|
1695 | { return b; } |
---|
1696 | EOF |
---|
1697 | if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
1698 | && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \ |
---|
1699 | && test -s conftest.a ; \ |
---|
1700 | then |
---|
1701 | rtems_cv_AR_FOR_TARGET_S="yes" |
---|
1702 | else |
---|
1703 | rtems_cv_AR_FOR_TARGET_S="no" |
---|
1704 | fi |
---|
1705 | rm -f conftest* |
---|
1706 | |
---|
1707 | fi |
---|
1708 | |
---|
1709 | echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6 |
---|
1710 | |
---|
1711 | if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then |
---|
1712 | ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s" |
---|
1713 | RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET |
---|
1714 | else |
---|
1715 | { echo "configure: error: *** |
---|
1716 | Can't figure out how to build a library index |
---|
1717 | Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; } |
---|
1718 | fi |
---|
1719 | fi |
---|
1720 | |
---|
1721 | |
---|
1722 | echo $ac_n "checking target's objcopy""... $ac_c" 1>&6 |
---|
1723 | echo "configure:1724: checking target's objcopy" >&5 |
---|
1724 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
1725 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1726 | else |
---|
1727 | : |
---|
1728 | fi |
---|
1729 | |
---|
1730 | echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6 |
---|
1731 | |
---|
1732 | if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then |
---|
1733 | OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET |
---|
1734 | else |
---|
1735 | if test -z "$OBJCOPY_FOR_TARGET" ; then |
---|
1736 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1737 | # We are using gcc, ask it about its tool |
---|
1738 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1739 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1740 | case $host_os in |
---|
1741 | *cygwin*) |
---|
1742 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' ` |
---|
1743 | ;; |
---|
1744 | *) |
---|
1745 | OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy` |
---|
1746 | ;; |
---|
1747 | esac |
---|
1748 | |
---|
1749 | fi |
---|
1750 | else |
---|
1751 | # The user set an environment variable. |
---|
1752 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1753 | # will override the environment variable, which isn't what the user |
---|
1754 | # intends |
---|
1755 | echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1756 | echo "configure:1757: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5 |
---|
1757 | case "$OBJCOPY_FOR_TARGET" in |
---|
1758 | /*) # valid |
---|
1759 | echo "$ac_t"""yes"" 1>&6 |
---|
1760 | ;; |
---|
1761 | *) # invalid for AC_PATH_PROG |
---|
1762 | echo "$ac_t"""no"" 1>&6 |
---|
1763 | { echo "configure: error: *** |
---|
1764 | Environment variable OBJCOPY_FOR_TARGET should either |
---|
1765 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1766 | ;; |
---|
1767 | esac |
---|
1768 | fi |
---|
1769 | |
---|
1770 | # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args. |
---|
1771 | set dummy "$program_prefix"objcopy; ac_word=$2 |
---|
1772 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1773 | echo "configure:1774: checking for $ac_word" >&5 |
---|
1774 | if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then |
---|
1775 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1776 | else |
---|
1777 | case "$OBJCOPY_FOR_TARGET" in |
---|
1778 | /*) |
---|
1779 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path. |
---|
1780 | ;; |
---|
1781 | ?:/*) |
---|
1782 | ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1783 | ;; |
---|
1784 | *) |
---|
1785 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1786 | ac_dummy="$PATH" |
---|
1787 | for ac_dir in $ac_dummy; do |
---|
1788 | test -z "$ac_dir" && ac_dir=. |
---|
1789 | if test -f $ac_dir/$ac_word; then |
---|
1790 | ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word" |
---|
1791 | break |
---|
1792 | fi |
---|
1793 | done |
---|
1794 | IFS="$ac_save_ifs" |
---|
1795 | test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no" |
---|
1796 | ;; |
---|
1797 | esac |
---|
1798 | fi |
---|
1799 | OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET" |
---|
1800 | if test -n "$OBJCOPY_FOR_TARGET"; then |
---|
1801 | echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6 |
---|
1802 | else |
---|
1803 | echo "$ac_t""no" 1>&6 |
---|
1804 | fi |
---|
1805 | |
---|
1806 | fi |
---|
1807 | |
---|
1808 | |
---|
1809 | echo $ac_n "checking target's size""... $ac_c" 1>&6 |
---|
1810 | echo "configure:1811: checking target's size" >&5 |
---|
1811 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
1812 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1813 | else |
---|
1814 | : |
---|
1815 | fi |
---|
1816 | |
---|
1817 | echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6 |
---|
1818 | |
---|
1819 | if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then |
---|
1820 | SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET |
---|
1821 | else |
---|
1822 | if test -z "$SIZE_FOR_TARGET" ; then |
---|
1823 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1824 | # We are using gcc, ask it about its tool |
---|
1825 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1826 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1827 | case $host_os in |
---|
1828 | *cygwin*) |
---|
1829 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' ` |
---|
1830 | ;; |
---|
1831 | *) |
---|
1832 | SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size` |
---|
1833 | ;; |
---|
1834 | esac |
---|
1835 | |
---|
1836 | fi |
---|
1837 | else |
---|
1838 | # The user set an environment variable. |
---|
1839 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1840 | # will override the environment variable, which isn't what the user |
---|
1841 | # intends |
---|
1842 | echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1843 | echo "configure:1844: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5 |
---|
1844 | case "$SIZE_FOR_TARGET" in |
---|
1845 | /*) # valid |
---|
1846 | echo "$ac_t"""yes"" 1>&6 |
---|
1847 | ;; |
---|
1848 | *) # invalid for AC_PATH_PROG |
---|
1849 | echo "$ac_t"""no"" 1>&6 |
---|
1850 | { echo "configure: error: *** |
---|
1851 | Environment variable SIZE_FOR_TARGET should either |
---|
1852 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1853 | ;; |
---|
1854 | esac |
---|
1855 | fi |
---|
1856 | |
---|
1857 | # Extract the first word of ""$program_prefix"size", so it can be a program name with args. |
---|
1858 | set dummy "$program_prefix"size; ac_word=$2 |
---|
1859 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1860 | echo "configure:1861: checking for $ac_word" >&5 |
---|
1861 | if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then |
---|
1862 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1863 | else |
---|
1864 | case "$SIZE_FOR_TARGET" in |
---|
1865 | /*) |
---|
1866 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path. |
---|
1867 | ;; |
---|
1868 | ?:/*) |
---|
1869 | ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1870 | ;; |
---|
1871 | *) |
---|
1872 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1873 | ac_dummy="$PATH" |
---|
1874 | for ac_dir in $ac_dummy; do |
---|
1875 | test -z "$ac_dir" && ac_dir=. |
---|
1876 | if test -f $ac_dir/$ac_word; then |
---|
1877 | ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word" |
---|
1878 | break |
---|
1879 | fi |
---|
1880 | done |
---|
1881 | IFS="$ac_save_ifs" |
---|
1882 | test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no" |
---|
1883 | ;; |
---|
1884 | esac |
---|
1885 | fi |
---|
1886 | SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET" |
---|
1887 | if test -n "$SIZE_FOR_TARGET"; then |
---|
1888 | echo "$ac_t""$SIZE_FOR_TARGET" 1>&6 |
---|
1889 | else |
---|
1890 | echo "$ac_t""no" 1>&6 |
---|
1891 | fi |
---|
1892 | |
---|
1893 | fi |
---|
1894 | |
---|
1895 | |
---|
1896 | echo $ac_n "checking target's strip""... $ac_c" 1>&6 |
---|
1897 | echo "configure:1898: checking target's strip" >&5 |
---|
1898 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
1899 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1900 | else |
---|
1901 | : |
---|
1902 | fi |
---|
1903 | |
---|
1904 | echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6 |
---|
1905 | |
---|
1906 | if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then |
---|
1907 | STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET |
---|
1908 | else |
---|
1909 | if test -z "$STRIP_FOR_TARGET" ; then |
---|
1910 | if test "$rtems_cv_prog_gcc" = "yes"; then |
---|
1911 | # We are using gcc, ask it about its tool |
---|
1912 | # NOTE: Necessary if gcc was configured to use the target's |
---|
1913 | # native tools or uses prefixes for gnutools (e.g. gas instead of as) |
---|
1914 | case $host_os in |
---|
1915 | *cygwin*) |
---|
1916 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' ` |
---|
1917 | ;; |
---|
1918 | *) |
---|
1919 | STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip` |
---|
1920 | ;; |
---|
1921 | esac |
---|
1922 | |
---|
1923 | fi |
---|
1924 | else |
---|
1925 | # The user set an environment variable. |
---|
1926 | # Check whether it is an absolute path, otherwise AC_PATH_PROG |
---|
1927 | # will override the environment variable, which isn't what the user |
---|
1928 | # intends |
---|
1929 | echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6 |
---|
1930 | echo "configure:1931: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5 |
---|
1931 | case "$STRIP_FOR_TARGET" in |
---|
1932 | /*) # valid |
---|
1933 | echo "$ac_t"""yes"" 1>&6 |
---|
1934 | ;; |
---|
1935 | *) # invalid for AC_PATH_PROG |
---|
1936 | echo "$ac_t"""no"" 1>&6 |
---|
1937 | { echo "configure: error: *** |
---|
1938 | Environment variable STRIP_FOR_TARGET should either |
---|
1939 | be unset (preferred) or contain an absolute path" 1>&2; exit 1; } |
---|
1940 | ;; |
---|
1941 | esac |
---|
1942 | fi |
---|
1943 | |
---|
1944 | # Extract the first word of ""$program_prefix"strip", so it can be a program name with args. |
---|
1945 | set dummy "$program_prefix"strip; ac_word=$2 |
---|
1946 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
1947 | echo "configure:1948: checking for $ac_word" >&5 |
---|
1948 | if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then |
---|
1949 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1950 | else |
---|
1951 | case "$STRIP_FOR_TARGET" in |
---|
1952 | /*) |
---|
1953 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path. |
---|
1954 | ;; |
---|
1955 | ?:/*) |
---|
1956 | ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path. |
---|
1957 | ;; |
---|
1958 | *) |
---|
1959 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
1960 | ac_dummy="$PATH" |
---|
1961 | for ac_dir in $ac_dummy; do |
---|
1962 | test -z "$ac_dir" && ac_dir=. |
---|
1963 | if test -f $ac_dir/$ac_word; then |
---|
1964 | ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word" |
---|
1965 | break |
---|
1966 | fi |
---|
1967 | done |
---|
1968 | IFS="$ac_save_ifs" |
---|
1969 | test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no" |
---|
1970 | ;; |
---|
1971 | esac |
---|
1972 | fi |
---|
1973 | STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET" |
---|
1974 | if test -n "$STRIP_FOR_TARGET"; then |
---|
1975 | echo "$ac_t""$STRIP_FOR_TARGET" 1>&6 |
---|
1976 | else |
---|
1977 | echo "$ac_t""no" 1>&6 |
---|
1978 | fi |
---|
1979 | |
---|
1980 | fi |
---|
1981 | |
---|
1982 | |
---|
1983 | |
---|
1984 | if test "${target_cpu}" = "i386"; then |
---|
1985 | echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6 |
---|
1986 | echo "configure:1987: checking for 16 bit mode assembler support" >&5 |
---|
1987 | if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then |
---|
1988 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
1989 | else |
---|
1990 | cat > conftest.s << EOF |
---|
1991 | .code16 |
---|
1992 | data32 |
---|
1993 | addr32 |
---|
1994 | lgdt 0 |
---|
1995 | EOF |
---|
1996 | if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:1997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then |
---|
1997 | rtems_cv_prog_gas_code16=yes |
---|
1998 | else |
---|
1999 | rtems_cv_prog_gas_code16=no |
---|
2000 | fi |
---|
2001 | fi |
---|
2002 | |
---|
2003 | echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6 |
---|
2004 | RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16" |
---|
2005 | fi |
---|
2006 | |
---|
2007 | |
---|
2008 | |
---|
2009 | |
---|
2010 | if test "$RTEMS_GAS_CODE16" = "yes"; then |
---|
2011 | RTEMS_GAS_CODE16_TRUE= |
---|
2012 | RTEMS_GAS_CODE16_FALSE='#' |
---|
2013 | else |
---|
2014 | RTEMS_GAS_CODE16_TRUE='#' |
---|
2015 | RTEMS_GAS_CODE16_FALSE= |
---|
2016 | fi; |
---|
2017 | |
---|
2018 | echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6 |
---|
2019 | echo "configure:2020: checking for make/custom/$RTEMS_BSP.cfg" >&5 |
---|
2020 | if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then |
---|
2021 | echo "$ac_t""yes" 1>&6 |
---|
2022 | else |
---|
2023 | { echo "configure: error: no" 1>&2; exit 1; } |
---|
2024 | fi |
---|
2025 | |
---|
2026 | echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6 |
---|
2027 | echo "configure:2028: checking whether BSP supports multiprocessing" >&5 |
---|
2028 | if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then |
---|
2029 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2030 | else |
---|
2031 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then |
---|
2032 | if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then |
---|
2033 | rtems_cv_HAS_MP="yes" ; |
---|
2034 | else |
---|
2035 | rtems_cv_HAS_MP="disabled"; |
---|
2036 | fi |
---|
2037 | else |
---|
2038 | rtems_cv_HAS_MP="no"; |
---|
2039 | fi |
---|
2040 | fi |
---|
2041 | |
---|
2042 | echo "$ac_t""$rtems_cv_HAS_MP" 1>&6 |
---|
2043 | if test "$rtems_cv_HAS_MP" = "yes"; then |
---|
2044 | HAS_MP="yes" |
---|
2045 | else |
---|
2046 | HAS_MP="no" |
---|
2047 | fi |
---|
2048 | |
---|
2049 | |
---|
2050 | echo $ac_n "checking whether BSP supports networking""... $ac_c" 1>&6 |
---|
2051 | echo "configure:2052: checking whether BSP supports networking" >&5 |
---|
2052 | if eval "test \"`echo '$''{'rtems_cv_HAS_NETWORKING'+set}'`\" = set"; then |
---|
2053 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2054 | else |
---|
2055 | case "$RTEMS_CPU" in |
---|
2056 | unix*) |
---|
2057 | rtems_cv_HAS_NETWORKING="no" |
---|
2058 | ;; |
---|
2059 | *) |
---|
2060 | if test "${RTEMS_HAS_NETWORKING}" = "yes"; then |
---|
2061 | rtems_cv_HAS_NETWORKING="yes"; |
---|
2062 | else |
---|
2063 | rtems_cv_HAS_NETWORKING="disabled"; |
---|
2064 | fi |
---|
2065 | ;; |
---|
2066 | esac |
---|
2067 | fi |
---|
2068 | |
---|
2069 | echo "$ac_t""$rtems_cv_HAS_NETWORKING" 1>&6 |
---|
2070 | if test "$rtems_cv_HAS_NETWORKING" = "yes"; then |
---|
2071 | HAS_NETWORKING="yes"; |
---|
2072 | else |
---|
2073 | HAS_NETWORKING="no"; |
---|
2074 | fi |
---|
2075 | |
---|
2076 | |
---|
2077 | |
---|
2078 | # account for "aliased" bsps which share source code |
---|
2079 | case ${RTEMS_BSP} in |
---|
2080 | mvme162lx) bspdir=mvme162 ;; # mvme162 board variant |
---|
2081 | gen68360_040) bspdir=gen68360 ;; # 68360 in companion mode |
---|
2082 | go32_p5) bspdir=go32 ;; # go32 on Pentium class CPU |
---|
2083 | p4600) bspdir=p4000 ;; # p4000 board with IDT 4600 |
---|
2084 | p4650) bspdir=p4000 ;; # p4000 board with IDT 4650 |
---|
2085 | *) bspdir=${RTEMS_BSP};; |
---|
2086 | esac |
---|
2087 | |
---|
2088 | |
---|
2089 | |
---|
2090 | |
---|
2091 | if test "$RTEMS_CPU" = "unix"; then |
---|
2092 | UNIX_TRUE= |
---|
2093 | UNIX_FALSE='#' |
---|
2094 | else |
---|
2095 | UNIX_TRUE='#' |
---|
2096 | UNIX_FALSE= |
---|
2097 | fi |
---|
2098 | |
---|
2099 | # find all the CPU dependent library Makefiles |
---|
2100 | subdirs="libcpu" |
---|
2101 | |
---|
2102 | subdirs="libcpu libbsp" |
---|
2103 | |
---|
2104 | |
---|
2105 | # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles |
---|
2106 | if test "$HAS_NETWORKING" = "yes"; then |
---|
2107 | cfg_subdirs="$cfg_subdirs libnetworking" |
---|
2108 | cfg_subdirs="$cfg_subdirs librpc" |
---|
2109 | |
---|
2110 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
2111 | echo $ac_n "checking whether BSP supports librdbg""... $ac_c" 1>&6 |
---|
2112 | echo "configure:2113: checking whether BSP supports librdbg" >&5 |
---|
2113 | if eval "test \"`echo '$''{'rtems_cv_HAS_RDBG'+set}'`\" = set"; then |
---|
2114 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
2115 | else |
---|
2116 | |
---|
2117 | if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}/${RTEMS_BSP}"; then |
---|
2118 | rtems_cv_HAS_RDBG="yes" ; |
---|
2119 | else |
---|
2120 | rtems_cv_HAS_RDBG="no"; |
---|
2121 | fi |
---|
2122 | |
---|
2123 | fi |
---|
2124 | |
---|
2125 | echo "$ac_t""$rtems_cv_HAS_RDBG" 1>&6 |
---|
2126 | HAS_RDBG="$rtems_cv_HAS_RDBG" |
---|
2127 | |
---|
2128 | |
---|
2129 | fi |
---|
2130 | fi |
---|
2131 | |
---|
2132 | |
---|
2133 | if test "$HAS_RDBG" = "yes"; then |
---|
2134 | cfg_subdirs="$cfg_subdirs librdbg" |
---|
2135 | fi |
---|
2136 | |
---|
2137 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
2138 | # Check whether --enable-hwapi or --disable-hwapi was given. |
---|
2139 | if test "${enable_hwapi+set}" = set; then |
---|
2140 | enableval="$enable_hwapi" |
---|
2141 | case "${enableval}" in |
---|
2142 | yes) RTEMS_HAS_HWAPI=yes ;; |
---|
2143 | no) RTEMS_HAS_HWAPI=no ;; |
---|
2144 | *) { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;; |
---|
2145 | esac |
---|
2146 | else |
---|
2147 | RTEMS_HAS_HWAPI=no |
---|
2148 | fi |
---|
2149 | |
---|
2150 | |
---|
2151 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
2152 | if test -d "${srcdir}/libhwapi"; then |
---|
2153 | cfg_subdirs="$cfg_subdirs libhwapi" |
---|
2154 | fi |
---|
2155 | LIBHWAPI="libhwapi" |
---|
2156 | fi |
---|
2157 | |
---|
2158 | |
---|
2159 | if test -d "${srcdir}/start/$RTEMS_CPU"; then |
---|
2160 | cfg_subdirs="$cfg_subdirs start/$RTEMS_CPU" |
---|
2161 | RTEMS_CPU_STARTdir="$RTEMS_CPU" |
---|
2162 | fi |
---|
2163 | |
---|
2164 | |
---|
2165 | if test "$RTEMS_CPU" != "unix"; then |
---|
2166 | ## HACK: Suppress libchip for unix |
---|
2167 | cfg_subdirs="$cfg_subdirs libchip" |
---|
2168 | fi |
---|
2169 | |
---|
2170 | |
---|
2171 | |
---|
2172 | if test "$HAS_NETWORKING" = "yes"; then |
---|
2173 | HAS_NETWORKING_TRUE= |
---|
2174 | HAS_NETWORKING_FALSE='#' |
---|
2175 | else |
---|
2176 | HAS_NETWORKING_TRUE='#' |
---|
2177 | HAS_NETWORKING_FALSE= |
---|
2178 | fi |
---|
2179 | |
---|
2180 | |
---|
2181 | if test "$RTEMS_CPU" != "unix"; then |
---|
2182 | HAS_LIBCHIP_TRUE= |
---|
2183 | HAS_LIBCHIP_FALSE='#' |
---|
2184 | else |
---|
2185 | HAS_LIBCHIP_TRUE='#' |
---|
2186 | HAS_LIBCHIP_FALSE= |
---|
2187 | fi |
---|
2188 | |
---|
2189 | |
---|
2190 | if test "$HAS_RDBG" = "yes"; then |
---|
2191 | HAS_RDBG_TRUE= |
---|
2192 | HAS_RDBG_FALSE='#' |
---|
2193 | else |
---|
2194 | HAS_RDBG_TRUE='#' |
---|
2195 | HAS_RDBG_FALSE= |
---|
2196 | fi |
---|
2197 | |
---|
2198 | subdirs="libcpu libbsp libmisc" |
---|
2199 | |
---|
2200 | |
---|
2201 | subdirs="libcpu libbsp libmisc $cfg_subdirs" |
---|
2202 | |
---|
2203 | |
---|
2204 | PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include" |
---|
2205 | |
---|
2206 | |
---|
2207 | # try to explicitly list a Makefile here |
---|
2208 | trap '' 1 2 15 |
---|
2209 | cat > confcache <<\EOF |
---|
2210 | # This file is a shell script that caches the results of configure |
---|
2211 | # tests run on this system so they can be shared between configure |
---|
2212 | # scripts and configure runs. It is not useful on other systems. |
---|
2213 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
2214 | # |
---|
2215 | # By default, configure uses ./config.cache as the cache file, |
---|
2216 | # creating it if it does not exist already. You can give configure |
---|
2217 | # the --cache-file=FILE option to use a different cache file; that is |
---|
2218 | # what configure does when it calls configure scripts in |
---|
2219 | # subdirectories, so they share the cache. |
---|
2220 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
2221 | # config.status only pays attention to the cache file if you give it the |
---|
2222 | # --recheck option to rerun configure. |
---|
2223 | # |
---|
2224 | EOF |
---|
2225 | # The following way of writing the cache mishandles newlines in values, |
---|
2226 | # but we know of no workaround that is simple, portable, and efficient. |
---|
2227 | # So, don't put newlines in cache variables' values. |
---|
2228 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
2229 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
2230 | (set) 2>&1 | |
---|
2231 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
2232 | *ac_space=\ *) |
---|
2233 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
2234 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
2235 | sed -n \ |
---|
2236 | -e "s/'/'\\\\''/g" \ |
---|
2237 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
2238 | ;; |
---|
2239 | *) |
---|
2240 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
2241 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
2242 | ;; |
---|
2243 | esac >> confcache |
---|
2244 | if cmp -s $cache_file confcache; then |
---|
2245 | : |
---|
2246 | else |
---|
2247 | if test -w $cache_file; then |
---|
2248 | echo "updating cache $cache_file" |
---|
2249 | cat confcache > $cache_file |
---|
2250 | else |
---|
2251 | echo "not updating unwritable cache $cache_file" |
---|
2252 | fi |
---|
2253 | fi |
---|
2254 | rm -f confcache |
---|
2255 | |
---|
2256 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
2257 | |
---|
2258 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
2259 | # Let make expand exec_prefix. |
---|
2260 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
2261 | |
---|
2262 | # Any assignment to VPATH causes Sun make to only execute |
---|
2263 | # the first set of double-colon rules, so remove it if not needed. |
---|
2264 | # If there is a colon in the path, we need to keep it. |
---|
2265 | if test "x$srcdir" = x.; then |
---|
2266 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
2267 | fi |
---|
2268 | |
---|
2269 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
2270 | |
---|
2271 | # Transform confdefs.h into DEFS. |
---|
2272 | # Protect against shell expansion while executing Makefile rules. |
---|
2273 | # Protect against Makefile macro expansion. |
---|
2274 | cat > conftest.defs <<\EOF |
---|
2275 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
---|
2276 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
---|
2277 | s%\[%\\&%g |
---|
2278 | s%\]%\\&%g |
---|
2279 | s%\$%$$%g |
---|
2280 | EOF |
---|
2281 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
---|
2282 | rm -f conftest.defs |
---|
2283 | |
---|
2284 | |
---|
2285 | # Without the "./", some shells look in PATH for config.status. |
---|
2286 | : ${CONFIG_STATUS=./config.status} |
---|
2287 | |
---|
2288 | echo creating $CONFIG_STATUS |
---|
2289 | rm -f $CONFIG_STATUS |
---|
2290 | cat > $CONFIG_STATUS <<EOF |
---|
2291 | #! /bin/sh |
---|
2292 | # Generated automatically by configure. |
---|
2293 | # Run this file to recreate the current configuration. |
---|
2294 | # This directory was configured as follows, |
---|
2295 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
2296 | # |
---|
2297 | # $0 $ac_configure_args |
---|
2298 | # |
---|
2299 | # Compiler output produced by configure, useful for debugging |
---|
2300 | # configure, is in ./config.log if it exists. |
---|
2301 | |
---|
2302 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
2303 | for ac_option |
---|
2304 | do |
---|
2305 | case "\$ac_option" in |
---|
2306 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
2307 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
2308 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
2309 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
2310 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
2311 | exit 0 ;; |
---|
2312 | -help | --help | --hel | --he | --h) |
---|
2313 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
2314 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
2315 | esac |
---|
2316 | done |
---|
2317 | |
---|
2318 | ac_given_srcdir=$srcdir |
---|
2319 | ac_given_INSTALL="$INSTALL" |
---|
2320 | |
---|
2321 | trap 'rm -fr `echo "Makefile |
---|
2322 | include/Makefile |
---|
2323 | include/sys/Makefile |
---|
2324 | include/motorola/Makefile |
---|
2325 | include/zilog/Makefile |
---|
2326 | include/rpc/Makefile |
---|
2327 | include/rdbg/Makefile |
---|
2328 | include/rdbg/i386/Makefile |
---|
2329 | include/rdbg/powerpc/Makefile |
---|
2330 | libc/Makefile |
---|
2331 | start/Makefile |
---|
2332 | wrapup/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
2333 | EOF |
---|
2334 | cat >> $CONFIG_STATUS <<EOF |
---|
2335 | |
---|
2336 | # Protect against being on the right side of a sed subst in config.status. |
---|
2337 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
2338 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
2339 | $ac_vpsub |
---|
2340 | $extrasub |
---|
2341 | s%@SHELL@%$SHELL%g |
---|
2342 | s%@CFLAGS@%$CFLAGS%g |
---|
2343 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
2344 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
2345 | s%@FFLAGS@%$FFLAGS%g |
---|
2346 | s%@DEFS@%$DEFS%g |
---|
2347 | s%@LDFLAGS@%$LDFLAGS%g |
---|
2348 | s%@LIBS@%$LIBS%g |
---|
2349 | s%@exec_prefix@%$exec_prefix%g |
---|
2350 | s%@prefix@%$prefix%g |
---|
2351 | s%@program_transform_name@%$program_transform_name%g |
---|
2352 | s%@bindir@%$bindir%g |
---|
2353 | s%@sbindir@%$sbindir%g |
---|
2354 | s%@libexecdir@%$libexecdir%g |
---|
2355 | s%@datadir@%$datadir%g |
---|
2356 | s%@sysconfdir@%$sysconfdir%g |
---|
2357 | s%@sharedstatedir@%$sharedstatedir%g |
---|
2358 | s%@localstatedir@%$localstatedir%g |
---|
2359 | s%@libdir@%$libdir%g |
---|
2360 | s%@includedir@%$includedir%g |
---|
2361 | s%@oldincludedir@%$oldincludedir%g |
---|
2362 | s%@infodir@%$infodir%g |
---|
2363 | s%@mandir@%$mandir%g |
---|
2364 | s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g |
---|
2365 | s%@SET_MAKE@%$SET_MAKE%g |
---|
2366 | s%@host@%$host%g |
---|
2367 | s%@host_alias@%$host_alias%g |
---|
2368 | s%@host_cpu@%$host_cpu%g |
---|
2369 | s%@host_vendor@%$host_vendor%g |
---|
2370 | s%@host_os@%$host_os%g |
---|
2371 | s%@target@%$target%g |
---|
2372 | s%@target_alias@%$target_alias%g |
---|
2373 | s%@target_cpu@%$target_cpu%g |
---|
2374 | s%@target_vendor@%$target_vendor%g |
---|
2375 | s%@target_os@%$target_os%g |
---|
2376 | s%@build@%$build%g |
---|
2377 | s%@build_alias@%$build_alias%g |
---|
2378 | s%@build_cpu@%$build_cpu%g |
---|
2379 | s%@build_vendor@%$build_vendor%g |
---|
2380 | s%@build_os@%$build_os%g |
---|
2381 | s%@RTEMS_CPU@%$RTEMS_CPU%g |
---|
2382 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
2383 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
2384 | s%@MAINT@%$MAINT%g |
---|
2385 | s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g |
---|
2386 | s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g |
---|
2387 | s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g |
---|
2388 | s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g |
---|
2389 | s%@RTEMS_HAS_HWAPI@%$RTEMS_HAS_HWAPI%g |
---|
2390 | s%@RTEMS_BSP@%$RTEMS_BSP%g |
---|
2391 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
2392 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
2393 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
2394 | s%@RTEMS_HOST@%$RTEMS_HOST%g |
---|
2395 | s%@PROJECT_ROOT@%$PROJECT_ROOT%g |
---|
2396 | s%@RTEMS_ROOT@%$RTEMS_ROOT%g |
---|
2397 | s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g |
---|
2398 | s%@PACKHEX@%$PACKHEX%g |
---|
2399 | s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g |
---|
2400 | s%@GCCSED@%$GCCSED%g |
---|
2401 | s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g |
---|
2402 | s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g |
---|
2403 | s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g |
---|
2404 | s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g |
---|
2405 | s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g |
---|
2406 | s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g |
---|
2407 | s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g |
---|
2408 | s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g |
---|
2409 | s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g |
---|
2410 | s%@RTEMS_GAS_CODE16_TRUE@%$RTEMS_GAS_CODE16_TRUE%g |
---|
2411 | s%@RTEMS_GAS_CODE16_FALSE@%$RTEMS_GAS_CODE16_FALSE%g |
---|
2412 | s%@HAS_MP@%$HAS_MP%g |
---|
2413 | s%@HAS_NETWORKING@%$HAS_NETWORKING%g |
---|
2414 | s%@UNIX_TRUE@%$UNIX_TRUE%g |
---|
2415 | s%@UNIX_FALSE@%$UNIX_FALSE%g |
---|
2416 | s%@subdirs@%$subdirs%g |
---|
2417 | s%@HAS_RDBG@%$HAS_RDBG%g |
---|
2418 | s%@LIBHWAPI@%$LIBHWAPI%g |
---|
2419 | s%@RTEMS_CPU_STARTdir@%$RTEMS_CPU_STARTdir%g |
---|
2420 | s%@HAS_NETWORKING_TRUE@%$HAS_NETWORKING_TRUE%g |
---|
2421 | s%@HAS_NETWORKING_FALSE@%$HAS_NETWORKING_FALSE%g |
---|
2422 | s%@HAS_LIBCHIP_TRUE@%$HAS_LIBCHIP_TRUE%g |
---|
2423 | s%@HAS_LIBCHIP_FALSE@%$HAS_LIBCHIP_FALSE%g |
---|
2424 | s%@HAS_RDBG_TRUE@%$HAS_RDBG_TRUE%g |
---|
2425 | s%@HAS_RDBG_FALSE@%$HAS_RDBG_FALSE%g |
---|
2426 | s%@PROJECT_INCLUDE@%$PROJECT_INCLUDE%g |
---|
2427 | |
---|
2428 | CEOF |
---|
2429 | EOF |
---|
2430 | |
---|
2431 | cat >> $CONFIG_STATUS <<\EOF |
---|
2432 | |
---|
2433 | # Split the substitutions into bite-sized pieces for seds with |
---|
2434 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
2435 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
2436 | ac_file=1 # Number of current file. |
---|
2437 | ac_beg=1 # First line for current file. |
---|
2438 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
2439 | ac_more_lines=: |
---|
2440 | ac_sed_cmds="" |
---|
2441 | while $ac_more_lines; do |
---|
2442 | if test $ac_beg -gt 1; then |
---|
2443 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
2444 | else |
---|
2445 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
2446 | fi |
---|
2447 | if test ! -s conftest.s$ac_file; then |
---|
2448 | ac_more_lines=false |
---|
2449 | rm -f conftest.s$ac_file |
---|
2450 | else |
---|
2451 | if test -z "$ac_sed_cmds"; then |
---|
2452 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
2453 | else |
---|
2454 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
2455 | fi |
---|
2456 | ac_file=`expr $ac_file + 1` |
---|
2457 | ac_beg=$ac_end |
---|
2458 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
2459 | fi |
---|
2460 | done |
---|
2461 | if test -z "$ac_sed_cmds"; then |
---|
2462 | ac_sed_cmds=cat |
---|
2463 | fi |
---|
2464 | EOF |
---|
2465 | |
---|
2466 | cat >> $CONFIG_STATUS <<EOF |
---|
2467 | |
---|
2468 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
2469 | include/Makefile |
---|
2470 | include/sys/Makefile |
---|
2471 | include/motorola/Makefile |
---|
2472 | include/zilog/Makefile |
---|
2473 | include/rpc/Makefile |
---|
2474 | include/rdbg/Makefile |
---|
2475 | include/rdbg/i386/Makefile |
---|
2476 | include/rdbg/powerpc/Makefile |
---|
2477 | libc/Makefile |
---|
2478 | start/Makefile |
---|
2479 | wrapup/Makefile"} |
---|
2480 | EOF |
---|
2481 | cat >> $CONFIG_STATUS <<\EOF |
---|
2482 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
2483 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
2484 | case "$ac_file" in |
---|
2485 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
2486 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
2487 | *) ac_file_in="${ac_file}.in" ;; |
---|
2488 | esac |
---|
2489 | |
---|
2490 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
2491 | |
---|
2492 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
2493 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
2494 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
2495 | # The file is in a subdirectory. |
---|
2496 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
2497 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
2498 | # A "../" for each directory in $ac_dir_suffix. |
---|
2499 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
2500 | else |
---|
2501 | ac_dir_suffix= ac_dots= |
---|
2502 | fi |
---|
2503 | |
---|
2504 | case "$ac_given_srcdir" in |
---|
2505 | .) srcdir=. |
---|
2506 | if test -z "$ac_dots"; then top_srcdir=. |
---|
2507 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
2508 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
2509 | *) # Relative path. |
---|
2510 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
2511 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
2512 | esac |
---|
2513 | |
---|
2514 | case "$ac_given_INSTALL" in |
---|
2515 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
2516 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
2517 | esac |
---|
2518 | |
---|
2519 | echo creating "$ac_file" |
---|
2520 | rm -f "$ac_file" |
---|
2521 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
2522 | case "$ac_file" in |
---|
2523 | *Makefile*) ac_comsub="1i\\ |
---|
2524 | # $configure_input" ;; |
---|
2525 | *) ac_comsub= ;; |
---|
2526 | esac |
---|
2527 | |
---|
2528 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
2529 | sed -e "$ac_comsub |
---|
2530 | s%@configure_input@%$configure_input%g |
---|
2531 | s%@srcdir@%$srcdir%g |
---|
2532 | s%@top_srcdir@%$top_srcdir%g |
---|
2533 | s%@INSTALL@%$INSTALL%g |
---|
2534 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
2535 | fi; done |
---|
2536 | rm -f conftest.s* |
---|
2537 | |
---|
2538 | EOF |
---|
2539 | cat >> $CONFIG_STATUS <<EOF |
---|
2540 | |
---|
2541 | EOF |
---|
2542 | cat >> $CONFIG_STATUS <<\EOF |
---|
2543 | |
---|
2544 | exit 0 |
---|
2545 | EOF |
---|
2546 | chmod +x $CONFIG_STATUS |
---|
2547 | rm -fr confdefs* $ac_clean_files |
---|
2548 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
2549 | |
---|
2550 | if test "$no_recursion" != yes; then |
---|
2551 | |
---|
2552 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
2553 | ac_sub_configure_args= |
---|
2554 | ac_prev= |
---|
2555 | for ac_arg in $ac_configure_args; do |
---|
2556 | if test -n "$ac_prev"; then |
---|
2557 | ac_prev= |
---|
2558 | continue |
---|
2559 | fi |
---|
2560 | case "$ac_arg" in |
---|
2561 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
2562 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
2563 | ac_prev=cache_file ;; |
---|
2564 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
2565 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
2566 | ;; |
---|
2567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
2568 | ac_prev=srcdir ;; |
---|
2569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
2570 | ;; |
---|
2571 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
2572 | esac |
---|
2573 | done |
---|
2574 | |
---|
2575 | for ac_config_dir in libcpu libbsp libmisc $cfg_subdirs; do |
---|
2576 | |
---|
2577 | # Do not complain, so a configure script can configure whichever |
---|
2578 | # parts of a large source tree are present. |
---|
2579 | if test ! -d $srcdir/$ac_config_dir; then |
---|
2580 | continue |
---|
2581 | fi |
---|
2582 | |
---|
2583 | echo configuring in $ac_config_dir |
---|
2584 | |
---|
2585 | case "$srcdir" in |
---|
2586 | .) ;; |
---|
2587 | *) |
---|
2588 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
2589 | else |
---|
2590 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
2591 | fi |
---|
2592 | ;; |
---|
2593 | esac |
---|
2594 | |
---|
2595 | ac_popdir=`pwd` |
---|
2596 | cd $ac_config_dir |
---|
2597 | |
---|
2598 | # A "../" for each directory in /$ac_config_dir. |
---|
2599 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
2600 | |
---|
2601 | case "$srcdir" in |
---|
2602 | .) # No --srcdir option. We are building in place. |
---|
2603 | ac_sub_srcdir=$srcdir ;; |
---|
2604 | /*) # Absolute path. |
---|
2605 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
2606 | *) # Relative path. |
---|
2607 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
2608 | esac |
---|
2609 | |
---|
2610 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
2611 | if test -f $ac_sub_srcdir/configure; then |
---|
2612 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
2613 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
2614 | ac_sub_configure=$ac_configure |
---|
2615 | else |
---|
2616 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
2617 | ac_sub_configure= |
---|
2618 | fi |
---|
2619 | |
---|
2620 | # The recursion is here. |
---|
2621 | if test -n "$ac_sub_configure"; then |
---|
2622 | |
---|
2623 | # Make the cache file name correct relative to the subdirectory. |
---|
2624 | case "$cache_file" in |
---|
2625 | /*) ac_sub_cache_file=$cache_file ;; |
---|
2626 | *) # Relative path. |
---|
2627 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
2628 | esac |
---|
2629 | case "$ac_given_INSTALL" in |
---|
2630 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
2631 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
2632 | esac |
---|
2633 | |
---|
2634 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
2635 | # The eval makes quoting arguments work. |
---|
2636 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|
2637 | then : |
---|
2638 | else |
---|
2639 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } |
---|
2640 | fi |
---|
2641 | fi |
---|
2642 | |
---|
2643 | cd $ac_popdir |
---|
2644 | done |
---|
2645 | fi |
---|
2646 | |
---|